Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 2 | # From configure.in Revision: 80574 . |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.61 for python 2.7. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5 | # |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6 | # Report bugs to <http://bugs.python.org/>. |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 7 | # |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10 | # This configure script is free software; the Free Software Foundation |
| 11 | # gives unlimited permission to copy, distribute and modify it. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12 | ## --------------------- ## |
| 13 | ## M4sh Initialization. ## |
| 14 | ## --------------------- ## |
| 15 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16 | # Be more Bourne compatible |
| 17 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 19 | emulate sh |
| 20 | NULLCMD=: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22 | # is contrary to our usage. Disable this feature. |
| 23 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24 | setopt NO_GLOB_SUBST |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 25 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26 | case `(set -o) 2>/dev/null` in |
| 27 | *posix*) set -o posix ;; |
| 28 | esac |
| 29 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 30 | fi |
| 31 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 32 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 33 | |
| 34 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 35 | # PATH needs CR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 36 | # Avoid depending upon Character Ranges. |
| 37 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 38 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 39 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 40 | as_cr_digits='0123456789' |
| 41 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 42 | |
| 43 | # The user is always right. |
| 44 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 45 | echo "#! /bin/sh" >conf$$.sh |
| 46 | echo "exit 0" >>conf$$.sh |
| 47 | chmod +x conf$$.sh |
| 48 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 49 | PATH_SEPARATOR=';' |
| 50 | else |
| 51 | PATH_SEPARATOR=: |
| 52 | fi |
| 53 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 54 | fi |
| 55 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 56 | # Support unset when possible. |
| 57 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 58 | as_unset=unset |
| 59 | else |
| 60 | as_unset=false |
| 61 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 62 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 63 | |
| 64 | # IFS |
| 65 | # We need space, tab and new line, in precisely that order. Quoting is |
| 66 | # there to prevent editors from complaining about space-tab. |
| 67 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 68 | # splitting by setting IFS to empty value.) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 69 | as_nl=' |
| 70 | ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 71 | IFS=" "" $as_nl" |
| 72 | |
| 73 | # Find who we are. Look in the path if we contain no directory separator. |
| 74 | case $0 in |
| 75 | *[\\/]* ) as_myself=$0 ;; |
| 76 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 77 | for as_dir in $PATH |
| 78 | do |
| 79 | IFS=$as_save_IFS |
| 80 | test -z "$as_dir" && as_dir=. |
| 81 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 82 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 83 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 84 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 85 | ;; |
| 86 | esac |
| 87 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 88 | # in which case we are not to be found in the path. |
| 89 | if test "x$as_myself" = x; then |
| 90 | as_myself=$0 |
| 91 | fi |
| 92 | if test ! -f "$as_myself"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 93 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 94 | { (exit 1); exit 1; } |
| 95 | fi |
| 96 | |
| 97 | # Work around bugs in pre-3.0 UWIN ksh. |
| 98 | for as_var in ENV MAIL MAILPATH |
| 99 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 100 | done |
| 101 | PS1='$ ' |
| 102 | PS2='> ' |
| 103 | PS4='+ ' |
| 104 | |
| 105 | # NLS nuisances. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 106 | for as_var in \ |
| 107 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 108 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 109 | LC_TELEPHONE LC_TIME |
| 110 | do |
| 111 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 112 | eval $as_var=C; export $as_var |
| 113 | else |
| 114 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 115 | fi |
| 116 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 117 | |
| 118 | # Required to use basename. |
| 119 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 120 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 121 | as_expr=expr |
| 122 | else |
| 123 | as_expr=false |
| 124 | fi |
| 125 | |
| 126 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 127 | as_basename=basename |
| 128 | else |
| 129 | as_basename=false |
| 130 | fi |
| 131 | |
| 132 | |
| 133 | # Name of the executable. |
| 134 | as_me=`$as_basename -- "$0" || |
| 135 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 136 | X"$0" : 'X\(//\)$' \| \ |
| 137 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 138 | echo X/"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 139 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 140 | s//\1/ |
| 141 | q |
| 142 | } |
| 143 | /^X\/\(\/\/\)$/{ |
| 144 | s//\1/ |
| 145 | q |
| 146 | } |
| 147 | /^X\/\(\/\).*/{ |
| 148 | s//\1/ |
| 149 | q |
| 150 | } |
| 151 | s/.*/./; q'` |
| 152 | |
| 153 | # CDPATH. |
| 154 | $as_unset CDPATH |
| 155 | |
| 156 | |
| 157 | if test "x$CONFIG_SHELL" = x; then |
| 158 | if (eval ":") 2>/dev/null; then |
| 159 | as_have_required=yes |
| 160 | else |
| 161 | as_have_required=no |
| 162 | fi |
| 163 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 164 | if test $as_have_required = yes && (eval ": |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 165 | (as_func_return () { |
| 166 | (exit \$1) |
| 167 | } |
| 168 | as_func_success () { |
| 169 | as_func_return 0 |
| 170 | } |
| 171 | as_func_failure () { |
| 172 | as_func_return 1 |
| 173 | } |
| 174 | as_func_ret_success () { |
| 175 | return 0 |
| 176 | } |
| 177 | as_func_ret_failure () { |
| 178 | return 1 |
| 179 | } |
| 180 | |
| 181 | exitcode=0 |
| 182 | if as_func_success; then |
| 183 | : |
| 184 | else |
| 185 | exitcode=1 |
| 186 | echo as_func_success failed. |
| 187 | fi |
| 188 | |
| 189 | if as_func_failure; then |
| 190 | exitcode=1 |
| 191 | echo as_func_failure succeeded. |
| 192 | fi |
| 193 | |
| 194 | if as_func_ret_success; then |
| 195 | : |
| 196 | else |
| 197 | exitcode=1 |
| 198 | echo as_func_ret_success failed. |
| 199 | fi |
| 200 | |
| 201 | if as_func_ret_failure; then |
| 202 | exitcode=1 |
| 203 | echo as_func_ret_failure succeeded. |
| 204 | fi |
| 205 | |
| 206 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 207 | : |
| 208 | else |
| 209 | exitcode=1 |
| 210 | echo positional parameters were not saved. |
| 211 | fi |
| 212 | |
| 213 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 214 | |
| 215 | ( |
| 216 | as_lineno_1=\$LINENO |
| 217 | as_lineno_2=\$LINENO |
| 218 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 219 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 220 | ") 2> /dev/null; then |
| 221 | : |
| 222 | else |
| 223 | as_candidate_shells= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 225 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 226 | do |
| 227 | IFS=$as_save_IFS |
| 228 | test -z "$as_dir" && as_dir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 229 | case $as_dir in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 230 | /*) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 231 | for as_base in sh bash ksh sh5; do |
| 232 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 233 | done;; |
| 234 | esac |
| 235 | done |
| 236 | IFS=$as_save_IFS |
| 237 | |
| 238 | |
| 239 | for as_shell in $as_candidate_shells $SHELL; do |
| 240 | # Try only shells that exist, to save several forks. |
| 241 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 242 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
| 243 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 244 | emulate sh |
| 245 | NULLCMD=: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 246 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 247 | # is contrary to our usage. Disable this feature. |
| 248 | alias -g '${1+"$@"}'='"$@"' |
| 249 | setopt NO_GLOB_SUBST |
| 250 | else |
| 251 | case `(set -o) 2>/dev/null` in |
| 252 | *posix*) set -o posix ;; |
| 253 | esac |
| 254 | |
| 255 | fi |
| 256 | |
| 257 | |
| 258 | : |
| 259 | _ASEOF |
| 260 | }; then |
| 261 | CONFIG_SHELL=$as_shell |
| 262 | as_have_required=yes |
| 263 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 264 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 265 | emulate sh |
| 266 | NULLCMD=: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 267 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 268 | # is contrary to our usage. Disable this feature. |
| 269 | alias -g '${1+"$@"}'='"$@"' |
| 270 | setopt NO_GLOB_SUBST |
| 271 | else |
| 272 | case `(set -o) 2>/dev/null` in |
| 273 | *posix*) set -o posix ;; |
| 274 | esac |
| 275 | |
| 276 | fi |
| 277 | |
| 278 | |
| 279 | : |
| 280 | (as_func_return () { |
| 281 | (exit $1) |
| 282 | } |
| 283 | as_func_success () { |
| 284 | as_func_return 0 |
| 285 | } |
| 286 | as_func_failure () { |
| 287 | as_func_return 1 |
| 288 | } |
| 289 | as_func_ret_success () { |
| 290 | return 0 |
| 291 | } |
| 292 | as_func_ret_failure () { |
| 293 | return 1 |
| 294 | } |
| 295 | |
| 296 | exitcode=0 |
| 297 | if as_func_success; then |
| 298 | : |
| 299 | else |
| 300 | exitcode=1 |
| 301 | echo as_func_success failed. |
| 302 | fi |
| 303 | |
| 304 | if as_func_failure; then |
| 305 | exitcode=1 |
| 306 | echo as_func_failure succeeded. |
| 307 | fi |
| 308 | |
| 309 | if as_func_ret_success; then |
| 310 | : |
| 311 | else |
| 312 | exitcode=1 |
| 313 | echo as_func_ret_success failed. |
| 314 | fi |
| 315 | |
| 316 | if as_func_ret_failure; then |
| 317 | exitcode=1 |
| 318 | echo as_func_ret_failure succeeded. |
| 319 | fi |
| 320 | |
| 321 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 322 | : |
| 323 | else |
| 324 | exitcode=1 |
| 325 | echo positional parameters were not saved. |
| 326 | fi |
| 327 | |
| 328 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 329 | |
| 330 | ( |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 331 | as_lineno_1=$LINENO |
| 332 | as_lineno_2=$LINENO |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 333 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 334 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 335 | |
| 336 | _ASEOF |
| 337 | }; then |
| 338 | break |
| 339 | fi |
| 340 | |
| 341 | fi |
| 342 | |
| 343 | done |
| 344 | |
| 345 | if test "x$CONFIG_SHELL" != x; then |
| 346 | for as_var in BASH_ENV ENV |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 347 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 348 | done |
| 349 | export CONFIG_SHELL |
| 350 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 351 | fi |
| 352 | |
| 353 | |
| 354 | if test $as_have_required = no; then |
| 355 | echo This script requires a shell more modern than all the |
| 356 | echo shells that I found on your system. Please install a |
| 357 | echo modern shell, or manually run the script under such a |
| 358 | echo shell if you do have one. |
| 359 | { (exit 1); exit 1; } |
| 360 | fi |
| 361 | |
| 362 | |
| 363 | fi |
| 364 | |
| 365 | fi |
| 366 | |
| 367 | |
| 368 | |
| 369 | (eval "as_func_return () { |
| 370 | (exit \$1) |
| 371 | } |
| 372 | as_func_success () { |
| 373 | as_func_return 0 |
| 374 | } |
| 375 | as_func_failure () { |
| 376 | as_func_return 1 |
| 377 | } |
| 378 | as_func_ret_success () { |
| 379 | return 0 |
| 380 | } |
| 381 | as_func_ret_failure () { |
| 382 | return 1 |
| 383 | } |
| 384 | |
| 385 | exitcode=0 |
| 386 | if as_func_success; then |
| 387 | : |
| 388 | else |
| 389 | exitcode=1 |
| 390 | echo as_func_success failed. |
| 391 | fi |
| 392 | |
| 393 | if as_func_failure; then |
| 394 | exitcode=1 |
| 395 | echo as_func_failure succeeded. |
| 396 | fi |
| 397 | |
| 398 | if as_func_ret_success; then |
| 399 | : |
| 400 | else |
| 401 | exitcode=1 |
| 402 | echo as_func_ret_success failed. |
| 403 | fi |
| 404 | |
| 405 | if as_func_ret_failure; then |
| 406 | exitcode=1 |
| 407 | echo as_func_ret_failure succeeded. |
| 408 | fi |
| 409 | |
| 410 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 411 | : |
| 412 | else |
| 413 | exitcode=1 |
| 414 | echo positional parameters were not saved. |
| 415 | fi |
| 416 | |
| 417 | test \$exitcode = 0") || { |
| 418 | echo No shell found that supports shell functions. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 419 | echo Please tell autoconf@gnu.org about your system, |
| 420 | echo including any error possibly output before this |
| 421 | echo message |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 422 | } |
| 423 | |
| 424 | |
| 425 | |
| 426 | as_lineno_1=$LINENO |
| 427 | as_lineno_2=$LINENO |
| 428 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 429 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 430 | |
| 431 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 432 | # uniformly replaced by the line number. The first 'sed' inserts a |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 433 | # line-number line after each line using $LINENO; the second 'sed' |
| 434 | # does the real work. The second script uses 'N' to pair each |
| 435 | # line-number line with the line containing $LINENO, and appends |
| 436 | # trailing '-' during substitution so that $LINENO is not a special |
| 437 | # case at line end. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 438 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 439 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 440 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 441 | sed -n ' |
| 442 | p |
| 443 | /[$]LINENO/= |
| 444 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 445 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 446 | s/[$]LINENO.*/&-/ |
| 447 | t lineno |
| 448 | b |
| 449 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 450 | N |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 451 | :loop |
| 452 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 453 | t loop |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 454 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 455 | ' >$as_me.lineno && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 456 | chmod +x "$as_me.lineno" || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 457 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 458 | { (exit 1); exit 1; }; } |
| 459 | |
| 460 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 461 | # (the dirname of $[0] is not the place where we might find the |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 462 | # original and so on. Autoconf is especially sensitive to this). |
| 463 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 464 | # Exit status is that of the last command. |
| 465 | exit |
| 466 | } |
| 467 | |
| 468 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 469 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 470 | as_dirname=dirname |
| 471 | else |
| 472 | as_dirname=false |
| 473 | fi |
| 474 | |
| 475 | ECHO_C= ECHO_N= ECHO_T= |
| 476 | case `echo -n x` in |
| 477 | -n*) |
| 478 | case `echo 'x\c'` in |
| 479 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 480 | *) ECHO_C='\c';; |
| 481 | esac;; |
| 482 | *) |
| 483 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 484 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 485 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 486 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 487 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 488 | as_expr=expr |
| 489 | else |
| 490 | as_expr=false |
| 491 | fi |
| 492 | |
| 493 | rm -f conf$$ conf$$.exe conf$$.file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 494 | if test -d conf$$.dir; then |
| 495 | rm -f conf$$.dir/conf$$.file |
| 496 | else |
| 497 | rm -f conf$$.dir |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 498 | mkdir conf$$.dir |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 499 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 500 | echo >conf$$.file |
| 501 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 502 | as_ln_s='ln -s' |
| 503 | # ... but there are two gotchas: |
| 504 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 505 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 506 | # In both cases, we have to default to `cp -p'. |
| 507 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 508 | as_ln_s='cp -p' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 509 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 510 | as_ln_s=ln |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 511 | else |
| 512 | as_ln_s='cp -p' |
| 513 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 514 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 515 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 516 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 517 | if mkdir -p . 2>/dev/null; then |
| 518 | as_mkdir_p=: |
| 519 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 520 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 521 | as_mkdir_p=false |
| 522 | fi |
| 523 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 524 | if test -x / >/dev/null 2>&1; then |
| 525 | as_test_x='test -x' |
| 526 | else |
| 527 | if ls -dL / >/dev/null 2>&1; then |
| 528 | as_ls_L_option=L |
| 529 | else |
| 530 | as_ls_L_option= |
| 531 | fi |
| 532 | as_test_x=' |
| 533 | eval sh -c '\'' |
| 534 | if test -d "$1"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 535 | test -d "$1/."; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 536 | else |
| 537 | case $1 in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 538 | -*)set "./$1";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 539 | esac; |
| 540 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 541 | ???[sx]*):;;*)false;;esac;fi |
| 542 | '\'' sh |
| 543 | ' |
| 544 | fi |
| 545 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 546 | |
| 547 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 548 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 549 | |
| 550 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 551 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 552 | |
| 553 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 554 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 555 | exec 7<&0 </dev/null 6>&1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 556 | |
| 557 | # Name of the host. |
| 558 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 559 | # so uname gets run too. |
| 560 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 561 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 562 | # |
| 563 | # Initializations. |
| 564 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 565 | ac_default_prefix=/usr/local |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 566 | ac_clean_files= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 567 | ac_config_libobj_dir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 568 | LIBOBJS= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 569 | cross_compiling=no |
| 570 | subdirs= |
| 571 | MFLAGS= |
| 572 | MAKEFLAGS= |
| 573 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 574 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 575 | # Identity of this package. |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 576 | PACKAGE_NAME='python' |
| 577 | PACKAGE_TARNAME='python' |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 578 | PACKAGE_VERSION='2.7' |
| 579 | PACKAGE_STRING='python 2.7' |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 580 | PACKAGE_BUGREPORT='http://bugs.python.org/' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 581 | |
| 582 | ac_unique_file="Include/object.h" |
| 583 | # Factoring default headers for most tests. |
| 584 | ac_includes_default="\ |
| 585 | #include <stdio.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 586 | #ifdef HAVE_SYS_TYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 587 | # include <sys/types.h> |
| 588 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 589 | #ifdef HAVE_SYS_STAT_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 590 | # include <sys/stat.h> |
| 591 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 592 | #ifdef STDC_HEADERS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 593 | # include <stdlib.h> |
| 594 | # include <stddef.h> |
| 595 | #else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 596 | # ifdef HAVE_STDLIB_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 597 | # include <stdlib.h> |
| 598 | # endif |
| 599 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 600 | #ifdef HAVE_STRING_H |
| 601 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 602 | # include <memory.h> |
| 603 | # endif |
| 604 | # include <string.h> |
| 605 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 606 | #ifdef HAVE_STRINGS_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 607 | # include <strings.h> |
| 608 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 609 | #ifdef HAVE_INTTYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 610 | # include <inttypes.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 611 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 612 | #ifdef HAVE_STDINT_H |
| 613 | # include <stdint.h> |
| 614 | #endif |
| 615 | #ifdef HAVE_UNISTD_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 616 | # include <unistd.h> |
| 617 | #endif" |
| 618 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 619 | ac_subst_vars='SHELL |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 620 | PATH_SEPARATOR |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 621 | PACKAGE_NAME |
| 622 | PACKAGE_TARNAME |
| 623 | PACKAGE_VERSION |
| 624 | PACKAGE_STRING |
| 625 | PACKAGE_BUGREPORT |
| 626 | exec_prefix |
| 627 | prefix |
| 628 | program_transform_name |
| 629 | bindir |
| 630 | sbindir |
| 631 | libexecdir |
| 632 | datarootdir |
| 633 | datadir |
| 634 | sysconfdir |
| 635 | sharedstatedir |
| 636 | localstatedir |
| 637 | includedir |
| 638 | oldincludedir |
| 639 | docdir |
| 640 | infodir |
| 641 | htmldir |
| 642 | dvidir |
| 643 | pdfdir |
| 644 | psdir |
| 645 | libdir |
| 646 | localedir |
| 647 | mandir |
| 648 | DEFS |
| 649 | ECHO_C |
| 650 | ECHO_N |
| 651 | ECHO_T |
| 652 | LIBS |
| 653 | build_alias |
| 654 | host_alias |
| 655 | target_alias |
| 656 | VERSION |
| 657 | SOVERSION |
| 658 | CONFIG_ARGS |
| 659 | UNIVERSALSDK |
| 660 | ARCH_RUN_32BIT |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 661 | LIPO_32BIT_FLAGS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 662 | PYTHONFRAMEWORK |
| 663 | PYTHONFRAMEWORKIDENTIFIER |
| 664 | PYTHONFRAMEWORKDIR |
| 665 | PYTHONFRAMEWORKPREFIX |
| 666 | PYTHONFRAMEWORKINSTALLDIR |
| 667 | FRAMEWORKINSTALLFIRST |
| 668 | FRAMEWORKINSTALLLAST |
| 669 | FRAMEWORKALTINSTALLFIRST |
| 670 | FRAMEWORKALTINSTALLLAST |
| 671 | FRAMEWORKUNIXTOOLSPREFIX |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 672 | FRAMEWORKINSTALLAPPSPREFIX |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 673 | MACHDEP |
| 674 | SGI_ABI |
| 675 | EXTRAPLATDIR |
| 676 | EXTRAMACHDEPPATH |
| 677 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET |
| 678 | EXPORT_MACOSX_DEPLOYMENT_TARGET |
| 679 | CC |
| 680 | CFLAGS |
| 681 | LDFLAGS |
| 682 | CPPFLAGS |
| 683 | ac_ct_CC |
| 684 | EXEEXT |
| 685 | OBJEXT |
| 686 | CXX |
| 687 | MAINCC |
| 688 | CPP |
| 689 | GREP |
| 690 | EGREP |
| 691 | BUILDEXEEXT |
| 692 | LIBRARY |
| 693 | LDLIBRARY |
| 694 | DLLLIBRARY |
| 695 | BLDLIBRARY |
| 696 | LDLIBRARYDIR |
| 697 | INSTSONAME |
| 698 | RUNSHARED |
| 699 | LINKCC |
| 700 | GNULD |
| 701 | RANLIB |
| 702 | AR |
| 703 | ARFLAGS |
| 704 | SVNVERSION |
| 705 | INSTALL_PROGRAM |
| 706 | INSTALL_SCRIPT |
| 707 | INSTALL_DATA |
| 708 | LN |
| 709 | OPT |
| 710 | BASECFLAGS |
| 711 | UNIVERSAL_ARCH_FLAGS |
| 712 | OTHER_LIBTOOL_OPT |
| 713 | LIBTOOL_CRUFT |
| 714 | SO |
| 715 | LDSHARED |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 716 | LDCXXSHARED |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 717 | BLDSHARED |
| 718 | CCSHARED |
| 719 | LINKFORSHARED |
| 720 | CFLAGSFORSHARED |
| 721 | SHLIBS |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 722 | PKG_CONFIG |
| 723 | LIBFFI_INCLUDEDIR |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 724 | USE_SIGNAL_MODULE |
| 725 | SIGNAL_OBJS |
| 726 | USE_THREAD_MODULE |
| 727 | LDLAST |
| 728 | THREADOBJ |
| 729 | DLINCLDIR |
| 730 | DYNLOADFILE |
| 731 | MACHDEP_OBJS |
| 732 | TRUE |
| 733 | LIBOBJS |
| 734 | HAVE_GETHOSTBYNAME_R_6_ARG |
| 735 | HAVE_GETHOSTBYNAME_R_5_ARG |
| 736 | HAVE_GETHOSTBYNAME_R_3_ARG |
| 737 | HAVE_GETHOSTBYNAME_R |
| 738 | HAVE_GETHOSTBYNAME |
| 739 | LIBM |
| 740 | LIBC |
| 741 | UNICODE_OBJS |
| 742 | THREADHEADERS |
| 743 | SRCDIRS |
| 744 | LTLIBOBJS' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 745 | ac_subst_files='' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 746 | ac_precious_vars='build_alias |
| 747 | host_alias |
| 748 | target_alias |
| 749 | CC |
| 750 | CFLAGS |
| 751 | LDFLAGS |
| 752 | LIBS |
| 753 | CPPFLAGS |
| 754 | CPP' |
| 755 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 756 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 757 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 758 | ac_init_help= |
| 759 | ac_init_version=false |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 760 | # The variables have the same names as the options, with |
| 761 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 762 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 763 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 764 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 765 | no_recursion= |
| 766 | prefix=NONE |
| 767 | program_prefix=NONE |
| 768 | program_suffix=NONE |
| 769 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 770 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 771 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 772 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 773 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 774 | x_includes=NONE |
| 775 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 776 | |
| 777 | # Installation directory options. |
| 778 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 779 | # and all the variables that are supposed to be based on exec_prefix |
| 780 | # by default will actually change. |
| 781 | # 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] | 782 | # (The list follows the same order as the GNU Coding Standards.) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 783 | bindir='${exec_prefix}/bin' |
| 784 | sbindir='${exec_prefix}/sbin' |
| 785 | libexecdir='${exec_prefix}/libexec' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 786 | datarootdir='${prefix}/share' |
| 787 | datadir='${datarootdir}' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 788 | sysconfdir='${prefix}/etc' |
| 789 | sharedstatedir='${prefix}/com' |
| 790 | localstatedir='${prefix}/var' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 791 | includedir='${prefix}/include' |
| 792 | oldincludedir='/usr/include' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 793 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 794 | infodir='${datarootdir}/info' |
| 795 | htmldir='${docdir}' |
| 796 | dvidir='${docdir}' |
| 797 | pdfdir='${docdir}' |
| 798 | psdir='${docdir}' |
| 799 | libdir='${exec_prefix}/lib' |
| 800 | localedir='${datarootdir}/locale' |
| 801 | mandir='${datarootdir}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 802 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 803 | ac_prev= |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 804 | ac_dashdash= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 805 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 806 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 807 | # If the previous option needs an argument, assign it. |
| 808 | if test -n "$ac_prev"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 809 | eval $ac_prev=\$ac_option |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 810 | ac_prev= |
| 811 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 812 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 813 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 814 | case $ac_option in |
| 815 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 816 | *) ac_optarg=yes ;; |
| 817 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 818 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 819 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 820 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 821 | case $ac_dashdash$ac_option in |
| 822 | --) |
| 823 | ac_dashdash=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 824 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 825 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 826 | ac_prev=bindir ;; |
| 827 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 828 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 829 | |
| 830 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 831 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 832 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 833 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 834 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 835 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 836 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 837 | ac_prev=cache_file ;; |
| 838 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 839 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 840 | cache_file=$ac_optarg ;; |
| 841 | |
| 842 | --config-cache | -C) |
| 843 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 844 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 845 | -datadir | --datadir | --datadi | --datad) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 846 | ac_prev=datadir ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 847 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 848 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 849 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 850 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 851 | | --dataroo | --dataro | --datar) |
| 852 | ac_prev=datarootdir ;; |
| 853 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 854 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 855 | datarootdir=$ac_optarg ;; |
| 856 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 857 | -disable-* | --disable-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 858 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 859 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 860 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 861 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 862 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 863 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 864 | eval enable_$ac_feature=no ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 865 | |
| 866 | -docdir | --docdir | --docdi | --doc | --do) |
| 867 | ac_prev=docdir ;; |
| 868 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 869 | docdir=$ac_optarg ;; |
| 870 | |
| 871 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 872 | ac_prev=dvidir ;; |
| 873 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 874 | dvidir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 875 | |
| 876 | -enable-* | --enable-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 877 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 878 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 879 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 880 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 881 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 882 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 883 | eval enable_$ac_feature=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 884 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 885 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 886 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 887 | | --exec | --exe | --ex) |
| 888 | ac_prev=exec_prefix ;; |
| 889 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 890 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 891 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 892 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 893 | |
| 894 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 895 | # Obsolete; use --with-gas. |
| 896 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 897 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 898 | -help | --help | --hel | --he | -h) |
| 899 | ac_init_help=long ;; |
| 900 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 901 | ac_init_help=recursive ;; |
| 902 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 903 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 904 | |
| 905 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 906 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 907 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 908 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 909 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 910 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 911 | ac_prev=htmldir ;; |
| 912 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 913 | | --ht=*) |
| 914 | htmldir=$ac_optarg ;; |
| 915 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 916 | -includedir | --includedir | --includedi | --included | --include \ |
| 917 | | --includ | --inclu | --incl | --inc) |
| 918 | ac_prev=includedir ;; |
| 919 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 920 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 921 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 922 | |
| 923 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 924 | ac_prev=infodir ;; |
| 925 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 926 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 927 | |
| 928 | -libdir | --libdir | --libdi | --libd) |
| 929 | ac_prev=libdir ;; |
| 930 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 931 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 932 | |
| 933 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 934 | | --libexe | --libex | --libe) |
| 935 | ac_prev=libexecdir ;; |
| 936 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 937 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 938 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 939 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 940 | -localedir | --localedir | --localedi | --localed | --locale) |
| 941 | ac_prev=localedir ;; |
| 942 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 943 | localedir=$ac_optarg ;; |
| 944 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 945 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 946 | | --localstate | --localstat | --localsta | --localst | --locals) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 947 | ac_prev=localstatedir ;; |
| 948 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 949 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 950 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 951 | |
| 952 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 953 | ac_prev=mandir ;; |
| 954 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 955 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 956 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 957 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 958 | # Obsolete; use --without-fp. |
| 959 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 960 | |
| 961 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 962 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 963 | no_create=yes ;; |
| 964 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 965 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 966 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 967 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 968 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 969 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 970 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 971 | | --oldin | --oldi | --old | --ol | --o) |
| 972 | ac_prev=oldincludedir ;; |
| 973 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 974 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 975 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 976 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 977 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 978 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 979 | ac_prev=prefix ;; |
| 980 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 981 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 982 | |
| 983 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 984 | | --program-pre | --program-pr | --program-p) |
| 985 | ac_prev=program_prefix ;; |
| 986 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 987 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 988 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 989 | |
| 990 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 991 | | --program-suf | --program-su | --program-s) |
| 992 | ac_prev=program_suffix ;; |
| 993 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 994 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 995 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 996 | |
| 997 | -program-transform-name | --program-transform-name \ |
| 998 | | --program-transform-nam | --program-transform-na \ |
| 999 | | --program-transform-n | --program-transform- \ |
| 1000 | | --program-transform | --program-transfor \ |
| 1001 | | --program-transfo | --program-transf \ |
| 1002 | | --program-trans | --program-tran \ |
| 1003 | | --progr-tra | --program-tr | --program-t) |
| 1004 | ac_prev=program_transform_name ;; |
| 1005 | -program-transform-name=* | --program-transform-name=* \ |
| 1006 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1007 | | --program-transform-n=* | --program-transform-=* \ |
| 1008 | | --program-transform=* | --program-transfor=* \ |
| 1009 | | --program-transfo=* | --program-transf=* \ |
| 1010 | | --program-trans=* | --program-tran=* \ |
| 1011 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1012 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1013 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1014 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1015 | ac_prev=pdfdir ;; |
| 1016 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1017 | pdfdir=$ac_optarg ;; |
| 1018 | |
| 1019 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1020 | ac_prev=psdir ;; |
| 1021 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1022 | psdir=$ac_optarg ;; |
| 1023 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1024 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1025 | | -silent | --silent | --silen | --sile | --sil) |
| 1026 | silent=yes ;; |
| 1027 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1028 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1029 | ac_prev=sbindir ;; |
| 1030 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1031 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1032 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1033 | |
| 1034 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1035 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1036 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1037 | | --sha | --sh) |
| 1038 | ac_prev=sharedstatedir ;; |
| 1039 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1040 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1041 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1042 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1043 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1044 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1045 | -site | --site | --sit) |
| 1046 | ac_prev=site ;; |
| 1047 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1048 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1049 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1050 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1051 | ac_prev=srcdir ;; |
| 1052 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1053 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1054 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1055 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1056 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1057 | ac_prev=sysconfdir ;; |
| 1058 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1059 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1060 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1061 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1062 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1063 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1064 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1065 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1066 | |
| 1067 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1068 | verbose=yes ;; |
| 1069 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1070 | -version | --version | --versio | --versi | --vers | -V) |
| 1071 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1072 | |
| 1073 | -with-* | --with-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1074 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1075 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1076 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1077 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1078 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1079 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1080 | eval with_$ac_package=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1081 | |
| 1082 | -without-* | --without-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1083 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1084 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1085 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1086 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1087 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1088 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1089 | eval with_$ac_package=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1090 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1091 | --x) |
| 1092 | # Obsolete; use --with-x. |
| 1093 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1094 | |
| 1095 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1096 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1097 | ac_prev=x_includes ;; |
| 1098 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1099 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1100 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1101 | |
| 1102 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1103 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1104 | ac_prev=x_libraries ;; |
| 1105 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1106 | | --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] | 1107 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1108 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1109 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1110 | Try \`$0 --help' for more information." >&2 |
| 1111 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1112 | ;; |
| 1113 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1114 | *=*) |
| 1115 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1116 | # Reject names that are not valid shell variable names. |
| 1117 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1118 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1119 | { (exit 1); exit 1; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1120 | eval $ac_envvar=\$ac_optarg |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1121 | export $ac_envvar ;; |
| 1122 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1123 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1124 | # FIXME: should be removed in autoconf 3.0. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1125 | 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] | 1126 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1127 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1128 | : ${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] | 1129 | ;; |
| 1130 | |
| 1131 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1132 | done |
| 1133 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1134 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1135 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1136 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1137 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1138 | fi |
| 1139 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1140 | # Be sure to have absolute directory names. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1141 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1142 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1143 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1144 | libdir localedir mandir |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1145 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1146 | eval ac_val=\$$ac_var |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1147 | case $ac_val in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1148 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1149 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1150 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1151 | { 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] | 1152 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1153 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1154 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1155 | # There might be people who depend on the old broken behavior: `$host' |
| 1156 | # used to hold the argument of --host etc. |
| 1157 | # FIXME: To remove some day. |
| 1158 | build=$build_alias |
| 1159 | host=$host_alias |
| 1160 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1161 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1162 | # FIXME: To remove some day. |
| 1163 | if test "x$host_alias" != x; then |
| 1164 | if test "x$build_alias" = x; then |
| 1165 | cross_compiling=maybe |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1166 | 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] | 1167 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1168 | elif test "x$build_alias" != "x$host_alias"; then |
| 1169 | cross_compiling=yes |
| 1170 | fi |
| 1171 | fi |
| 1172 | |
| 1173 | ac_tool_prefix= |
| 1174 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1175 | |
| 1176 | test "$silent" = yes && exec 6>/dev/null |
| 1177 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1178 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1179 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1180 | ac_ls_di=`ls -di .` && |
| 1181 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1182 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1183 | { (exit 1); exit 1; }; } |
| 1184 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1185 | { 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] | 1186 | { (exit 1); exit 1; }; } |
| 1187 | |
| 1188 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1189 | # Find the source files, if location was not specified. |
| 1190 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1191 | ac_srcdir_defaulted=yes |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1192 | # Try the directory containing this script, then the parent directory. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1193 | ac_confdir=`$as_dirname -- "$0" || |
| 1194 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1195 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1196 | X"$0" : 'X\(//\)$' \| \ |
| 1197 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 1198 | echo X"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1199 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1200 | s//\1/ |
| 1201 | q |
| 1202 | } |
| 1203 | /^X\(\/\/\)[^/].*/{ |
| 1204 | s//\1/ |
| 1205 | q |
| 1206 | } |
| 1207 | /^X\(\/\/\)$/{ |
| 1208 | s//\1/ |
| 1209 | q |
| 1210 | } |
| 1211 | /^X\(\/\).*/{ |
| 1212 | s//\1/ |
| 1213 | q |
| 1214 | } |
| 1215 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1216 | srcdir=$ac_confdir |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1217 | if test ! -r "$srcdir/$ac_unique_file"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1218 | srcdir=.. |
| 1219 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1220 | else |
| 1221 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1222 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1223 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1224 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1225 | { 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] | 1226 | { (exit 1); exit 1; }; } |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 1227 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1228 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1229 | ac_abs_confdir=`( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1230 | 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] | 1231 | { (exit 1); exit 1; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1232 | pwd)` |
| 1233 | # When building in place, set srcdir=. |
| 1234 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1235 | srcdir=. |
| 1236 | fi |
| 1237 | # Remove unnecessary trailing slashes from srcdir. |
| 1238 | # Double slashes in file names in object file debugging info |
| 1239 | # mess up M-x gdb in Emacs. |
| 1240 | case $srcdir in |
| 1241 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1242 | esac |
| 1243 | for ac_var in $ac_precious_vars; do |
| 1244 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1245 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1246 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1247 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1248 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1249 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1250 | # |
| 1251 | # Report the --help message. |
| 1252 | # |
| 1253 | if test "$ac_init_help" = "long"; then |
| 1254 | # Omit some internal or obsolete options to make the list less imposing. |
| 1255 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1256 | cat <<_ACEOF |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1257 | \`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] | 1258 | |
| 1259 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1260 | |
| 1261 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1262 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1263 | |
| 1264 | Defaults for the options are specified in brackets. |
| 1265 | |
| 1266 | Configuration: |
| 1267 | -h, --help display this help and exit |
| 1268 | --help=short display options specific to this package |
| 1269 | --help=recursive display the short help of all the included packages |
| 1270 | -V, --version display version information and exit |
| 1271 | -q, --quiet, --silent do not print \`checking...' messages |
| 1272 | --cache-file=FILE cache test results in FILE [disabled] |
| 1273 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1274 | -n, --no-create do not create output files |
| 1275 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1276 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1277 | Installation directories: |
| 1278 | --prefix=PREFIX install architecture-independent files in PREFIX |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1279 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1280 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1281 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1282 | |
| 1283 | By default, \`make install' will install all the files in |
| 1284 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1285 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1286 | for instance \`--prefix=\$HOME'. |
| 1287 | |
| 1288 | For better control, use the options below. |
| 1289 | |
| 1290 | Fine tuning of the installation directories: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1291 | --bindir=DIR user executables [EPREFIX/bin] |
| 1292 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1293 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1294 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1295 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1296 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1297 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1298 | --includedir=DIR C header files [PREFIX/include] |
| 1299 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1300 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1301 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1302 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1303 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1304 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1305 | --docdir=DIR documentation root [DATAROOTDIR/doc/python] |
| 1306 | --htmldir=DIR html documentation [DOCDIR] |
| 1307 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1308 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1309 | --psdir=DIR ps documentation [DOCDIR] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1310 | _ACEOF |
| 1311 | |
| 1312 | cat <<\_ACEOF |
| 1313 | _ACEOF |
| 1314 | fi |
| 1315 | |
| 1316 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1317 | case $ac_init_help in |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1318 | short | recursive ) echo "Configuration of python 2.7:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1319 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1320 | cat <<\_ACEOF |
| 1321 | |
| 1322 | Optional Features: |
| 1323 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1324 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Brett Cannon | 91a1dec | 2008-02-13 19:15:44 +0000 | [diff] [blame] | 1325 | --enable-universalsdk[=SDKDIR] |
Brett Cannon | 9a8bb0e | 2008-02-03 02:07:55 +0000 | [diff] [blame] | 1326 | Build against Mac OS X 10.4u SDK (ppc/i386) |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1327 | --enable-framework[=INSTALLDIR] |
| 1328 | Build (MacOSX|Darwin) framework |
| 1329 | --enable-shared disable/enable building shared python library |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1330 | --enable-profiling enable C-level code profiling |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1331 | --enable-toolbox-glue disable/enable MacOSX glue code for extensions |
| 1332 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 1333 | --disable-ipv6 Disable ipv6 support |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 1334 | --enable-big-digits[=BITS] |
| 1335 | use big digits for Python longs [BITS=30] |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1336 | --enable-unicode[=ucs[24]] |
| 1337 | Enable Unicode strings (default is yes) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1338 | |
| 1339 | Optional Packages: |
| 1340 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1341 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1342 | --with-universal-archs=ARCH |
| 1343 | select architectures for universal build ("32-bit", |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 1344 | "64-bit", "3-way", "intel" or "all") |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1345 | --with-framework-name=FRAMEWORK |
| 1346 | specify an alternate name of the framework built |
| 1347 | with --enable-framework |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1348 | --without-gcc never use gcc |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 1349 | --with-cxx-main=<compiler> |
| 1350 | compile main() and link python executable with C++ |
| 1351 | compiler |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1352 | --with-suffix=.exe set executable suffix |
| 1353 | --with-pydebug build with Py_DEBUG defined |
| 1354 | --with-libs='lib1 ...' link against additional libs |
Benjamin Peterson | 2c19674 | 2009-12-31 03:17:18 +0000 | [diff] [blame] | 1355 | --with-system-expat build pyexpat module using an installed expat |
| 1356 | library |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 1357 | --with-system-ffi build _ctypes module using an installed ffi library |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 1358 | --with-dbmliborder=db1:db2:... |
| 1359 | order to check db backends for dbm. Valid value is a |
| 1360 | colon separated string with the backend names |
| 1361 | `ndbm', `gdbm' and `bdb'. |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1362 | --with-signal-module disable/enable signal module |
| 1363 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 1364 | --with(out)-threads[=DIRECTORY] |
| 1365 | disable/enable thread support |
| 1366 | --with(out)-thread[=DIRECTORY] |
| 1367 | deprecated; use --with(out)-threads |
| 1368 | --with-pth use GNU pth threading libraries |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1369 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1370 | --with(out)-tsc enable/disable timestamp counter profile |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1371 | --with(out)-pymalloc disable/enable specialized mallocs |
Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 1372 | --with-valgrind Enable Valgrind support |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1373 | --with-wctype-functions use wctype.h functions |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1374 | --with-fpectl enable SIGFPE catching |
| 1375 | --with-libm=STRING math library |
| 1376 | --with-libc=STRING C library |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1377 | |
| 1378 | Some influential environment variables: |
| 1379 | CC C compiler command |
| 1380 | CFLAGS C compiler flags |
| 1381 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1382 | nonstandard directory <lib dir> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1383 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1384 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1385 | you have headers in a nonstandard directory <include dir> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1386 | CPP C preprocessor |
| 1387 | |
| 1388 | Use these variables to override the choices made by `configure' or to help |
| 1389 | it to find libraries and programs with nonstandard names/locations. |
| 1390 | |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 1391 | Report bugs to <http://bugs.python.org/>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1392 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1393 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1394 | fi |
| 1395 | |
| 1396 | if test "$ac_init_help" = "recursive"; then |
| 1397 | # If there are subdirs, report their specific --help. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1398 | 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] | 1399 | test -d "$ac_dir" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1400 | ac_builddir=. |
| 1401 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1402 | case "$ac_dir" in |
| 1403 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1404 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1405 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1406 | # A ".." for each directory in $ac_dir_suffix. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1407 | 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] | 1408 | case $ac_top_builddir_sub in |
| 1409 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1410 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1411 | esac ;; |
| 1412 | esac |
| 1413 | ac_abs_top_builddir=$ac_pwd |
| 1414 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1415 | # for backward compatibility: |
| 1416 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1417 | |
| 1418 | case $srcdir in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1419 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1420 | ac_srcdir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1421 | ac_top_srcdir=$ac_top_builddir_sub |
| 1422 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1423 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1424 | ac_srcdir=$srcdir$ac_dir_suffix; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1425 | ac_top_srcdir=$srcdir |
| 1426 | ac_abs_top_srcdir=$srcdir ;; |
| 1427 | *) # Relative name. |
| 1428 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1429 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1430 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1431 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1432 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1433 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1434 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1435 | # Check for guested configure. |
| 1436 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1437 | echo && |
| 1438 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1439 | elif test -f "$ac_srcdir/configure"; then |
| 1440 | echo && |
| 1441 | $SHELL "$ac_srcdir/configure" --help=recursive |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1442 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1443 | 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] | 1444 | fi || ac_status=$? |
| 1445 | cd "$ac_pwd" || { ac_status=$?; break; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1446 | done |
| 1447 | fi |
| 1448 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1449 | test -n "$ac_init_help" && exit $ac_status |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1450 | if $ac_init_version; then |
| 1451 | cat <<\_ACEOF |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1452 | python configure 2.7 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1453 | generated by GNU Autoconf 2.61 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1454 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1455 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1456 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1457 | This configure script is free software; the Free Software Foundation |
| 1458 | gives unlimited permission to copy, distribute and modify it. |
| 1459 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1460 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1461 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1462 | cat >config.log <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1463 | This file contains any messages produced by compilers while |
| 1464 | running configure, to aid debugging if configure makes a mistake. |
| 1465 | |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1466 | It was created by python $as_me 2.7, which was |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1467 | generated by GNU Autoconf 2.61. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1468 | |
| 1469 | $ $0 $@ |
| 1470 | |
| 1471 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1472 | exec 5>>config.log |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1473 | { |
| 1474 | cat <<_ASUNAME |
| 1475 | ## --------- ## |
| 1476 | ## Platform. ## |
| 1477 | ## --------- ## |
| 1478 | |
| 1479 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1480 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1481 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1482 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1483 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1484 | |
| 1485 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1486 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1487 | |
| 1488 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1489 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1490 | /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] | 1491 | /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] | 1492 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1493 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1494 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1495 | |
| 1496 | _ASUNAME |
| 1497 | |
| 1498 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1499 | for as_dir in $PATH |
| 1500 | do |
| 1501 | IFS=$as_save_IFS |
| 1502 | test -z "$as_dir" && as_dir=. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1503 | echo "PATH: $as_dir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1504 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1505 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1506 | |
| 1507 | } >&5 |
| 1508 | |
| 1509 | cat >&5 <<_ACEOF |
| 1510 | |
| 1511 | |
| 1512 | ## ----------- ## |
| 1513 | ## Core tests. ## |
| 1514 | ## ----------- ## |
| 1515 | |
| 1516 | _ACEOF |
| 1517 | |
| 1518 | |
| 1519 | # Keep a trace of the command line. |
| 1520 | # 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] | 1521 | # 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] | 1522 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1523 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1524 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1525 | ac_configure_args0= |
| 1526 | ac_configure_args1= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1527 | ac_must_keep_next=false |
| 1528 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1529 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1530 | for ac_arg |
| 1531 | do |
| 1532 | case $ac_arg in |
| 1533 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1534 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1535 | | -silent | --silent | --silen | --sile | --sil) |
| 1536 | continue ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1537 | *\'*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1538 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1539 | esac |
| 1540 | case $ac_pass in |
| 1541 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1542 | 2) |
| 1543 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1544 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1545 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1546 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1547 | case $ac_arg in |
| 1548 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1549 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1550 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1551 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1552 | case "$ac_configure_args0 " in |
| 1553 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1554 | esac |
| 1555 | ;; |
| 1556 | -* ) ac_must_keep_next=true ;; |
| 1557 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1558 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1559 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1560 | ;; |
| 1561 | esac |
| 1562 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1563 | done |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1564 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1565 | $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] | 1566 | |
| 1567 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1568 | # config.log. We remove comments because anyway the quotes in there |
| 1569 | # would cause problems or look ugly. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1570 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1571 | # 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] | 1572 | trap 'exit_status=$? |
| 1573 | # Save into config.log some information that might help in debugging. |
| 1574 | { |
| 1575 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1576 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1577 | cat <<\_ASBOX |
| 1578 | ## ---------------- ## |
| 1579 | ## Cache variables. ## |
| 1580 | ## ---------------- ## |
| 1581 | _ASBOX |
| 1582 | echo |
| 1583 | # 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] | 1584 | ( |
| 1585 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1586 | eval ac_val=\$$ac_var |
| 1587 | case $ac_val in #( |
| 1588 | *${as_nl}*) |
| 1589 | case $ac_var in #( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1590 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1591 | 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] | 1592 | esac |
| 1593 | case $ac_var in #( |
| 1594 | _ | IFS | as_nl) ;; #( |
| 1595 | *) $as_unset $ac_var ;; |
| 1596 | esac ;; |
| 1597 | esac |
| 1598 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1599 | (set) 2>&1 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1600 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1601 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1602 | sed -n \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1603 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1604 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1605 | ;; #( |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 1606 | *) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1607 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 1608 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1609 | esac | |
| 1610 | sort |
| 1611 | ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1612 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1613 | |
| 1614 | cat <<\_ASBOX |
| 1615 | ## ----------------- ## |
| 1616 | ## Output variables. ## |
| 1617 | ## ----------------- ## |
| 1618 | _ASBOX |
| 1619 | echo |
| 1620 | for ac_var in $ac_subst_vars |
| 1621 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1622 | eval ac_val=\$$ac_var |
| 1623 | case $ac_val in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1624 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1625 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1626 | echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1627 | done | sort |
| 1628 | echo |
| 1629 | |
| 1630 | if test -n "$ac_subst_files"; then |
| 1631 | cat <<\_ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1632 | ## ------------------- ## |
| 1633 | ## File substitutions. ## |
| 1634 | ## ------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1635 | _ASBOX |
| 1636 | echo |
| 1637 | for ac_var in $ac_subst_files |
| 1638 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1639 | eval ac_val=\$$ac_var |
| 1640 | case $ac_val in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1641 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1642 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1643 | echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1644 | done | sort |
| 1645 | echo |
| 1646 | fi |
| 1647 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1648 | if test -s confdefs.h; then |
| 1649 | cat <<\_ASBOX |
| 1650 | ## ----------- ## |
| 1651 | ## confdefs.h. ## |
| 1652 | ## ----------- ## |
| 1653 | _ASBOX |
| 1654 | echo |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1655 | cat confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1656 | echo |
| 1657 | fi |
| 1658 | test "$ac_signal" != 0 && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1659 | echo "$as_me: caught signal $ac_signal" |
| 1660 | echo "$as_me: exit $exit_status" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1661 | } >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1662 | rm -f core *.core core.conftest.* && |
| 1663 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1664 | exit $exit_status |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1665 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1666 | for ac_signal in 1 2 13 15; do |
| 1667 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1668 | done |
| 1669 | ac_signal=0 |
| 1670 | |
| 1671 | # 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] | 1672 | rm -f -r conftest* confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1673 | |
| 1674 | # Predefined preprocessor variables. |
| 1675 | |
| 1676 | cat >>confdefs.h <<_ACEOF |
| 1677 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1678 | _ACEOF |
| 1679 | |
| 1680 | |
| 1681 | cat >>confdefs.h <<_ACEOF |
| 1682 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1683 | _ACEOF |
| 1684 | |
| 1685 | |
| 1686 | cat >>confdefs.h <<_ACEOF |
| 1687 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1688 | _ACEOF |
| 1689 | |
| 1690 | |
| 1691 | cat >>confdefs.h <<_ACEOF |
| 1692 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1693 | _ACEOF |
| 1694 | |
| 1695 | |
| 1696 | cat >>confdefs.h <<_ACEOF |
| 1697 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1698 | _ACEOF |
| 1699 | |
| 1700 | |
| 1701 | # 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] | 1702 | # Prefer explicitly selected file to automatically selected ones. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1703 | if test -n "$CONFIG_SITE"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1704 | set x "$CONFIG_SITE" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1705 | elif test "x$prefix" != xNONE; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1706 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1707 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1708 | set x "$ac_default_prefix/share/config.site" \ |
| 1709 | "$ac_default_prefix/etc/config.site" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1710 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1711 | shift |
| 1712 | for ac_site_file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1713 | do |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1714 | if test -r "$ac_site_file"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1715 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1716 | echo "$as_me: loading site script $ac_site_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1717 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1718 | . "$ac_site_file" |
| 1719 | fi |
| 1720 | done |
| 1721 | |
| 1722 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1723 | # Some versions of bash will fail to source /dev/null (special |
| 1724 | # files actually), so we avoid doing that. |
| 1725 | if test -f "$cache_file"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1726 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1727 | echo "$as_me: loading cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1728 | case $cache_file in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1729 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1730 | *) . "./$cache_file";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1731 | esac |
| 1732 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1733 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1734 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1735 | echo "$as_me: creating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1736 | >$cache_file |
| 1737 | fi |
| 1738 | |
| 1739 | # Check that the precious variables saved in the cache have kept the same |
| 1740 | # value. |
| 1741 | ac_cache_corrupted=false |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1742 | for ac_var in $ac_precious_vars; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1743 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1744 | eval ac_new_set=\$ac_env_${ac_var}_set |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1745 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1746 | eval ac_new_val=\$ac_env_${ac_var}_value |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1747 | case $ac_old_set,$ac_new_set in |
| 1748 | set,) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1749 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1750 | 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] | 1751 | ac_cache_corrupted=: ;; |
| 1752 | ,set) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1753 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1754 | 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] | 1755 | ac_cache_corrupted=: ;; |
| 1756 | ,);; |
| 1757 | *) |
| 1758 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1759 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1760 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1761 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1762 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1763 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1764 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1765 | ac_cache_corrupted=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1766 | fi;; |
| 1767 | esac |
| 1768 | # Pass precious variables to config.status. |
| 1769 | if test "$ac_new_set" = set; then |
| 1770 | case $ac_new_val in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1771 | *\'*) 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] | 1772 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1773 | esac |
| 1774 | case " $ac_configure_args " in |
| 1775 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1776 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1777 | esac |
| 1778 | fi |
| 1779 | done |
| 1780 | if $ac_cache_corrupted; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1781 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1782 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1783 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1784 | 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] | 1785 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1786 | fi |
| 1787 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1788 | |
| 1789 | |
| 1790 | |
| 1791 | |
| 1792 | |
| 1793 | |
| 1794 | |
| 1795 | |
| 1796 | |
| 1797 | |
| 1798 | |
| 1799 | |
| 1800 | |
| 1801 | |
| 1802 | |
| 1803 | |
| 1804 | |
| 1805 | |
| 1806 | |
| 1807 | |
| 1808 | |
| 1809 | |
| 1810 | |
| 1811 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1812 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1813 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1814 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1815 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1816 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1817 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1818 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1819 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1820 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1821 | |
| 1822 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1823 | |
Georg Brandl | bcd64a3 | 2009-03-31 21:45:18 +0000 | [diff] [blame] | 1824 | if test "$prefix" != "/"; then |
| 1825 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` |
| 1826 | fi |
| 1827 | |
| 1828 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1829 | |
| 1830 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1831 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1832 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 1833 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 1834 | # with other autoconf-based packages that include Python.h |
| 1835 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 1836 | rm confdefs.h |
| 1837 | mv confdefs.h.new confdefs.h |
| 1838 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1839 | |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1840 | VERSION=2.7 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1841 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1842 | |
| 1843 | SOVERSION=1.0 |
| 1844 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1845 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1846 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1847 | |
| 1848 | cat >>confdefs.h <<\_ACEOF |
| 1849 | #define _GNU_SOURCE 1 |
| 1850 | _ACEOF |
| 1851 | |
| 1852 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 1853 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1854 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 1855 | # them. |
| 1856 | |
| 1857 | cat >>confdefs.h <<\_ACEOF |
| 1858 | #define _NETBSD_SOURCE 1 |
| 1859 | _ACEOF |
| 1860 | |
| 1861 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 1862 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1863 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 1864 | # them. |
| 1865 | |
| 1866 | cat >>confdefs.h <<\_ACEOF |
| 1867 | #define __BSD_VISIBLE 1 |
| 1868 | _ACEOF |
| 1869 | |
| 1870 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 1871 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1872 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
| 1873 | |
| 1874 | cat >>confdefs.h <<\_ACEOF |
| 1875 | #define _BSD_TYPES 1 |
| 1876 | _ACEOF |
| 1877 | |
| 1878 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1879 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1880 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable |
| 1881 | # them. |
| 1882 | |
| 1883 | cat >>confdefs.h <<\_ACEOF |
| 1884 | #define _DARWIN_C_SOURCE 1 |
| 1885 | _ACEOF |
| 1886 | |
| 1887 | |
| 1888 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1889 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1890 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1891 | # Arguments passed to configure. |
| 1892 | |
| 1893 | CONFIG_ARGS="$ac_configure_args" |
| 1894 | |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 1895 | { echo "$as_me:$LINENO: checking for --enable-universalsdk" >&5 |
| 1896 | echo $ECHO_N "checking for --enable-universalsdk... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1897 | # Check whether --enable-universalsdk was given. |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1898 | if test "${enable_universalsdk+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1899 | enableval=$enable_universalsdk; |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1900 | case $enableval in |
| 1901 | yes) |
| 1902 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 1903 | if test ! -d "${enableval}" |
| 1904 | then |
| 1905 | enableval=/ |
| 1906 | fi |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1907 | ;; |
| 1908 | esac |
| 1909 | case $enableval in |
| 1910 | no) |
| 1911 | UNIVERSALSDK= |
| 1912 | enable_universalsdk= |
| 1913 | ;; |
| 1914 | *) |
| 1915 | UNIVERSALSDK=$enableval |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 1916 | if test ! -d "${UNIVERSALSDK}" |
| 1917 | then |
| 1918 | { { echo "$as_me:$LINENO: error: --enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" >&5 |
| 1919 | echo "$as_me: error: --enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" >&2;} |
| 1920 | { (exit 1); exit 1; }; } |
| 1921 | fi |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1922 | ;; |
| 1923 | esac |
| 1924 | |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 1925 | |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1926 | else |
| 1927 | |
| 1928 | UNIVERSALSDK= |
| 1929 | enable_universalsdk= |
| 1930 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1931 | fi |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1932 | |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 1933 | if test -n "${UNIVERSALSDK}" |
| 1934 | then |
| 1935 | { echo "$as_me:$LINENO: result: ${UNIVERSALSDK}" >&5 |
| 1936 | echo "${ECHO_T}${UNIVERSALSDK}" >&6; } |
| 1937 | else |
| 1938 | { echo "$as_me:$LINENO: result: no" >&5 |
| 1939 | echo "${ECHO_T}no" >&6; } |
| 1940 | fi |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1941 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1942 | |
Benjamin Peterson | 0e6ea5d | 2008-07-16 20:17:04 +0000 | [diff] [blame] | 1943 | |
| 1944 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1945 | UNIVERSAL_ARCHS="32-bit" |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 1946 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1947 | { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5 |
| 1948 | echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1949 | |
| 1950 | # Check whether --with-universal-archs was given. |
| 1951 | if test "${with_universal_archs+set}" = set; then |
| 1952 | withval=$with_universal_archs; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1953 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 1954 | echo "${ECHO_T}$withval" >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1955 | UNIVERSAL_ARCHS="$withval" |
Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 1956 | if test "${enable_universalsdk}" ; then |
| 1957 | : |
| 1958 | else |
| 1959 | { { echo "$as_me:$LINENO: error: --with-universal-archs without --enable-universalsdk. See Mac/README" >&5 |
| 1960 | echo "$as_me: error: --with-universal-archs without --enable-universalsdk. See Mac/README" >&2;} |
| 1961 | { (exit 1); exit 1; }; } |
| 1962 | fi |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1963 | |
| 1964 | else |
| 1965 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1966 | { echo "$as_me:$LINENO: result: 32-bit" >&5 |
| 1967 | echo "${ECHO_T}32-bit" >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1968 | |
| 1969 | fi |
| 1970 | |
| 1971 | |
| 1972 | |
| 1973 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1974 | |
| 1975 | # Check whether --with-framework-name was given. |
| 1976 | if test "${with_framework_name+set}" = set; then |
| 1977 | withval=$with_framework_name; |
Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 1978 | if test "${enable_framework}"; then |
| 1979 | : |
| 1980 | else |
| 1981 | { { echo "$as_me:$LINENO: error: --with-framework-name without --enable-framework. See Mac/README" >&5 |
| 1982 | echo "$as_me: error: --with-framework-name without --enable-framework. See Mac/README" >&2;} |
| 1983 | { (exit 1); exit 1; }; } |
| 1984 | fi |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1985 | PYTHONFRAMEWORK=${withval} |
| 1986 | PYTHONFRAMEWORKDIR=${withval}.framework |
| 1987 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` |
| 1988 | |
| 1989 | else |
| 1990 | |
| 1991 | PYTHONFRAMEWORK=Python |
| 1992 | PYTHONFRAMEWORKDIR=Python.framework |
| 1993 | PYTHONFRAMEWORKIDENTIFIER=org.python.python |
| 1994 | |
| 1995 | fi |
| 1996 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1997 | # Check whether --enable-framework was given. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1998 | if test "${enable_framework+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1999 | enableval=$enable_framework; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2000 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2001 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2002 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2003 | esac |
| 2004 | case $enableval in |
| 2005 | no) |
| 2006 | PYTHONFRAMEWORK= |
| 2007 | PYTHONFRAMEWORKDIR=no-framework |
| 2008 | PYTHONFRAMEWORKPREFIX= |
| 2009 | PYTHONFRAMEWORKINSTALLDIR= |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2010 | FRAMEWORKINSTALLFIRST= |
| 2011 | FRAMEWORKINSTALLLAST= |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2012 | FRAMEWORKALTINSTALLFIRST= |
| 2013 | FRAMEWORKALTINSTALLLAST= |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2014 | if test "x${prefix}" = "xNONE"; then |
| 2015 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2016 | else |
| 2017 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2018 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2019 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2020 | ;; |
| 2021 | *) |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 2022 | PYTHONFRAMEWORKPREFIX="${enableval}" |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2023 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2024 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2025 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall" |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 2026 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
| 2027 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 2028 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2029 | |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2030 | if test "x${prefix}" = "xNONE" ; then |
| 2031 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 2032 | |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2033 | else |
| 2034 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2035 | fi |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 2036 | |
| 2037 | case "${enableval}" in |
| 2038 | /System*) |
| 2039 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
| 2040 | if test "${prefix}" = "NONE" ; then |
| 2041 | # See below |
| 2042 | FRAMEWORKUNIXTOOLSPREFIX="/usr" |
| 2043 | fi |
| 2044 | ;; |
| 2045 | |
| 2046 | /Library*) |
| 2047 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
| 2048 | ;; |
| 2049 | |
| 2050 | */Library/Frameworks) |
| 2051 | MDIR="`dirname "${enableval}"`" |
| 2052 | MDIR="`dirname "${MDIR}"`" |
| 2053 | FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" |
| 2054 | |
| 2055 | if test "${prefix}" = "NONE"; then |
| 2056 | # User hasn't specified the |
| 2057 | # --prefix option, but wants to install |
| 2058 | # the framework in a non-default location, |
| 2059 | # ensure that the compatibility links get |
| 2060 | # installed relative to that prefix as well |
| 2061 | # instead of in /usr/local. |
| 2062 | FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" |
| 2063 | fi |
| 2064 | ;; |
| 2065 | |
| 2066 | *) |
| 2067 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
| 2068 | ;; |
| 2069 | esac |
| 2070 | |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2071 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2072 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2073 | # Add files for Mac specific code to the list of output |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2074 | # files: |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2075 | ac_config_files="$ac_config_files Mac/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2076 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2077 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2078 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2079 | ac_config_files="$ac_config_files Mac/IDLE/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2080 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2081 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" |
| 2082 | |
| 2083 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" |
| 2084 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2085 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2086 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2087 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2088 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2089 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2090 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2091 | PYTHONFRAMEWORKPREFIX= |
| 2092 | PYTHONFRAMEWORKINSTALLDIR= |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2093 | FRAMEWORKINSTALLFIRST= |
| 2094 | FRAMEWORKINSTALLLAST= |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2095 | FRAMEWORKALTINSTALLFIRST= |
| 2096 | FRAMEWORKALTINSTALLLAST= |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2097 | if test "x${prefix}" = "xNONE" ; then |
| 2098 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2099 | else |
| 2100 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2101 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2102 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2103 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2104 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2105 | fi |
| 2106 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2107 | |
| 2108 | |
| 2109 | |
| 2110 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2111 | |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2112 | |
| 2113 | |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2114 | |
| 2115 | |
| 2116 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2117 | |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 2118 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2119 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 2120 | ## AC_HELP_STRING(--with-dyld, |
| 2121 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2122 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2123 | # Set name for machine-dependent library files |
| 2124 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2125 | { echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 2126 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2127 | if test -z "$MACHDEP" |
| 2128 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2129 | ac_sys_system=`uname -s` |
Georg Brandl | fe18a11 | 2009-09-04 07:55:14 +0000 | [diff] [blame] | 2130 | if test "$ac_sys_system" = "AIX" \ |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 2131 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2132 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2133 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2134 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2135 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2136 | ac_md_system=`echo $ac_sys_system | |
| 2137 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 2138 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 2139 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2140 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2141 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2142 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 2143 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 2144 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 2145 | atheos*) MACHDEP="atheos";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 2146 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2147 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2148 | esac |
| 2149 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2150 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2151 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 2152 | # disable features if it is defined, without any means to access these |
| 2153 | # features as extensions. For these systems, we skip the definition of |
| 2154 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 2155 | # some feature, make sure there is no alternative way to access this |
| 2156 | # feature. Also, when using wildcards, make sure you have verified the |
| 2157 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 2158 | # wildcard, and that the wildcard does not include future systems |
| 2159 | # (which may remove their limitations). |
| 2160 | case $ac_sys_system/$ac_sys_release in |
| 2161 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 2162 | # 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] | 2163 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. |
Martin v. Löwis | 7875ef6 | 2010-02-15 21:41:12 +0000 | [diff] [blame] | 2164 | # In addition, Stefan Krah confirms that issue #1244610 exists through |
| 2165 | # OpenBSD 4.6, but is fixed in 4.7. |
| 2166 | OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123456]) |
Martin v. Löwis | cb78de6 | 2007-12-29 18:49:21 +0000 | [diff] [blame] | 2167 | define_xopen_source=no |
| 2168 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 2169 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 2170 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 2171 | |
| 2172 | cat >>confdefs.h <<\_ACEOF |
| 2173 | #define _BSD_SOURCE 1 |
| 2174 | _ACEOF |
| 2175 | |
| 2176 | ;; |
Martin v. Löwis | 7875ef6 | 2010-02-15 21:41:12 +0000 | [diff] [blame] | 2177 | OpenBSD/4.[789]) |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame] | 2178 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 2179 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 2180 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 2181 | |
| 2182 | cat >>confdefs.h <<\_ACEOF |
| 2183 | #define _BSD_SOURCE 1 |
| 2184 | _ACEOF |
| 2185 | |
| 2186 | ;; |
Martin v. Löwis | 4d542ec | 2006-11-25 15:39:19 +0000 | [diff] [blame] | 2187 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
| 2188 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by |
| 2189 | # Marc Recht |
Benjamin Peterson | eac68f4 | 2008-11-16 17:54:55 +0000 | [diff] [blame] | 2190 | 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] | 2191 | define_xopen_source=no;; |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 2192 | # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| 2193 | # of union __?sigval. Reported by Stuart Bishop. |
| 2194 | SunOS/5.6) |
| 2195 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2196 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 2197 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2198 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 2199 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2200 | define_xopen_source=no;; |
| 2201 | # 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] | 2202 | # 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] | 2203 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 2204 | define_xopen_source=no;; |
Martin v. Löwis | bb86d83 | 2008-11-04 20:40:09 +0000 | [diff] [blame] | 2205 | # On FreeBSD 4, the math functions C89 does not cover are never defined |
| 2206 | # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. |
| 2207 | FreeBSD/4.*) |
| 2208 | define_xopen_source=no;; |
| 2209 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if |
| 2210 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which |
| 2211 | # identifies itself as Darwin/7.* |
| 2212 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 2213 | # disables platform specific features beyond repair. |
| 2214 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 2215 | # has no effect, don't bother defining them |
| 2216 | Darwin/[6789].*) |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 2217 | define_xopen_source=no;; |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 2218 | Darwin/1[0-9].*) |
| 2219 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2220 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
| 2221 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
| 2222 | # 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] | 2223 | AIX/4) |
| 2224 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2225 | AIX/5) |
| 2226 | if test `uname -r` -eq 1; then |
| 2227 | define_xopen_source=no |
| 2228 | fi |
| 2229 | ;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 2230 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from |
| 2231 | # defining NI_NUMERICHOST. |
| 2232 | QNX/6.3.2) |
| 2233 | define_xopen_source=no |
| 2234 | ;; |
Martin v. Löwis | a058836 | 2006-04-04 06:03:50 +0000 | [diff] [blame] | 2235 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2236 | esac |
| 2237 | |
| 2238 | if test $define_xopen_source = yes |
| 2239 | then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2240 | # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be |
| 2241 | # defined precisely as g++ defines it |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2242 | # Furthermore, on Solaris 10, XPG6 requires the use of a C99 |
| 2243 | # compiler |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2244 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2245 | SunOS/5.8|SunOS/5.9|SunOS/5.10) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2246 | |
| 2247 | cat >>confdefs.h <<\_ACEOF |
| 2248 | #define _XOPEN_SOURCE 500 |
| 2249 | _ACEOF |
| 2250 | |
| 2251 | ;; |
| 2252 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2253 | |
| 2254 | cat >>confdefs.h <<\_ACEOF |
| 2255 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2256 | _ACEOF |
| 2257 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2258 | ;; |
| 2259 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2260 | |
| 2261 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 2262 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 2263 | # several APIs are not declared. Since this is also needed in some |
| 2264 | # cases for HP-UX, we define it globally. |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2265 | # except for Solaris 10, where it must not be defined, |
| 2266 | # as it implies XPG4.2 |
| 2267 | case $ac_sys_system/$ac_sys_release in |
| 2268 | SunOS/5.10) |
| 2269 | ;; |
| 2270 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2271 | |
| 2272 | cat >>confdefs.h <<\_ACEOF |
| 2273 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 2274 | _ACEOF |
| 2275 | |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2276 | ;; |
| 2277 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2278 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 2279 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2280 | cat >>confdefs.h <<\_ACEOF |
| 2281 | #define _POSIX_C_SOURCE 200112L |
| 2282 | _ACEOF |
| 2283 | |
| 2284 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2285 | fi |
| 2286 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2287 | # |
| 2288 | # SGI compilers allow the specification of the both the ABI and the |
| 2289 | # ISA on the command line. Depending on the values of these switches, |
| 2290 | # different and often incompatable code will be generated. |
| 2291 | # |
| 2292 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 2293 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 2294 | # variable is also adjusted. |
| 2295 | # |
| 2296 | |
| 2297 | if test ! -z "$SGI_ABI" |
| 2298 | then |
| 2299 | CC="cc $SGI_ABI" |
| 2300 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 2301 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 2302 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2303 | { echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 2304 | echo "${ECHO_T}$MACHDEP" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2305 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2306 | # And add extra plat-mac for darwin |
| 2307 | |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 2308 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2309 | { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5 |
| 2310 | echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; } |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2311 | if test -z "$EXTRAPLATDIR" |
| 2312 | then |
| 2313 | case $MACHDEP in |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 2314 | darwin) |
| 2315 | EXTRAPLATDIR="\$(PLATMACDIRS)" |
| 2316 | EXTRAMACHDEPPATH="\$(PLATMACPATH)" |
| 2317 | ;; |
| 2318 | *) |
| 2319 | EXTRAPLATDIR="" |
| 2320 | EXTRAMACHDEPPATH="" |
| 2321 | ;; |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2322 | esac |
| 2323 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2324 | { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5 |
| 2325 | echo "${ECHO_T}$EXTRAPLATDIR" >&6; } |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2326 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2327 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 2328 | # it may influence the way we can build extensions, so distutils |
| 2329 | # needs to check it |
| 2330 | |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2331 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2332 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2333 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2334 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2335 | { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5 |
| 2336 | 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] | 2337 | ac_sys_machine=`uname -m` |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2338 | { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5 |
| 2339 | echo "${ECHO_T}$ac_sys_machine" >&6; } |
Mark Dickinson | 6513466 | 2008-04-25 16:11:04 +0000 | [diff] [blame] | 2340 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2341 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2342 | |
| 2343 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 2344 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 2345 | # just to get things to compile and link. Users are free to override OPT |
| 2346 | # when running configure or make. The build should not break if they do. |
| 2347 | # BASECFLAGS should generally not be messed with, however. |
| 2348 | |
| 2349 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 2350 | # on that fiddles with OPT and BASECFLAGS? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2351 | { echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 2352 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2353 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2354 | # Check whether --with-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2355 | if test "${with_gcc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2356 | withval=$with_gcc; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2357 | case $withval in |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 2358 | no) CC=${CC:-cc} |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2359 | without_gcc=yes;; |
| 2360 | yes) CC=gcc |
| 2361 | without_gcc=no;; |
| 2362 | *) CC=$withval |
| 2363 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2364 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2365 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2366 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2367 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2368 | AIX*) CC=cc_r |
| 2369 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2370 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2371 | case $BE_HOST_CPU in |
| 2372 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 2373 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2374 | without_gcc=yes |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2375 | BASECFLAGS="$BASECFLAGS -export pragma" |
| 2376 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2377 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2378 | ;; |
| 2379 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 2380 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2381 | without_gcc=no |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2382 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2383 | ;; |
| 2384 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2385 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 2386 | 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] | 2387 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2388 | ;; |
| 2389 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2390 | AR="\$(srcdir)/Modules/ar_beos" |
| 2391 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2392 | ;; |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 2393 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 2394 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2395 | fi |
| 2396 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2397 | { echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 2398 | echo "${ECHO_T}$without_gcc" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2399 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2400 | # If the user switches compilers, we can't believe the cache |
| 2401 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 2402 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2403 | { { 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] | 2404 | (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] | 2405 | 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] | 2406 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 2407 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2408 | fi |
| 2409 | |
Victor Stinner | 6cbf90f | 2010-03-25 00:21:53 +0000 | [diff] [blame] | 2410 | save_CFLAGS=$CFLAGS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2411 | ac_ext=c |
| 2412 | ac_cpp='$CPP $CPPFLAGS' |
| 2413 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2414 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2415 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2416 | if test -n "$ac_tool_prefix"; then |
| 2417 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2418 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2419 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2420 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2421 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2423 | else |
| 2424 | if test -n "$CC"; then |
| 2425 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2426 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2427 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2428 | for as_dir in $PATH |
| 2429 | do |
| 2430 | IFS=$as_save_IFS |
| 2431 | test -z "$as_dir" && as_dir=. |
| 2432 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2433 | 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] | 2434 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2435 | 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] | 2436 | break 2 |
| 2437 | fi |
| 2438 | done |
| 2439 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2440 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2441 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2442 | fi |
| 2443 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2444 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2445 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2446 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2447 | echo "${ECHO_T}$CC" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2448 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2449 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2450 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2451 | fi |
| 2452 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2453 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2454 | fi |
| 2455 | if test -z "$ac_cv_prog_CC"; then |
| 2456 | ac_ct_CC=$CC |
| 2457 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2458 | set dummy gcc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2459 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2460 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2461 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2463 | else |
| 2464 | if test -n "$ac_ct_CC"; then |
| 2465 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2466 | else |
| 2467 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2468 | for as_dir in $PATH |
| 2469 | do |
| 2470 | IFS=$as_save_IFS |
| 2471 | test -z "$as_dir" && as_dir=. |
| 2472 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2473 | 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] | 2474 | ac_cv_prog_ac_ct_CC="gcc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2475 | 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] | 2476 | break 2 |
| 2477 | fi |
| 2478 | done |
| 2479 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2480 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2481 | |
| 2482 | fi |
| 2483 | fi |
| 2484 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2485 | if test -n "$ac_ct_CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2486 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2487 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2488 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2489 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2490 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2491 | fi |
| 2492 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2493 | if test "x$ac_ct_CC" = x; then |
| 2494 | CC="" |
| 2495 | else |
| 2496 | case $cross_compiling:$ac_tool_warned in |
| 2497 | yes:) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2498 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2499 | whose name does not start with the host triplet. If you think this |
| 2500 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2501 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2502 | whose name does not start with the host triplet. If you think this |
| 2503 | 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] | 2504 | ac_tool_warned=yes ;; |
| 2505 | esac |
| 2506 | CC=$ac_ct_CC |
| 2507 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2508 | else |
| 2509 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2510 | fi |
| 2511 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2512 | if test -z "$CC"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2513 | if test -n "$ac_tool_prefix"; then |
| 2514 | # 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] | 2515 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2516 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2517 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2518 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2520 | else |
| 2521 | if test -n "$CC"; then |
| 2522 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2523 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2525 | for as_dir in $PATH |
| 2526 | do |
| 2527 | IFS=$as_save_IFS |
| 2528 | test -z "$as_dir" && as_dir=. |
| 2529 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2530 | 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] | 2531 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2532 | 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] | 2533 | break 2 |
| 2534 | fi |
| 2535 | done |
| 2536 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2537 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2538 | |
| 2539 | fi |
| 2540 | fi |
| 2541 | CC=$ac_cv_prog_CC |
| 2542 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2543 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2544 | echo "${ECHO_T}$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2545 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2546 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2547 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2548 | fi |
| 2549 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2550 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2551 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2552 | fi |
| 2553 | if test -z "$CC"; then |
| 2554 | # Extract the first word of "cc", so it can be a program name with args. |
| 2555 | set dummy cc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2556 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2557 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2558 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2560 | else |
| 2561 | if test -n "$CC"; then |
| 2562 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2563 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2564 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2566 | for as_dir in $PATH |
| 2567 | do |
| 2568 | IFS=$as_save_IFS |
| 2569 | test -z "$as_dir" && as_dir=. |
| 2570 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2571 | 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] | 2572 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2573 | ac_prog_rejected=yes |
| 2574 | continue |
| 2575 | fi |
| 2576 | ac_cv_prog_CC="cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2577 | 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] | 2578 | break 2 |
| 2579 | fi |
| 2580 | done |
| 2581 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2582 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2583 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2584 | if test $ac_prog_rejected = yes; then |
| 2585 | # We found a bogon in the path, so make sure we never use it. |
| 2586 | set dummy $ac_cv_prog_CC |
| 2587 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2588 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2589 | # We chose a different compiler from the bogus one. |
| 2590 | # However, it has the same basename, so the bogon will be chosen |
| 2591 | # first if we set CC to just the basename; use the full file name. |
| 2592 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2593 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2594 | fi |
| 2595 | fi |
| 2596 | fi |
| 2597 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2598 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2599 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2600 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2601 | echo "${ECHO_T}$CC" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2602 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2603 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2604 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2605 | fi |
| 2606 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2607 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2608 | fi |
| 2609 | if test -z "$CC"; then |
| 2610 | if test -n "$ac_tool_prefix"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2611 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2612 | do |
| 2613 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2614 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2615 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2616 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2617 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2619 | else |
| 2620 | if test -n "$CC"; then |
| 2621 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2622 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2624 | for as_dir in $PATH |
| 2625 | do |
| 2626 | IFS=$as_save_IFS |
| 2627 | test -z "$as_dir" && as_dir=. |
| 2628 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2629 | 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] | 2630 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2631 | 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] | 2632 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2633 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2634 | done |
| 2635 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2636 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2637 | |
| 2638 | fi |
| 2639 | fi |
| 2640 | CC=$ac_cv_prog_CC |
| 2641 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2642 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2643 | echo "${ECHO_T}$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2644 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2645 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2646 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2647 | fi |
| 2648 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2649 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2650 | test -n "$CC" && break |
| 2651 | done |
| 2652 | fi |
| 2653 | if test -z "$CC"; then |
| 2654 | ac_ct_CC=$CC |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2655 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2656 | do |
| 2657 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2658 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2659 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2660 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2661 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2663 | else |
| 2664 | if test -n "$ac_ct_CC"; then |
| 2665 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2666 | else |
| 2667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2668 | for as_dir in $PATH |
| 2669 | do |
| 2670 | IFS=$as_save_IFS |
| 2671 | test -z "$as_dir" && as_dir=. |
| 2672 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2673 | 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] | 2674 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2675 | 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] | 2676 | break 2 |
| 2677 | fi |
| 2678 | done |
| 2679 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2680 | IFS=$as_save_IFS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2681 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2682 | fi |
| 2683 | fi |
| 2684 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2685 | if test -n "$ac_ct_CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2686 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2687 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2688 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2689 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2690 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2691 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2692 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2693 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2694 | test -n "$ac_ct_CC" && break |
| 2695 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2696 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2697 | if test "x$ac_ct_CC" = x; then |
| 2698 | CC="" |
| 2699 | else |
| 2700 | case $cross_compiling:$ac_tool_warned in |
| 2701 | yes:) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2702 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2703 | whose name does not start with the host triplet. If you think this |
| 2704 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2705 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2706 | whose name does not start with the host triplet. If you think this |
| 2707 | 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] | 2708 | ac_tool_warned=yes ;; |
| 2709 | esac |
| 2710 | CC=$ac_ct_CC |
| 2711 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2712 | fi |
| 2713 | |
| 2714 | fi |
| 2715 | |
| 2716 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2717 | 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] | 2718 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2719 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2720 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2721 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2722 | |
| 2723 | # Provide some information about the compiler. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2724 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2725 | ac_compiler=`set X $ac_compile; echo $2` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2726 | { (ac_try="$ac_compiler --version >&5" |
| 2727 | case "(($ac_try" in |
| 2728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2729 | *) ac_try_echo=$ac_try;; |
| 2730 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2732 | (eval "$ac_compiler --version >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2733 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2735 | (exit $ac_status); } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2736 | { (ac_try="$ac_compiler -v >&5" |
| 2737 | case "(($ac_try" in |
| 2738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2739 | *) ac_try_echo=$ac_try;; |
| 2740 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2742 | (eval "$ac_compiler -v >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2743 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2745 | (exit $ac_status); } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2746 | { (ac_try="$ac_compiler -V >&5" |
| 2747 | case "(($ac_try" in |
| 2748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2749 | *) ac_try_echo=$ac_try;; |
| 2750 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2751 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2752 | (eval "$ac_compiler -V >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2753 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2755 | (exit $ac_status); } |
| 2756 | |
| 2757 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2758 | /* confdefs.h. */ |
| 2759 | _ACEOF |
| 2760 | cat confdefs.h >>conftest.$ac_ext |
| 2761 | cat >>conftest.$ac_ext <<_ACEOF |
| 2762 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2763 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2764 | int |
| 2765 | main () |
| 2766 | { |
| 2767 | |
| 2768 | ; |
| 2769 | return 0; |
| 2770 | } |
| 2771 | _ACEOF |
| 2772 | ac_clean_files_save=$ac_clean_files |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2773 | 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] | 2774 | # Try to create an executable without -o first, disregard a.out. |
| 2775 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2776 | # of exeext. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2777 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2778 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2779 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2780 | # |
| 2781 | # List of possible output files, starting from the most likely. |
| 2782 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2783 | # only as a last resort. b.out is created by i960 compilers. |
| 2784 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2785 | # |
| 2786 | # The IRIX 6 linker writes into existing files which may not be |
| 2787 | # executable, retaining their permissions. Remove them first so a |
| 2788 | # subsequent execution test works. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2789 | ac_rmfiles= |
| 2790 | for ac_file in $ac_files |
| 2791 | do |
| 2792 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2793 | *.$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] | 2794 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2795 | esac |
| 2796 | done |
| 2797 | rm -f $ac_rmfiles |
| 2798 | |
| 2799 | if { (ac_try="$ac_link_default" |
| 2800 | case "(($ac_try" in |
| 2801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2802 | *) ac_try_echo=$ac_try;; |
| 2803 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2805 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2806 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2808 | (exit $ac_status); }; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2809 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2810 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2811 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2812 | # so that the user can short-circuit this test for compilers unknown to |
| 2813 | # Autoconf. |
| 2814 | for ac_file in $ac_files '' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2815 | do |
| 2816 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2817 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2818 | *.$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] | 2819 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2820 | [ab].out ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2821 | # We found the default executable, but exeext='' is most |
| 2822 | # certainly right. |
| 2823 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2824 | *.* ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2825 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2826 | then :; else |
| 2827 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2828 | fi |
| 2829 | # We set ac_cv_exeext here because the later test for it is not |
| 2830 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2831 | # argument, so we may need to know it at that point already. |
| 2832 | # Even if this section looks crufty: it has the advantage of |
| 2833 | # actually working. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2834 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2835 | * ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2836 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2837 | esac |
| 2838 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2839 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2840 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2841 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2842 | ac_file='' |
| 2843 | fi |
| 2844 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2845 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2846 | echo "${ECHO_T}$ac_file" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2847 | if test -z "$ac_file"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2848 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2849 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2850 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2851 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2852 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2853 | echo "$as_me: error: C compiler cannot create executables |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2854 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2855 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2856 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2857 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2858 | ac_exeext=$ac_cv_exeext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2859 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2860 | # 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] | 2861 | # the compiler is broken, or we cross compile. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2862 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2863 | 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] | 2864 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2865 | # If not cross compiling, check that we can run a simple program. |
| 2866 | if test "$cross_compiling" != yes; then |
| 2867 | if { ac_try='./$ac_file' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2868 | { (case "(($ac_try" in |
| 2869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2870 | *) ac_try_echo=$ac_try;; |
| 2871 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2873 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2874 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2876 | (exit $ac_status); }; }; then |
| 2877 | cross_compiling=no |
| 2878 | else |
| 2879 | if test "$cross_compiling" = maybe; then |
| 2880 | cross_compiling=yes |
| 2881 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2882 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2883 | If you meant to cross compile, use \`--host'. |
| 2884 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2885 | echo "$as_me: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2886 | If you meant to cross compile, use \`--host'. |
| 2887 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2888 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2889 | fi |
| 2890 | fi |
| 2891 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2892 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2893 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2894 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2895 | 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] | 2896 | ac_clean_files=$ac_clean_files_save |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2897 | # 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] | 2898 | # the compiler is broken, or we cross compile. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2899 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2900 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2901 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2902 | echo "${ECHO_T}$cross_compiling" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2903 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2904 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2905 | 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] | 2906 | if { (ac_try="$ac_link" |
| 2907 | case "(($ac_try" in |
| 2908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2909 | *) ac_try_echo=$ac_try;; |
| 2910 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2912 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2913 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2915 | (exit $ac_status); }; then |
| 2916 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2917 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2918 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2919 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2920 | for ac_file in conftest.exe conftest conftest.*; do |
| 2921 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2922 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2923 | *.$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] | 2924 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2925 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2926 | * ) break;; |
| 2927 | esac |
| 2928 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2929 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2930 | { { 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] | 2931 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2932 | 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] | 2933 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2934 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2935 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2936 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2937 | rm -f conftest$ac_cv_exeext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2938 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2939 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2940 | |
| 2941 | rm -f conftest.$ac_ext |
| 2942 | EXEEXT=$ac_cv_exeext |
| 2943 | ac_exeext=$EXEEXT |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2944 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2945 | 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] | 2946 | if test "${ac_cv_objext+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2948 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2949 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2950 | /* confdefs.h. */ |
| 2951 | _ACEOF |
| 2952 | cat confdefs.h >>conftest.$ac_ext |
| 2953 | cat >>conftest.$ac_ext <<_ACEOF |
| 2954 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2955 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2956 | int |
| 2957 | main () |
| 2958 | { |
| 2959 | |
| 2960 | ; |
| 2961 | return 0; |
| 2962 | } |
| 2963 | _ACEOF |
| 2964 | rm -f conftest.o conftest.obj |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2965 | if { (ac_try="$ac_compile" |
| 2966 | case "(($ac_try" in |
| 2967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2968 | *) ac_try_echo=$ac_try;; |
| 2969 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2971 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2972 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2974 | (exit $ac_status); }; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2975 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2976 | test -f "$ac_file" || continue; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2977 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2978 | *.$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] | 2979 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2980 | break;; |
| 2981 | esac |
| 2982 | done |
| 2983 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2984 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2985 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2986 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2987 | { { 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] | 2988 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2989 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2990 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2991 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2992 | fi |
| 2993 | |
| 2994 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2995 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2996 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2997 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2998 | OBJEXT=$ac_cv_objext |
| 2999 | ac_objext=$OBJEXT |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3000 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 3001 | 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] | 3002 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3004 | else |
| 3005 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3006 | /* confdefs.h. */ |
| 3007 | _ACEOF |
| 3008 | cat confdefs.h >>conftest.$ac_ext |
| 3009 | cat >>conftest.$ac_ext <<_ACEOF |
| 3010 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3011 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3012 | int |
| 3013 | main () |
| 3014 | { |
| 3015 | #ifndef __GNUC__ |
| 3016 | choke me |
| 3017 | #endif |
| 3018 | |
| 3019 | ; |
| 3020 | return 0; |
| 3021 | } |
| 3022 | _ACEOF |
| 3023 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3024 | if { (ac_try="$ac_compile" |
| 3025 | case "(($ac_try" in |
| 3026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3027 | *) ac_try_echo=$ac_try;; |
| 3028 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3030 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3031 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3032 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3033 | rm -f conftest.er1 |
| 3034 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3036 | (exit $ac_status); } && { |
| 3037 | test -z "$ac_c_werror_flag" || |
| 3038 | test ! -s conftest.err |
| 3039 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3040 | ac_compiler_gnu=yes |
| 3041 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3042 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3043 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3044 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3045 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3046 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3047 | |
| 3048 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3049 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3050 | |
| 3051 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3052 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3053 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 3054 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3055 | ac_test_CFLAGS=${CFLAGS+set} |
| 3056 | ac_save_CFLAGS=$CFLAGS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3057 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3058 | 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] | 3059 | if test "${ac_cv_prog_cc_g+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3061 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3062 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3063 | ac_c_werror_flag=yes |
| 3064 | ac_cv_prog_cc_g=no |
| 3065 | CFLAGS="-g" |
| 3066 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3067 | /* confdefs.h. */ |
| 3068 | _ACEOF |
| 3069 | cat confdefs.h >>conftest.$ac_ext |
| 3070 | cat >>conftest.$ac_ext <<_ACEOF |
| 3071 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3072 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3073 | int |
| 3074 | main () |
| 3075 | { |
| 3076 | |
| 3077 | ; |
| 3078 | return 0; |
| 3079 | } |
| 3080 | _ACEOF |
| 3081 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3082 | if { (ac_try="$ac_compile" |
| 3083 | case "(($ac_try" in |
| 3084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3085 | *) ac_try_echo=$ac_try;; |
| 3086 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3088 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3089 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3090 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3091 | rm -f conftest.er1 |
| 3092 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3094 | (exit $ac_status); } && { |
| 3095 | test -z "$ac_c_werror_flag" || |
| 3096 | test ! -s conftest.err |
| 3097 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3098 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3099 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3100 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3101 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3102 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3103 | CFLAGS="" |
| 3104 | cat >conftest.$ac_ext <<_ACEOF |
| 3105 | /* confdefs.h. */ |
| 3106 | _ACEOF |
| 3107 | cat confdefs.h >>conftest.$ac_ext |
| 3108 | cat >>conftest.$ac_ext <<_ACEOF |
| 3109 | /* end confdefs.h. */ |
| 3110 | |
| 3111 | int |
| 3112 | main () |
| 3113 | { |
| 3114 | |
| 3115 | ; |
| 3116 | return 0; |
| 3117 | } |
| 3118 | _ACEOF |
| 3119 | rm -f conftest.$ac_objext |
| 3120 | if { (ac_try="$ac_compile" |
| 3121 | case "(($ac_try" in |
| 3122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3123 | *) ac_try_echo=$ac_try;; |
| 3124 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3126 | (eval "$ac_compile") 2>conftest.er1 |
| 3127 | ac_status=$? |
| 3128 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3129 | rm -f conftest.er1 |
| 3130 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3132 | (exit $ac_status); } && { |
| 3133 | test -z "$ac_c_werror_flag" || |
| 3134 | test ! -s conftest.err |
| 3135 | } && test -s conftest.$ac_objext; then |
| 3136 | : |
| 3137 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3138 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3139 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3140 | |
| 3141 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3142 | CFLAGS="-g" |
| 3143 | cat >conftest.$ac_ext <<_ACEOF |
| 3144 | /* confdefs.h. */ |
| 3145 | _ACEOF |
| 3146 | cat confdefs.h >>conftest.$ac_ext |
| 3147 | cat >>conftest.$ac_ext <<_ACEOF |
| 3148 | /* end confdefs.h. */ |
| 3149 | |
| 3150 | int |
| 3151 | main () |
| 3152 | { |
| 3153 | |
| 3154 | ; |
| 3155 | return 0; |
| 3156 | } |
| 3157 | _ACEOF |
| 3158 | rm -f conftest.$ac_objext |
| 3159 | if { (ac_try="$ac_compile" |
| 3160 | case "(($ac_try" in |
| 3161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3162 | *) ac_try_echo=$ac_try;; |
| 3163 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3165 | (eval "$ac_compile") 2>conftest.er1 |
| 3166 | ac_status=$? |
| 3167 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3168 | rm -f conftest.er1 |
| 3169 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3171 | (exit $ac_status); } && { |
| 3172 | test -z "$ac_c_werror_flag" || |
| 3173 | test ! -s conftest.err |
| 3174 | } && test -s conftest.$ac_objext; then |
| 3175 | ac_cv_prog_cc_g=yes |
| 3176 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3177 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3178 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3179 | |
| 3180 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3181 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3182 | |
| 3183 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3184 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3185 | |
| 3186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3187 | fi |
| 3188 | |
| 3189 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3190 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3191 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3192 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3193 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3194 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3195 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3196 | elif test $ac_cv_prog_cc_g = yes; then |
| 3197 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3198 | CFLAGS="-g -O2" |
| 3199 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3200 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3201 | fi |
| 3202 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3203 | if test "$GCC" = yes; then |
| 3204 | CFLAGS="-O2" |
| 3205 | else |
| 3206 | CFLAGS= |
| 3207 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3208 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3209 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3210 | 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] | 3211 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3213 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3214 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3215 | ac_save_CC=$CC |
| 3216 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3217 | /* confdefs.h. */ |
| 3218 | _ACEOF |
| 3219 | cat confdefs.h >>conftest.$ac_ext |
| 3220 | cat >>conftest.$ac_ext <<_ACEOF |
| 3221 | /* end confdefs.h. */ |
| 3222 | #include <stdarg.h> |
| 3223 | #include <stdio.h> |
| 3224 | #include <sys/types.h> |
| 3225 | #include <sys/stat.h> |
| 3226 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3227 | struct buf { int x; }; |
| 3228 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3229 | static char *e (p, i) |
| 3230 | char **p; |
| 3231 | int i; |
| 3232 | { |
| 3233 | return p[i]; |
| 3234 | } |
| 3235 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3236 | { |
| 3237 | char *s; |
| 3238 | va_list v; |
| 3239 | va_start (v,p); |
| 3240 | s = g (p, va_arg (v,int)); |
| 3241 | va_end (v); |
| 3242 | return s; |
| 3243 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3244 | |
| 3245 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3246 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3247 | 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] | 3248 | 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] | 3249 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3250 | 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] | 3251 | that's true only with -std. */ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3252 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3253 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3254 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3255 | inside strings and character constants. */ |
| 3256 | #define FOO(x) 'x' |
| 3257 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3258 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3259 | int test (int i, double x); |
| 3260 | struct s1 {int (*f) (int a);}; |
| 3261 | struct s2 {int (*f) (double a);}; |
| 3262 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3263 | int argc; |
| 3264 | char **argv; |
| 3265 | int |
| 3266 | main () |
| 3267 | { |
| 3268 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3269 | ; |
| 3270 | return 0; |
| 3271 | } |
| 3272 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3273 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3274 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3275 | do |
| 3276 | CC="$ac_save_CC $ac_arg" |
| 3277 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3278 | if { (ac_try="$ac_compile" |
| 3279 | case "(($ac_try" in |
| 3280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3281 | *) ac_try_echo=$ac_try;; |
| 3282 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3284 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3285 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3286 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3287 | rm -f conftest.er1 |
| 3288 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3290 | (exit $ac_status); } && { |
| 3291 | test -z "$ac_c_werror_flag" || |
| 3292 | test ! -s conftest.err |
| 3293 | } && test -s conftest.$ac_objext; then |
| 3294 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3295 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3296 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3297 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3298 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3299 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3300 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3301 | |
| 3302 | rm -f core conftest.err conftest.$ac_objext |
| 3303 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3304 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3305 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3306 | CC=$ac_save_CC |
| 3307 | |
| 3308 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3309 | # AC_CACHE_VAL |
| 3310 | case "x$ac_cv_prog_cc_c89" in |
| 3311 | x) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3312 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3313 | echo "${ECHO_T}none needed" >&6; } ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3314 | xno) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3315 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3316 | echo "${ECHO_T}unsupported" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3317 | *) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3318 | CC="$CC $ac_cv_prog_cc_c89" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3319 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3320 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3321 | esac |
| 3322 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3323 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3324 | ac_ext=c |
| 3325 | ac_cpp='$CPP $CPPFLAGS' |
| 3326 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3327 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3328 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3329 | |
Victor Stinner | 6cbf90f | 2010-03-25 00:21:53 +0000 | [diff] [blame] | 3330 | CFLAGS=$save_CFLAGS |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3331 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3332 | |
| 3333 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3334 | { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5 |
| 3335 | 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] | 3336 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3337 | # Check whether --with-cxx_main was given. |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3338 | if test "${with_cxx_main+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3339 | withval=$with_cxx_main; |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3340 | |
| 3341 | case $withval in |
| 3342 | no) with_cxx_main=no |
| 3343 | MAINCC='$(CC)';; |
| 3344 | yes) with_cxx_main=yes |
| 3345 | MAINCC='$(CXX)';; |
| 3346 | *) with_cxx_main=yes |
| 3347 | MAINCC=$withval |
| 3348 | if test -z "$CXX" |
| 3349 | then |
| 3350 | CXX=$withval |
| 3351 | fi;; |
| 3352 | esac |
| 3353 | else |
| 3354 | |
| 3355 | with_cxx_main=no |
| 3356 | MAINCC='$(CC)' |
| 3357 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3358 | fi |
| 3359 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3360 | { echo "$as_me:$LINENO: result: $with_cxx_main" >&5 |
| 3361 | echo "${ECHO_T}$with_cxx_main" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3362 | |
| 3363 | preset_cxx="$CXX" |
| 3364 | if test -z "$CXX" |
| 3365 | then |
| 3366 | case "$CC" in |
| 3367 | gcc) # Extract the first word of "g++", so it can be a program name with args. |
| 3368 | set dummy g++; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3369 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3370 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3371 | if test "${ac_cv_path_CXX+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3373 | else |
| 3374 | case $CXX in |
| 3375 | [\\/]* | ?:[\\/]*) |
| 3376 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3377 | ;; |
| 3378 | *) |
| 3379 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3380 | for as_dir in notfound |
| 3381 | do |
| 3382 | IFS=$as_save_IFS |
| 3383 | test -z "$as_dir" && as_dir=. |
| 3384 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3385 | 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] | 3386 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3387 | 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] | 3388 | break 2 |
| 3389 | fi |
| 3390 | done |
| 3391 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3392 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3393 | |
| 3394 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++" |
| 3395 | ;; |
| 3396 | esac |
| 3397 | fi |
| 3398 | CXX=$ac_cv_path_CXX |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3399 | if test -n "$CXX"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3400 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3401 | echo "${ECHO_T}$CXX" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3402 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3403 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3404 | echo "${ECHO_T}no" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3405 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3406 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3407 | ;; |
| 3408 | cc) # Extract the first word of "c++", so it can be a program name with args. |
| 3409 | set dummy c++; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3410 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3411 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3412 | if test "${ac_cv_path_CXX+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3414 | else |
| 3415 | case $CXX in |
| 3416 | [\\/]* | ?:[\\/]*) |
| 3417 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3418 | ;; |
| 3419 | *) |
| 3420 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3421 | for as_dir in notfound |
| 3422 | do |
| 3423 | IFS=$as_save_IFS |
| 3424 | test -z "$as_dir" && as_dir=. |
| 3425 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3426 | 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] | 3427 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3428 | 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] | 3429 | break 2 |
| 3430 | fi |
| 3431 | done |
| 3432 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3433 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3434 | |
| 3435 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++" |
| 3436 | ;; |
| 3437 | esac |
| 3438 | fi |
| 3439 | CXX=$ac_cv_path_CXX |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3440 | if test -n "$CXX"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3441 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3442 | echo "${ECHO_T}$CXX" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3443 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3444 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3445 | echo "${ECHO_T}no" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3446 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3447 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3448 | ;; |
| 3449 | esac |
| 3450 | if test "$CXX" = "notfound" |
| 3451 | then |
| 3452 | CXX="" |
| 3453 | fi |
| 3454 | fi |
| 3455 | if test -z "$CXX" |
| 3456 | then |
| 3457 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 3458 | do |
| 3459 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3460 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3461 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3462 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3463 | if test "${ac_cv_prog_CXX+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3465 | else |
| 3466 | if test -n "$CXX"; then |
| 3467 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3468 | else |
| 3469 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3470 | for as_dir in $PATH |
| 3471 | do |
| 3472 | IFS=$as_save_IFS |
| 3473 | test -z "$as_dir" && as_dir=. |
| 3474 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3475 | 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] | 3476 | ac_cv_prog_CXX="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3477 | 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] | 3478 | break 2 |
| 3479 | fi |
| 3480 | done |
| 3481 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3482 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3483 | |
| 3484 | fi |
| 3485 | fi |
| 3486 | CXX=$ac_cv_prog_CXX |
| 3487 | if test -n "$CXX"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3488 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3489 | echo "${ECHO_T}$CXX" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3490 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3491 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3492 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3493 | fi |
| 3494 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3495 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3496 | test -n "$CXX" && break |
| 3497 | done |
| 3498 | test -n "$CXX" || CXX="notfound" |
| 3499 | |
| 3500 | if test "$CXX" = "notfound" |
| 3501 | then |
| 3502 | CXX="" |
| 3503 | fi |
| 3504 | fi |
| 3505 | if test "$preset_cxx" != "$CXX" |
| 3506 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3507 | { echo "$as_me:$LINENO: WARNING: |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3508 | |
| 3509 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3510 | If this is not intended, then set CXX on the configure command line. |
| 3511 | " >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3512 | echo "$as_me: WARNING: |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3513 | |
| 3514 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3515 | If this is not intended, then set CXX on the configure command line. |
| 3516 | " >&2;} |
| 3517 | fi |
| 3518 | |
| 3519 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3520 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3521 | |
| 3522 | ac_ext=c |
| 3523 | ac_cpp='$CPP $CPPFLAGS' |
| 3524 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3525 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3526 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3527 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3528 | 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] | 3529 | # On Suns, sometimes $CPP names a directory. |
| 3530 | if test -n "$CPP" && test -d "$CPP"; then |
| 3531 | CPP= |
| 3532 | fi |
| 3533 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3534 | if test "${ac_cv_prog_CPP+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3535 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3536 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3537 | # Double quotes because CPP needs to be expanded |
| 3538 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3539 | do |
| 3540 | ac_preproc_ok=false |
| 3541 | for ac_c_preproc_warn_flag in '' yes |
| 3542 | do |
| 3543 | # Use a header file that comes with gcc, so configuring glibc |
| 3544 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3545 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3546 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3547 | # 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] | 3548 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3549 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3550 | /* confdefs.h. */ |
| 3551 | _ACEOF |
| 3552 | cat confdefs.h >>conftest.$ac_ext |
| 3553 | cat >>conftest.$ac_ext <<_ACEOF |
| 3554 | /* end confdefs.h. */ |
| 3555 | #ifdef __STDC__ |
| 3556 | # include <limits.h> |
| 3557 | #else |
| 3558 | # include <assert.h> |
| 3559 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3560 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3561 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3562 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3563 | case "(($ac_try" in |
| 3564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3565 | *) ac_try_echo=$ac_try;; |
| 3566 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3568 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3569 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3570 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3571 | rm -f conftest.er1 |
| 3572 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3574 | (exit $ac_status); } >/dev/null && { |
| 3575 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3576 | test ! -s conftest.err |
| 3577 | }; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3578 | : |
| 3579 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3580 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3581 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3582 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3583 | # Broken: fails on valid input. |
| 3584 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3585 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3586 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3587 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3588 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3589 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3590 | # can be detected and how. |
| 3591 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3592 | /* confdefs.h. */ |
| 3593 | _ACEOF |
| 3594 | cat confdefs.h >>conftest.$ac_ext |
| 3595 | cat >>conftest.$ac_ext <<_ACEOF |
| 3596 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3597 | #include <ac_nonexistent.h> |
| 3598 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3599 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3600 | case "(($ac_try" in |
| 3601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3602 | *) ac_try_echo=$ac_try;; |
| 3603 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3605 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3606 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3607 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3608 | rm -f conftest.er1 |
| 3609 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3611 | (exit $ac_status); } >/dev/null && { |
| 3612 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3613 | test ! -s conftest.err |
| 3614 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3615 | # Broken: success on invalid input. |
| 3616 | continue |
| 3617 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3618 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3619 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3620 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3621 | # Passes both tests. |
| 3622 | ac_preproc_ok=: |
| 3623 | break |
| 3624 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3625 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3626 | rm -f conftest.err conftest.$ac_ext |
| 3627 | |
| 3628 | done |
| 3629 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3630 | rm -f conftest.err conftest.$ac_ext |
| 3631 | if $ac_preproc_ok; then |
| 3632 | break |
| 3633 | fi |
| 3634 | |
| 3635 | done |
| 3636 | ac_cv_prog_CPP=$CPP |
| 3637 | |
| 3638 | fi |
| 3639 | CPP=$ac_cv_prog_CPP |
| 3640 | else |
| 3641 | ac_cv_prog_CPP=$CPP |
| 3642 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3643 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3644 | echo "${ECHO_T}$CPP" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3645 | ac_preproc_ok=false |
| 3646 | for ac_c_preproc_warn_flag in '' yes |
| 3647 | do |
| 3648 | # Use a header file that comes with gcc, so configuring glibc |
| 3649 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3650 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3651 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3652 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3653 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3654 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3655 | /* confdefs.h. */ |
| 3656 | _ACEOF |
| 3657 | cat confdefs.h >>conftest.$ac_ext |
| 3658 | cat >>conftest.$ac_ext <<_ACEOF |
| 3659 | /* end confdefs.h. */ |
| 3660 | #ifdef __STDC__ |
| 3661 | # include <limits.h> |
| 3662 | #else |
| 3663 | # include <assert.h> |
| 3664 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3665 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3666 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3667 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3668 | case "(($ac_try" in |
| 3669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3670 | *) ac_try_echo=$ac_try;; |
| 3671 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3672 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3673 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3674 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3675 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3676 | rm -f conftest.er1 |
| 3677 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3679 | (exit $ac_status); } >/dev/null && { |
| 3680 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3681 | test ! -s conftest.err |
| 3682 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3683 | : |
| 3684 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3685 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3686 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3687 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3688 | # Broken: fails on valid input. |
| 3689 | continue |
| 3690 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3691 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3692 | rm -f conftest.err conftest.$ac_ext |
| 3693 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3694 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3695 | # can be detected and how. |
| 3696 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3697 | /* confdefs.h. */ |
| 3698 | _ACEOF |
| 3699 | cat confdefs.h >>conftest.$ac_ext |
| 3700 | cat >>conftest.$ac_ext <<_ACEOF |
| 3701 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3702 | #include <ac_nonexistent.h> |
| 3703 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3704 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3705 | case "(($ac_try" in |
| 3706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3707 | *) ac_try_echo=$ac_try;; |
| 3708 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3710 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3711 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3712 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3713 | rm -f conftest.er1 |
| 3714 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3716 | (exit $ac_status); } >/dev/null && { |
| 3717 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3718 | test ! -s conftest.err |
| 3719 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3720 | # Broken: success on invalid input. |
| 3721 | continue |
| 3722 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3723 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3724 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3725 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3726 | # Passes both tests. |
| 3727 | ac_preproc_ok=: |
| 3728 | break |
| 3729 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3730 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3731 | rm -f conftest.err conftest.$ac_ext |
| 3732 | |
| 3733 | done |
| 3734 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3735 | rm -f conftest.err conftest.$ac_ext |
| 3736 | if $ac_preproc_ok; then |
| 3737 | : |
| 3738 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3739 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3740 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3741 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3742 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3743 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3744 | fi |
| 3745 | |
| 3746 | ac_ext=c |
| 3747 | ac_cpp='$CPP $CPPFLAGS' |
| 3748 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3749 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3750 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3751 | |
| 3752 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3753 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3754 | 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] | 3755 | if test "${ac_cv_path_GREP+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3757 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3758 | # Extract the first word of "grep ggrep" to use in msg output |
| 3759 | if test -z "$GREP"; then |
| 3760 | set dummy grep ggrep; ac_prog_name=$2 |
| 3761 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3763 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3764 | ac_path_GREP_found=false |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3765 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3767 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3768 | do |
| 3769 | IFS=$as_save_IFS |
| 3770 | test -z "$as_dir" && as_dir=. |
| 3771 | for ac_prog in grep ggrep; do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3772 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3773 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3774 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 3775 | # 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] | 3776 | # Check for GNU $ac_path_GREP |
| 3777 | case `"$ac_path_GREP" --version 2>&1` in |
| 3778 | *GNU*) |
| 3779 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3780 | *) |
| 3781 | ac_count=0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3782 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3783 | while : |
| 3784 | do |
| 3785 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3786 | mv "conftest.tmp" "conftest.in" |
| 3787 | cp "conftest.in" "conftest.nl" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3788 | echo 'GREP' >> "conftest.nl" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3789 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3790 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3791 | ac_count=`expr $ac_count + 1` |
| 3792 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3793 | # Best one so far, save it but keep looking for a better one |
| 3794 | ac_cv_path_GREP="$ac_path_GREP" |
| 3795 | ac_path_GREP_max=$ac_count |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3796 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3797 | # 10*(2^10) chars as input seems more than enough |
| 3798 | test $ac_count -gt 10 && break |
| 3799 | done |
| 3800 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3801 | esac |
| 3802 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3803 | |
| 3804 | $ac_path_GREP_found && break 3 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3805 | done |
| 3806 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3807 | |
| 3808 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3809 | IFS=$as_save_IFS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3810 | |
| 3811 | |
| 3812 | fi |
| 3813 | |
| 3814 | GREP="$ac_cv_path_GREP" |
| 3815 | if test -z "$GREP"; then |
| 3816 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3817 | 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] | 3818 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3819 | fi |
| 3820 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3821 | else |
| 3822 | ac_cv_path_GREP=$GREP |
| 3823 | fi |
| 3824 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3825 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3826 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3827 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3828 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3829 | GREP="$ac_cv_path_GREP" |
| 3830 | |
| 3831 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3832 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3833 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3834 | if test "${ac_cv_path_EGREP+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3836 | else |
| 3837 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3838 | then ac_cv_path_EGREP="$GREP -E" |
| 3839 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3840 | # Extract the first word of "egrep" to use in msg output |
| 3841 | if test -z "$EGREP"; then |
| 3842 | set dummy egrep; ac_prog_name=$2 |
| 3843 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3845 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3846 | ac_path_EGREP_found=false |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3847 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3849 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3850 | do |
| 3851 | IFS=$as_save_IFS |
| 3852 | test -z "$as_dir" && as_dir=. |
| 3853 | for ac_prog in egrep; do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3854 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3855 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3856 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 3857 | # 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] | 3858 | # Check for GNU $ac_path_EGREP |
| 3859 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3860 | *GNU*) |
| 3861 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3862 | *) |
| 3863 | ac_count=0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3864 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3865 | while : |
| 3866 | do |
| 3867 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3868 | mv "conftest.tmp" "conftest.in" |
| 3869 | cp "conftest.in" "conftest.nl" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3870 | echo 'EGREP' >> "conftest.nl" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3871 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3872 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3873 | ac_count=`expr $ac_count + 1` |
| 3874 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3875 | # Best one so far, save it but keep looking for a better one |
| 3876 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3877 | ac_path_EGREP_max=$ac_count |
| 3878 | fi |
| 3879 | # 10*(2^10) chars as input seems more than enough |
| 3880 | test $ac_count -gt 10 && break |
| 3881 | done |
| 3882 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3883 | esac |
| 3884 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3885 | |
| 3886 | $ac_path_EGREP_found && break 3 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3887 | done |
| 3888 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3889 | |
| 3890 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3891 | IFS=$as_save_IFS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3892 | |
| 3893 | |
| 3894 | fi |
| 3895 | |
| 3896 | EGREP="$ac_cv_path_EGREP" |
| 3897 | if test -z "$EGREP"; then |
| 3898 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3899 | 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] | 3900 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3901 | fi |
| 3902 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3903 | else |
| 3904 | ac_cv_path_EGREP=$EGREP |
| 3905 | fi |
| 3906 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3907 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3908 | fi |
| 3909 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3910 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3911 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3912 | EGREP="$ac_cv_path_EGREP" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3913 | |
| 3914 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3915 | |
| 3916 | { echo "$as_me:$LINENO: checking for AIX" >&5 |
| 3917 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } |
| 3918 | cat >conftest.$ac_ext <<_ACEOF |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3919 | /* confdefs.h. */ |
| 3920 | _ACEOF |
| 3921 | cat confdefs.h >>conftest.$ac_ext |
| 3922 | cat >>conftest.$ac_ext <<_ACEOF |
| 3923 | /* end confdefs.h. */ |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3924 | #ifdef _AIX |
| 3925 | yes |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3926 | #endif |
| 3927 | |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3928 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3929 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3930 | $EGREP "yes" >/dev/null 2>&1; then |
| 3931 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3932 | echo "${ECHO_T}yes" >&6; } |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3933 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3934 | #define _ALL_SOURCE 1 |
| 3935 | _ACEOF |
| 3936 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3937 | else |
| 3938 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3939 | echo "${ECHO_T}no" >&6; } |
| 3940 | fi |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 3941 | rm -f -r conftest* |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3942 | |
| 3943 | |
| 3944 | |
| 3945 | # Check for unsupported systems |
| 3946 | case $ac_sys_system/$ac_sys_release in |
| 3947 | atheos*|Linux*/1*) |
| 3948 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3949 | echo See README for details. |
| 3950 | exit 1;; |
| 3951 | esac |
| 3952 | |
| 3953 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3954 | { echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3955 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3956 | |
| 3957 | # Check whether --with-suffix was given. |
| 3958 | if test "${with_suffix+set}" = set; then |
| 3959 | withval=$with_suffix; |
| 3960 | case $withval in |
| 3961 | no) EXEEXT=;; |
| 3962 | yes) EXEEXT=.exe;; |
| 3963 | *) EXEEXT=$withval;; |
| 3964 | esac |
| 3965 | fi |
| 3966 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3967 | { echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3968 | echo "${ECHO_T}$EXEEXT" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3969 | |
| 3970 | # Test whether we're running on a non-case-sensitive system, in which |
| 3971 | # case we give a warning if no ext is given |
| 3972 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3973 | { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3974 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3975 | if test ! -d CaseSensitiveTestDir; then |
| 3976 | mkdir CaseSensitiveTestDir |
| 3977 | fi |
| 3978 | |
| 3979 | if test -d casesensitivetestdir |
| 3980 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3981 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3982 | echo "${ECHO_T}yes" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3983 | BUILDEXEEXT=.exe |
| 3984 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3985 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3986 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3987 | BUILDEXEEXT=$EXEEXT |
| 3988 | fi |
| 3989 | rmdir CaseSensitiveTestDir |
| 3990 | |
| 3991 | case $MACHDEP in |
| 3992 | bsdos*) |
| 3993 | case $CC in |
| 3994 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3995 | esac;; |
| 3996 | esac |
| 3997 | |
| 3998 | case $ac_sys_system in |
| 3999 | hp*|HP*) |
| 4000 | case $CC in |
| 4001 | cc|*/cc) CC="$CC -Ae";; |
| 4002 | esac;; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4003 | SunOS*) |
| 4004 | # Some functions have a prototype only with that define, e.g. confstr |
| 4005 | |
| 4006 | cat >>confdefs.h <<\_ACEOF |
| 4007 | #define __EXTENSIONS__ 1 |
| 4008 | _ACEOF |
| 4009 | |
| 4010 | ;; |
| 4011 | esac |
| 4012 | |
| 4013 | |
| 4014 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4015 | { echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 4016 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4017 | if test -z "$LIBRARY" |
| 4018 | then |
| 4019 | LIBRARY='libpython$(VERSION).a' |
| 4020 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4021 | { echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 4022 | echo "${ECHO_T}$LIBRARY" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4023 | |
| 4024 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 4025 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 4026 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 4027 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 4028 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 4029 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 4030 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 4031 | # DLLLIBRARY is the shared (i.e., DLL) library. |
| 4032 | # |
| 4033 | # RUNSHARED is used to run shared python without installed libraries |
| 4034 | # |
| 4035 | # INSTSONAME is the name of the shared library that will be use to install |
| 4036 | # on the system - some systems like version suffix, others don't |
| 4037 | |
| 4038 | |
| 4039 | |
| 4040 | |
| 4041 | |
| 4042 | |
| 4043 | LDLIBRARY="$LIBRARY" |
| 4044 | BLDLIBRARY='$(LDLIBRARY)' |
| 4045 | INSTSONAME='$(LDLIBRARY)' |
| 4046 | DLLLIBRARY='' |
| 4047 | LDLIBRARYDIR='' |
| 4048 | RUNSHARED='' |
| 4049 | |
| 4050 | # LINKCC is the command that links the python executable -- default is $(CC). |
| 4051 | # If CXX is set, and if it is needed to link a main function that was |
| 4052 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 4053 | # python might then depend on the C++ runtime |
| 4054 | # This is altered for AIX in order to build the export list before |
| 4055 | # linking. |
| 4056 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4057 | { echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 4058 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4059 | if test -z "$LINKCC" |
| 4060 | then |
| 4061 | LINKCC='$(PURIFY) $(MAINCC)' |
| 4062 | case $ac_sys_system in |
| 4063 | AIX*) |
| 4064 | exp_extra="\"\"" |
| 4065 | if test $ac_sys_release -ge 5 -o \ |
| 4066 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 4067 | exp_extra="." |
| 4068 | fi |
| 4069 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4070 | QNX*) |
| 4071 | # qcc must be used because the other compilers do not |
| 4072 | # support -N. |
| 4073 | LINKCC=qcc;; |
| 4074 | esac |
| 4075 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4076 | { echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 4077 | echo "${ECHO_T}$LINKCC" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4078 | |
| 4079 | # GNULD is set to "yes" if the GNU linker is used. If this goes wrong |
| 4080 | # make sure we default having it set to "no": this is used by |
| 4081 | # distutils.unixccompiler to know if it should add --enable-new-dtags |
| 4082 | # to linker command lines, and failing to detect GNU ld simply results |
| 4083 | # in the same bahaviour as before. |
| 4084 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4085 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 4086 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4087 | ac_prog=ld |
| 4088 | if test "$GCC" = yes; then |
| 4089 | ac_prog=`$CC -print-prog-name=ld` |
| 4090 | fi |
| 4091 | case `"$ac_prog" -V 2>&1 < /dev/null` in |
| 4092 | *GNU*) |
| 4093 | GNULD=yes;; |
| 4094 | *) |
| 4095 | GNULD=no;; |
| 4096 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4097 | { echo "$as_me:$LINENO: result: $GNULD" >&5 |
| 4098 | echo "${ECHO_T}$GNULD" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4099 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4100 | { echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 4101 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4102 | # Check whether --enable-shared was given. |
| 4103 | if test "${enable_shared+set}" = set; then |
| 4104 | enableval=$enable_shared; |
| 4105 | fi |
| 4106 | |
| 4107 | |
| 4108 | if test -z "$enable_shared" |
| 4109 | then |
| 4110 | case $ac_sys_system in |
| 4111 | CYGWIN* | atheos*) |
| 4112 | enable_shared="yes";; |
| 4113 | *) |
| 4114 | enable_shared="no";; |
| 4115 | esac |
| 4116 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4117 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 4118 | echo "${ECHO_T}$enable_shared" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4119 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4120 | { echo "$as_me:$LINENO: checking for --enable-profiling" >&5 |
| 4121 | echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4122 | # Check whether --enable-profiling was given. |
| 4123 | if test "${enable_profiling+set}" = set; then |
| 4124 | enableval=$enable_profiling; ac_save_cc="$CC" |
| 4125 | CC="$CC -pg" |
| 4126 | if test "$cross_compiling" = yes; then |
| 4127 | ac_enable_profiling="no" |
| 4128 | else |
| 4129 | cat >conftest.$ac_ext <<_ACEOF |
| 4130 | /* confdefs.h. */ |
| 4131 | _ACEOF |
| 4132 | cat confdefs.h >>conftest.$ac_ext |
| 4133 | cat >>conftest.$ac_ext <<_ACEOF |
| 4134 | /* end confdefs.h. */ |
| 4135 | int main() { return 0; } |
| 4136 | _ACEOF |
| 4137 | rm -f conftest$ac_exeext |
| 4138 | if { (ac_try="$ac_link" |
| 4139 | case "(($ac_try" in |
| 4140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4141 | *) ac_try_echo=$ac_try;; |
| 4142 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4144 | (eval "$ac_link") 2>&5 |
| 4145 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4147 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4148 | { (case "(($ac_try" in |
| 4149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4150 | *) ac_try_echo=$ac_try;; |
| 4151 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4153 | (eval "$ac_try") 2>&5 |
| 4154 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4156 | (exit $ac_status); }; }; then |
| 4157 | ac_enable_profiling="yes" |
| 4158 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4159 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4160 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4161 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4162 | |
| 4163 | ( exit $ac_status ) |
| 4164 | ac_enable_profiling="no" |
| 4165 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4166 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4167 | fi |
| 4168 | |
| 4169 | |
| 4170 | CC="$ac_save_cc" |
| 4171 | fi |
| 4172 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4173 | { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5 |
| 4174 | echo "${ECHO_T}$ac_enable_profiling" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4175 | |
| 4176 | case "$ac_enable_profiling" in |
| 4177 | "yes") |
| 4178 | BASECFLAGS="-pg $BASECFLAGS" |
| 4179 | LDFLAGS="-pg $LDFLAGS" |
| 4180 | ;; |
| 4181 | esac |
| 4182 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4183 | { echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 4184 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4185 | |
| 4186 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 4187 | # library that we build, but we do not want to link against it (we |
| 4188 | # will find it with a -framework option). For this reason there is an |
| 4189 | # extra variable BLDLIBRARY against which Python and the extension |
| 4190 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 4191 | # LDLIBRARY, but empty for MacOSX framework builds. |
| 4192 | if test "$enable_framework" |
| 4193 | then |
| 4194 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 4195 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
| 4196 | BLDLIBRARY='' |
| 4197 | else |
| 4198 | BLDLIBRARY='$(LDLIBRARY)' |
| 4199 | fi |
| 4200 | |
| 4201 | # Other platforms follow |
| 4202 | if test $enable_shared = "yes"; then |
| 4203 | |
| 4204 | cat >>confdefs.h <<\_ACEOF |
| 4205 | #define Py_ENABLE_SHARED 1 |
| 4206 | _ACEOF |
| 4207 | |
| 4208 | case $ac_sys_system in |
| 4209 | BeOS*) |
| 4210 | LDLIBRARY='libpython$(VERSION).so' |
| 4211 | ;; |
| 4212 | CYGWIN*) |
| 4213 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4214 | DLLLIBRARY='libpython$(VERSION).dll' |
| 4215 | ;; |
| 4216 | SunOS*) |
| 4217 | LDLIBRARY='libpython$(VERSION).so' |
| 4218 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4219 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4220 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4221 | ;; |
| 4222 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*) |
| 4223 | LDLIBRARY='libpython$(VERSION).so' |
| 4224 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4225 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4226 | case $ac_sys_system in |
| 4227 | FreeBSD*) |
| 4228 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
| 4229 | ;; |
| 4230 | esac |
| 4231 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4232 | ;; |
| 4233 | hp*|HP*) |
| 4234 | case `uname -m` in |
| 4235 | ia64) |
| 4236 | LDLIBRARY='libpython$(VERSION).so' |
| 4237 | ;; |
| 4238 | *) |
| 4239 | LDLIBRARY='libpython$(VERSION).sl' |
| 4240 | ;; |
| 4241 | esac |
| 4242 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4243 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
| 4244 | ;; |
| 4245 | OSF*) |
| 4246 | LDLIBRARY='libpython$(VERSION).so' |
| 4247 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 4248 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4249 | ;; |
| 4250 | atheos*) |
| 4251 | LDLIBRARY='libpython$(VERSION).so' |
| 4252 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4253 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 4254 | ;; |
| 4255 | Darwin*) |
| 4256 | LDLIBRARY='libpython$(VERSION).dylib' |
| 4257 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4258 | RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}' |
| 4259 | ;; |
| 4260 | |
| 4261 | esac |
| 4262 | else # shared is disabled |
| 4263 | case $ac_sys_system in |
| 4264 | CYGWIN*) |
| 4265 | BLDLIBRARY='$(LIBRARY)' |
| 4266 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4267 | ;; |
| 4268 | esac |
| 4269 | fi |
| 4270 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4271 | { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 4272 | echo "${ECHO_T}$LDLIBRARY" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4273 | |
| 4274 | if test -n "$ac_tool_prefix"; then |
| 4275 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4276 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4277 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4278 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4279 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4281 | else |
| 4282 | if test -n "$RANLIB"; then |
| 4283 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4284 | else |
| 4285 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4286 | for as_dir in $PATH |
| 4287 | do |
| 4288 | IFS=$as_save_IFS |
| 4289 | test -z "$as_dir" && as_dir=. |
| 4290 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4291 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4292 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4293 | 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] | 4294 | break 2 |
| 4295 | fi |
| 4296 | done |
| 4297 | done |
| 4298 | IFS=$as_save_IFS |
| 4299 | |
| 4300 | fi |
| 4301 | fi |
| 4302 | RANLIB=$ac_cv_prog_RANLIB |
| 4303 | if test -n "$RANLIB"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4304 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4305 | echo "${ECHO_T}$RANLIB" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4306 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4307 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4308 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4309 | fi |
| 4310 | |
| 4311 | |
| 4312 | fi |
| 4313 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4314 | ac_ct_RANLIB=$RANLIB |
| 4315 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4316 | set dummy ranlib; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4317 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4318 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4319 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4321 | else |
| 4322 | if test -n "$ac_ct_RANLIB"; then |
| 4323 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4324 | else |
| 4325 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4326 | for as_dir in $PATH |
| 4327 | do |
| 4328 | IFS=$as_save_IFS |
| 4329 | test -z "$as_dir" && as_dir=. |
| 4330 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4331 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4332 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4333 | 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] | 4334 | break 2 |
| 4335 | fi |
| 4336 | done |
| 4337 | done |
| 4338 | IFS=$as_save_IFS |
| 4339 | |
| 4340 | fi |
| 4341 | fi |
| 4342 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4343 | if test -n "$ac_ct_RANLIB"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4344 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4345 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4346 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4347 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4348 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4349 | fi |
| 4350 | |
| 4351 | if test "x$ac_ct_RANLIB" = x; then |
| 4352 | RANLIB=":" |
| 4353 | else |
| 4354 | case $cross_compiling:$ac_tool_warned in |
| 4355 | yes:) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4356 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4357 | whose name does not start with the host triplet. If you think this |
| 4358 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4359 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4360 | whose name does not start with the host triplet. If you think this |
| 4361 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4362 | ac_tool_warned=yes ;; |
| 4363 | esac |
| 4364 | RANLIB=$ac_ct_RANLIB |
| 4365 | fi |
| 4366 | else |
| 4367 | RANLIB="$ac_cv_prog_RANLIB" |
| 4368 | fi |
| 4369 | |
| 4370 | |
| 4371 | for ac_prog in ar aal |
| 4372 | do |
| 4373 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4374 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4375 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4376 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4377 | if test "${ac_cv_prog_AR+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4379 | else |
| 4380 | if test -n "$AR"; then |
| 4381 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4382 | else |
| 4383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4384 | for as_dir in $PATH |
| 4385 | do |
| 4386 | IFS=$as_save_IFS |
| 4387 | test -z "$as_dir" && as_dir=. |
| 4388 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4389 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4390 | ac_cv_prog_AR="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4391 | 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] | 4392 | break 2 |
| 4393 | fi |
| 4394 | done |
| 4395 | done |
| 4396 | IFS=$as_save_IFS |
| 4397 | |
| 4398 | fi |
| 4399 | fi |
| 4400 | AR=$ac_cv_prog_AR |
| 4401 | if test -n "$AR"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4402 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 4403 | echo "${ECHO_T}$AR" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4404 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4405 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4406 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4407 | fi |
| 4408 | |
| 4409 | |
| 4410 | test -n "$AR" && break |
| 4411 | done |
| 4412 | test -n "$AR" || AR="ar" |
| 4413 | |
| 4414 | |
| 4415 | # tweak ARFLAGS only if the user didn't set it on the command line |
| 4416 | |
| 4417 | if test -z "$ARFLAGS" |
| 4418 | then |
| 4419 | ARFLAGS="rc" |
| 4420 | fi |
| 4421 | |
| 4422 | |
| 4423 | # Extract the first word of "svnversion", so it can be a program name with args. |
| 4424 | set dummy svnversion; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4425 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4426 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4427 | if test "${ac_cv_prog_SVNVERSION+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4429 | else |
| 4430 | if test -n "$SVNVERSION"; then |
| 4431 | ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. |
| 4432 | else |
| 4433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4434 | for as_dir in $PATH |
| 4435 | do |
| 4436 | IFS=$as_save_IFS |
| 4437 | test -z "$as_dir" && as_dir=. |
| 4438 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4439 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4440 | ac_cv_prog_SVNVERSION="found" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4441 | 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] | 4442 | break 2 |
| 4443 | fi |
| 4444 | done |
| 4445 | done |
| 4446 | IFS=$as_save_IFS |
| 4447 | |
| 4448 | test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found" |
| 4449 | fi |
| 4450 | fi |
| 4451 | SVNVERSION=$ac_cv_prog_SVNVERSION |
| 4452 | if test -n "$SVNVERSION"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4453 | { echo "$as_me:$LINENO: result: $SVNVERSION" >&5 |
| 4454 | echo "${ECHO_T}$SVNVERSION" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4455 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4456 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4457 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4458 | fi |
| 4459 | |
| 4460 | |
| 4461 | if test $SVNVERSION = found |
| 4462 | then |
| 4463 | SVNVERSION="svnversion \$(srcdir)" |
| 4464 | else |
| 4465 | SVNVERSION="echo Unversioned directory" |
| 4466 | fi |
| 4467 | |
| 4468 | case $MACHDEP in |
| 4469 | bsdos*|hp*|HP*) |
| 4470 | # install -d does not work on BSDI or HP-UX |
| 4471 | if test -z "$INSTALL" |
| 4472 | then |
| 4473 | INSTALL="${srcdir}/install-sh -c" |
| 4474 | fi |
| 4475 | esac |
| 4476 | ac_aux_dir= |
| 4477 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 4478 | if test -f "$ac_dir/install-sh"; then |
| 4479 | ac_aux_dir=$ac_dir |
| 4480 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 4481 | break |
| 4482 | elif test -f "$ac_dir/install.sh"; then |
| 4483 | ac_aux_dir=$ac_dir |
| 4484 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 4485 | break |
| 4486 | elif test -f "$ac_dir/shtool"; then |
| 4487 | ac_aux_dir=$ac_dir |
| 4488 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 4489 | break |
| 4490 | fi |
| 4491 | done |
| 4492 | if test -z "$ac_aux_dir"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4493 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
| 4494 | 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] | 4495 | { (exit 1); exit 1; }; } |
| 4496 | fi |
| 4497 | |
| 4498 | # These three variables are undocumented and unsupported, |
| 4499 | # and are intended to be withdrawn in a future Autoconf release. |
| 4500 | # They can cause serious problems if a builder's source tree is in a directory |
| 4501 | # whose full name contains unusual characters. |
| 4502 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 4503 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 4504 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 4505 | |
| 4506 | |
| 4507 | # Find a good install program. We prefer a C program (faster), |
| 4508 | # so one script is as good as another. But avoid the broken or |
| 4509 | # incompatible versions: |
| 4510 | # SysV /etc/install, /usr/sbin/install |
| 4511 | # SunOS /usr/etc/install |
| 4512 | # IRIX /sbin/install |
| 4513 | # AIX /bin/install |
| 4514 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 4515 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4516 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4517 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 4518 | # OS/2's system install, which has a completely different semantic |
| 4519 | # ./install, which can be erroneously created by make from ./install.sh. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4520 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4521 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4522 | if test -z "$INSTALL"; then |
| 4523 | if test "${ac_cv_path_install+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4524 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4525 | else |
| 4526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4527 | for as_dir in $PATH |
| 4528 | do |
| 4529 | IFS=$as_save_IFS |
| 4530 | test -z "$as_dir" && as_dir=. |
| 4531 | # Account for people who put trailing slashes in PATH elements. |
| 4532 | case $as_dir/ in |
| 4533 | ./ | .// | /cC/* | \ |
| 4534 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4535 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 4536 | /usr/ucb/* ) ;; |
| 4537 | *) |
| 4538 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4539 | # Don't use installbsd from OSF since it installs stuff as root |
| 4540 | # by default. |
| 4541 | for ac_prog in ginstall scoinst install; do |
| 4542 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4543 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 4544 | if test $ac_prog = install && |
| 4545 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4546 | # AIX install. It has an incompatible calling convention. |
| 4547 | : |
| 4548 | elif test $ac_prog = install && |
| 4549 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4550 | # program-specific install script used by HP pwplus--don't use. |
| 4551 | : |
| 4552 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4553 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4554 | break 3 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4555 | fi |
| 4556 | fi |
| 4557 | done |
| 4558 | done |
| 4559 | ;; |
| 4560 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4561 | done |
| 4562 | IFS=$as_save_IFS |
| 4563 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4564 | |
| 4565 | fi |
| 4566 | if test "${ac_cv_path_install+set}" = set; then |
| 4567 | INSTALL=$ac_cv_path_install |
| 4568 | else |
| 4569 | # As a last resort, use the slow shell script. Don't cache a |
| 4570 | # value for INSTALL within a source directory, because that will |
| 4571 | # break other packages using the cache if that directory is |
| 4572 | # removed, or if the value is a relative name. |
| 4573 | INSTALL=$ac_install_sh |
| 4574 | fi |
| 4575 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4576 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4577 | echo "${ECHO_T}$INSTALL" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4578 | |
| 4579 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4580 | # It thinks the first close brace ends the variable substitution. |
| 4581 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4582 | |
| 4583 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 4584 | |
| 4585 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4586 | |
| 4587 | |
| 4588 | # Not every filesystem supports hard links |
| 4589 | |
| 4590 | if test -z "$LN" ; then |
| 4591 | case $ac_sys_system in |
| 4592 | BeOS*) LN="ln -s";; |
| 4593 | CYGWIN*) LN="ln -s";; |
| 4594 | atheos*) LN="ln -s";; |
| 4595 | *) LN=ln;; |
| 4596 | esac |
| 4597 | fi |
| 4598 | |
| 4599 | # Check for --with-pydebug |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4600 | { echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 4601 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4602 | |
| 4603 | # Check whether --with-pydebug was given. |
| 4604 | if test "${with_pydebug+set}" = set; then |
| 4605 | withval=$with_pydebug; |
| 4606 | if test "$withval" != no |
| 4607 | then |
| 4608 | |
| 4609 | cat >>confdefs.h <<\_ACEOF |
| 4610 | #define Py_DEBUG 1 |
| 4611 | _ACEOF |
| 4612 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4613 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4614 | echo "${ECHO_T}yes" >&6; }; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4615 | Py_DEBUG='true' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4616 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 4617 | echo "${ECHO_T}no" >&6; }; Py_DEBUG='false' |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4618 | fi |
| 4619 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4620 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4621 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4622 | fi |
| 4623 | |
| 4624 | |
| 4625 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 4626 | # merged with this chunk of code? |
| 4627 | |
| 4628 | # Optimizer/debugger flags |
| 4629 | # ------------------------ |
| 4630 | # (The following bit of code is complicated enough - please keep things |
| 4631 | # indented properly. Just pretend you're editing Python code. ;-) |
| 4632 | |
| 4633 | # There are two parallel sets of case statements below, one that checks to |
| 4634 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 4635 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 4636 | # user set OPT. |
| 4637 | |
| 4638 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 4639 | # it on the command line |
| 4640 | |
Benjamin Peterson | d4b721b | 2010-03-23 20:58:37 +0000 | [diff] [blame] | 4641 | if test "${OPT-unset}" = "unset" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4642 | then |
| 4643 | case $GCC in |
| 4644 | yes) |
| 4645 | if test "$CC" != 'g++' ; then |
| 4646 | STRICT_PROTO="-Wstrict-prototypes" |
| 4647 | fi |
| 4648 | # For gcc 4.x we need to use -fwrapv so lets check if its supported |
| 4649 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then |
| 4650 | WRAP="-fwrapv" |
| 4651 | fi |
| 4652 | case $ac_cv_prog_cc_g in |
| 4653 | yes) |
| 4654 | if test "$Py_DEBUG" = 'true' ; then |
| 4655 | # Optimization messes up debuggers, so turn it off for |
| 4656 | # debug builds. |
| 4657 | OPT="-g -Wall $STRICT_PROTO" |
| 4658 | else |
| 4659 | OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" |
| 4660 | fi |
| 4661 | ;; |
| 4662 | *) |
| 4663 | OPT="-O3 -Wall $STRICT_PROTO" |
| 4664 | ;; |
| 4665 | esac |
| 4666 | case $ac_sys_system in |
| 4667 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 4668 | ;; |
| 4669 | esac |
| 4670 | ;; |
| 4671 | |
| 4672 | *) |
| 4673 | OPT="-O" |
| 4674 | ;; |
| 4675 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4676 | fi |
| 4677 | |
| 4678 | |
| 4679 | |
| 4680 | # The -arch flags for universal builds on OSX |
| 4681 | UNIVERSAL_ARCH_FLAGS= |
| 4682 | |
| 4683 | |
| 4684 | # tweak BASECFLAGS based on compiler and platform |
| 4685 | case $GCC in |
| 4686 | yes) |
| 4687 | # Python violates C99 rules, by casting between incompatible |
| 4688 | # pointer types. GCC may generate bad code as a result of that, |
| 4689 | # so use -fno-strict-aliasing if supported. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4690 | { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 4691 | 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] | 4692 | ac_save_cc="$CC" |
| 4693 | CC="$CC -fno-strict-aliasing" |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 4694 | if test "${ac_cv_no_strict_aliasing_ok+set}" = set; then |
| 4695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4696 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4697 | cat >conftest.$ac_ext <<_ACEOF |
| 4698 | /* confdefs.h. */ |
| 4699 | _ACEOF |
| 4700 | cat confdefs.h >>conftest.$ac_ext |
| 4701 | cat >>conftest.$ac_ext <<_ACEOF |
| 4702 | /* end confdefs.h. */ |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4703 | |
| 4704 | int |
| 4705 | main () |
| 4706 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4707 | int main() { return 0; } |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4708 | ; |
| 4709 | return 0; |
| 4710 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4711 | _ACEOF |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4712 | rm -f conftest.$ac_objext |
| 4713 | if { (ac_try="$ac_compile" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4714 | case "(($ac_try" in |
| 4715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4716 | *) ac_try_echo=$ac_try;; |
| 4717 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4719 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4720 | ac_status=$? |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4721 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4722 | rm -f conftest.er1 |
| 4723 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4725 | (exit $ac_status); } && { |
| 4726 | test -z "$ac_c_werror_flag" || |
| 4727 | test ! -s conftest.err |
| 4728 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4729 | ac_cv_no_strict_aliasing_ok=yes |
| 4730 | else |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4731 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4732 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4733 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4734 | ac_cv_no_strict_aliasing_ok=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4735 | fi |
| 4736 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4737 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 4738 | fi |
| 4739 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4740 | CC="$ac_save_cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4741 | { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 4742 | echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4743 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 4744 | then |
| 4745 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 4746 | fi |
| 4747 | |
| 4748 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 |
| 4749 | # support. Without this, treatment of subnormals doesn't follow |
| 4750 | # the standard. |
| 4751 | case $ac_sys_machine in |
| 4752 | alpha*) |
| 4753 | BASECFLAGS="$BASECFLAGS -mieee" |
| 4754 | ;; |
| 4755 | esac |
| 4756 | |
| 4757 | case $ac_sys_system in |
| 4758 | SCO_SV*) |
| 4759 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 4760 | ;; |
| 4761 | # is there any other compiler on Darwin besides gcc? |
| 4762 | Darwin*) |
| 4763 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd |
| 4764 | # used to be here, but non-Apple gcc doesn't accept them. |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 4765 | if test "${CC}" = gcc |
| 4766 | then |
| 4767 | { echo "$as_me:$LINENO: checking which compiler should be used" >&5 |
| 4768 | echo $ECHO_N "checking which compiler should be used... $ECHO_C" >&6; } |
| 4769 | case "${UNIVERSALSDK}" in |
| 4770 | */MacOSX10.4u.sdk) |
| 4771 | # Build using 10.4 SDK, force usage of gcc when the |
| 4772 | # compiler is gcc, otherwise the user will get very |
| 4773 | # confusing error messages when building on OSX 10.6 |
| 4774 | CC=gcc-4.0 |
| 4775 | CPP=cpp-4.0 |
| 4776 | ;; |
| 4777 | esac |
| 4778 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 4779 | echo "${ECHO_T}$CC" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4780 | fi |
| 4781 | |
| 4782 | # Calculate the right deployment target for this build. |
| 4783 | # |
| 4784 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
| 4785 | if test ${cur_target} '>' 10.2; then |
| 4786 | cur_target=10.3 |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 4787 | if test ${enable_universalsdk}; then |
| 4788 | if test "${UNIVERSAL_ARCHS}" = "all"; then |
| 4789 | # Ensure that the default platform for a |
| 4790 | # 4-way universal build is OSX 10.5, |
| 4791 | # that's the first OS release where |
| 4792 | # 4-way builds make sense. |
| 4793 | cur_target='10.5' |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 4794 | |
| 4795 | elif test "${UNIVERSAL_ARCHS}" = "3-way"; then |
| 4796 | cur_target='10.5' |
| 4797 | |
| 4798 | elif test "${UNIVERSAL_ARCHS}" = "intel"; then |
| 4799 | cur_target='10.5' |
| 4800 | |
| 4801 | elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then |
| 4802 | cur_target='10.5' |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 4803 | fi |
| 4804 | else |
Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 4805 | if test `/usr/bin/arch` = "i386"; then |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 4806 | # On Intel macs default to a deployment |
| 4807 | # target of 10.4, that's the first OSX |
| 4808 | # release with Intel support. |
| 4809 | cur_target="10.4" |
| 4810 | fi |
| 4811 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4812 | fi |
| 4813 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
| 4814 | |
| 4815 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
| 4816 | # environment with a value that is the same as what we'll use |
| 4817 | # in the Makefile to ensure that we'll get the same compiler |
| 4818 | # environment during configure and build time. |
| 4819 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" |
| 4820 | export MACOSX_DEPLOYMENT_TARGET |
| 4821 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' |
| 4822 | |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 4823 | if test "${enable_universalsdk}"; then |
| 4824 | UNIVERSAL_ARCH_FLAGS="" |
| 4825 | if test "$UNIVERSAL_ARCHS" = "32-bit" ; then |
| 4826 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" |
| 4827 | ARCH_RUN_32BIT="" |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 4828 | LIPO_32BIT_FLAGS="" |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 4829 | |
| 4830 | elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then |
| 4831 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" |
| 4832 | LIPO_32BIT_FLAGS="" |
| 4833 | ARCH_RUN_32BIT="true" |
| 4834 | |
| 4835 | elif test "$UNIVERSAL_ARCHS" = "all" ; then |
| 4836 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" |
| 4837 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
Ronald Oussoren | 92397ce | 2010-01-17 19:32:00 +0000 | [diff] [blame] | 4838 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 4839 | |
| 4840 | elif test "$UNIVERSAL_ARCHS" = "intel" ; then |
| 4841 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" |
| 4842 | LIPO_32BIT_FLAGS="-extract i386" |
Ronald Oussoren | 92397ce | 2010-01-17 19:32:00 +0000 | [diff] [blame] | 4843 | ARCH_RUN_32BIT="/usr/bin/arch -i386" |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 4844 | |
| 4845 | elif test "$UNIVERSAL_ARCHS" = "3-way" ; then |
| 4846 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" |
| 4847 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
Ronald Oussoren | 9922f17 | 2010-02-11 13:19:34 +0000 | [diff] [blame] | 4848 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 4849 | |
| 4850 | else |
| 4851 | { { echo "$as_me:$LINENO: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&5 |
| 4852 | echo "$as_me: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&2;} |
| 4853 | { (exit 1); exit 1; }; } |
| 4854 | |
| 4855 | fi |
| 4856 | |
| 4857 | |
Ronald Oussoren | 974eb5e | 2010-04-18 17:59:37 +0000 | [diff] [blame] | 4858 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}" |
| 4859 | if test "${UNIVERSALSDK}" != "/" |
| 4860 | then |
| 4861 | CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" |
| 4862 | LDFLAGS="-isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
| 4863 | CFLAGS="-isysroot ${UNIVERSALSDK} ${CFLAGS}" |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 4864 | fi |
| 4865 | |
| 4866 | fi |
| 4867 | |
| 4868 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4869 | ;; |
| 4870 | OSF*) |
| 4871 | BASECFLAGS="$BASECFLAGS -mieee" |
| 4872 | ;; |
| 4873 | esac |
| 4874 | ;; |
| 4875 | |
| 4876 | *) |
| 4877 | case $ac_sys_system in |
| 4878 | OpenUNIX*|UnixWare*) |
| 4879 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 4880 | ;; |
| 4881 | OSF*) |
| 4882 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 4883 | ;; |
| 4884 | SCO_SV*) |
| 4885 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 4886 | ;; |
| 4887 | esac |
| 4888 | ;; |
| 4889 | esac |
| 4890 | |
| 4891 | if test "$Py_DEBUG" = 'true'; then |
| 4892 | : |
| 4893 | else |
| 4894 | OPT="-DNDEBUG $OPT" |
| 4895 | fi |
| 4896 | |
| 4897 | if test "$ac_arch_flags" |
| 4898 | then |
| 4899 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
| 4900 | fi |
| 4901 | |
| 4902 | # disable check for icc since it seems to pass, but generates a warning |
| 4903 | if test "$CC" = icc |
| 4904 | then |
| 4905 | ac_cv_opt_olimit_ok=no |
| 4906 | fi |
| 4907 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4908 | { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 4909 | 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] | 4910 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4911 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4912 | else |
| 4913 | ac_save_cc="$CC" |
| 4914 | CC="$CC -OPT:Olimit=0" |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4915 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4916 | /* confdefs.h. */ |
| 4917 | _ACEOF |
| 4918 | cat confdefs.h >>conftest.$ac_ext |
| 4919 | cat >>conftest.$ac_ext <<_ACEOF |
| 4920 | /* end confdefs.h. */ |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4921 | |
| 4922 | int |
| 4923 | main () |
| 4924 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4925 | int main() { return 0; } |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4926 | ; |
| 4927 | return 0; |
| 4928 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4929 | _ACEOF |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4930 | rm -f conftest.$ac_objext |
| 4931 | if { (ac_try="$ac_compile" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4932 | case "(($ac_try" in |
| 4933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4934 | *) ac_try_echo=$ac_try;; |
| 4935 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4937 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4938 | ac_status=$? |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4939 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4940 | rm -f conftest.er1 |
| 4941 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4943 | (exit $ac_status); } && { |
| 4944 | test -z "$ac_c_werror_flag" || |
| 4945 | test ! -s conftest.err |
| 4946 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4947 | ac_cv_opt_olimit_ok=yes |
| 4948 | else |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4949 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4950 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4951 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4952 | ac_cv_opt_olimit_ok=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4953 | fi |
| 4954 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4955 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4956 | CC="$ac_save_cc" |
| 4957 | fi |
| 4958 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4959 | { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 4960 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4961 | if test $ac_cv_opt_olimit_ok = yes; then |
| 4962 | case $ac_sys_system in |
| 4963 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 4964 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 4965 | # environment? |
| 4966 | Darwin*) |
| 4967 | ;; |
| 4968 | *) |
| 4969 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 4970 | ;; |
| 4971 | esac |
| 4972 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4973 | { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 4974 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4975 | if test "${ac_cv_olimit_ok+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4977 | else |
| 4978 | ac_save_cc="$CC" |
| 4979 | CC="$CC -Olimit 1500" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4980 | cat >conftest.$ac_ext <<_ACEOF |
| 4981 | /* confdefs.h. */ |
| 4982 | _ACEOF |
| 4983 | cat confdefs.h >>conftest.$ac_ext |
| 4984 | cat >>conftest.$ac_ext <<_ACEOF |
| 4985 | /* end confdefs.h. */ |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4986 | |
| 4987 | int |
| 4988 | main () |
| 4989 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4990 | int main() { return 0; } |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4991 | ; |
| 4992 | return 0; |
| 4993 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4994 | _ACEOF |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4995 | rm -f conftest.$ac_objext |
| 4996 | if { (ac_try="$ac_compile" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4997 | case "(($ac_try" in |
| 4998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4999 | *) ac_try_echo=$ac_try;; |
| 5000 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5002 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5003 | ac_status=$? |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5004 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5005 | rm -f conftest.er1 |
| 5006 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5008 | (exit $ac_status); } && { |
| 5009 | test -z "$ac_c_werror_flag" || |
| 5010 | test ! -s conftest.err |
| 5011 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5012 | ac_cv_olimit_ok=yes |
| 5013 | else |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5014 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5015 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5016 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5017 | ac_cv_olimit_ok=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5018 | fi |
| 5019 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5020 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5021 | CC="$ac_save_cc" |
| 5022 | fi |
| 5023 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5024 | { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 5025 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5026 | if test $ac_cv_olimit_ok = yes; then |
| 5027 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
| 5028 | fi |
| 5029 | fi |
| 5030 | |
| 5031 | # Check whether GCC supports PyArg_ParseTuple format |
| 5032 | if test "$GCC" = "yes" |
| 5033 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5034 | { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5 |
| 5035 | echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5036 | save_CFLAGS=$CFLAGS |
| 5037 | CFLAGS="$CFLAGS -Werror" |
| 5038 | cat >conftest.$ac_ext <<_ACEOF |
| 5039 | /* confdefs.h. */ |
| 5040 | _ACEOF |
| 5041 | cat confdefs.h >>conftest.$ac_ext |
| 5042 | cat >>conftest.$ac_ext <<_ACEOF |
| 5043 | /* end confdefs.h. */ |
| 5044 | |
| 5045 | void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); |
| 5046 | |
| 5047 | int |
| 5048 | main () |
| 5049 | { |
| 5050 | |
| 5051 | ; |
| 5052 | return 0; |
| 5053 | } |
| 5054 | _ACEOF |
| 5055 | rm -f conftest.$ac_objext |
| 5056 | if { (ac_try="$ac_compile" |
| 5057 | case "(($ac_try" in |
| 5058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5059 | *) ac_try_echo=$ac_try;; |
| 5060 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5061 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5062 | (eval "$ac_compile") 2>conftest.er1 |
| 5063 | ac_status=$? |
| 5064 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5065 | rm -f conftest.er1 |
| 5066 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5068 | (exit $ac_status); } && { |
| 5069 | test -z "$ac_c_werror_flag" || |
| 5070 | test ! -s conftest.err |
| 5071 | } && test -s conftest.$ac_objext; then |
| 5072 | |
| 5073 | cat >>confdefs.h <<\_ACEOF |
| 5074 | #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1 |
| 5075 | _ACEOF |
| 5076 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5077 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 5078 | echo "${ECHO_T}yes" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5079 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5080 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5081 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5082 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5083 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5084 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5085 | |
| 5086 | fi |
| 5087 | |
| 5088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5089 | CFLAGS=$save_CFLAGS |
| 5090 | fi |
| 5091 | |
| 5092 | # On some compilers, pthreads are available without further options |
| 5093 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 5094 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 5095 | # So we have to see first whether pthreads are available without |
| 5096 | # options before we can check whether -Kpthread improves anything. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5097 | { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 5098 | 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] | 5099 | if test "${ac_cv_pthread_is_default+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5101 | else |
| 5102 | if test "$cross_compiling" = yes; then |
| 5103 | ac_cv_pthread_is_default=no |
| 5104 | else |
| 5105 | cat >conftest.$ac_ext <<_ACEOF |
| 5106 | /* confdefs.h. */ |
| 5107 | _ACEOF |
| 5108 | cat confdefs.h >>conftest.$ac_ext |
| 5109 | cat >>conftest.$ac_ext <<_ACEOF |
| 5110 | /* end confdefs.h. */ |
| 5111 | |
| 5112 | #include <pthread.h> |
| 5113 | |
| 5114 | void* routine(void* p){return NULL;} |
| 5115 | |
| 5116 | int main(){ |
| 5117 | pthread_t p; |
| 5118 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5119 | return 1; |
| 5120 | (void)pthread_detach(p); |
| 5121 | return 0; |
| 5122 | } |
| 5123 | |
| 5124 | _ACEOF |
| 5125 | rm -f conftest$ac_exeext |
| 5126 | if { (ac_try="$ac_link" |
| 5127 | case "(($ac_try" in |
| 5128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5129 | *) ac_try_echo=$ac_try;; |
| 5130 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5132 | (eval "$ac_link") 2>&5 |
| 5133 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5135 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5136 | { (case "(($ac_try" in |
| 5137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5138 | *) ac_try_echo=$ac_try;; |
| 5139 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5141 | (eval "$ac_try") 2>&5 |
| 5142 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5144 | (exit $ac_status); }; }; then |
| 5145 | |
| 5146 | ac_cv_pthread_is_default=yes |
| 5147 | ac_cv_kthread=no |
| 5148 | ac_cv_pthread=no |
| 5149 | |
| 5150 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5151 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5152 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5153 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5154 | |
| 5155 | ( exit $ac_status ) |
| 5156 | ac_cv_pthread_is_default=no |
| 5157 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5158 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5159 | fi |
| 5160 | |
| 5161 | |
| 5162 | |
| 5163 | fi |
| 5164 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5165 | { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 5166 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5167 | |
| 5168 | |
| 5169 | if test $ac_cv_pthread_is_default = yes |
| 5170 | then |
| 5171 | ac_cv_kpthread=no |
| 5172 | else |
| 5173 | # -Kpthread, if available, provides the right #defines |
| 5174 | # and linker options to make pthread_create available |
| 5175 | # Some compilers won't report that they do not support -Kpthread, |
| 5176 | # so we need to run a program to see whether it really made the |
| 5177 | # function available. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5178 | { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 5179 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5180 | if test "${ac_cv_kpthread+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5182 | else |
| 5183 | ac_save_cc="$CC" |
| 5184 | CC="$CC -Kpthread" |
| 5185 | if test "$cross_compiling" = yes; then |
| 5186 | ac_cv_kpthread=no |
| 5187 | else |
| 5188 | cat >conftest.$ac_ext <<_ACEOF |
| 5189 | /* confdefs.h. */ |
| 5190 | _ACEOF |
| 5191 | cat confdefs.h >>conftest.$ac_ext |
| 5192 | cat >>conftest.$ac_ext <<_ACEOF |
| 5193 | /* end confdefs.h. */ |
| 5194 | |
| 5195 | #include <pthread.h> |
| 5196 | |
| 5197 | void* routine(void* p){return NULL;} |
| 5198 | |
| 5199 | int main(){ |
| 5200 | pthread_t p; |
| 5201 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5202 | return 1; |
| 5203 | (void)pthread_detach(p); |
| 5204 | return 0; |
| 5205 | } |
| 5206 | |
| 5207 | _ACEOF |
| 5208 | rm -f conftest$ac_exeext |
| 5209 | if { (ac_try="$ac_link" |
| 5210 | case "(($ac_try" in |
| 5211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5212 | *) ac_try_echo=$ac_try;; |
| 5213 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5215 | (eval "$ac_link") 2>&5 |
| 5216 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5218 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5219 | { (case "(($ac_try" in |
| 5220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5221 | *) ac_try_echo=$ac_try;; |
| 5222 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5224 | (eval "$ac_try") 2>&5 |
| 5225 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5227 | (exit $ac_status); }; }; then |
| 5228 | ac_cv_kpthread=yes |
| 5229 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5230 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5231 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5232 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5233 | |
| 5234 | ( exit $ac_status ) |
| 5235 | ac_cv_kpthread=no |
| 5236 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5237 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5238 | fi |
| 5239 | |
| 5240 | |
| 5241 | CC="$ac_save_cc" |
| 5242 | fi |
| 5243 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5244 | { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 5245 | echo "${ECHO_T}$ac_cv_kpthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5246 | fi |
| 5247 | |
| 5248 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no |
| 5249 | then |
| 5250 | # -Kthread, if available, provides the right #defines |
| 5251 | # and linker options to make pthread_create available |
| 5252 | # Some compilers won't report that they do not support -Kthread, |
| 5253 | # so we need to run a program to see whether it really made the |
| 5254 | # function available. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5255 | { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 5256 | echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5257 | if test "${ac_cv_kthread+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5259 | else |
| 5260 | ac_save_cc="$CC" |
| 5261 | CC="$CC -Kthread" |
| 5262 | if test "$cross_compiling" = yes; then |
| 5263 | ac_cv_kthread=no |
| 5264 | else |
| 5265 | cat >conftest.$ac_ext <<_ACEOF |
| 5266 | /* confdefs.h. */ |
| 5267 | _ACEOF |
| 5268 | cat confdefs.h >>conftest.$ac_ext |
| 5269 | cat >>conftest.$ac_ext <<_ACEOF |
| 5270 | /* end confdefs.h. */ |
| 5271 | |
| 5272 | #include <pthread.h> |
| 5273 | |
| 5274 | void* routine(void* p){return NULL;} |
| 5275 | |
| 5276 | int main(){ |
| 5277 | pthread_t p; |
| 5278 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5279 | return 1; |
| 5280 | (void)pthread_detach(p); |
| 5281 | return 0; |
| 5282 | } |
| 5283 | |
| 5284 | _ACEOF |
| 5285 | rm -f conftest$ac_exeext |
| 5286 | if { (ac_try="$ac_link" |
| 5287 | case "(($ac_try" in |
| 5288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5289 | *) ac_try_echo=$ac_try;; |
| 5290 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5292 | (eval "$ac_link") 2>&5 |
| 5293 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5295 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5296 | { (case "(($ac_try" in |
| 5297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5298 | *) ac_try_echo=$ac_try;; |
| 5299 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5301 | (eval "$ac_try") 2>&5 |
| 5302 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5304 | (exit $ac_status); }; }; then |
| 5305 | ac_cv_kthread=yes |
| 5306 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5307 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5308 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5309 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5310 | |
| 5311 | ( exit $ac_status ) |
| 5312 | ac_cv_kthread=no |
| 5313 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5314 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5315 | fi |
| 5316 | |
| 5317 | |
| 5318 | CC="$ac_save_cc" |
| 5319 | fi |
| 5320 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5321 | { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 5322 | echo "${ECHO_T}$ac_cv_kthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5323 | fi |
| 5324 | |
| 5325 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no |
| 5326 | then |
| 5327 | # -pthread, if available, provides the right #defines |
| 5328 | # and linker options to make pthread_create available |
| 5329 | # Some compilers won't report that they do not support -pthread, |
| 5330 | # so we need to run a program to see whether it really made the |
| 5331 | # function available. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5332 | { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 5333 | echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5334 | if test "${ac_cv_thread+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5335 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5336 | else |
| 5337 | ac_save_cc="$CC" |
| 5338 | CC="$CC -pthread" |
| 5339 | if test "$cross_compiling" = yes; then |
| 5340 | ac_cv_pthread=no |
| 5341 | else |
| 5342 | cat >conftest.$ac_ext <<_ACEOF |
| 5343 | /* confdefs.h. */ |
| 5344 | _ACEOF |
| 5345 | cat confdefs.h >>conftest.$ac_ext |
| 5346 | cat >>conftest.$ac_ext <<_ACEOF |
| 5347 | /* end confdefs.h. */ |
| 5348 | |
| 5349 | #include <pthread.h> |
| 5350 | |
| 5351 | void* routine(void* p){return NULL;} |
| 5352 | |
| 5353 | int main(){ |
| 5354 | pthread_t p; |
| 5355 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5356 | return 1; |
| 5357 | (void)pthread_detach(p); |
| 5358 | return 0; |
| 5359 | } |
| 5360 | |
| 5361 | _ACEOF |
| 5362 | rm -f conftest$ac_exeext |
| 5363 | if { (ac_try="$ac_link" |
| 5364 | case "(($ac_try" in |
| 5365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5366 | *) ac_try_echo=$ac_try;; |
| 5367 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5369 | (eval "$ac_link") 2>&5 |
| 5370 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5372 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5373 | { (case "(($ac_try" in |
| 5374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5375 | *) ac_try_echo=$ac_try;; |
| 5376 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5378 | (eval "$ac_try") 2>&5 |
| 5379 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5381 | (exit $ac_status); }; }; then |
| 5382 | ac_cv_pthread=yes |
| 5383 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5384 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5385 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5386 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5387 | |
| 5388 | ( exit $ac_status ) |
| 5389 | ac_cv_pthread=no |
| 5390 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5391 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5392 | fi |
| 5393 | |
| 5394 | |
| 5395 | CC="$ac_save_cc" |
| 5396 | fi |
| 5397 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5398 | { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 5399 | echo "${ECHO_T}$ac_cv_pthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5400 | fi |
| 5401 | |
| 5402 | # If we have set a CC compiler flag for thread support then |
| 5403 | # check if it works for CXX, too. |
| 5404 | ac_cv_cxx_thread=no |
| 5405 | if test ! -z "$CXX" |
| 5406 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5407 | { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| 5408 | 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] | 5409 | ac_save_cxx="$CXX" |
| 5410 | |
| 5411 | if test "$ac_cv_kpthread" = "yes" |
| 5412 | then |
| 5413 | CXX="$CXX -Kpthread" |
| 5414 | ac_cv_cxx_thread=yes |
| 5415 | elif test "$ac_cv_kthread" = "yes" |
| 5416 | then |
| 5417 | CXX="$CXX -Kthread" |
| 5418 | ac_cv_cxx_thread=yes |
| 5419 | elif test "$ac_cv_pthread" = "yes" |
| 5420 | then |
| 5421 | CXX="$CXX -pthread" |
| 5422 | ac_cv_cxx_thread=yes |
| 5423 | fi |
| 5424 | |
| 5425 | if test $ac_cv_cxx_thread = yes |
| 5426 | then |
| 5427 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 5428 | $CXX -c conftest.$ac_ext 2>&5 |
| 5429 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 5430 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 5431 | then |
| 5432 | ac_cv_cxx_thread=yes |
| 5433 | else |
| 5434 | ac_cv_cxx_thread=no |
| 5435 | fi |
| 5436 | rm -fr conftest* |
| 5437 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5438 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| 5439 | echo "${ECHO_T}$ac_cv_cxx_thread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5440 | fi |
| 5441 | CXX="$ac_save_cxx" |
| 5442 | |
| 5443 | |
| 5444 | # checks for header files |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5445 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5446 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5447 | if test "${ac_cv_header_stdc+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5448 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5449 | else |
| 5450 | cat >conftest.$ac_ext <<_ACEOF |
| 5451 | /* confdefs.h. */ |
| 5452 | _ACEOF |
| 5453 | cat confdefs.h >>conftest.$ac_ext |
| 5454 | cat >>conftest.$ac_ext <<_ACEOF |
| 5455 | /* end confdefs.h. */ |
| 5456 | #include <stdlib.h> |
| 5457 | #include <stdarg.h> |
| 5458 | #include <string.h> |
| 5459 | #include <float.h> |
| 5460 | |
| 5461 | int |
| 5462 | main () |
| 5463 | { |
| 5464 | |
| 5465 | ; |
| 5466 | return 0; |
| 5467 | } |
| 5468 | _ACEOF |
| 5469 | rm -f conftest.$ac_objext |
| 5470 | if { (ac_try="$ac_compile" |
| 5471 | case "(($ac_try" in |
| 5472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5473 | *) ac_try_echo=$ac_try;; |
| 5474 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5476 | (eval "$ac_compile") 2>conftest.er1 |
| 5477 | ac_status=$? |
| 5478 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5479 | rm -f conftest.er1 |
| 5480 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5482 | (exit $ac_status); } && { |
| 5483 | test -z "$ac_c_werror_flag" || |
| 5484 | test ! -s conftest.err |
| 5485 | } && test -s conftest.$ac_objext; then |
| 5486 | ac_cv_header_stdc=yes |
| 5487 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5488 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5489 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5490 | |
| 5491 | ac_cv_header_stdc=no |
| 5492 | fi |
| 5493 | |
| 5494 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5495 | |
| 5496 | if test $ac_cv_header_stdc = yes; then |
| 5497 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5498 | cat >conftest.$ac_ext <<_ACEOF |
| 5499 | /* confdefs.h. */ |
| 5500 | _ACEOF |
| 5501 | cat confdefs.h >>conftest.$ac_ext |
| 5502 | cat >>conftest.$ac_ext <<_ACEOF |
| 5503 | /* end confdefs.h. */ |
| 5504 | #include <string.h> |
| 5505 | |
| 5506 | _ACEOF |
| 5507 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5508 | $EGREP "memchr" >/dev/null 2>&1; then |
| 5509 | : |
| 5510 | else |
| 5511 | ac_cv_header_stdc=no |
| 5512 | fi |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 5513 | rm -f -r conftest* |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5514 | |
| 5515 | fi |
| 5516 | |
| 5517 | if test $ac_cv_header_stdc = yes; then |
| 5518 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5519 | cat >conftest.$ac_ext <<_ACEOF |
| 5520 | /* confdefs.h. */ |
| 5521 | _ACEOF |
| 5522 | cat confdefs.h >>conftest.$ac_ext |
| 5523 | cat >>conftest.$ac_ext <<_ACEOF |
| 5524 | /* end confdefs.h. */ |
| 5525 | #include <stdlib.h> |
| 5526 | |
| 5527 | _ACEOF |
| 5528 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5529 | $EGREP "free" >/dev/null 2>&1; then |
| 5530 | : |
| 5531 | else |
| 5532 | ac_cv_header_stdc=no |
| 5533 | fi |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 5534 | rm -f -r conftest* |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5535 | |
| 5536 | fi |
| 5537 | |
| 5538 | if test $ac_cv_header_stdc = yes; then |
| 5539 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5540 | if test "$cross_compiling" = yes; then |
| 5541 | : |
| 5542 | else |
| 5543 | cat >conftest.$ac_ext <<_ACEOF |
| 5544 | /* confdefs.h. */ |
| 5545 | _ACEOF |
| 5546 | cat confdefs.h >>conftest.$ac_ext |
| 5547 | cat >>conftest.$ac_ext <<_ACEOF |
| 5548 | /* end confdefs.h. */ |
| 5549 | #include <ctype.h> |
| 5550 | #include <stdlib.h> |
| 5551 | #if ((' ' & 0x0FF) == 0x020) |
| 5552 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5553 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5554 | #else |
| 5555 | # define ISLOWER(c) \ |
| 5556 | (('a' <= (c) && (c) <= 'i') \ |
| 5557 | || ('j' <= (c) && (c) <= 'r') \ |
| 5558 | || ('s' <= (c) && (c) <= 'z')) |
| 5559 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5560 | #endif |
| 5561 | |
| 5562 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5563 | int |
| 5564 | main () |
| 5565 | { |
| 5566 | int i; |
| 5567 | for (i = 0; i < 256; i++) |
| 5568 | if (XOR (islower (i), ISLOWER (i)) |
| 5569 | || toupper (i) != TOUPPER (i)) |
| 5570 | return 2; |
| 5571 | return 0; |
| 5572 | } |
| 5573 | _ACEOF |
| 5574 | rm -f conftest$ac_exeext |
| 5575 | if { (ac_try="$ac_link" |
| 5576 | case "(($ac_try" in |
| 5577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5578 | *) ac_try_echo=$ac_try;; |
| 5579 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5580 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5581 | (eval "$ac_link") 2>&5 |
| 5582 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5584 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5585 | { (case "(($ac_try" in |
| 5586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5587 | *) ac_try_echo=$ac_try;; |
| 5588 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5590 | (eval "$ac_try") 2>&5 |
| 5591 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5593 | (exit $ac_status); }; }; then |
| 5594 | : |
| 5595 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5596 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5597 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5598 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5599 | |
| 5600 | ( exit $ac_status ) |
| 5601 | ac_cv_header_stdc=no |
| 5602 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5603 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5604 | fi |
| 5605 | |
| 5606 | |
| 5607 | fi |
| 5608 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5609 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 5610 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5611 | if test $ac_cv_header_stdc = yes; then |
| 5612 | |
| 5613 | cat >>confdefs.h <<\_ACEOF |
| 5614 | #define STDC_HEADERS 1 |
| 5615 | _ACEOF |
| 5616 | |
| 5617 | fi |
| 5618 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5619 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5620 | |
| 5621 | |
| 5622 | |
| 5623 | |
| 5624 | |
| 5625 | |
| 5626 | |
| 5627 | |
| 5628 | |
| 5629 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 5630 | inttypes.h stdint.h unistd.h |
| 5631 | do |
| 5632 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5633 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5634 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5635 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 5636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5637 | else |
| 5638 | cat >conftest.$ac_ext <<_ACEOF |
| 5639 | /* confdefs.h. */ |
| 5640 | _ACEOF |
| 5641 | cat confdefs.h >>conftest.$ac_ext |
| 5642 | cat >>conftest.$ac_ext <<_ACEOF |
| 5643 | /* end confdefs.h. */ |
| 5644 | $ac_includes_default |
| 5645 | |
| 5646 | #include <$ac_header> |
| 5647 | _ACEOF |
| 5648 | rm -f conftest.$ac_objext |
| 5649 | if { (ac_try="$ac_compile" |
| 5650 | case "(($ac_try" in |
| 5651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5652 | *) ac_try_echo=$ac_try;; |
| 5653 | esac |
| 5654 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5655 | (eval "$ac_compile") 2>conftest.er1 |
| 5656 | ac_status=$? |
| 5657 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5658 | rm -f conftest.er1 |
| 5659 | cat conftest.err >&5 |
| 5660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5661 | (exit $ac_status); } && { |
| 5662 | test -z "$ac_c_werror_flag" || |
| 5663 | test ! -s conftest.err |
| 5664 | } && test -s conftest.$ac_objext; then |
| 5665 | eval "$as_ac_Header=yes" |
| 5666 | else |
| 5667 | echo "$as_me: failed program was:" >&5 |
| 5668 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5669 | |
| 5670 | eval "$as_ac_Header=no" |
| 5671 | fi |
| 5672 | |
| 5673 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5674 | fi |
| 5675 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5676 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5677 | echo "${ECHO_T}$ac_res" >&6; } |
| 5678 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5679 | cat >>confdefs.h <<_ACEOF |
| 5680 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5681 | _ACEOF |
| 5682 | |
| 5683 | fi |
| 5684 | |
| 5685 | done |
| 5686 | |
| 5687 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5688 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5689 | |
| 5690 | |
| 5691 | |
| 5692 | |
| 5693 | |
| 5694 | |
| 5695 | |
| 5696 | |
| 5697 | |
| 5698 | |
| 5699 | |
| 5700 | |
| 5701 | |
| 5702 | |
| 5703 | |
| 5704 | |
| 5705 | |
| 5706 | |
| 5707 | |
| 5708 | |
| 5709 | |
| 5710 | |
| 5711 | |
| 5712 | |
| 5713 | |
| 5714 | |
| 5715 | |
| 5716 | |
| 5717 | |
| 5718 | |
| 5719 | |
| 5720 | |
| 5721 | |
| 5722 | |
| 5723 | |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 5724 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 5725 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 5726 | |
Martin v. Löwis | 5f5d99c | 2006-05-16 07:05:37 +0000 | [diff] [blame] | 5727 | |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5728 | |
| 5729 | |
| 5730 | |
| 5731 | |
| 5732 | |
| 5733 | |
| 5734 | |
| 5735 | |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 5736 | |
Christian Heimes | fb2d25a | 2008-01-07 16:12:44 +0000 | [diff] [blame] | 5737 | |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 5738 | |
| 5739 | |
Neal Norwitz | 9fdfaaf | 2008-03-28 05:34:59 +0000 | [diff] [blame] | 5740 | |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 5741 | |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5742 | |
| 5743 | |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5744 | for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ |
| 5745 | fcntl.h grp.h \ |
Neal Norwitz | 9fdfaaf | 2008-03-28 05:34:59 +0000 | [diff] [blame] | 5746 | 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] | 5747 | 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] | 5748 | unistd.h utime.h \ |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 5749 | sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ |
| 5750 | sys/lock.h sys/mkdev.h sys/modem.h \ |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5751 | 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] | 5752 | sys/termio.h sys/time.h \ |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5753 | 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] | 5754 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5755 | bluetooth/bluetooth.h linux/tipc.h spawn.h util.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5756 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5757 | 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] | 5758 | 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] | 5759 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5760 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5761 | 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] | 5762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5763 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5764 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5765 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5766 | echo "${ECHO_T}$ac_res" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5767 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5768 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5769 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5770 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5771 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5772 | /* confdefs.h. */ |
| 5773 | _ACEOF |
| 5774 | cat confdefs.h >>conftest.$ac_ext |
| 5775 | cat >>conftest.$ac_ext <<_ACEOF |
| 5776 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5777 | $ac_includes_default |
| 5778 | #include <$ac_header> |
| 5779 | _ACEOF |
| 5780 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5781 | if { (ac_try="$ac_compile" |
| 5782 | case "(($ac_try" in |
| 5783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5784 | *) ac_try_echo=$ac_try;; |
| 5785 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5787 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5788 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5789 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5790 | rm -f conftest.er1 |
| 5791 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5793 | (exit $ac_status); } && { |
| 5794 | test -z "$ac_c_werror_flag" || |
| 5795 | test ! -s conftest.err |
| 5796 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5797 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5798 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5799 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5800 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5801 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5802 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5803 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5804 | |
| 5805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5806 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5807 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5808 | |
| 5809 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5810 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5811 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5812 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5813 | /* confdefs.h. */ |
| 5814 | _ACEOF |
| 5815 | cat confdefs.h >>conftest.$ac_ext |
| 5816 | cat >>conftest.$ac_ext <<_ACEOF |
| 5817 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5818 | #include <$ac_header> |
| 5819 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5820 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5821 | case "(($ac_try" in |
| 5822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5823 | *) ac_try_echo=$ac_try;; |
| 5824 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5826 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5827 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5828 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5829 | rm -f conftest.er1 |
| 5830 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5832 | (exit $ac_status); } >/dev/null && { |
| 5833 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5834 | test ! -s conftest.err |
| 5835 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5836 | ac_header_preproc=yes |
| 5837 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5838 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5839 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5840 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5841 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5842 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5843 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5844 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5845 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5846 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5847 | |
| 5848 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5849 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5850 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5851 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5852 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5853 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 5854 | 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] | 5855 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5856 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5857 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5858 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5859 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5860 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5861 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5862 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 5863 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 5864 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 5865 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5866 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5867 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5868 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 5869 | 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] | 5870 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 5871 | ## -------------------------------------- ## |
| 5872 | ## Report this to http://bugs.python.org/ ## |
| 5873 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5874 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5875 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5876 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5877 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5878 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5879 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5880 | 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] | 5881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5882 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5883 | eval "$as_ac_Header=\$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5884 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5885 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5886 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5887 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5888 | |
| 5889 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5890 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5891 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5892 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5893 | _ACEOF |
| 5894 | |
| 5895 | fi |
| 5896 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5897 | done |
| 5898 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5899 | |
| 5900 | |
| 5901 | |
| 5902 | |
| 5903 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5904 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5905 | 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] | 5906 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 5907 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 5908 | 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] | 5909 | 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] | 5910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5911 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5912 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5913 | /* confdefs.h. */ |
| 5914 | _ACEOF |
| 5915 | cat confdefs.h >>conftest.$ac_ext |
| 5916 | cat >>conftest.$ac_ext <<_ACEOF |
| 5917 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5918 | #include <sys/types.h> |
| 5919 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5920 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5921 | int |
| 5922 | main () |
| 5923 | { |
| 5924 | if ((DIR *) 0) |
| 5925 | return 0; |
| 5926 | ; |
| 5927 | return 0; |
| 5928 | } |
| 5929 | _ACEOF |
| 5930 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5931 | if { (ac_try="$ac_compile" |
| 5932 | case "(($ac_try" in |
| 5933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5934 | *) ac_try_echo=$ac_try;; |
| 5935 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5937 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5938 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5939 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5940 | rm -f conftest.er1 |
| 5941 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5943 | (exit $ac_status); } && { |
| 5944 | test -z "$ac_c_werror_flag" || |
| 5945 | test ! -s conftest.err |
| 5946 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5947 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5948 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5949 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5950 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5951 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5952 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5953 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5954 | |
| 5955 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5956 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5957 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5958 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5959 | echo "${ECHO_T}$ac_res" >&6; } |
| 5960 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5961 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5962 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5963 | _ACEOF |
| 5964 | |
| 5965 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5966 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5967 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5968 | done |
| 5969 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 5970 | if test $ac_header_dirent = dirent.h; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5971 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 5972 | 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] | 5973 | if test "${ac_cv_search_opendir+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5974 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5975 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5976 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5977 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5978 | /* confdefs.h. */ |
| 5979 | _ACEOF |
| 5980 | cat confdefs.h >>conftest.$ac_ext |
| 5981 | cat >>conftest.$ac_ext <<_ACEOF |
| 5982 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5983 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5984 | /* Override any GCC internal prototype to avoid an error. |
| 5985 | Use char because int might match the return type of a GCC |
| 5986 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5987 | #ifdef __cplusplus |
| 5988 | extern "C" |
| 5989 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5990 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5991 | int |
| 5992 | main () |
| 5993 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5994 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5995 | ; |
| 5996 | return 0; |
| 5997 | } |
| 5998 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5999 | for ac_lib in '' dir; do |
| 6000 | if test -z "$ac_lib"; then |
| 6001 | ac_res="none required" |
| 6002 | else |
| 6003 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6004 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6005 | fi |
| 6006 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6007 | if { (ac_try="$ac_link" |
| 6008 | case "(($ac_try" in |
| 6009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6010 | *) ac_try_echo=$ac_try;; |
| 6011 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6013 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6014 | ac_status=$? |
| 6015 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6016 | rm -f conftest.er1 |
| 6017 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6019 | (exit $ac_status); } && { |
| 6020 | test -z "$ac_c_werror_flag" || |
| 6021 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6022 | } && test -s conftest$ac_exeext && |
| 6023 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6024 | ac_cv_search_opendir=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6025 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6026 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6027 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6028 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6029 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6030 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6031 | |
| 6032 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 6033 | conftest$ac_exeext |
| 6034 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6035 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6036 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6037 | done |
| 6038 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6039 | : |
| 6040 | else |
| 6041 | ac_cv_search_opendir=no |
| 6042 | fi |
| 6043 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6044 | LIBS=$ac_func_search_save_LIBS |
| 6045 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6046 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 6047 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6048 | ac_res=$ac_cv_search_opendir |
| 6049 | if test "$ac_res" != no; then |
| 6050 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6051 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6052 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6053 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6054 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6055 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 6056 | 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] | 6057 | if test "${ac_cv_search_opendir+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6059 | else |
| 6060 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6061 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6062 | /* confdefs.h. */ |
| 6063 | _ACEOF |
| 6064 | cat confdefs.h >>conftest.$ac_ext |
| 6065 | cat >>conftest.$ac_ext <<_ACEOF |
| 6066 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6067 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6068 | /* Override any GCC internal prototype to avoid an error. |
| 6069 | Use char because int might match the return type of a GCC |
| 6070 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6071 | #ifdef __cplusplus |
| 6072 | extern "C" |
| 6073 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6074 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6075 | int |
| 6076 | main () |
| 6077 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6078 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6079 | ; |
| 6080 | return 0; |
| 6081 | } |
| 6082 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6083 | for ac_lib in '' x; do |
| 6084 | if test -z "$ac_lib"; then |
| 6085 | ac_res="none required" |
| 6086 | else |
| 6087 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6088 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6089 | fi |
| 6090 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6091 | if { (ac_try="$ac_link" |
| 6092 | case "(($ac_try" in |
| 6093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6094 | *) ac_try_echo=$ac_try;; |
| 6095 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6097 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6098 | ac_status=$? |
| 6099 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6100 | rm -f conftest.er1 |
| 6101 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6103 | (exit $ac_status); } && { |
| 6104 | test -z "$ac_c_werror_flag" || |
| 6105 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6106 | } && test -s conftest$ac_exeext && |
| 6107 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6108 | ac_cv_search_opendir=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6109 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6110 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6111 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6112 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6113 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6114 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6115 | |
| 6116 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 6117 | conftest$ac_exeext |
| 6118 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6119 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6120 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6121 | done |
| 6122 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6123 | : |
| 6124 | else |
| 6125 | ac_cv_search_opendir=no |
| 6126 | fi |
| 6127 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6128 | LIBS=$ac_func_search_save_LIBS |
| 6129 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6130 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 6131 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6132 | ac_res=$ac_cv_search_opendir |
| 6133 | if test "$ac_res" != no; then |
| 6134 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6135 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6136 | fi |
| 6137 | |
| 6138 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6139 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6140 | { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 6141 | 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] | 6142 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6144 | else |
| 6145 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6146 | /* confdefs.h. */ |
| 6147 | _ACEOF |
| 6148 | cat confdefs.h >>conftest.$ac_ext |
| 6149 | cat >>conftest.$ac_ext <<_ACEOF |
| 6150 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6151 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6152 | int |
| 6153 | main () |
| 6154 | { |
| 6155 | return makedev(0, 0); |
| 6156 | ; |
| 6157 | return 0; |
| 6158 | } |
| 6159 | _ACEOF |
| 6160 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6161 | if { (ac_try="$ac_link" |
| 6162 | case "(($ac_try" in |
| 6163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6164 | *) ac_try_echo=$ac_try;; |
| 6165 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6166 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6167 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6168 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6169 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6170 | rm -f conftest.er1 |
| 6171 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6173 | (exit $ac_status); } && { |
| 6174 | test -z "$ac_c_werror_flag" || |
| 6175 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6176 | } && test -s conftest$ac_exeext && |
| 6177 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6178 | ac_cv_header_sys_types_h_makedev=yes |
| 6179 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6180 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6181 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6182 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6183 | ac_cv_header_sys_types_h_makedev=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6184 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6185 | |
| 6186 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6187 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6188 | |
| 6189 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6190 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 6191 | 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] | 6192 | |
| 6193 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 6194 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6195 | { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 6196 | 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] | 6197 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6199 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6200 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 6201 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6202 | else |
| 6203 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6204 | { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 6205 | 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] | 6206 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6207 | /* confdefs.h. */ |
| 6208 | _ACEOF |
| 6209 | cat confdefs.h >>conftest.$ac_ext |
| 6210 | cat >>conftest.$ac_ext <<_ACEOF |
| 6211 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6212 | $ac_includes_default |
| 6213 | #include <sys/mkdev.h> |
| 6214 | _ACEOF |
| 6215 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6216 | if { (ac_try="$ac_compile" |
| 6217 | case "(($ac_try" in |
| 6218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6219 | *) ac_try_echo=$ac_try;; |
| 6220 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6222 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6223 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6224 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6225 | rm -f conftest.er1 |
| 6226 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6228 | (exit $ac_status); } && { |
| 6229 | test -z "$ac_c_werror_flag" || |
| 6230 | test ! -s conftest.err |
| 6231 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6232 | ac_header_compiler=yes |
| 6233 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6234 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6235 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6236 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6237 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6238 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6239 | |
| 6240 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6241 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6242 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6243 | |
| 6244 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6245 | { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 6246 | 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] | 6247 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6248 | /* confdefs.h. */ |
| 6249 | _ACEOF |
| 6250 | cat confdefs.h >>conftest.$ac_ext |
| 6251 | cat >>conftest.$ac_ext <<_ACEOF |
| 6252 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6253 | #include <sys/mkdev.h> |
| 6254 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6255 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6256 | case "(($ac_try" in |
| 6257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6258 | *) ac_try_echo=$ac_try;; |
| 6259 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6261 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6262 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6263 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6264 | rm -f conftest.er1 |
| 6265 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6267 | (exit $ac_status); } >/dev/null && { |
| 6268 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6269 | test ! -s conftest.err |
| 6270 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6271 | ac_header_preproc=yes |
| 6272 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6273 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6274 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6275 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6276 | ac_header_preproc=no |
| 6277 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6278 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6279 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6280 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6281 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6282 | |
| 6283 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6284 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6285 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6286 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6287 | echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6288 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 |
| 6289 | 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] | 6290 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6291 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6292 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6293 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 6294 | echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
| 6295 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 6296 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 6297 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 |
| 6298 | echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} |
| 6299 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6300 | echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6301 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 6302 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} |
| 6303 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 |
| 6304 | 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] | 6305 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6306 | ## -------------------------------------- ## |
| 6307 | ## Report this to http://bugs.python.org/ ## |
| 6308 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6309 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6310 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6311 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6312 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6313 | { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 6314 | 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] | 6315 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6316 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6317 | else |
| 6318 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 6319 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6320 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 6321 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6322 | |
| 6323 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6324 | if test $ac_cv_header_sys_mkdev_h = yes; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6325 | |
| 6326 | cat >>confdefs.h <<\_ACEOF |
| 6327 | #define MAJOR_IN_MKDEV 1 |
| 6328 | _ACEOF |
| 6329 | |
| 6330 | fi |
| 6331 | |
| 6332 | |
| 6333 | |
| 6334 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 6335 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6336 | { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6337 | 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] | 6338 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6339 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6340 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6341 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6342 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6343 | else |
| 6344 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6345 | { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 6346 | 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] | 6347 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6348 | /* confdefs.h. */ |
| 6349 | _ACEOF |
| 6350 | cat confdefs.h >>conftest.$ac_ext |
| 6351 | cat >>conftest.$ac_ext <<_ACEOF |
| 6352 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6353 | $ac_includes_default |
| 6354 | #include <sys/sysmacros.h> |
| 6355 | _ACEOF |
| 6356 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6357 | if { (ac_try="$ac_compile" |
| 6358 | case "(($ac_try" in |
| 6359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6360 | *) ac_try_echo=$ac_try;; |
| 6361 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6363 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6364 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6365 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6366 | rm -f conftest.er1 |
| 6367 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6369 | (exit $ac_status); } && { |
| 6370 | test -z "$ac_c_werror_flag" || |
| 6371 | test ! -s conftest.err |
| 6372 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6373 | ac_header_compiler=yes |
| 6374 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6375 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6376 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6377 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6378 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6379 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6380 | |
| 6381 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6382 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6383 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6384 | |
| 6385 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6386 | { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 6387 | 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] | 6388 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6389 | /* confdefs.h. */ |
| 6390 | _ACEOF |
| 6391 | cat confdefs.h >>conftest.$ac_ext |
| 6392 | cat >>conftest.$ac_ext <<_ACEOF |
| 6393 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6394 | #include <sys/sysmacros.h> |
| 6395 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6396 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6397 | case "(($ac_try" in |
| 6398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6399 | *) ac_try_echo=$ac_try;; |
| 6400 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6402 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6403 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6404 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6405 | rm -f conftest.er1 |
| 6406 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6408 | (exit $ac_status); } >/dev/null && { |
| 6409 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6410 | test ! -s conftest.err |
| 6411 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6412 | ac_header_preproc=yes |
| 6413 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6414 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6415 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6416 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6417 | ac_header_preproc=no |
| 6418 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6419 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6420 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6421 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6422 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6423 | |
| 6424 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6425 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6426 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6427 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6428 | echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6429 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 |
| 6430 | 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] | 6431 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6432 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6433 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6434 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 6435 | echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
| 6436 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 6437 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 6438 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 |
| 6439 | echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} |
| 6440 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6441 | echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6442 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 6443 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} |
| 6444 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 |
| 6445 | 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] | 6446 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6447 | ## -------------------------------------- ## |
| 6448 | ## Report this to http://bugs.python.org/ ## |
| 6449 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6450 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6451 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6452 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6453 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6454 | { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6455 | 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] | 6456 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6458 | else |
| 6459 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 6460 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6461 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6462 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6463 | |
| 6464 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6465 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6466 | |
| 6467 | cat >>confdefs.h <<\_ACEOF |
| 6468 | #define MAJOR_IN_SYSMACROS 1 |
| 6469 | _ACEOF |
| 6470 | |
| 6471 | fi |
| 6472 | |
| 6473 | |
| 6474 | fi |
| 6475 | fi |
| 6476 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6477 | |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6478 | # On Solaris, term.h requires curses.h |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6479 | |
| 6480 | for ac_header in term.h |
| 6481 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6482 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6483 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6484 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6485 | 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] | 6486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6487 | else |
| 6488 | cat >conftest.$ac_ext <<_ACEOF |
| 6489 | /* confdefs.h. */ |
| 6490 | _ACEOF |
| 6491 | cat confdefs.h >>conftest.$ac_ext |
| 6492 | cat >>conftest.$ac_ext <<_ACEOF |
| 6493 | /* end confdefs.h. */ |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6494 | |
Martin v. Löwis | 5d52e78 | 2004-09-18 10:07:03 +0000 | [diff] [blame] | 6495 | #ifdef HAVE_CURSES_H |
| 6496 | #include <curses.h> |
| 6497 | #endif |
| 6498 | |
| 6499 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6500 | #include <$ac_header> |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6501 | _ACEOF |
| 6502 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6503 | if { (ac_try="$ac_compile" |
| 6504 | case "(($ac_try" in |
| 6505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6506 | *) ac_try_echo=$ac_try;; |
| 6507 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6509 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6510 | ac_status=$? |
| 6511 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6512 | rm -f conftest.er1 |
| 6513 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6515 | (exit $ac_status); } && { |
| 6516 | test -z "$ac_c_werror_flag" || |
| 6517 | test ! -s conftest.err |
| 6518 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6519 | eval "$as_ac_Header=yes" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6520 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6521 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6522 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6523 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6524 | eval "$as_ac_Header=no" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6525 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6526 | |
| 6527 | 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] | 6528 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6529 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6530 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6531 | echo "${ECHO_T}$ac_res" >&6; } |
| 6532 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6533 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6534 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6535 | _ACEOF |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6536 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6537 | fi |
| 6538 | |
| 6539 | done |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6540 | |
| 6541 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6542 | # On Linux, netlink.h requires asm/types.h |
| 6543 | |
| 6544 | for ac_header in linux/netlink.h |
| 6545 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6546 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6547 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6548 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6549 | 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] | 6550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6551 | else |
| 6552 | cat >conftest.$ac_ext <<_ACEOF |
| 6553 | /* confdefs.h. */ |
| 6554 | _ACEOF |
| 6555 | cat confdefs.h >>conftest.$ac_ext |
| 6556 | cat >>conftest.$ac_ext <<_ACEOF |
| 6557 | /* end confdefs.h. */ |
| 6558 | |
| 6559 | #ifdef HAVE_ASM_TYPES_H |
| 6560 | #include <asm/types.h> |
| 6561 | #endif |
| 6562 | #ifdef HAVE_SYS_SOCKET_H |
| 6563 | #include <sys/socket.h> |
| 6564 | #endif |
| 6565 | |
| 6566 | |
| 6567 | #include <$ac_header> |
| 6568 | _ACEOF |
| 6569 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6570 | if { (ac_try="$ac_compile" |
| 6571 | case "(($ac_try" in |
| 6572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6573 | *) ac_try_echo=$ac_try;; |
| 6574 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6575 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6576 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6577 | ac_status=$? |
| 6578 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6579 | rm -f conftest.er1 |
| 6580 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6582 | (exit $ac_status); } && { |
| 6583 | test -z "$ac_c_werror_flag" || |
| 6584 | test ! -s conftest.err |
| 6585 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6586 | eval "$as_ac_Header=yes" |
| 6587 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6588 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6589 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6590 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6591 | eval "$as_ac_Header=no" |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6592 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6593 | |
| 6594 | 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] | 6595 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6596 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6597 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6598 | echo "${ECHO_T}$ac_res" >&6; } |
| 6599 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6600 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6601 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6602 | _ACEOF |
| 6603 | |
| 6604 | fi |
| 6605 | |
| 6606 | done |
| 6607 | |
| 6608 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6609 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6610 | was_it_defined=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6611 | { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 6612 | 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] | 6613 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6614 | /* confdefs.h. */ |
| 6615 | _ACEOF |
| 6616 | cat confdefs.h >>conftest.$ac_ext |
| 6617 | cat >>conftest.$ac_ext <<_ACEOF |
| 6618 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6619 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6620 | |
| 6621 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6622 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6623 | $EGREP "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6624 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6625 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6626 | |
| 6627 | |
| 6628 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6629 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6630 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6631 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6632 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6633 | fi |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 6634 | rm -f -r conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6635 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6636 | { echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 6637 | echo "${ECHO_T}$was_it_defined" >&6; } |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6638 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6639 | # Check whether using makedev requires defining _OSF_SOURCE |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6640 | { echo "$as_me:$LINENO: checking for makedev" >&5 |
| 6641 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6642 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6643 | /* confdefs.h. */ |
| 6644 | _ACEOF |
| 6645 | cat confdefs.h >>conftest.$ac_ext |
| 6646 | cat >>conftest.$ac_ext <<_ACEOF |
| 6647 | /* end confdefs.h. */ |
Jesus Cea | 616de77 | 2010-04-28 10:32:30 +0000 | [diff] [blame] | 6648 | |
| 6649 | #if defined(MAJOR_IN_MKDEV) |
| 6650 | #include <sys/mkdev.h> |
| 6651 | #elif defined(MAJOR_IN_SYSMACROS) |
| 6652 | #include <sys/sysmacros.h> |
| 6653 | #else |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6654 | #include <sys/types.h> |
Jesus Cea | 616de77 | 2010-04-28 10:32:30 +0000 | [diff] [blame] | 6655 | #endif |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6656 | int |
| 6657 | main () |
| 6658 | { |
| 6659 | makedev(0, 0) |
| 6660 | ; |
| 6661 | return 0; |
| 6662 | } |
| 6663 | _ACEOF |
| 6664 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6665 | if { (ac_try="$ac_link" |
| 6666 | case "(($ac_try" in |
| 6667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6668 | *) ac_try_echo=$ac_try;; |
| 6669 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6671 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6672 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6673 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6674 | rm -f conftest.er1 |
| 6675 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6677 | (exit $ac_status); } && { |
| 6678 | test -z "$ac_c_werror_flag" || |
| 6679 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6680 | } && test -s conftest$ac_exeext && |
| 6681 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6682 | ac_cv_has_makedev=yes |
| 6683 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6684 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6685 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6686 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6687 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6688 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6689 | |
| 6690 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6691 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6692 | if test "$ac_cv_has_makedev" = "no"; then |
| 6693 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 6694 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6695 | /* confdefs.h. */ |
| 6696 | _ACEOF |
| 6697 | cat confdefs.h >>conftest.$ac_ext |
| 6698 | cat >>conftest.$ac_ext <<_ACEOF |
| 6699 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6700 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6701 | #define _OSF_SOURCE 1 |
| 6702 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6703 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6704 | int |
| 6705 | main () |
| 6706 | { |
| 6707 | makedev(0, 0) |
| 6708 | ; |
| 6709 | return 0; |
| 6710 | } |
| 6711 | _ACEOF |
| 6712 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6713 | if { (ac_try="$ac_link" |
| 6714 | case "(($ac_try" in |
| 6715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6716 | *) ac_try_echo=$ac_try;; |
| 6717 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6719 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6720 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6721 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6722 | rm -f conftest.er1 |
| 6723 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6725 | (exit $ac_status); } && { |
| 6726 | test -z "$ac_c_werror_flag" || |
| 6727 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6728 | } && test -s conftest$ac_exeext && |
| 6729 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6730 | ac_cv_has_makedev=yes |
| 6731 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6732 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6733 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6734 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6735 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6736 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6737 | |
| 6738 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6739 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6740 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6741 | |
| 6742 | cat >>confdefs.h <<\_ACEOF |
| 6743 | #define _OSF_SOURCE 1 |
| 6744 | _ACEOF |
| 6745 | |
| 6746 | fi |
| 6747 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6748 | { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 6749 | echo "${ECHO_T}$ac_cv_has_makedev" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6750 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6751 | |
| 6752 | cat >>confdefs.h <<\_ACEOF |
| 6753 | #define HAVE_MAKEDEV 1 |
| 6754 | _ACEOF |
| 6755 | |
| 6756 | fi |
| 6757 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6758 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 6759 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 6760 | # defined, but the compiler does not support pragma redefine_extname, |
| 6761 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 6762 | # structures (such as rlimit64) without declaring them. As a |
| 6763 | # work-around, disable LFS on such configurations |
| 6764 | |
| 6765 | use_lfs=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6766 | { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 6767 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6768 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6769 | /* confdefs.h. */ |
| 6770 | _ACEOF |
| 6771 | cat confdefs.h >>conftest.$ac_ext |
| 6772 | cat >>conftest.$ac_ext <<_ACEOF |
| 6773 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6774 | |
| 6775 | #define _LARGEFILE_SOURCE 1 |
| 6776 | #define _FILE_OFFSET_BITS 64 |
| 6777 | #include <sys/resource.h> |
| 6778 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6779 | int |
| 6780 | main () |
| 6781 | { |
| 6782 | struct rlimit foo; |
| 6783 | ; |
| 6784 | return 0; |
| 6785 | } |
| 6786 | _ACEOF |
| 6787 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6788 | if { (ac_try="$ac_compile" |
| 6789 | case "(($ac_try" in |
| 6790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6791 | *) ac_try_echo=$ac_try;; |
| 6792 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6793 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6794 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6795 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6796 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6797 | rm -f conftest.er1 |
| 6798 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6800 | (exit $ac_status); } && { |
| 6801 | test -z "$ac_c_werror_flag" || |
| 6802 | test ! -s conftest.err |
| 6803 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6804 | sol_lfs_bug=no |
| 6805 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6806 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6807 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6808 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6809 | sol_lfs_bug=yes |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6810 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6811 | |
| 6812 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6813 | { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 6814 | echo "${ECHO_T}$sol_lfs_bug" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6815 | if test "$sol_lfs_bug" = "yes"; then |
| 6816 | use_lfs=no |
| 6817 | fi |
| 6818 | |
| 6819 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6820 | # Two defines needed to enable largefile support on various platforms |
| 6821 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6822 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6823 | cat >>confdefs.h <<\_ACEOF |
| 6824 | #define _LARGEFILE_SOURCE 1 |
| 6825 | _ACEOF |
| 6826 | |
| 6827 | |
| 6828 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6829 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6830 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6831 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6832 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6833 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 6834 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 6835 | cat >> confdefs.h <<\EOF |
| 6836 | #if defined(SCO_DS) |
| 6837 | #undef _OFF_T |
| 6838 | #endif |
| 6839 | EOF |
| 6840 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6841 | # Type availability checks |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6842 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 6843 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6844 | if test "${ac_cv_type_mode_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6846 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6847 | cat >conftest.$ac_ext <<_ACEOF |
| 6848 | /* confdefs.h. */ |
| 6849 | _ACEOF |
| 6850 | cat confdefs.h >>conftest.$ac_ext |
| 6851 | cat >>conftest.$ac_ext <<_ACEOF |
| 6852 | /* end confdefs.h. */ |
| 6853 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6854 | typedef mode_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6855 | int |
| 6856 | main () |
| 6857 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6858 | if ((ac__type_new_ *) 0) |
| 6859 | return 0; |
| 6860 | if (sizeof (ac__type_new_)) |
| 6861 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6862 | ; |
| 6863 | return 0; |
| 6864 | } |
| 6865 | _ACEOF |
| 6866 | rm -f conftest.$ac_objext |
| 6867 | if { (ac_try="$ac_compile" |
| 6868 | case "(($ac_try" in |
| 6869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6870 | *) ac_try_echo=$ac_try;; |
| 6871 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6873 | (eval "$ac_compile") 2>conftest.er1 |
| 6874 | ac_status=$? |
| 6875 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6876 | rm -f conftest.er1 |
| 6877 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6879 | (exit $ac_status); } && { |
| 6880 | test -z "$ac_c_werror_flag" || |
| 6881 | test ! -s conftest.err |
| 6882 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6883 | ac_cv_type_mode_t=yes |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6884 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6885 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6886 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6887 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6888 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6889 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6890 | |
| 6891 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6892 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6893 | { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 6894 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } |
| 6895 | if test $ac_cv_type_mode_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6896 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6897 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6898 | |
| 6899 | cat >>confdefs.h <<_ACEOF |
| 6900 | #define mode_t int |
| 6901 | _ACEOF |
| 6902 | |
| 6903 | fi |
| 6904 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6905 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 6906 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6907 | if test "${ac_cv_type_off_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6909 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6910 | cat >conftest.$ac_ext <<_ACEOF |
| 6911 | /* confdefs.h. */ |
| 6912 | _ACEOF |
| 6913 | cat confdefs.h >>conftest.$ac_ext |
| 6914 | cat >>conftest.$ac_ext <<_ACEOF |
| 6915 | /* end confdefs.h. */ |
| 6916 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6917 | typedef off_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6918 | int |
| 6919 | main () |
| 6920 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6921 | if ((ac__type_new_ *) 0) |
| 6922 | return 0; |
| 6923 | if (sizeof (ac__type_new_)) |
| 6924 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6925 | ; |
| 6926 | return 0; |
| 6927 | } |
| 6928 | _ACEOF |
| 6929 | rm -f conftest.$ac_objext |
| 6930 | if { (ac_try="$ac_compile" |
| 6931 | case "(($ac_try" in |
| 6932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6933 | *) ac_try_echo=$ac_try;; |
| 6934 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6936 | (eval "$ac_compile") 2>conftest.er1 |
| 6937 | ac_status=$? |
| 6938 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6939 | rm -f conftest.er1 |
| 6940 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6942 | (exit $ac_status); } && { |
| 6943 | test -z "$ac_c_werror_flag" || |
| 6944 | test ! -s conftest.err |
| 6945 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6946 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6947 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6948 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6949 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6950 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6951 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6952 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6953 | |
| 6954 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6955 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6956 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 6957 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
| 6958 | if test $ac_cv_type_off_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6959 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6960 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6961 | |
| 6962 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6963 | #define off_t long int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6964 | _ACEOF |
| 6965 | |
| 6966 | fi |
| 6967 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6968 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 6969 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6970 | if test "${ac_cv_type_pid_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6972 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6973 | cat >conftest.$ac_ext <<_ACEOF |
| 6974 | /* confdefs.h. */ |
| 6975 | _ACEOF |
| 6976 | cat confdefs.h >>conftest.$ac_ext |
| 6977 | cat >>conftest.$ac_ext <<_ACEOF |
| 6978 | /* end confdefs.h. */ |
| 6979 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6980 | typedef pid_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6981 | int |
| 6982 | main () |
| 6983 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6984 | if ((ac__type_new_ *) 0) |
| 6985 | return 0; |
| 6986 | if (sizeof (ac__type_new_)) |
| 6987 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6988 | ; |
| 6989 | return 0; |
| 6990 | } |
| 6991 | _ACEOF |
| 6992 | rm -f conftest.$ac_objext |
| 6993 | if { (ac_try="$ac_compile" |
| 6994 | case "(($ac_try" in |
| 6995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6996 | *) ac_try_echo=$ac_try;; |
| 6997 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6999 | (eval "$ac_compile") 2>conftest.er1 |
| 7000 | ac_status=$? |
| 7001 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7002 | rm -f conftest.er1 |
| 7003 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7005 | (exit $ac_status); } && { |
| 7006 | test -z "$ac_c_werror_flag" || |
| 7007 | test ! -s conftest.err |
| 7008 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7009 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7010 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7011 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7012 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7013 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7014 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7015 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7016 | |
| 7017 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7018 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7019 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 7020 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 7021 | if test $ac_cv_type_pid_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7022 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7023 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7024 | |
| 7025 | cat >>confdefs.h <<_ACEOF |
| 7026 | #define pid_t int |
| 7027 | _ACEOF |
| 7028 | |
| 7029 | fi |
| 7030 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7031 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 7032 | 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] | 7033 | if test "${ac_cv_type_signal+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7035 | else |
| 7036 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7037 | /* confdefs.h. */ |
| 7038 | _ACEOF |
| 7039 | cat confdefs.h >>conftest.$ac_ext |
| 7040 | cat >>conftest.$ac_ext <<_ACEOF |
| 7041 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7042 | #include <sys/types.h> |
| 7043 | #include <signal.h> |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7044 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7045 | int |
| 7046 | main () |
| 7047 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7048 | return *(signal (0, 0)) (0) == 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7049 | ; |
| 7050 | return 0; |
| 7051 | } |
| 7052 | _ACEOF |
| 7053 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7054 | if { (ac_try="$ac_compile" |
| 7055 | case "(($ac_try" in |
| 7056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7057 | *) ac_try_echo=$ac_try;; |
| 7058 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7060 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7061 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7062 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7063 | rm -f conftest.er1 |
| 7064 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7066 | (exit $ac_status); } && { |
| 7067 | test -z "$ac_c_werror_flag" || |
| 7068 | test ! -s conftest.err |
| 7069 | } && test -s conftest.$ac_objext; then |
| 7070 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7071 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7072 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7073 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7074 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7075 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7076 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7077 | |
| 7078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7079 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7080 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 7081 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7082 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7083 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7084 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7085 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7086 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7087 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7088 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 7089 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7090 | if test "${ac_cv_type_size_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7092 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7093 | cat >conftest.$ac_ext <<_ACEOF |
| 7094 | /* confdefs.h. */ |
| 7095 | _ACEOF |
| 7096 | cat confdefs.h >>conftest.$ac_ext |
| 7097 | cat >>conftest.$ac_ext <<_ACEOF |
| 7098 | /* end confdefs.h. */ |
| 7099 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7100 | typedef size_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7101 | int |
| 7102 | main () |
| 7103 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7104 | if ((ac__type_new_ *) 0) |
| 7105 | return 0; |
| 7106 | if (sizeof (ac__type_new_)) |
| 7107 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7108 | ; |
| 7109 | return 0; |
| 7110 | } |
| 7111 | _ACEOF |
| 7112 | rm -f conftest.$ac_objext |
| 7113 | if { (ac_try="$ac_compile" |
| 7114 | case "(($ac_try" in |
| 7115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7116 | *) ac_try_echo=$ac_try;; |
| 7117 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7119 | (eval "$ac_compile") 2>conftest.er1 |
| 7120 | ac_status=$? |
| 7121 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7122 | rm -f conftest.er1 |
| 7123 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7125 | (exit $ac_status); } && { |
| 7126 | test -z "$ac_c_werror_flag" || |
| 7127 | test ! -s conftest.err |
| 7128 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7129 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7130 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7131 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7132 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7133 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7134 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7135 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7136 | |
| 7137 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7138 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7139 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 7140 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 7141 | if test $ac_cv_type_size_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7142 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7143 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7144 | |
| 7145 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7146 | #define size_t unsigned int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7147 | _ACEOF |
| 7148 | |
| 7149 | fi |
| 7150 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7151 | { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 7152 | 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] | 7153 | if test "${ac_cv_type_uid_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7155 | else |
| 7156 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7157 | /* confdefs.h. */ |
| 7158 | _ACEOF |
| 7159 | cat confdefs.h >>conftest.$ac_ext |
| 7160 | cat >>conftest.$ac_ext <<_ACEOF |
| 7161 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7162 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7163 | |
| 7164 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7165 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7166 | $EGREP "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7167 | ac_cv_type_uid_t=yes |
| 7168 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7169 | ac_cv_type_uid_t=no |
| 7170 | fi |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 7171 | rm -f -r conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7172 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7173 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7174 | { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 7175 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7176 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7177 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7178 | cat >>confdefs.h <<\_ACEOF |
| 7179 | #define uid_t int |
| 7180 | _ACEOF |
| 7181 | |
| 7182 | |
| 7183 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7184 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7185 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7186 | |
| 7187 | fi |
| 7188 | |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7189 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7190 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
| 7191 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7192 | if test "${ac_cv_c_uint32_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7194 | else |
| 7195 | ac_cv_c_uint32_t=no |
| 7196 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ |
| 7197 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 7198 | cat >conftest.$ac_ext <<_ACEOF |
| 7199 | /* confdefs.h. */ |
| 7200 | _ACEOF |
| 7201 | cat confdefs.h >>conftest.$ac_ext |
| 7202 | cat >>conftest.$ac_ext <<_ACEOF |
| 7203 | /* end confdefs.h. */ |
| 7204 | $ac_includes_default |
| 7205 | int |
| 7206 | main () |
| 7207 | { |
| 7208 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
| 7209 | test_array [0] = 0 |
| 7210 | |
| 7211 | ; |
| 7212 | return 0; |
| 7213 | } |
| 7214 | _ACEOF |
| 7215 | rm -f conftest.$ac_objext |
| 7216 | if { (ac_try="$ac_compile" |
| 7217 | case "(($ac_try" in |
| 7218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7219 | *) ac_try_echo=$ac_try;; |
| 7220 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7222 | (eval "$ac_compile") 2>conftest.er1 |
| 7223 | ac_status=$? |
| 7224 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7225 | rm -f conftest.er1 |
| 7226 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7228 | (exit $ac_status); } && { |
| 7229 | test -z "$ac_c_werror_flag" || |
| 7230 | test ! -s conftest.err |
| 7231 | } && test -s conftest.$ac_objext; then |
| 7232 | case $ac_type in |
| 7233 | uint32_t) ac_cv_c_uint32_t=yes ;; |
| 7234 | *) ac_cv_c_uint32_t=$ac_type ;; |
| 7235 | esac |
| 7236 | |
| 7237 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7238 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7239 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7240 | |
| 7241 | |
| 7242 | fi |
| 7243 | |
| 7244 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7245 | test "$ac_cv_c_uint32_t" != no && break |
| 7246 | done |
| 7247 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7248 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 |
| 7249 | echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7250 | case $ac_cv_c_uint32_t in #( |
| 7251 | no|yes) ;; #( |
| 7252 | *) |
| 7253 | |
| 7254 | cat >>confdefs.h <<\_ACEOF |
| 7255 | #define _UINT32_T 1 |
| 7256 | _ACEOF |
| 7257 | |
| 7258 | |
| 7259 | cat >>confdefs.h <<_ACEOF |
| 7260 | #define uint32_t $ac_cv_c_uint32_t |
| 7261 | _ACEOF |
| 7262 | ;; |
| 7263 | esac |
| 7264 | |
| 7265 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7266 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 7267 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7268 | if test "${ac_cv_c_uint64_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7270 | else |
| 7271 | ac_cv_c_uint64_t=no |
| 7272 | for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \ |
| 7273 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 7274 | cat >conftest.$ac_ext <<_ACEOF |
| 7275 | /* confdefs.h. */ |
| 7276 | _ACEOF |
| 7277 | cat confdefs.h >>conftest.$ac_ext |
| 7278 | cat >>conftest.$ac_ext <<_ACEOF |
| 7279 | /* end confdefs.h. */ |
| 7280 | $ac_includes_default |
| 7281 | int |
| 7282 | main () |
| 7283 | { |
| 7284 | static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)]; |
| 7285 | test_array [0] = 0 |
| 7286 | |
| 7287 | ; |
| 7288 | return 0; |
| 7289 | } |
| 7290 | _ACEOF |
| 7291 | rm -f conftest.$ac_objext |
| 7292 | if { (ac_try="$ac_compile" |
| 7293 | case "(($ac_try" in |
| 7294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7295 | *) ac_try_echo=$ac_try;; |
| 7296 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7298 | (eval "$ac_compile") 2>conftest.er1 |
| 7299 | ac_status=$? |
| 7300 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7301 | rm -f conftest.er1 |
| 7302 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7304 | (exit $ac_status); } && { |
| 7305 | test -z "$ac_c_werror_flag" || |
| 7306 | test ! -s conftest.err |
| 7307 | } && test -s conftest.$ac_objext; then |
| 7308 | case $ac_type in |
| 7309 | uint64_t) ac_cv_c_uint64_t=yes ;; |
| 7310 | *) ac_cv_c_uint64_t=$ac_type ;; |
| 7311 | esac |
| 7312 | |
| 7313 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7314 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7315 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7316 | |
| 7317 | |
| 7318 | fi |
| 7319 | |
| 7320 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7321 | test "$ac_cv_c_uint64_t" != no && break |
| 7322 | done |
| 7323 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7324 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5 |
| 7325 | echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7326 | case $ac_cv_c_uint64_t in #( |
| 7327 | no|yes) ;; #( |
| 7328 | *) |
| 7329 | |
| 7330 | cat >>confdefs.h <<\_ACEOF |
| 7331 | #define _UINT64_T 1 |
| 7332 | _ACEOF |
| 7333 | |
| 7334 | |
| 7335 | cat >>confdefs.h <<_ACEOF |
| 7336 | #define uint64_t $ac_cv_c_uint64_t |
| 7337 | _ACEOF |
| 7338 | ;; |
| 7339 | esac |
| 7340 | |
| 7341 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7342 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
| 7343 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7344 | if test "${ac_cv_c_int32_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7346 | else |
| 7347 | ac_cv_c_int32_t=no |
| 7348 | for ac_type in 'int32_t' 'int' 'long int' \ |
| 7349 | 'long long int' 'short int' 'signed char'; do |
| 7350 | cat >conftest.$ac_ext <<_ACEOF |
| 7351 | /* confdefs.h. */ |
| 7352 | _ACEOF |
| 7353 | cat confdefs.h >>conftest.$ac_ext |
| 7354 | cat >>conftest.$ac_ext <<_ACEOF |
| 7355 | /* end confdefs.h. */ |
| 7356 | $ac_includes_default |
| 7357 | int |
| 7358 | main () |
| 7359 | { |
| 7360 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
| 7361 | test_array [0] = 0 |
| 7362 | |
| 7363 | ; |
| 7364 | return 0; |
| 7365 | } |
| 7366 | _ACEOF |
| 7367 | rm -f conftest.$ac_objext |
| 7368 | if { (ac_try="$ac_compile" |
| 7369 | case "(($ac_try" in |
| 7370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7371 | *) ac_try_echo=$ac_try;; |
| 7372 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7374 | (eval "$ac_compile") 2>conftest.er1 |
| 7375 | ac_status=$? |
| 7376 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7377 | rm -f conftest.er1 |
| 7378 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7380 | (exit $ac_status); } && { |
| 7381 | test -z "$ac_c_werror_flag" || |
| 7382 | test ! -s conftest.err |
| 7383 | } && test -s conftest.$ac_objext; then |
| 7384 | cat >conftest.$ac_ext <<_ACEOF |
| 7385 | /* confdefs.h. */ |
| 7386 | _ACEOF |
| 7387 | cat confdefs.h >>conftest.$ac_ext |
| 7388 | cat >>conftest.$ac_ext <<_ACEOF |
| 7389 | /* end confdefs.h. */ |
| 7390 | $ac_includes_default |
| 7391 | int |
| 7392 | main () |
| 7393 | { |
| 7394 | 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] | 7395 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7396 | test_array [0] = 0 |
| 7397 | |
| 7398 | ; |
| 7399 | return 0; |
| 7400 | } |
| 7401 | _ACEOF |
| 7402 | rm -f conftest.$ac_objext |
| 7403 | if { (ac_try="$ac_compile" |
| 7404 | case "(($ac_try" in |
| 7405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7406 | *) ac_try_echo=$ac_try;; |
| 7407 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7409 | (eval "$ac_compile") 2>conftest.er1 |
| 7410 | ac_status=$? |
| 7411 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7412 | rm -f conftest.er1 |
| 7413 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7415 | (exit $ac_status); } && { |
| 7416 | test -z "$ac_c_werror_flag" || |
| 7417 | test ! -s conftest.err |
| 7418 | } && test -s conftest.$ac_objext; then |
| 7419 | : |
| 7420 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7421 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7422 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7423 | |
| 7424 | case $ac_type in |
| 7425 | int32_t) ac_cv_c_int32_t=yes ;; |
| 7426 | *) ac_cv_c_int32_t=$ac_type ;; |
| 7427 | esac |
| 7428 | |
| 7429 | fi |
| 7430 | |
| 7431 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7432 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7433 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7434 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7435 | |
| 7436 | |
| 7437 | fi |
| 7438 | |
| 7439 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7440 | test "$ac_cv_c_int32_t" != no && break |
| 7441 | done |
| 7442 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7443 | { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
| 7444 | echo "${ECHO_T}$ac_cv_c_int32_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7445 | case $ac_cv_c_int32_t in #( |
| 7446 | no|yes) ;; #( |
| 7447 | *) |
| 7448 | |
| 7449 | cat >>confdefs.h <<_ACEOF |
| 7450 | #define int32_t $ac_cv_c_int32_t |
| 7451 | _ACEOF |
| 7452 | ;; |
| 7453 | esac |
| 7454 | |
| 7455 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7456 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 7457 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7458 | if test "${ac_cv_c_int64_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7460 | else |
| 7461 | ac_cv_c_int64_t=no |
| 7462 | for ac_type in 'int64_t' 'int' 'long int' \ |
| 7463 | 'long long int' 'short int' 'signed char'; do |
| 7464 | cat >conftest.$ac_ext <<_ACEOF |
| 7465 | /* confdefs.h. */ |
| 7466 | _ACEOF |
| 7467 | cat confdefs.h >>conftest.$ac_ext |
| 7468 | cat >>conftest.$ac_ext <<_ACEOF |
| 7469 | /* end confdefs.h. */ |
| 7470 | $ac_includes_default |
| 7471 | int |
| 7472 | main () |
| 7473 | { |
| 7474 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))]; |
| 7475 | test_array [0] = 0 |
| 7476 | |
| 7477 | ; |
| 7478 | return 0; |
| 7479 | } |
| 7480 | _ACEOF |
| 7481 | rm -f conftest.$ac_objext |
| 7482 | if { (ac_try="$ac_compile" |
| 7483 | case "(($ac_try" in |
| 7484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7485 | *) ac_try_echo=$ac_try;; |
| 7486 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7487 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7488 | (eval "$ac_compile") 2>conftest.er1 |
| 7489 | ac_status=$? |
| 7490 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7491 | rm -f conftest.er1 |
| 7492 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7494 | (exit $ac_status); } && { |
| 7495 | test -z "$ac_c_werror_flag" || |
| 7496 | test ! -s conftest.err |
| 7497 | } && test -s conftest.$ac_objext; then |
| 7498 | cat >conftest.$ac_ext <<_ACEOF |
| 7499 | /* confdefs.h. */ |
| 7500 | _ACEOF |
| 7501 | cat confdefs.h >>conftest.$ac_ext |
| 7502 | cat >>conftest.$ac_ext <<_ACEOF |
| 7503 | /* end confdefs.h. */ |
| 7504 | $ac_includes_default |
| 7505 | int |
| 7506 | main () |
| 7507 | { |
| 7508 | 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] | 7509 | < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))]; |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7510 | test_array [0] = 0 |
| 7511 | |
| 7512 | ; |
| 7513 | return 0; |
| 7514 | } |
| 7515 | _ACEOF |
| 7516 | rm -f conftest.$ac_objext |
| 7517 | if { (ac_try="$ac_compile" |
| 7518 | case "(($ac_try" in |
| 7519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7520 | *) ac_try_echo=$ac_try;; |
| 7521 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7522 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7523 | (eval "$ac_compile") 2>conftest.er1 |
| 7524 | ac_status=$? |
| 7525 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7526 | rm -f conftest.er1 |
| 7527 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7529 | (exit $ac_status); } && { |
| 7530 | test -z "$ac_c_werror_flag" || |
| 7531 | test ! -s conftest.err |
| 7532 | } && test -s conftest.$ac_objext; then |
| 7533 | : |
| 7534 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7535 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7536 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7537 | |
| 7538 | case $ac_type in |
| 7539 | int64_t) ac_cv_c_int64_t=yes ;; |
| 7540 | *) ac_cv_c_int64_t=$ac_type ;; |
| 7541 | esac |
| 7542 | |
| 7543 | fi |
| 7544 | |
| 7545 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7546 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7547 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7548 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7549 | |
| 7550 | |
| 7551 | fi |
| 7552 | |
| 7553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7554 | test "$ac_cv_c_int64_t" != no && break |
| 7555 | done |
| 7556 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7557 | { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5 |
| 7558 | echo "${ECHO_T}$ac_cv_c_int64_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7559 | case $ac_cv_c_int64_t in #( |
| 7560 | no|yes) ;; #( |
| 7561 | *) |
| 7562 | |
| 7563 | cat >>confdefs.h <<_ACEOF |
| 7564 | #define int64_t $ac_cv_c_int64_t |
| 7565 | _ACEOF |
| 7566 | ;; |
| 7567 | esac |
| 7568 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7569 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 7570 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7571 | if test "${ac_cv_type_ssize_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7573 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7574 | cat >conftest.$ac_ext <<_ACEOF |
| 7575 | /* confdefs.h. */ |
| 7576 | _ACEOF |
| 7577 | cat confdefs.h >>conftest.$ac_ext |
| 7578 | cat >>conftest.$ac_ext <<_ACEOF |
| 7579 | /* end confdefs.h. */ |
| 7580 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7581 | typedef ssize_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7582 | int |
| 7583 | main () |
| 7584 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7585 | if ((ac__type_new_ *) 0) |
| 7586 | return 0; |
| 7587 | if (sizeof (ac__type_new_)) |
| 7588 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7589 | ; |
| 7590 | return 0; |
| 7591 | } |
| 7592 | _ACEOF |
| 7593 | rm -f conftest.$ac_objext |
| 7594 | if { (ac_try="$ac_compile" |
| 7595 | case "(($ac_try" in |
| 7596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7597 | *) ac_try_echo=$ac_try;; |
| 7598 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7600 | (eval "$ac_compile") 2>conftest.er1 |
| 7601 | ac_status=$? |
| 7602 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7603 | rm -f conftest.er1 |
| 7604 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7606 | (exit $ac_status); } && { |
| 7607 | test -z "$ac_c_werror_flag" || |
| 7608 | test ! -s conftest.err |
| 7609 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7610 | ac_cv_type_ssize_t=yes |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7611 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7612 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7613 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7614 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7615 | ac_cv_type_ssize_t=no |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7616 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7617 | |
| 7618 | 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] | 7619 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7620 | { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 7621 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } |
| 7622 | if test $ac_cv_type_ssize_t = yes; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7623 | |
| 7624 | cat >>confdefs.h <<\_ACEOF |
| 7625 | #define HAVE_SSIZE_T 1 |
| 7626 | _ACEOF |
| 7627 | |
| 7628 | fi |
| 7629 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7630 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7631 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 7632 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7633 | { echo "$as_me:$LINENO: checking for int" >&5 |
| 7634 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
| 7635 | if test "${ac_cv_type_int+set}" = set; then |
| 7636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7637 | else |
| 7638 | cat >conftest.$ac_ext <<_ACEOF |
| 7639 | /* confdefs.h. */ |
| 7640 | _ACEOF |
| 7641 | cat confdefs.h >>conftest.$ac_ext |
| 7642 | cat >>conftest.$ac_ext <<_ACEOF |
| 7643 | /* end confdefs.h. */ |
| 7644 | $ac_includes_default |
| 7645 | typedef int ac__type_new_; |
| 7646 | int |
| 7647 | main () |
| 7648 | { |
| 7649 | if ((ac__type_new_ *) 0) |
| 7650 | return 0; |
| 7651 | if (sizeof (ac__type_new_)) |
| 7652 | return 0; |
| 7653 | ; |
| 7654 | return 0; |
| 7655 | } |
| 7656 | _ACEOF |
| 7657 | rm -f conftest.$ac_objext |
| 7658 | if { (ac_try="$ac_compile" |
| 7659 | case "(($ac_try" in |
| 7660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7661 | *) ac_try_echo=$ac_try;; |
| 7662 | esac |
| 7663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7664 | (eval "$ac_compile") 2>conftest.er1 |
| 7665 | ac_status=$? |
| 7666 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7667 | rm -f conftest.er1 |
| 7668 | cat conftest.err >&5 |
| 7669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7670 | (exit $ac_status); } && { |
| 7671 | test -z "$ac_c_werror_flag" || |
| 7672 | test ! -s conftest.err |
| 7673 | } && test -s conftest.$ac_objext; then |
| 7674 | ac_cv_type_int=yes |
| 7675 | else |
| 7676 | echo "$as_me: failed program was:" >&5 |
| 7677 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7678 | |
| 7679 | ac_cv_type_int=no |
| 7680 | fi |
| 7681 | |
| 7682 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7683 | fi |
| 7684 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 7685 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
| 7686 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7687 | # The cast to long int works around a bug in the HP C Compiler |
| 7688 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7689 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7690 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7691 | { echo "$as_me:$LINENO: checking size of int" >&5 |
| 7692 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7693 | if test "${ac_cv_sizeof_int+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7695 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7696 | if test "$cross_compiling" = yes; then |
| 7697 | # Depending upon the size, compute the lo and hi bounds. |
| 7698 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7699 | /* confdefs.h. */ |
| 7700 | _ACEOF |
| 7701 | cat confdefs.h >>conftest.$ac_ext |
| 7702 | cat >>conftest.$ac_ext <<_ACEOF |
| 7703 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7704 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7705 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7706 | int |
| 7707 | main () |
| 7708 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7709 | 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] | 7710 | test_array [0] = 0 |
| 7711 | |
| 7712 | ; |
| 7713 | return 0; |
| 7714 | } |
| 7715 | _ACEOF |
| 7716 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7717 | if { (ac_try="$ac_compile" |
| 7718 | case "(($ac_try" in |
| 7719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7720 | *) ac_try_echo=$ac_try;; |
| 7721 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7722 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7723 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7724 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7725 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7726 | rm -f conftest.er1 |
| 7727 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7729 | (exit $ac_status); } && { |
| 7730 | test -z "$ac_c_werror_flag" || |
| 7731 | test ! -s conftest.err |
| 7732 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7733 | ac_lo=0 ac_mid=0 |
| 7734 | while :; do |
| 7735 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7736 | /* confdefs.h. */ |
| 7737 | _ACEOF |
| 7738 | cat confdefs.h >>conftest.$ac_ext |
| 7739 | cat >>conftest.$ac_ext <<_ACEOF |
| 7740 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7741 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7742 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7743 | int |
| 7744 | main () |
| 7745 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7746 | 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] | 7747 | test_array [0] = 0 |
| 7748 | |
| 7749 | ; |
| 7750 | return 0; |
| 7751 | } |
| 7752 | _ACEOF |
| 7753 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7754 | if { (ac_try="$ac_compile" |
| 7755 | case "(($ac_try" in |
| 7756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7757 | *) ac_try_echo=$ac_try;; |
| 7758 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7759 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7760 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7761 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7762 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7763 | rm -f conftest.er1 |
| 7764 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7766 | (exit $ac_status); } && { |
| 7767 | test -z "$ac_c_werror_flag" || |
| 7768 | test ! -s conftest.err |
| 7769 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7770 | ac_hi=$ac_mid; break |
| 7771 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7772 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7773 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7774 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7775 | ac_lo=`expr $ac_mid + 1` |
| 7776 | if test $ac_lo -le $ac_mid; then |
| 7777 | ac_lo= ac_hi= |
| 7778 | break |
| 7779 | fi |
| 7780 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7781 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7782 | |
| 7783 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7784 | done |
| 7785 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7786 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7787 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7788 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7789 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7790 | /* confdefs.h. */ |
| 7791 | _ACEOF |
| 7792 | cat confdefs.h >>conftest.$ac_ext |
| 7793 | cat >>conftest.$ac_ext <<_ACEOF |
| 7794 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7795 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7796 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7797 | int |
| 7798 | main () |
| 7799 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7800 | 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] | 7801 | test_array [0] = 0 |
| 7802 | |
| 7803 | ; |
| 7804 | return 0; |
| 7805 | } |
| 7806 | _ACEOF |
| 7807 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7808 | if { (ac_try="$ac_compile" |
| 7809 | case "(($ac_try" in |
| 7810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7811 | *) ac_try_echo=$ac_try;; |
| 7812 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7813 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7814 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7815 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7816 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7817 | rm -f conftest.er1 |
| 7818 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7820 | (exit $ac_status); } && { |
| 7821 | test -z "$ac_c_werror_flag" || |
| 7822 | test ! -s conftest.err |
| 7823 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7824 | ac_hi=-1 ac_mid=-1 |
| 7825 | while :; do |
| 7826 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7827 | /* confdefs.h. */ |
| 7828 | _ACEOF |
| 7829 | cat confdefs.h >>conftest.$ac_ext |
| 7830 | cat >>conftest.$ac_ext <<_ACEOF |
| 7831 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7832 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7833 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7834 | int |
| 7835 | main () |
| 7836 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7837 | 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] | 7838 | test_array [0] = 0 |
| 7839 | |
| 7840 | ; |
| 7841 | return 0; |
| 7842 | } |
| 7843 | _ACEOF |
| 7844 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7845 | if { (ac_try="$ac_compile" |
| 7846 | case "(($ac_try" in |
| 7847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7848 | *) ac_try_echo=$ac_try;; |
| 7849 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7851 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7852 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7853 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7854 | rm -f conftest.er1 |
| 7855 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7857 | (exit $ac_status); } && { |
| 7858 | test -z "$ac_c_werror_flag" || |
| 7859 | test ! -s conftest.err |
| 7860 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7861 | ac_lo=$ac_mid; break |
| 7862 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7863 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7864 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7865 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7866 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7867 | if test $ac_mid -le $ac_hi; then |
| 7868 | ac_lo= ac_hi= |
| 7869 | break |
| 7870 | fi |
| 7871 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7872 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7873 | |
| 7874 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7875 | done |
| 7876 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7877 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7878 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7879 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7880 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7881 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7882 | |
| 7883 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7884 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7885 | |
| 7886 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7887 | # Binary search between lo and hi bounds. |
| 7888 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7889 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7890 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7891 | /* confdefs.h. */ |
| 7892 | _ACEOF |
| 7893 | cat confdefs.h >>conftest.$ac_ext |
| 7894 | cat >>conftest.$ac_ext <<_ACEOF |
| 7895 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7896 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7897 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7898 | int |
| 7899 | main () |
| 7900 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7901 | 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] | 7902 | test_array [0] = 0 |
| 7903 | |
| 7904 | ; |
| 7905 | return 0; |
| 7906 | } |
| 7907 | _ACEOF |
| 7908 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7909 | if { (ac_try="$ac_compile" |
| 7910 | case "(($ac_try" in |
| 7911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7912 | *) ac_try_echo=$ac_try;; |
| 7913 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7914 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7915 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7916 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7917 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7918 | rm -f conftest.er1 |
| 7919 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7921 | (exit $ac_status); } && { |
| 7922 | test -z "$ac_c_werror_flag" || |
| 7923 | test ! -s conftest.err |
| 7924 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7925 | ac_hi=$ac_mid |
| 7926 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7927 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7928 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7929 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7930 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7931 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7932 | |
| 7933 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7934 | done |
| 7935 | case $ac_lo in |
| 7936 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7937 | '') if test "$ac_cv_type_int" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7938 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7939 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7940 | echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7941 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7942 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7943 | else |
| 7944 | ac_cv_sizeof_int=0 |
| 7945 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7946 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7947 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7948 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7949 | /* confdefs.h. */ |
| 7950 | _ACEOF |
| 7951 | cat confdefs.h >>conftest.$ac_ext |
| 7952 | cat >>conftest.$ac_ext <<_ACEOF |
| 7953 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7954 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7955 | typedef int ac__type_sizeof_; |
| 7956 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 7957 | 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] | 7958 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7959 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7960 | int |
| 7961 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7962 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7963 | |
| 7964 | FILE *f = fopen ("conftest.val", "w"); |
| 7965 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7966 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7967 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7968 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7969 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7970 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7971 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7972 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7973 | } |
| 7974 | else |
| 7975 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7976 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7977 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7978 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7979 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7980 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7981 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7982 | |
| 7983 | ; |
| 7984 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7985 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7986 | _ACEOF |
| 7987 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7988 | if { (ac_try="$ac_link" |
| 7989 | case "(($ac_try" in |
| 7990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7991 | *) ac_try_echo=$ac_try;; |
| 7992 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7994 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7995 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7997 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7998 | { (case "(($ac_try" in |
| 7999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8000 | *) ac_try_echo=$ac_try;; |
| 8001 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8003 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8004 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8006 | (exit $ac_status); }; }; then |
| 8007 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8008 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8009 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8010 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8011 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8012 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8013 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8014 | if test "$ac_cv_type_int" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8015 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8016 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8017 | echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8018 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8019 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8020 | else |
| 8021 | ac_cv_sizeof_int=0 |
| 8022 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8023 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8024 | 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] | 8025 | fi |
| 8026 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8027 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8028 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 8029 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8030 | |
| 8031 | |
| 8032 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8033 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8034 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8035 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8036 | |
| 8037 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8038 | { echo "$as_me:$LINENO: checking for long" >&5 |
| 8039 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } |
| 8040 | if test "${ac_cv_type_long+set}" = set; then |
| 8041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8042 | else |
| 8043 | cat >conftest.$ac_ext <<_ACEOF |
| 8044 | /* confdefs.h. */ |
| 8045 | _ACEOF |
| 8046 | cat confdefs.h >>conftest.$ac_ext |
| 8047 | cat >>conftest.$ac_ext <<_ACEOF |
| 8048 | /* end confdefs.h. */ |
| 8049 | $ac_includes_default |
| 8050 | typedef long ac__type_new_; |
| 8051 | int |
| 8052 | main () |
| 8053 | { |
| 8054 | if ((ac__type_new_ *) 0) |
| 8055 | return 0; |
| 8056 | if (sizeof (ac__type_new_)) |
| 8057 | return 0; |
| 8058 | ; |
| 8059 | return 0; |
| 8060 | } |
| 8061 | _ACEOF |
| 8062 | rm -f conftest.$ac_objext |
| 8063 | if { (ac_try="$ac_compile" |
| 8064 | case "(($ac_try" in |
| 8065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8066 | *) ac_try_echo=$ac_try;; |
| 8067 | esac |
| 8068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8069 | (eval "$ac_compile") 2>conftest.er1 |
| 8070 | ac_status=$? |
| 8071 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8072 | rm -f conftest.er1 |
| 8073 | cat conftest.err >&5 |
| 8074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8075 | (exit $ac_status); } && { |
| 8076 | test -z "$ac_c_werror_flag" || |
| 8077 | test ! -s conftest.err |
| 8078 | } && test -s conftest.$ac_objext; then |
| 8079 | ac_cv_type_long=yes |
| 8080 | else |
| 8081 | echo "$as_me: failed program was:" >&5 |
| 8082 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8083 | |
| 8084 | ac_cv_type_long=no |
| 8085 | fi |
| 8086 | |
| 8087 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8088 | fi |
| 8089 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 8090 | echo "${ECHO_T}$ac_cv_type_long" >&6; } |
| 8091 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8092 | # The cast to long int works around a bug in the HP C Compiler |
| 8093 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8094 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8095 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8096 | { echo "$as_me:$LINENO: checking size of long" >&5 |
| 8097 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8098 | if test "${ac_cv_sizeof_long+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8099 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8100 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8101 | if test "$cross_compiling" = yes; then |
| 8102 | # Depending upon the size, compute the lo and hi bounds. |
| 8103 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8104 | /* confdefs.h. */ |
| 8105 | _ACEOF |
| 8106 | cat confdefs.h >>conftest.$ac_ext |
| 8107 | cat >>conftest.$ac_ext <<_ACEOF |
| 8108 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8109 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8110 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8111 | int |
| 8112 | main () |
| 8113 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8114 | 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] | 8115 | test_array [0] = 0 |
| 8116 | |
| 8117 | ; |
| 8118 | return 0; |
| 8119 | } |
| 8120 | _ACEOF |
| 8121 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8122 | if { (ac_try="$ac_compile" |
| 8123 | case "(($ac_try" in |
| 8124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8125 | *) ac_try_echo=$ac_try;; |
| 8126 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8128 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8129 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8130 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8131 | rm -f conftest.er1 |
| 8132 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8134 | (exit $ac_status); } && { |
| 8135 | test -z "$ac_c_werror_flag" || |
| 8136 | test ! -s conftest.err |
| 8137 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8138 | ac_lo=0 ac_mid=0 |
| 8139 | while :; do |
| 8140 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8141 | /* confdefs.h. */ |
| 8142 | _ACEOF |
| 8143 | cat confdefs.h >>conftest.$ac_ext |
| 8144 | cat >>conftest.$ac_ext <<_ACEOF |
| 8145 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8146 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8147 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8148 | int |
| 8149 | main () |
| 8150 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8151 | 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] | 8152 | test_array [0] = 0 |
| 8153 | |
| 8154 | ; |
| 8155 | return 0; |
| 8156 | } |
| 8157 | _ACEOF |
| 8158 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8159 | if { (ac_try="$ac_compile" |
| 8160 | case "(($ac_try" in |
| 8161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8162 | *) ac_try_echo=$ac_try;; |
| 8163 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8165 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8166 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8167 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8168 | rm -f conftest.er1 |
| 8169 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8171 | (exit $ac_status); } && { |
| 8172 | test -z "$ac_c_werror_flag" || |
| 8173 | test ! -s conftest.err |
| 8174 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8175 | ac_hi=$ac_mid; break |
| 8176 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8177 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8178 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8179 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8180 | ac_lo=`expr $ac_mid + 1` |
| 8181 | if test $ac_lo -le $ac_mid; then |
| 8182 | ac_lo= ac_hi= |
| 8183 | break |
| 8184 | fi |
| 8185 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8186 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8187 | |
| 8188 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8189 | done |
| 8190 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8191 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8192 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8193 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8194 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8195 | /* confdefs.h. */ |
| 8196 | _ACEOF |
| 8197 | cat confdefs.h >>conftest.$ac_ext |
| 8198 | cat >>conftest.$ac_ext <<_ACEOF |
| 8199 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8200 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8201 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8202 | int |
| 8203 | main () |
| 8204 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8205 | 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] | 8206 | test_array [0] = 0 |
| 8207 | |
| 8208 | ; |
| 8209 | return 0; |
| 8210 | } |
| 8211 | _ACEOF |
| 8212 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8213 | if { (ac_try="$ac_compile" |
| 8214 | case "(($ac_try" in |
| 8215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8216 | *) ac_try_echo=$ac_try;; |
| 8217 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8219 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8220 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8221 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8222 | rm -f conftest.er1 |
| 8223 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8225 | (exit $ac_status); } && { |
| 8226 | test -z "$ac_c_werror_flag" || |
| 8227 | test ! -s conftest.err |
| 8228 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8229 | ac_hi=-1 ac_mid=-1 |
| 8230 | while :; do |
| 8231 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8232 | /* confdefs.h. */ |
| 8233 | _ACEOF |
| 8234 | cat confdefs.h >>conftest.$ac_ext |
| 8235 | cat >>conftest.$ac_ext <<_ACEOF |
| 8236 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8237 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8238 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8239 | int |
| 8240 | main () |
| 8241 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8242 | 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] | 8243 | test_array [0] = 0 |
| 8244 | |
| 8245 | ; |
| 8246 | return 0; |
| 8247 | } |
| 8248 | _ACEOF |
| 8249 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8250 | if { (ac_try="$ac_compile" |
| 8251 | case "(($ac_try" in |
| 8252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8253 | *) ac_try_echo=$ac_try;; |
| 8254 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8256 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8257 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8258 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8259 | rm -f conftest.er1 |
| 8260 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8262 | (exit $ac_status); } && { |
| 8263 | test -z "$ac_c_werror_flag" || |
| 8264 | test ! -s conftest.err |
| 8265 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8266 | ac_lo=$ac_mid; break |
| 8267 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8268 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8269 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8270 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8271 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8272 | if test $ac_mid -le $ac_hi; then |
| 8273 | ac_lo= ac_hi= |
| 8274 | break |
| 8275 | fi |
| 8276 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8277 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8278 | |
| 8279 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8280 | done |
| 8281 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8282 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8283 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8284 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8285 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8286 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8287 | |
| 8288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8289 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8290 | |
| 8291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8292 | # Binary search between lo and hi bounds. |
| 8293 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8294 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8295 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8296 | /* confdefs.h. */ |
| 8297 | _ACEOF |
| 8298 | cat confdefs.h >>conftest.$ac_ext |
| 8299 | cat >>conftest.$ac_ext <<_ACEOF |
| 8300 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8301 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8302 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8303 | int |
| 8304 | main () |
| 8305 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8306 | 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] | 8307 | test_array [0] = 0 |
| 8308 | |
| 8309 | ; |
| 8310 | return 0; |
| 8311 | } |
| 8312 | _ACEOF |
| 8313 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8314 | if { (ac_try="$ac_compile" |
| 8315 | case "(($ac_try" in |
| 8316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8317 | *) ac_try_echo=$ac_try;; |
| 8318 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8320 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8321 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8322 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8323 | rm -f conftest.er1 |
| 8324 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8326 | (exit $ac_status); } && { |
| 8327 | test -z "$ac_c_werror_flag" || |
| 8328 | test ! -s conftest.err |
| 8329 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8330 | ac_hi=$ac_mid |
| 8331 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8332 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8333 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8334 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8335 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8336 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8337 | |
| 8338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8339 | done |
| 8340 | case $ac_lo in |
| 8341 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8342 | '') if test "$ac_cv_type_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8343 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8344 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8345 | echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8346 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8347 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8348 | else |
| 8349 | ac_cv_sizeof_long=0 |
| 8350 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8351 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8352 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8353 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8354 | /* confdefs.h. */ |
| 8355 | _ACEOF |
| 8356 | cat confdefs.h >>conftest.$ac_ext |
| 8357 | cat >>conftest.$ac_ext <<_ACEOF |
| 8358 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8359 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8360 | typedef long ac__type_sizeof_; |
| 8361 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8362 | 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] | 8363 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8364 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8365 | int |
| 8366 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8367 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8368 | |
| 8369 | FILE *f = fopen ("conftest.val", "w"); |
| 8370 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8371 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8372 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8373 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8374 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8375 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8376 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8377 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8378 | } |
| 8379 | else |
| 8380 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8381 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8382 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8383 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8384 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8385 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8386 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8387 | |
| 8388 | ; |
| 8389 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8390 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8391 | _ACEOF |
| 8392 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8393 | if { (ac_try="$ac_link" |
| 8394 | case "(($ac_try" in |
| 8395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8396 | *) ac_try_echo=$ac_try;; |
| 8397 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8399 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8400 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8402 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8403 | { (case "(($ac_try" in |
| 8404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8405 | *) ac_try_echo=$ac_try;; |
| 8406 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8408 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8409 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8411 | (exit $ac_status); }; }; then |
| 8412 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8413 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8414 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8415 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8416 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8417 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8418 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8419 | if test "$ac_cv_type_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8420 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8421 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8422 | echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8423 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8424 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8425 | else |
| 8426 | ac_cv_sizeof_long=0 |
| 8427 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8428 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8429 | 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] | 8430 | fi |
| 8431 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8432 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8433 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 8434 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8435 | |
| 8436 | |
| 8437 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8438 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8439 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8440 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8441 | |
| 8442 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8443 | { echo "$as_me:$LINENO: checking for void *" >&5 |
| 8444 | echo $ECHO_N "checking for void *... $ECHO_C" >&6; } |
| 8445 | if test "${ac_cv_type_void_p+set}" = set; then |
| 8446 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8447 | else |
| 8448 | cat >conftest.$ac_ext <<_ACEOF |
| 8449 | /* confdefs.h. */ |
| 8450 | _ACEOF |
| 8451 | cat confdefs.h >>conftest.$ac_ext |
| 8452 | cat >>conftest.$ac_ext <<_ACEOF |
| 8453 | /* end confdefs.h. */ |
| 8454 | $ac_includes_default |
| 8455 | typedef void * ac__type_new_; |
| 8456 | int |
| 8457 | main () |
| 8458 | { |
| 8459 | if ((ac__type_new_ *) 0) |
| 8460 | return 0; |
| 8461 | if (sizeof (ac__type_new_)) |
| 8462 | return 0; |
| 8463 | ; |
| 8464 | return 0; |
| 8465 | } |
| 8466 | _ACEOF |
| 8467 | rm -f conftest.$ac_objext |
| 8468 | if { (ac_try="$ac_compile" |
| 8469 | case "(($ac_try" in |
| 8470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8471 | *) ac_try_echo=$ac_try;; |
| 8472 | esac |
| 8473 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8474 | (eval "$ac_compile") 2>conftest.er1 |
| 8475 | ac_status=$? |
| 8476 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8477 | rm -f conftest.er1 |
| 8478 | cat conftest.err >&5 |
| 8479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8480 | (exit $ac_status); } && { |
| 8481 | test -z "$ac_c_werror_flag" || |
| 8482 | test ! -s conftest.err |
| 8483 | } && test -s conftest.$ac_objext; then |
| 8484 | ac_cv_type_void_p=yes |
| 8485 | else |
| 8486 | echo "$as_me: failed program was:" >&5 |
| 8487 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8488 | |
| 8489 | ac_cv_type_void_p=no |
| 8490 | fi |
| 8491 | |
| 8492 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8493 | fi |
| 8494 | { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 8495 | echo "${ECHO_T}$ac_cv_type_void_p" >&6; } |
| 8496 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8497 | # The cast to long int works around a bug in the HP C Compiler |
| 8498 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8499 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8500 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8501 | { echo "$as_me:$LINENO: checking size of void *" >&5 |
| 8502 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8503 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8505 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8506 | if test "$cross_compiling" = yes; then |
| 8507 | # Depending upon the size, compute the lo and hi bounds. |
| 8508 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8509 | /* confdefs.h. */ |
| 8510 | _ACEOF |
| 8511 | cat confdefs.h >>conftest.$ac_ext |
| 8512 | cat >>conftest.$ac_ext <<_ACEOF |
| 8513 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8514 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8515 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8516 | int |
| 8517 | main () |
| 8518 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8519 | 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] | 8520 | test_array [0] = 0 |
| 8521 | |
| 8522 | ; |
| 8523 | return 0; |
| 8524 | } |
| 8525 | _ACEOF |
| 8526 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8527 | if { (ac_try="$ac_compile" |
| 8528 | case "(($ac_try" in |
| 8529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8530 | *) ac_try_echo=$ac_try;; |
| 8531 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8533 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8534 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8535 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8536 | rm -f conftest.er1 |
| 8537 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8539 | (exit $ac_status); } && { |
| 8540 | test -z "$ac_c_werror_flag" || |
| 8541 | test ! -s conftest.err |
| 8542 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8543 | ac_lo=0 ac_mid=0 |
| 8544 | while :; do |
| 8545 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8546 | /* confdefs.h. */ |
| 8547 | _ACEOF |
| 8548 | cat confdefs.h >>conftest.$ac_ext |
| 8549 | cat >>conftest.$ac_ext <<_ACEOF |
| 8550 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8551 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8552 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8553 | int |
| 8554 | main () |
| 8555 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8556 | 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] | 8557 | test_array [0] = 0 |
| 8558 | |
| 8559 | ; |
| 8560 | return 0; |
| 8561 | } |
| 8562 | _ACEOF |
| 8563 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8564 | if { (ac_try="$ac_compile" |
| 8565 | case "(($ac_try" in |
| 8566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8567 | *) ac_try_echo=$ac_try;; |
| 8568 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8570 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8571 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8572 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8573 | rm -f conftest.er1 |
| 8574 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8576 | (exit $ac_status); } && { |
| 8577 | test -z "$ac_c_werror_flag" || |
| 8578 | test ! -s conftest.err |
| 8579 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8580 | ac_hi=$ac_mid; break |
| 8581 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8582 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8583 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8584 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8585 | ac_lo=`expr $ac_mid + 1` |
| 8586 | if test $ac_lo -le $ac_mid; then |
| 8587 | ac_lo= ac_hi= |
| 8588 | break |
| 8589 | fi |
| 8590 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8591 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8592 | |
| 8593 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8594 | done |
| 8595 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8596 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8597 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8598 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8599 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8600 | /* confdefs.h. */ |
| 8601 | _ACEOF |
| 8602 | cat confdefs.h >>conftest.$ac_ext |
| 8603 | cat >>conftest.$ac_ext <<_ACEOF |
| 8604 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8605 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8606 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8607 | int |
| 8608 | main () |
| 8609 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8610 | 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] | 8611 | test_array [0] = 0 |
| 8612 | |
| 8613 | ; |
| 8614 | return 0; |
| 8615 | } |
| 8616 | _ACEOF |
| 8617 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8618 | if { (ac_try="$ac_compile" |
| 8619 | case "(($ac_try" in |
| 8620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8621 | *) ac_try_echo=$ac_try;; |
| 8622 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8623 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8624 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8625 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8626 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8627 | rm -f conftest.er1 |
| 8628 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8630 | (exit $ac_status); } && { |
| 8631 | test -z "$ac_c_werror_flag" || |
| 8632 | test ! -s conftest.err |
| 8633 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8634 | ac_hi=-1 ac_mid=-1 |
| 8635 | while :; do |
| 8636 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8637 | /* confdefs.h. */ |
| 8638 | _ACEOF |
| 8639 | cat confdefs.h >>conftest.$ac_ext |
| 8640 | cat >>conftest.$ac_ext <<_ACEOF |
| 8641 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8642 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8643 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8644 | int |
| 8645 | main () |
| 8646 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8647 | 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] | 8648 | test_array [0] = 0 |
| 8649 | |
| 8650 | ; |
| 8651 | return 0; |
| 8652 | } |
| 8653 | _ACEOF |
| 8654 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8655 | if { (ac_try="$ac_compile" |
| 8656 | case "(($ac_try" in |
| 8657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8658 | *) ac_try_echo=$ac_try;; |
| 8659 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8660 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8661 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8662 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8663 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8664 | rm -f conftest.er1 |
| 8665 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8667 | (exit $ac_status); } && { |
| 8668 | test -z "$ac_c_werror_flag" || |
| 8669 | test ! -s conftest.err |
| 8670 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8671 | ac_lo=$ac_mid; break |
| 8672 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8673 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8674 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8675 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8676 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8677 | if test $ac_mid -le $ac_hi; then |
| 8678 | ac_lo= ac_hi= |
| 8679 | break |
| 8680 | fi |
| 8681 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8682 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8683 | |
| 8684 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8685 | done |
| 8686 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8687 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8688 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8689 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8690 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8691 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8692 | |
| 8693 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8694 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8695 | |
| 8696 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8697 | # Binary search between lo and hi bounds. |
| 8698 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8699 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8700 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8701 | /* confdefs.h. */ |
| 8702 | _ACEOF |
| 8703 | cat confdefs.h >>conftest.$ac_ext |
| 8704 | cat >>conftest.$ac_ext <<_ACEOF |
| 8705 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8706 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8707 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8708 | int |
| 8709 | main () |
| 8710 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8711 | 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] | 8712 | test_array [0] = 0 |
| 8713 | |
| 8714 | ; |
| 8715 | return 0; |
| 8716 | } |
| 8717 | _ACEOF |
| 8718 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8719 | if { (ac_try="$ac_compile" |
| 8720 | case "(($ac_try" in |
| 8721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8722 | *) ac_try_echo=$ac_try;; |
| 8723 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8725 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8726 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8727 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8728 | rm -f conftest.er1 |
| 8729 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8731 | (exit $ac_status); } && { |
| 8732 | test -z "$ac_c_werror_flag" || |
| 8733 | test ! -s conftest.err |
| 8734 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8735 | ac_hi=$ac_mid |
| 8736 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8737 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8738 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8739 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8740 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8741 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8742 | |
| 8743 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8744 | done |
| 8745 | case $ac_lo in |
| 8746 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8747 | '') if test "$ac_cv_type_void_p" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8748 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8749 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8750 | echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8751 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8752 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8753 | else |
| 8754 | ac_cv_sizeof_void_p=0 |
| 8755 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8756 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8757 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8758 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8759 | /* confdefs.h. */ |
| 8760 | _ACEOF |
| 8761 | cat confdefs.h >>conftest.$ac_ext |
| 8762 | cat >>conftest.$ac_ext <<_ACEOF |
| 8763 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8764 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8765 | typedef void * ac__type_sizeof_; |
| 8766 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8767 | 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] | 8768 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8769 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8770 | int |
| 8771 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8772 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8773 | |
| 8774 | FILE *f = fopen ("conftest.val", "w"); |
| 8775 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8776 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8777 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8778 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8779 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8780 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8781 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8782 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8783 | } |
| 8784 | else |
| 8785 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8786 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8787 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8788 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8789 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8790 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8791 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8792 | |
| 8793 | ; |
| 8794 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8795 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8796 | _ACEOF |
| 8797 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8798 | if { (ac_try="$ac_link" |
| 8799 | case "(($ac_try" in |
| 8800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8801 | *) ac_try_echo=$ac_try;; |
| 8802 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8804 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8805 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8807 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8808 | { (case "(($ac_try" in |
| 8809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8810 | *) ac_try_echo=$ac_try;; |
| 8811 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8813 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8814 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8816 | (exit $ac_status); }; }; then |
| 8817 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8818 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8819 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8820 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8821 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8822 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8823 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8824 | if test "$ac_cv_type_void_p" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8825 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8826 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8827 | echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8828 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8829 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8830 | else |
| 8831 | ac_cv_sizeof_void_p=0 |
| 8832 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8833 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8834 | 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] | 8835 | fi |
| 8836 | rm -f conftest.val |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8837 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8838 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 8839 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8840 | |
| 8841 | |
| 8842 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8843 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8844 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8845 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8846 | |
| 8847 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8848 | { echo "$as_me:$LINENO: checking for short" >&5 |
| 8849 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
| 8850 | if test "${ac_cv_type_short+set}" = set; then |
| 8851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8852 | else |
| 8853 | cat >conftest.$ac_ext <<_ACEOF |
| 8854 | /* confdefs.h. */ |
| 8855 | _ACEOF |
| 8856 | cat confdefs.h >>conftest.$ac_ext |
| 8857 | cat >>conftest.$ac_ext <<_ACEOF |
| 8858 | /* end confdefs.h. */ |
| 8859 | $ac_includes_default |
| 8860 | typedef short ac__type_new_; |
| 8861 | int |
| 8862 | main () |
| 8863 | { |
| 8864 | if ((ac__type_new_ *) 0) |
| 8865 | return 0; |
| 8866 | if (sizeof (ac__type_new_)) |
| 8867 | return 0; |
| 8868 | ; |
| 8869 | return 0; |
| 8870 | } |
| 8871 | _ACEOF |
| 8872 | rm -f conftest.$ac_objext |
| 8873 | if { (ac_try="$ac_compile" |
| 8874 | case "(($ac_try" in |
| 8875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8876 | *) ac_try_echo=$ac_try;; |
| 8877 | esac |
| 8878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8879 | (eval "$ac_compile") 2>conftest.er1 |
| 8880 | ac_status=$? |
| 8881 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8882 | rm -f conftest.er1 |
| 8883 | cat conftest.err >&5 |
| 8884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8885 | (exit $ac_status); } && { |
| 8886 | test -z "$ac_c_werror_flag" || |
| 8887 | test ! -s conftest.err |
| 8888 | } && test -s conftest.$ac_objext; then |
| 8889 | ac_cv_type_short=yes |
| 8890 | else |
| 8891 | echo "$as_me: failed program was:" >&5 |
| 8892 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8893 | |
| 8894 | ac_cv_type_short=no |
| 8895 | fi |
| 8896 | |
| 8897 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8898 | fi |
| 8899 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 8900 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
| 8901 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8902 | # The cast to long int works around a bug in the HP C Compiler |
| 8903 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8904 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8905 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8906 | { echo "$as_me:$LINENO: checking size of short" >&5 |
| 8907 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8908 | if test "${ac_cv_sizeof_short+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8910 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8911 | if test "$cross_compiling" = yes; then |
| 8912 | # Depending upon the size, compute the lo and hi bounds. |
| 8913 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8914 | /* confdefs.h. */ |
| 8915 | _ACEOF |
| 8916 | cat confdefs.h >>conftest.$ac_ext |
| 8917 | cat >>conftest.$ac_ext <<_ACEOF |
| 8918 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8919 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8920 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8921 | int |
| 8922 | main () |
| 8923 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8924 | 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] | 8925 | test_array [0] = 0 |
| 8926 | |
| 8927 | ; |
| 8928 | return 0; |
| 8929 | } |
| 8930 | _ACEOF |
| 8931 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8932 | if { (ac_try="$ac_compile" |
| 8933 | case "(($ac_try" in |
| 8934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8935 | *) ac_try_echo=$ac_try;; |
| 8936 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8937 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8938 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8939 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8940 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8941 | rm -f conftest.er1 |
| 8942 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8944 | (exit $ac_status); } && { |
| 8945 | test -z "$ac_c_werror_flag" || |
| 8946 | test ! -s conftest.err |
| 8947 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8948 | ac_lo=0 ac_mid=0 |
| 8949 | while :; do |
| 8950 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8951 | /* confdefs.h. */ |
| 8952 | _ACEOF |
| 8953 | cat confdefs.h >>conftest.$ac_ext |
| 8954 | cat >>conftest.$ac_ext <<_ACEOF |
| 8955 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8956 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8957 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8958 | int |
| 8959 | main () |
| 8960 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8961 | 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] | 8962 | test_array [0] = 0 |
| 8963 | |
| 8964 | ; |
| 8965 | return 0; |
| 8966 | } |
| 8967 | _ACEOF |
| 8968 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8969 | if { (ac_try="$ac_compile" |
| 8970 | case "(($ac_try" in |
| 8971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8972 | *) ac_try_echo=$ac_try;; |
| 8973 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8975 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8976 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8977 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8978 | rm -f conftest.er1 |
| 8979 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8981 | (exit $ac_status); } && { |
| 8982 | test -z "$ac_c_werror_flag" || |
| 8983 | test ! -s conftest.err |
| 8984 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8985 | ac_hi=$ac_mid; break |
| 8986 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8987 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8988 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8989 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8990 | ac_lo=`expr $ac_mid + 1` |
| 8991 | if test $ac_lo -le $ac_mid; then |
| 8992 | ac_lo= ac_hi= |
| 8993 | break |
| 8994 | fi |
| 8995 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8996 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8997 | |
| 8998 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8999 | done |
| 9000 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9001 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9002 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9003 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9004 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9005 | /* confdefs.h. */ |
| 9006 | _ACEOF |
| 9007 | cat confdefs.h >>conftest.$ac_ext |
| 9008 | cat >>conftest.$ac_ext <<_ACEOF |
| 9009 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9010 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9011 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9012 | int |
| 9013 | main () |
| 9014 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9015 | 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] | 9016 | test_array [0] = 0 |
| 9017 | |
| 9018 | ; |
| 9019 | return 0; |
| 9020 | } |
| 9021 | _ACEOF |
| 9022 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9023 | if { (ac_try="$ac_compile" |
| 9024 | case "(($ac_try" in |
| 9025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9026 | *) ac_try_echo=$ac_try;; |
| 9027 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9029 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9030 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9031 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9032 | rm -f conftest.er1 |
| 9033 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9035 | (exit $ac_status); } && { |
| 9036 | test -z "$ac_c_werror_flag" || |
| 9037 | test ! -s conftest.err |
| 9038 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9039 | ac_hi=-1 ac_mid=-1 |
| 9040 | while :; do |
| 9041 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9042 | /* confdefs.h. */ |
| 9043 | _ACEOF |
| 9044 | cat confdefs.h >>conftest.$ac_ext |
| 9045 | cat >>conftest.$ac_ext <<_ACEOF |
| 9046 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9047 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9048 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9049 | int |
| 9050 | main () |
| 9051 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9052 | 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] | 9053 | test_array [0] = 0 |
| 9054 | |
| 9055 | ; |
| 9056 | return 0; |
| 9057 | } |
| 9058 | _ACEOF |
| 9059 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9060 | if { (ac_try="$ac_compile" |
| 9061 | case "(($ac_try" in |
| 9062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9063 | *) ac_try_echo=$ac_try;; |
| 9064 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9066 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9067 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9068 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9069 | rm -f conftest.er1 |
| 9070 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9072 | (exit $ac_status); } && { |
| 9073 | test -z "$ac_c_werror_flag" || |
| 9074 | test ! -s conftest.err |
| 9075 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9076 | ac_lo=$ac_mid; break |
| 9077 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9078 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9079 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9080 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9081 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9082 | if test $ac_mid -le $ac_hi; then |
| 9083 | ac_lo= ac_hi= |
| 9084 | break |
| 9085 | fi |
| 9086 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9087 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9088 | |
| 9089 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9090 | done |
| 9091 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9092 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9093 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9094 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9095 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9096 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9097 | |
| 9098 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9099 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9100 | |
| 9101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9102 | # Binary search between lo and hi bounds. |
| 9103 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9104 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9105 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9106 | /* confdefs.h. */ |
| 9107 | _ACEOF |
| 9108 | cat confdefs.h >>conftest.$ac_ext |
| 9109 | cat >>conftest.$ac_ext <<_ACEOF |
| 9110 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9111 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9112 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9113 | int |
| 9114 | main () |
| 9115 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9116 | 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] | 9117 | test_array [0] = 0 |
| 9118 | |
| 9119 | ; |
| 9120 | return 0; |
| 9121 | } |
| 9122 | _ACEOF |
| 9123 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9124 | if { (ac_try="$ac_compile" |
| 9125 | case "(($ac_try" in |
| 9126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9127 | *) ac_try_echo=$ac_try;; |
| 9128 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9130 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9131 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9132 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9133 | rm -f conftest.er1 |
| 9134 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9136 | (exit $ac_status); } && { |
| 9137 | test -z "$ac_c_werror_flag" || |
| 9138 | test ! -s conftest.err |
| 9139 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9140 | ac_hi=$ac_mid |
| 9141 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9142 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9144 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9145 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9146 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9147 | |
| 9148 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9149 | done |
| 9150 | case $ac_lo in |
| 9151 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9152 | '') if test "$ac_cv_type_short" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9153 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9154 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9155 | echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9156 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9157 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9158 | else |
| 9159 | ac_cv_sizeof_short=0 |
| 9160 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9161 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9162 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9163 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9164 | /* confdefs.h. */ |
| 9165 | _ACEOF |
| 9166 | cat confdefs.h >>conftest.$ac_ext |
| 9167 | cat >>conftest.$ac_ext <<_ACEOF |
| 9168 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9169 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9170 | typedef short ac__type_sizeof_; |
| 9171 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9172 | 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] | 9173 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9174 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9175 | int |
| 9176 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9177 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9178 | |
| 9179 | FILE *f = fopen ("conftest.val", "w"); |
| 9180 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9181 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9182 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9183 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9184 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9185 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9186 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9187 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9188 | } |
| 9189 | else |
| 9190 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9191 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9192 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9193 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9194 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9195 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9196 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9197 | |
| 9198 | ; |
| 9199 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9200 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9201 | _ACEOF |
| 9202 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9203 | if { (ac_try="$ac_link" |
| 9204 | case "(($ac_try" in |
| 9205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9206 | *) ac_try_echo=$ac_try;; |
| 9207 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9209 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9210 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9212 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9213 | { (case "(($ac_try" in |
| 9214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9215 | *) ac_try_echo=$ac_try;; |
| 9216 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9218 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9219 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9221 | (exit $ac_status); }; }; then |
| 9222 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9223 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9224 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9225 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9226 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9227 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9228 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9229 | if test "$ac_cv_type_short" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9230 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9231 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9232 | echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9233 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9234 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9235 | else |
| 9236 | ac_cv_sizeof_short=0 |
| 9237 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9238 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9239 | 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] | 9240 | fi |
| 9241 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9242 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9243 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 9244 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9245 | |
| 9246 | |
| 9247 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9248 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9249 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9250 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9251 | |
| 9252 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9253 | { echo "$as_me:$LINENO: checking for float" >&5 |
| 9254 | echo $ECHO_N "checking for float... $ECHO_C" >&6; } |
| 9255 | if test "${ac_cv_type_float+set}" = set; then |
| 9256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9257 | else |
| 9258 | cat >conftest.$ac_ext <<_ACEOF |
| 9259 | /* confdefs.h. */ |
| 9260 | _ACEOF |
| 9261 | cat confdefs.h >>conftest.$ac_ext |
| 9262 | cat >>conftest.$ac_ext <<_ACEOF |
| 9263 | /* end confdefs.h. */ |
| 9264 | $ac_includes_default |
| 9265 | typedef float ac__type_new_; |
| 9266 | int |
| 9267 | main () |
| 9268 | { |
| 9269 | if ((ac__type_new_ *) 0) |
| 9270 | return 0; |
| 9271 | if (sizeof (ac__type_new_)) |
| 9272 | return 0; |
| 9273 | ; |
| 9274 | return 0; |
| 9275 | } |
| 9276 | _ACEOF |
| 9277 | rm -f conftest.$ac_objext |
| 9278 | if { (ac_try="$ac_compile" |
| 9279 | case "(($ac_try" in |
| 9280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9281 | *) ac_try_echo=$ac_try;; |
| 9282 | esac |
| 9283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9284 | (eval "$ac_compile") 2>conftest.er1 |
| 9285 | ac_status=$? |
| 9286 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9287 | rm -f conftest.er1 |
| 9288 | cat conftest.err >&5 |
| 9289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9290 | (exit $ac_status); } && { |
| 9291 | test -z "$ac_c_werror_flag" || |
| 9292 | test ! -s conftest.err |
| 9293 | } && test -s conftest.$ac_objext; then |
| 9294 | ac_cv_type_float=yes |
| 9295 | else |
| 9296 | echo "$as_me: failed program was:" >&5 |
| 9297 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9298 | |
| 9299 | ac_cv_type_float=no |
| 9300 | fi |
| 9301 | |
| 9302 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9303 | fi |
| 9304 | { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 9305 | echo "${ECHO_T}$ac_cv_type_float" >&6; } |
| 9306 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9307 | # The cast to long int works around a bug in the HP C Compiler |
| 9308 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9309 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9310 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9311 | { echo "$as_me:$LINENO: checking size of float" >&5 |
| 9312 | echo $ECHO_N "checking size of float... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9313 | if test "${ac_cv_sizeof_float+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9315 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9316 | if test "$cross_compiling" = yes; then |
| 9317 | # Depending upon the size, compute the lo and hi bounds. |
| 9318 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9319 | /* confdefs.h. */ |
| 9320 | _ACEOF |
| 9321 | cat confdefs.h >>conftest.$ac_ext |
| 9322 | cat >>conftest.$ac_ext <<_ACEOF |
| 9323 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9324 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9325 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9326 | int |
| 9327 | main () |
| 9328 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9329 | 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] | 9330 | test_array [0] = 0 |
| 9331 | |
| 9332 | ; |
| 9333 | return 0; |
| 9334 | } |
| 9335 | _ACEOF |
| 9336 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9337 | if { (ac_try="$ac_compile" |
| 9338 | case "(($ac_try" in |
| 9339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9340 | *) ac_try_echo=$ac_try;; |
| 9341 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9343 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9344 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9345 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9346 | rm -f conftest.er1 |
| 9347 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9349 | (exit $ac_status); } && { |
| 9350 | test -z "$ac_c_werror_flag" || |
| 9351 | test ! -s conftest.err |
| 9352 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9353 | ac_lo=0 ac_mid=0 |
| 9354 | while :; do |
| 9355 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9356 | /* confdefs.h. */ |
| 9357 | _ACEOF |
| 9358 | cat confdefs.h >>conftest.$ac_ext |
| 9359 | cat >>conftest.$ac_ext <<_ACEOF |
| 9360 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9361 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9362 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9363 | int |
| 9364 | main () |
| 9365 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9366 | 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] | 9367 | test_array [0] = 0 |
| 9368 | |
| 9369 | ; |
| 9370 | return 0; |
| 9371 | } |
| 9372 | _ACEOF |
| 9373 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9374 | if { (ac_try="$ac_compile" |
| 9375 | case "(($ac_try" in |
| 9376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9377 | *) ac_try_echo=$ac_try;; |
| 9378 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9380 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9381 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9382 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9383 | rm -f conftest.er1 |
| 9384 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9386 | (exit $ac_status); } && { |
| 9387 | test -z "$ac_c_werror_flag" || |
| 9388 | test ! -s conftest.err |
| 9389 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9390 | ac_hi=$ac_mid; break |
| 9391 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9392 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9393 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9394 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9395 | ac_lo=`expr $ac_mid + 1` |
| 9396 | if test $ac_lo -le $ac_mid; then |
| 9397 | ac_lo= ac_hi= |
| 9398 | break |
| 9399 | fi |
| 9400 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9401 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9402 | |
| 9403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9404 | done |
| 9405 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9406 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9407 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9408 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9409 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9410 | /* confdefs.h. */ |
| 9411 | _ACEOF |
| 9412 | cat confdefs.h >>conftest.$ac_ext |
| 9413 | cat >>conftest.$ac_ext <<_ACEOF |
| 9414 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9415 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9416 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9417 | int |
| 9418 | main () |
| 9419 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9420 | 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] | 9421 | test_array [0] = 0 |
| 9422 | |
| 9423 | ; |
| 9424 | return 0; |
| 9425 | } |
| 9426 | _ACEOF |
| 9427 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9428 | if { (ac_try="$ac_compile" |
| 9429 | case "(($ac_try" in |
| 9430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9431 | *) ac_try_echo=$ac_try;; |
| 9432 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9434 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9435 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9436 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9437 | rm -f conftest.er1 |
| 9438 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9440 | (exit $ac_status); } && { |
| 9441 | test -z "$ac_c_werror_flag" || |
| 9442 | test ! -s conftest.err |
| 9443 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9444 | ac_hi=-1 ac_mid=-1 |
| 9445 | while :; do |
| 9446 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9447 | /* confdefs.h. */ |
| 9448 | _ACEOF |
| 9449 | cat confdefs.h >>conftest.$ac_ext |
| 9450 | cat >>conftest.$ac_ext <<_ACEOF |
| 9451 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9452 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9453 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9454 | int |
| 9455 | main () |
| 9456 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9457 | 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] | 9458 | test_array [0] = 0 |
| 9459 | |
| 9460 | ; |
| 9461 | return 0; |
| 9462 | } |
| 9463 | _ACEOF |
| 9464 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9465 | if { (ac_try="$ac_compile" |
| 9466 | case "(($ac_try" in |
| 9467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9468 | *) ac_try_echo=$ac_try;; |
| 9469 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9471 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9472 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9473 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9474 | rm -f conftest.er1 |
| 9475 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9477 | (exit $ac_status); } && { |
| 9478 | test -z "$ac_c_werror_flag" || |
| 9479 | test ! -s conftest.err |
| 9480 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9481 | ac_lo=$ac_mid; break |
| 9482 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9483 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9484 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9485 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9486 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9487 | if test $ac_mid -le $ac_hi; then |
| 9488 | ac_lo= ac_hi= |
| 9489 | break |
| 9490 | fi |
| 9491 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9492 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9493 | |
| 9494 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9495 | done |
| 9496 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9497 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9498 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9499 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9500 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9501 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9502 | |
| 9503 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9504 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9505 | |
| 9506 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9507 | # Binary search between lo and hi bounds. |
| 9508 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9509 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9510 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9511 | /* confdefs.h. */ |
| 9512 | _ACEOF |
| 9513 | cat confdefs.h >>conftest.$ac_ext |
| 9514 | cat >>conftest.$ac_ext <<_ACEOF |
| 9515 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9516 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9517 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9518 | int |
| 9519 | main () |
| 9520 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9521 | 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] | 9522 | test_array [0] = 0 |
| 9523 | |
| 9524 | ; |
| 9525 | return 0; |
| 9526 | } |
| 9527 | _ACEOF |
| 9528 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9529 | if { (ac_try="$ac_compile" |
| 9530 | case "(($ac_try" in |
| 9531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9532 | *) ac_try_echo=$ac_try;; |
| 9533 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9535 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9536 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9537 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9538 | rm -f conftest.er1 |
| 9539 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9541 | (exit $ac_status); } && { |
| 9542 | test -z "$ac_c_werror_flag" || |
| 9543 | test ! -s conftest.err |
| 9544 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9545 | ac_hi=$ac_mid |
| 9546 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9547 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9548 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9549 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9550 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9551 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9552 | |
| 9553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9554 | done |
| 9555 | case $ac_lo in |
| 9556 | ?*) ac_cv_sizeof_float=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9557 | '') if test "$ac_cv_type_float" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9558 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9559 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9560 | echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9561 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9562 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9563 | else |
| 9564 | ac_cv_sizeof_float=0 |
| 9565 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9566 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9567 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9568 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9569 | /* confdefs.h. */ |
| 9570 | _ACEOF |
| 9571 | cat confdefs.h >>conftest.$ac_ext |
| 9572 | cat >>conftest.$ac_ext <<_ACEOF |
| 9573 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9574 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9575 | typedef float ac__type_sizeof_; |
| 9576 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9577 | 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] | 9578 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9579 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9580 | int |
| 9581 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9582 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9583 | |
| 9584 | FILE *f = fopen ("conftest.val", "w"); |
| 9585 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9586 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9587 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9588 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9589 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9590 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9591 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9592 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9593 | } |
| 9594 | else |
| 9595 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9596 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9597 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9598 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9599 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9600 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9601 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9602 | |
| 9603 | ; |
| 9604 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9605 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9606 | _ACEOF |
| 9607 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9608 | if { (ac_try="$ac_link" |
| 9609 | case "(($ac_try" in |
| 9610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9611 | *) ac_try_echo=$ac_try;; |
| 9612 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9614 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9615 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9617 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9618 | { (case "(($ac_try" in |
| 9619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9620 | *) ac_try_echo=$ac_try;; |
| 9621 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9622 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9623 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9624 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9626 | (exit $ac_status); }; }; then |
| 9627 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9628 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9629 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9630 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9631 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9632 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9633 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9634 | if test "$ac_cv_type_float" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9635 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9636 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9637 | echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9638 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9639 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9640 | else |
| 9641 | ac_cv_sizeof_float=0 |
| 9642 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9643 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9644 | 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] | 9645 | fi |
| 9646 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9647 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9648 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 9649 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9650 | |
| 9651 | |
| 9652 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9653 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9654 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9655 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9656 | |
| 9657 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9658 | { echo "$as_me:$LINENO: checking for double" >&5 |
| 9659 | echo $ECHO_N "checking for double... $ECHO_C" >&6; } |
| 9660 | if test "${ac_cv_type_double+set}" = set; then |
| 9661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9662 | else |
| 9663 | cat >conftest.$ac_ext <<_ACEOF |
| 9664 | /* confdefs.h. */ |
| 9665 | _ACEOF |
| 9666 | cat confdefs.h >>conftest.$ac_ext |
| 9667 | cat >>conftest.$ac_ext <<_ACEOF |
| 9668 | /* end confdefs.h. */ |
| 9669 | $ac_includes_default |
| 9670 | typedef double ac__type_new_; |
| 9671 | int |
| 9672 | main () |
| 9673 | { |
| 9674 | if ((ac__type_new_ *) 0) |
| 9675 | return 0; |
| 9676 | if (sizeof (ac__type_new_)) |
| 9677 | return 0; |
| 9678 | ; |
| 9679 | return 0; |
| 9680 | } |
| 9681 | _ACEOF |
| 9682 | rm -f conftest.$ac_objext |
| 9683 | if { (ac_try="$ac_compile" |
| 9684 | case "(($ac_try" in |
| 9685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9686 | *) ac_try_echo=$ac_try;; |
| 9687 | esac |
| 9688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9689 | (eval "$ac_compile") 2>conftest.er1 |
| 9690 | ac_status=$? |
| 9691 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9692 | rm -f conftest.er1 |
| 9693 | cat conftest.err >&5 |
| 9694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9695 | (exit $ac_status); } && { |
| 9696 | test -z "$ac_c_werror_flag" || |
| 9697 | test ! -s conftest.err |
| 9698 | } && test -s conftest.$ac_objext; then |
| 9699 | ac_cv_type_double=yes |
| 9700 | else |
| 9701 | echo "$as_me: failed program was:" >&5 |
| 9702 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9703 | |
| 9704 | ac_cv_type_double=no |
| 9705 | fi |
| 9706 | |
| 9707 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9708 | fi |
| 9709 | { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 9710 | echo "${ECHO_T}$ac_cv_type_double" >&6; } |
| 9711 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9712 | # The cast to long int works around a bug in the HP C Compiler |
| 9713 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9714 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9715 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9716 | { echo "$as_me:$LINENO: checking size of double" >&5 |
| 9717 | echo $ECHO_N "checking size of double... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9718 | if test "${ac_cv_sizeof_double+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9720 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9721 | if test "$cross_compiling" = yes; then |
| 9722 | # Depending upon the size, compute the lo and hi bounds. |
| 9723 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9724 | /* confdefs.h. */ |
| 9725 | _ACEOF |
| 9726 | cat confdefs.h >>conftest.$ac_ext |
| 9727 | cat >>conftest.$ac_ext <<_ACEOF |
| 9728 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9729 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9730 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9731 | int |
| 9732 | main () |
| 9733 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9734 | 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] | 9735 | test_array [0] = 0 |
| 9736 | |
| 9737 | ; |
| 9738 | return 0; |
| 9739 | } |
| 9740 | _ACEOF |
| 9741 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9742 | if { (ac_try="$ac_compile" |
| 9743 | case "(($ac_try" in |
| 9744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9745 | *) ac_try_echo=$ac_try;; |
| 9746 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9748 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9749 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9750 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9751 | rm -f conftest.er1 |
| 9752 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9754 | (exit $ac_status); } && { |
| 9755 | test -z "$ac_c_werror_flag" || |
| 9756 | test ! -s conftest.err |
| 9757 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9758 | ac_lo=0 ac_mid=0 |
| 9759 | while :; do |
| 9760 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9761 | /* confdefs.h. */ |
| 9762 | _ACEOF |
| 9763 | cat confdefs.h >>conftest.$ac_ext |
| 9764 | cat >>conftest.$ac_ext <<_ACEOF |
| 9765 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9766 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9767 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9768 | int |
| 9769 | main () |
| 9770 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9771 | 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] | 9772 | test_array [0] = 0 |
| 9773 | |
| 9774 | ; |
| 9775 | return 0; |
| 9776 | } |
| 9777 | _ACEOF |
| 9778 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9779 | if { (ac_try="$ac_compile" |
| 9780 | case "(($ac_try" in |
| 9781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9782 | *) ac_try_echo=$ac_try;; |
| 9783 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9785 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9786 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9787 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9788 | rm -f conftest.er1 |
| 9789 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9791 | (exit $ac_status); } && { |
| 9792 | test -z "$ac_c_werror_flag" || |
| 9793 | test ! -s conftest.err |
| 9794 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9795 | ac_hi=$ac_mid; break |
| 9796 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9797 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9798 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9799 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9800 | ac_lo=`expr $ac_mid + 1` |
| 9801 | if test $ac_lo -le $ac_mid; then |
| 9802 | ac_lo= ac_hi= |
| 9803 | break |
| 9804 | fi |
| 9805 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9806 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9807 | |
| 9808 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9809 | done |
| 9810 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9811 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9812 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9813 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9814 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9815 | /* confdefs.h. */ |
| 9816 | _ACEOF |
| 9817 | cat confdefs.h >>conftest.$ac_ext |
| 9818 | cat >>conftest.$ac_ext <<_ACEOF |
| 9819 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9820 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9821 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9822 | int |
| 9823 | main () |
| 9824 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9825 | 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] | 9826 | test_array [0] = 0 |
| 9827 | |
| 9828 | ; |
| 9829 | return 0; |
| 9830 | } |
| 9831 | _ACEOF |
| 9832 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9833 | if { (ac_try="$ac_compile" |
| 9834 | case "(($ac_try" in |
| 9835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9836 | *) ac_try_echo=$ac_try;; |
| 9837 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9839 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9840 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9841 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9842 | rm -f conftest.er1 |
| 9843 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9845 | (exit $ac_status); } && { |
| 9846 | test -z "$ac_c_werror_flag" || |
| 9847 | test ! -s conftest.err |
| 9848 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9849 | ac_hi=-1 ac_mid=-1 |
| 9850 | while :; do |
| 9851 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9852 | /* confdefs.h. */ |
| 9853 | _ACEOF |
| 9854 | cat confdefs.h >>conftest.$ac_ext |
| 9855 | cat >>conftest.$ac_ext <<_ACEOF |
| 9856 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9857 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9858 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9859 | int |
| 9860 | main () |
| 9861 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9862 | 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] | 9863 | test_array [0] = 0 |
| 9864 | |
| 9865 | ; |
| 9866 | return 0; |
| 9867 | } |
| 9868 | _ACEOF |
| 9869 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9870 | if { (ac_try="$ac_compile" |
| 9871 | case "(($ac_try" in |
| 9872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9873 | *) ac_try_echo=$ac_try;; |
| 9874 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9876 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9877 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9878 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9879 | rm -f conftest.er1 |
| 9880 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9882 | (exit $ac_status); } && { |
| 9883 | test -z "$ac_c_werror_flag" || |
| 9884 | test ! -s conftest.err |
| 9885 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9886 | ac_lo=$ac_mid; break |
| 9887 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9888 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9889 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9890 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9891 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9892 | if test $ac_mid -le $ac_hi; then |
| 9893 | ac_lo= ac_hi= |
| 9894 | break |
| 9895 | fi |
| 9896 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9897 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9898 | |
| 9899 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9900 | done |
| 9901 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9902 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9903 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9904 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9905 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9906 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9907 | |
| 9908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9909 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9910 | |
| 9911 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9912 | # Binary search between lo and hi bounds. |
| 9913 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9914 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9915 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9916 | /* confdefs.h. */ |
| 9917 | _ACEOF |
| 9918 | cat confdefs.h >>conftest.$ac_ext |
| 9919 | cat >>conftest.$ac_ext <<_ACEOF |
| 9920 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9921 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9922 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9923 | int |
| 9924 | main () |
| 9925 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9926 | 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] | 9927 | test_array [0] = 0 |
| 9928 | |
| 9929 | ; |
| 9930 | return 0; |
| 9931 | } |
| 9932 | _ACEOF |
| 9933 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9934 | if { (ac_try="$ac_compile" |
| 9935 | case "(($ac_try" in |
| 9936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9937 | *) ac_try_echo=$ac_try;; |
| 9938 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9939 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9940 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9941 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9942 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9943 | rm -f conftest.er1 |
| 9944 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9946 | (exit $ac_status); } && { |
| 9947 | test -z "$ac_c_werror_flag" || |
| 9948 | test ! -s conftest.err |
| 9949 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9950 | ac_hi=$ac_mid |
| 9951 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9952 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9953 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9954 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9955 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9956 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9957 | |
| 9958 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9959 | done |
| 9960 | case $ac_lo in |
| 9961 | ?*) ac_cv_sizeof_double=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9962 | '') if test "$ac_cv_type_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9963 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9964 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9965 | echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9966 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9967 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9968 | else |
| 9969 | ac_cv_sizeof_double=0 |
| 9970 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9971 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9972 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9973 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9974 | /* confdefs.h. */ |
| 9975 | _ACEOF |
| 9976 | cat confdefs.h >>conftest.$ac_ext |
| 9977 | cat >>conftest.$ac_ext <<_ACEOF |
| 9978 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9979 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9980 | typedef double ac__type_sizeof_; |
| 9981 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9982 | 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] | 9983 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9984 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9985 | int |
| 9986 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9987 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9988 | |
| 9989 | FILE *f = fopen ("conftest.val", "w"); |
| 9990 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9991 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9992 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9993 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9994 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9995 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9996 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9997 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9998 | } |
| 9999 | else |
| 10000 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10001 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10002 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10003 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10004 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10005 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10006 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10007 | |
| 10008 | ; |
| 10009 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10010 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10011 | _ACEOF |
| 10012 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10013 | if { (ac_try="$ac_link" |
| 10014 | case "(($ac_try" in |
| 10015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10016 | *) ac_try_echo=$ac_try;; |
| 10017 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10019 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10020 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10022 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10023 | { (case "(($ac_try" in |
| 10024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10025 | *) ac_try_echo=$ac_try;; |
| 10026 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10028 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10029 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10031 | (exit $ac_status); }; }; then |
| 10032 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10033 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10034 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10035 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10036 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10037 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10038 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10039 | if test "$ac_cv_type_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10040 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10041 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10042 | echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10043 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10044 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10045 | else |
| 10046 | ac_cv_sizeof_double=0 |
| 10047 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10048 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10049 | 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] | 10050 | fi |
| 10051 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10052 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10053 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 10054 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10055 | |
| 10056 | |
| 10057 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10058 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10059 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10060 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10061 | |
| 10062 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10063 | { echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 10064 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; } |
| 10065 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 10066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10067 | else |
| 10068 | cat >conftest.$ac_ext <<_ACEOF |
| 10069 | /* confdefs.h. */ |
| 10070 | _ACEOF |
| 10071 | cat confdefs.h >>conftest.$ac_ext |
| 10072 | cat >>conftest.$ac_ext <<_ACEOF |
| 10073 | /* end confdefs.h. */ |
| 10074 | $ac_includes_default |
| 10075 | typedef fpos_t ac__type_new_; |
| 10076 | int |
| 10077 | main () |
| 10078 | { |
| 10079 | if ((ac__type_new_ *) 0) |
| 10080 | return 0; |
| 10081 | if (sizeof (ac__type_new_)) |
| 10082 | return 0; |
| 10083 | ; |
| 10084 | return 0; |
| 10085 | } |
| 10086 | _ACEOF |
| 10087 | rm -f conftest.$ac_objext |
| 10088 | if { (ac_try="$ac_compile" |
| 10089 | case "(($ac_try" in |
| 10090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10091 | *) ac_try_echo=$ac_try;; |
| 10092 | esac |
| 10093 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10094 | (eval "$ac_compile") 2>conftest.er1 |
| 10095 | ac_status=$? |
| 10096 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10097 | rm -f conftest.er1 |
| 10098 | cat conftest.err >&5 |
| 10099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10100 | (exit $ac_status); } && { |
| 10101 | test -z "$ac_c_werror_flag" || |
| 10102 | test ! -s conftest.err |
| 10103 | } && test -s conftest.$ac_objext; then |
| 10104 | ac_cv_type_fpos_t=yes |
| 10105 | else |
| 10106 | echo "$as_me: failed program was:" >&5 |
| 10107 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10108 | |
| 10109 | ac_cv_type_fpos_t=no |
| 10110 | fi |
| 10111 | |
| 10112 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10113 | fi |
| 10114 | { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 10115 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; } |
| 10116 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10117 | # The cast to long int works around a bug in the HP C Compiler |
| 10118 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10119 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10120 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10121 | { echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 10122 | 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] | 10123 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10125 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10126 | if test "$cross_compiling" = yes; then |
| 10127 | # Depending upon the size, compute the lo and hi bounds. |
| 10128 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10129 | /* confdefs.h. */ |
| 10130 | _ACEOF |
| 10131 | cat confdefs.h >>conftest.$ac_ext |
| 10132 | cat >>conftest.$ac_ext <<_ACEOF |
| 10133 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10134 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10135 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10136 | int |
| 10137 | main () |
| 10138 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10139 | 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] | 10140 | test_array [0] = 0 |
| 10141 | |
| 10142 | ; |
| 10143 | return 0; |
| 10144 | } |
| 10145 | _ACEOF |
| 10146 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10147 | if { (ac_try="$ac_compile" |
| 10148 | case "(($ac_try" in |
| 10149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10150 | *) ac_try_echo=$ac_try;; |
| 10151 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10153 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10154 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10155 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10156 | rm -f conftest.er1 |
| 10157 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10159 | (exit $ac_status); } && { |
| 10160 | test -z "$ac_c_werror_flag" || |
| 10161 | test ! -s conftest.err |
| 10162 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10163 | ac_lo=0 ac_mid=0 |
| 10164 | while :; do |
| 10165 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10166 | /* confdefs.h. */ |
| 10167 | _ACEOF |
| 10168 | cat confdefs.h >>conftest.$ac_ext |
| 10169 | cat >>conftest.$ac_ext <<_ACEOF |
| 10170 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10171 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10172 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10173 | int |
| 10174 | main () |
| 10175 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10176 | 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] | 10177 | test_array [0] = 0 |
| 10178 | |
| 10179 | ; |
| 10180 | return 0; |
| 10181 | } |
| 10182 | _ACEOF |
| 10183 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10184 | if { (ac_try="$ac_compile" |
| 10185 | case "(($ac_try" in |
| 10186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10187 | *) ac_try_echo=$ac_try;; |
| 10188 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10190 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10191 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10192 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10193 | rm -f conftest.er1 |
| 10194 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10196 | (exit $ac_status); } && { |
| 10197 | test -z "$ac_c_werror_flag" || |
| 10198 | test ! -s conftest.err |
| 10199 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10200 | ac_hi=$ac_mid; break |
| 10201 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10202 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10203 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10204 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10205 | ac_lo=`expr $ac_mid + 1` |
| 10206 | if test $ac_lo -le $ac_mid; then |
| 10207 | ac_lo= ac_hi= |
| 10208 | break |
| 10209 | fi |
| 10210 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10211 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10212 | |
| 10213 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10214 | done |
| 10215 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10216 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10217 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10218 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10219 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10220 | /* confdefs.h. */ |
| 10221 | _ACEOF |
| 10222 | cat confdefs.h >>conftest.$ac_ext |
| 10223 | cat >>conftest.$ac_ext <<_ACEOF |
| 10224 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10225 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10226 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10227 | int |
| 10228 | main () |
| 10229 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10230 | 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] | 10231 | test_array [0] = 0 |
| 10232 | |
| 10233 | ; |
| 10234 | return 0; |
| 10235 | } |
| 10236 | _ACEOF |
| 10237 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10238 | if { (ac_try="$ac_compile" |
| 10239 | case "(($ac_try" in |
| 10240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10241 | *) ac_try_echo=$ac_try;; |
| 10242 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10244 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10245 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10246 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10247 | rm -f conftest.er1 |
| 10248 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10250 | (exit $ac_status); } && { |
| 10251 | test -z "$ac_c_werror_flag" || |
| 10252 | test ! -s conftest.err |
| 10253 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10254 | ac_hi=-1 ac_mid=-1 |
| 10255 | while :; do |
| 10256 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10257 | /* confdefs.h. */ |
| 10258 | _ACEOF |
| 10259 | cat confdefs.h >>conftest.$ac_ext |
| 10260 | cat >>conftest.$ac_ext <<_ACEOF |
| 10261 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10262 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10263 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10264 | int |
| 10265 | main () |
| 10266 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10267 | 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] | 10268 | test_array [0] = 0 |
| 10269 | |
| 10270 | ; |
| 10271 | return 0; |
| 10272 | } |
| 10273 | _ACEOF |
| 10274 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10275 | if { (ac_try="$ac_compile" |
| 10276 | case "(($ac_try" in |
| 10277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10278 | *) ac_try_echo=$ac_try;; |
| 10279 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10281 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10282 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10283 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10284 | rm -f conftest.er1 |
| 10285 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10287 | (exit $ac_status); } && { |
| 10288 | test -z "$ac_c_werror_flag" || |
| 10289 | test ! -s conftest.err |
| 10290 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10291 | ac_lo=$ac_mid; break |
| 10292 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10293 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10294 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10295 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10296 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10297 | if test $ac_mid -le $ac_hi; then |
| 10298 | ac_lo= ac_hi= |
| 10299 | break |
| 10300 | fi |
| 10301 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10302 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10303 | |
| 10304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10305 | done |
| 10306 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10307 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10308 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10309 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10310 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10311 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10312 | |
| 10313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10314 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10315 | |
| 10316 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10317 | # Binary search between lo and hi bounds. |
| 10318 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10319 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10320 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10321 | /* confdefs.h. */ |
| 10322 | _ACEOF |
| 10323 | cat confdefs.h >>conftest.$ac_ext |
| 10324 | cat >>conftest.$ac_ext <<_ACEOF |
| 10325 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10326 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10327 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10328 | int |
| 10329 | main () |
| 10330 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10331 | 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] | 10332 | test_array [0] = 0 |
| 10333 | |
| 10334 | ; |
| 10335 | return 0; |
| 10336 | } |
| 10337 | _ACEOF |
| 10338 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10339 | if { (ac_try="$ac_compile" |
| 10340 | case "(($ac_try" in |
| 10341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10342 | *) ac_try_echo=$ac_try;; |
| 10343 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10345 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10346 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10347 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10348 | rm -f conftest.er1 |
| 10349 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10351 | (exit $ac_status); } && { |
| 10352 | test -z "$ac_c_werror_flag" || |
| 10353 | test ! -s conftest.err |
| 10354 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10355 | ac_hi=$ac_mid |
| 10356 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10357 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10358 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10359 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10360 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10361 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10362 | |
| 10363 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10364 | done |
| 10365 | case $ac_lo in |
| 10366 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10367 | '') if test "$ac_cv_type_fpos_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10368 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10369 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10370 | echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10371 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10372 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10373 | else |
| 10374 | ac_cv_sizeof_fpos_t=0 |
| 10375 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10376 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10377 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10378 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10379 | /* confdefs.h. */ |
| 10380 | _ACEOF |
| 10381 | cat confdefs.h >>conftest.$ac_ext |
| 10382 | cat >>conftest.$ac_ext <<_ACEOF |
| 10383 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10384 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10385 | typedef fpos_t ac__type_sizeof_; |
| 10386 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10387 | 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] | 10388 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10389 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10390 | int |
| 10391 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10392 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10393 | |
| 10394 | FILE *f = fopen ("conftest.val", "w"); |
| 10395 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10396 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10397 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10398 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10399 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10400 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10401 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10402 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10403 | } |
| 10404 | else |
| 10405 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10406 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10407 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10408 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10409 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10410 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10411 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10412 | |
| 10413 | ; |
| 10414 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10415 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10416 | _ACEOF |
| 10417 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10418 | if { (ac_try="$ac_link" |
| 10419 | case "(($ac_try" in |
| 10420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10421 | *) ac_try_echo=$ac_try;; |
| 10422 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10424 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10425 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10427 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10428 | { (case "(($ac_try" in |
| 10429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10430 | *) ac_try_echo=$ac_try;; |
| 10431 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10433 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10434 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10436 | (exit $ac_status); }; }; then |
| 10437 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10438 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10439 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10440 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10441 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10442 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10443 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10444 | if test "$ac_cv_type_fpos_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10445 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10446 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10447 | echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10448 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10449 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10450 | else |
| 10451 | ac_cv_sizeof_fpos_t=0 |
| 10452 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10453 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10454 | 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] | 10455 | fi |
| 10456 | rm -f conftest.val |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10457 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10458 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 10459 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10460 | |
| 10461 | |
| 10462 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10463 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10464 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10465 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10466 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10467 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10468 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 10469 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
| 10470 | if test "${ac_cv_type_size_t+set}" = set; then |
| 10471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10472 | else |
| 10473 | cat >conftest.$ac_ext <<_ACEOF |
| 10474 | /* confdefs.h. */ |
| 10475 | _ACEOF |
| 10476 | cat confdefs.h >>conftest.$ac_ext |
| 10477 | cat >>conftest.$ac_ext <<_ACEOF |
| 10478 | /* end confdefs.h. */ |
| 10479 | $ac_includes_default |
| 10480 | typedef size_t ac__type_new_; |
| 10481 | int |
| 10482 | main () |
| 10483 | { |
| 10484 | if ((ac__type_new_ *) 0) |
| 10485 | return 0; |
| 10486 | if (sizeof (ac__type_new_)) |
| 10487 | return 0; |
| 10488 | ; |
| 10489 | return 0; |
| 10490 | } |
| 10491 | _ACEOF |
| 10492 | rm -f conftest.$ac_objext |
| 10493 | if { (ac_try="$ac_compile" |
| 10494 | case "(($ac_try" in |
| 10495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10496 | *) ac_try_echo=$ac_try;; |
| 10497 | esac |
| 10498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10499 | (eval "$ac_compile") 2>conftest.er1 |
| 10500 | ac_status=$? |
| 10501 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10502 | rm -f conftest.er1 |
| 10503 | cat conftest.err >&5 |
| 10504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10505 | (exit $ac_status); } && { |
| 10506 | test -z "$ac_c_werror_flag" || |
| 10507 | test ! -s conftest.err |
| 10508 | } && test -s conftest.$ac_objext; then |
| 10509 | ac_cv_type_size_t=yes |
| 10510 | else |
| 10511 | echo "$as_me: failed program was:" >&5 |
| 10512 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10513 | |
| 10514 | ac_cv_type_size_t=no |
| 10515 | fi |
| 10516 | |
| 10517 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10518 | fi |
| 10519 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 10520 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 10521 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10522 | # The cast to long int works around a bug in the HP C Compiler |
| 10523 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10524 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10525 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10526 | { echo "$as_me:$LINENO: checking size of size_t" >&5 |
| 10527 | 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] | 10528 | if test "${ac_cv_sizeof_size_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10530 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10531 | if test "$cross_compiling" = yes; then |
| 10532 | # Depending upon the size, compute the lo and hi bounds. |
| 10533 | cat >conftest.$ac_ext <<_ACEOF |
| 10534 | /* confdefs.h. */ |
| 10535 | _ACEOF |
| 10536 | cat confdefs.h >>conftest.$ac_ext |
| 10537 | cat >>conftest.$ac_ext <<_ACEOF |
| 10538 | /* end confdefs.h. */ |
| 10539 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10540 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10541 | int |
| 10542 | main () |
| 10543 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10544 | 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] | 10545 | test_array [0] = 0 |
| 10546 | |
| 10547 | ; |
| 10548 | return 0; |
| 10549 | } |
| 10550 | _ACEOF |
| 10551 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10552 | if { (ac_try="$ac_compile" |
| 10553 | case "(($ac_try" in |
| 10554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10555 | *) ac_try_echo=$ac_try;; |
| 10556 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10558 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10559 | ac_status=$? |
| 10560 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10561 | rm -f conftest.er1 |
| 10562 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10564 | (exit $ac_status); } && { |
| 10565 | test -z "$ac_c_werror_flag" || |
| 10566 | test ! -s conftest.err |
| 10567 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10568 | ac_lo=0 ac_mid=0 |
| 10569 | while :; do |
| 10570 | cat >conftest.$ac_ext <<_ACEOF |
| 10571 | /* confdefs.h. */ |
| 10572 | _ACEOF |
| 10573 | cat confdefs.h >>conftest.$ac_ext |
| 10574 | cat >>conftest.$ac_ext <<_ACEOF |
| 10575 | /* end confdefs.h. */ |
| 10576 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10577 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10578 | int |
| 10579 | main () |
| 10580 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10581 | 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] | 10582 | test_array [0] = 0 |
| 10583 | |
| 10584 | ; |
| 10585 | return 0; |
| 10586 | } |
| 10587 | _ACEOF |
| 10588 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10589 | if { (ac_try="$ac_compile" |
| 10590 | case "(($ac_try" in |
| 10591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10592 | *) ac_try_echo=$ac_try;; |
| 10593 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10595 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10596 | ac_status=$? |
| 10597 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10598 | rm -f conftest.er1 |
| 10599 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10601 | (exit $ac_status); } && { |
| 10602 | test -z "$ac_c_werror_flag" || |
| 10603 | test ! -s conftest.err |
| 10604 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10605 | ac_hi=$ac_mid; break |
| 10606 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10607 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10608 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10609 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10610 | ac_lo=`expr $ac_mid + 1` |
| 10611 | if test $ac_lo -le $ac_mid; then |
| 10612 | ac_lo= ac_hi= |
| 10613 | break |
| 10614 | fi |
| 10615 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10616 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10617 | |
| 10618 | 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] | 10619 | done |
| 10620 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10621 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10622 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10623 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10624 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10625 | /* confdefs.h. */ |
| 10626 | _ACEOF |
| 10627 | cat confdefs.h >>conftest.$ac_ext |
| 10628 | cat >>conftest.$ac_ext <<_ACEOF |
| 10629 | /* end confdefs.h. */ |
| 10630 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10631 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10632 | int |
| 10633 | main () |
| 10634 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10635 | 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] | 10636 | test_array [0] = 0 |
| 10637 | |
| 10638 | ; |
| 10639 | return 0; |
| 10640 | } |
| 10641 | _ACEOF |
| 10642 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10643 | if { (ac_try="$ac_compile" |
| 10644 | case "(($ac_try" in |
| 10645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10646 | *) ac_try_echo=$ac_try;; |
| 10647 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10648 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10649 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10650 | ac_status=$? |
| 10651 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10652 | rm -f conftest.er1 |
| 10653 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10655 | (exit $ac_status); } && { |
| 10656 | test -z "$ac_c_werror_flag" || |
| 10657 | test ! -s conftest.err |
| 10658 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10659 | ac_hi=-1 ac_mid=-1 |
| 10660 | while :; do |
| 10661 | cat >conftest.$ac_ext <<_ACEOF |
| 10662 | /* confdefs.h. */ |
| 10663 | _ACEOF |
| 10664 | cat confdefs.h >>conftest.$ac_ext |
| 10665 | cat >>conftest.$ac_ext <<_ACEOF |
| 10666 | /* end confdefs.h. */ |
| 10667 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10668 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10669 | int |
| 10670 | main () |
| 10671 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10672 | 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] | 10673 | test_array [0] = 0 |
| 10674 | |
| 10675 | ; |
| 10676 | return 0; |
| 10677 | } |
| 10678 | _ACEOF |
| 10679 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10680 | if { (ac_try="$ac_compile" |
| 10681 | case "(($ac_try" in |
| 10682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10683 | *) ac_try_echo=$ac_try;; |
| 10684 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10685 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10686 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10687 | ac_status=$? |
| 10688 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10689 | rm -f conftest.er1 |
| 10690 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10692 | (exit $ac_status); } && { |
| 10693 | test -z "$ac_c_werror_flag" || |
| 10694 | test ! -s conftest.err |
| 10695 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10696 | ac_lo=$ac_mid; break |
| 10697 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10698 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10699 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10700 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10701 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10702 | if test $ac_mid -le $ac_hi; then |
| 10703 | ac_lo= ac_hi= |
| 10704 | break |
| 10705 | fi |
| 10706 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10707 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10708 | |
| 10709 | 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] | 10710 | done |
| 10711 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10712 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10713 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10714 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10715 | ac_lo= ac_hi= |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10716 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10717 | |
| 10718 | 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] | 10719 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10720 | |
| 10721 | 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] | 10722 | # Binary search between lo and hi bounds. |
| 10723 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10724 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10725 | cat >conftest.$ac_ext <<_ACEOF |
| 10726 | /* confdefs.h. */ |
| 10727 | _ACEOF |
| 10728 | cat confdefs.h >>conftest.$ac_ext |
| 10729 | cat >>conftest.$ac_ext <<_ACEOF |
| 10730 | /* end confdefs.h. */ |
| 10731 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10732 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10733 | int |
| 10734 | main () |
| 10735 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10736 | 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] | 10737 | test_array [0] = 0 |
| 10738 | |
| 10739 | ; |
| 10740 | return 0; |
| 10741 | } |
| 10742 | _ACEOF |
| 10743 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10744 | if { (ac_try="$ac_compile" |
| 10745 | case "(($ac_try" in |
| 10746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10747 | *) ac_try_echo=$ac_try;; |
| 10748 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10749 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10750 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10751 | ac_status=$? |
| 10752 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10753 | rm -f conftest.er1 |
| 10754 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10756 | (exit $ac_status); } && { |
| 10757 | test -z "$ac_c_werror_flag" || |
| 10758 | test ! -s conftest.err |
| 10759 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10760 | ac_hi=$ac_mid |
| 10761 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10762 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10763 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10764 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10765 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10766 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10767 | |
| 10768 | 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] | 10769 | done |
| 10770 | case $ac_lo in |
| 10771 | ?*) ac_cv_sizeof_size_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10772 | '') if test "$ac_cv_type_size_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10773 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10774 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10775 | echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10776 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10777 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10778 | else |
| 10779 | ac_cv_sizeof_size_t=0 |
| 10780 | fi ;; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10781 | esac |
| 10782 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10783 | cat >conftest.$ac_ext <<_ACEOF |
| 10784 | /* confdefs.h. */ |
| 10785 | _ACEOF |
| 10786 | cat confdefs.h >>conftest.$ac_ext |
| 10787 | cat >>conftest.$ac_ext <<_ACEOF |
| 10788 | /* end confdefs.h. */ |
| 10789 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10790 | typedef size_t ac__type_sizeof_; |
| 10791 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10792 | 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] | 10793 | #include <stdio.h> |
| 10794 | #include <stdlib.h> |
| 10795 | int |
| 10796 | main () |
| 10797 | { |
| 10798 | |
| 10799 | FILE *f = fopen ("conftest.val", "w"); |
| 10800 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10801 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10802 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10803 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10804 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10805 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10806 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10807 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10808 | } |
| 10809 | else |
| 10810 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10811 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10812 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10813 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10814 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10815 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10816 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10817 | |
| 10818 | ; |
| 10819 | return 0; |
| 10820 | } |
| 10821 | _ACEOF |
| 10822 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10823 | if { (ac_try="$ac_link" |
| 10824 | case "(($ac_try" in |
| 10825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10826 | *) ac_try_echo=$ac_try;; |
| 10827 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10829 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10830 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10832 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10833 | { (case "(($ac_try" in |
| 10834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10835 | *) ac_try_echo=$ac_try;; |
| 10836 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10838 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10839 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10841 | (exit $ac_status); }; }; then |
| 10842 | ac_cv_sizeof_size_t=`cat conftest.val` |
| 10843 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10844 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10845 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10846 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10847 | |
| 10848 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10849 | if test "$ac_cv_type_size_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10850 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10851 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10852 | echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10853 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10854 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10855 | else |
| 10856 | ac_cv_sizeof_size_t=0 |
| 10857 | fi |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10858 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10859 | 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] | 10860 | fi |
| 10861 | rm -f conftest.val |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10862 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10863 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 |
| 10864 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10865 | |
| 10866 | |
| 10867 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10868 | cat >>confdefs.h <<_ACEOF |
| 10869 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 10870 | _ACEOF |
| 10871 | |
| 10872 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10873 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 10874 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
| 10875 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 10876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10877 | else |
| 10878 | cat >conftest.$ac_ext <<_ACEOF |
| 10879 | /* confdefs.h. */ |
| 10880 | _ACEOF |
| 10881 | cat confdefs.h >>conftest.$ac_ext |
| 10882 | cat >>conftest.$ac_ext <<_ACEOF |
| 10883 | /* end confdefs.h. */ |
| 10884 | $ac_includes_default |
| 10885 | typedef pid_t ac__type_new_; |
| 10886 | int |
| 10887 | main () |
| 10888 | { |
| 10889 | if ((ac__type_new_ *) 0) |
| 10890 | return 0; |
| 10891 | if (sizeof (ac__type_new_)) |
| 10892 | return 0; |
| 10893 | ; |
| 10894 | return 0; |
| 10895 | } |
| 10896 | _ACEOF |
| 10897 | rm -f conftest.$ac_objext |
| 10898 | if { (ac_try="$ac_compile" |
| 10899 | case "(($ac_try" in |
| 10900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10901 | *) ac_try_echo=$ac_try;; |
| 10902 | esac |
| 10903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10904 | (eval "$ac_compile") 2>conftest.er1 |
| 10905 | ac_status=$? |
| 10906 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10907 | rm -f conftest.er1 |
| 10908 | cat conftest.err >&5 |
| 10909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10910 | (exit $ac_status); } && { |
| 10911 | test -z "$ac_c_werror_flag" || |
| 10912 | test ! -s conftest.err |
| 10913 | } && test -s conftest.$ac_objext; then |
| 10914 | ac_cv_type_pid_t=yes |
| 10915 | else |
| 10916 | echo "$as_me: failed program was:" >&5 |
| 10917 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10918 | |
| 10919 | ac_cv_type_pid_t=no |
| 10920 | fi |
| 10921 | |
| 10922 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10923 | fi |
| 10924 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 10925 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 10926 | |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10927 | # The cast to long int works around a bug in the HP C Compiler |
| 10928 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10929 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10930 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10931 | { echo "$as_me:$LINENO: checking size of pid_t" >&5 |
| 10932 | echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10933 | if test "${ac_cv_sizeof_pid_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10935 | else |
| 10936 | if test "$cross_compiling" = yes; then |
| 10937 | # Depending upon the size, compute the lo and hi bounds. |
| 10938 | cat >conftest.$ac_ext <<_ACEOF |
| 10939 | /* confdefs.h. */ |
| 10940 | _ACEOF |
| 10941 | cat confdefs.h >>conftest.$ac_ext |
| 10942 | cat >>conftest.$ac_ext <<_ACEOF |
| 10943 | /* end confdefs.h. */ |
| 10944 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10945 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10946 | int |
| 10947 | main () |
| 10948 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10949 | 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] | 10950 | test_array [0] = 0 |
| 10951 | |
| 10952 | ; |
| 10953 | return 0; |
| 10954 | } |
| 10955 | _ACEOF |
| 10956 | rm -f conftest.$ac_objext |
| 10957 | if { (ac_try="$ac_compile" |
| 10958 | case "(($ac_try" in |
| 10959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10960 | *) ac_try_echo=$ac_try;; |
| 10961 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10962 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10963 | (eval "$ac_compile") 2>conftest.er1 |
| 10964 | ac_status=$? |
| 10965 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10966 | rm -f conftest.er1 |
| 10967 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10969 | (exit $ac_status); } && { |
| 10970 | test -z "$ac_c_werror_flag" || |
| 10971 | test ! -s conftest.err |
| 10972 | } && test -s conftest.$ac_objext; then |
| 10973 | ac_lo=0 ac_mid=0 |
| 10974 | while :; do |
| 10975 | cat >conftest.$ac_ext <<_ACEOF |
| 10976 | /* confdefs.h. */ |
| 10977 | _ACEOF |
| 10978 | cat confdefs.h >>conftest.$ac_ext |
| 10979 | cat >>conftest.$ac_ext <<_ACEOF |
| 10980 | /* end confdefs.h. */ |
| 10981 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10982 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10983 | int |
| 10984 | main () |
| 10985 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10986 | 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] | 10987 | test_array [0] = 0 |
| 10988 | |
| 10989 | ; |
| 10990 | return 0; |
| 10991 | } |
| 10992 | _ACEOF |
| 10993 | rm -f conftest.$ac_objext |
| 10994 | if { (ac_try="$ac_compile" |
| 10995 | case "(($ac_try" in |
| 10996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10997 | *) ac_try_echo=$ac_try;; |
| 10998 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11000 | (eval "$ac_compile") 2>conftest.er1 |
| 11001 | ac_status=$? |
| 11002 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11003 | rm -f conftest.er1 |
| 11004 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11006 | (exit $ac_status); } && { |
| 11007 | test -z "$ac_c_werror_flag" || |
| 11008 | test ! -s conftest.err |
| 11009 | } && test -s conftest.$ac_objext; then |
| 11010 | ac_hi=$ac_mid; break |
| 11011 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11012 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11013 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11014 | |
| 11015 | ac_lo=`expr $ac_mid + 1` |
| 11016 | if test $ac_lo -le $ac_mid; then |
| 11017 | ac_lo= ac_hi= |
| 11018 | break |
| 11019 | fi |
| 11020 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 11021 | fi |
| 11022 | |
| 11023 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11024 | done |
| 11025 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11026 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11027 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11028 | |
| 11029 | cat >conftest.$ac_ext <<_ACEOF |
| 11030 | /* confdefs.h. */ |
| 11031 | _ACEOF |
| 11032 | cat confdefs.h >>conftest.$ac_ext |
| 11033 | cat >>conftest.$ac_ext <<_ACEOF |
| 11034 | /* end confdefs.h. */ |
| 11035 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11036 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11037 | int |
| 11038 | main () |
| 11039 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11040 | 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] | 11041 | test_array [0] = 0 |
| 11042 | |
| 11043 | ; |
| 11044 | return 0; |
| 11045 | } |
| 11046 | _ACEOF |
| 11047 | rm -f conftest.$ac_objext |
| 11048 | if { (ac_try="$ac_compile" |
| 11049 | case "(($ac_try" in |
| 11050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11051 | *) ac_try_echo=$ac_try;; |
| 11052 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11054 | (eval "$ac_compile") 2>conftest.er1 |
| 11055 | ac_status=$? |
| 11056 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11057 | rm -f conftest.er1 |
| 11058 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11060 | (exit $ac_status); } && { |
| 11061 | test -z "$ac_c_werror_flag" || |
| 11062 | test ! -s conftest.err |
| 11063 | } && test -s conftest.$ac_objext; then |
| 11064 | ac_hi=-1 ac_mid=-1 |
| 11065 | while :; do |
| 11066 | cat >conftest.$ac_ext <<_ACEOF |
| 11067 | /* confdefs.h. */ |
| 11068 | _ACEOF |
| 11069 | cat confdefs.h >>conftest.$ac_ext |
| 11070 | cat >>conftest.$ac_ext <<_ACEOF |
| 11071 | /* end confdefs.h. */ |
| 11072 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11073 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11074 | int |
| 11075 | main () |
| 11076 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11077 | 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] | 11078 | test_array [0] = 0 |
| 11079 | |
| 11080 | ; |
| 11081 | return 0; |
| 11082 | } |
| 11083 | _ACEOF |
| 11084 | rm -f conftest.$ac_objext |
| 11085 | if { (ac_try="$ac_compile" |
| 11086 | case "(($ac_try" in |
| 11087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11088 | *) ac_try_echo=$ac_try;; |
| 11089 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11091 | (eval "$ac_compile") 2>conftest.er1 |
| 11092 | ac_status=$? |
| 11093 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11094 | rm -f conftest.er1 |
| 11095 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11097 | (exit $ac_status); } && { |
| 11098 | test -z "$ac_c_werror_flag" || |
| 11099 | test ! -s conftest.err |
| 11100 | } && test -s conftest.$ac_objext; then |
| 11101 | ac_lo=$ac_mid; break |
| 11102 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11103 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11104 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11105 | |
| 11106 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11107 | if test $ac_mid -le $ac_hi; then |
| 11108 | ac_lo= ac_hi= |
| 11109 | break |
| 11110 | fi |
| 11111 | ac_mid=`expr 2 '*' $ac_mid` |
| 11112 | fi |
| 11113 | |
| 11114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11115 | done |
| 11116 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11117 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11118 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11119 | |
| 11120 | ac_lo= ac_hi= |
| 11121 | fi |
| 11122 | |
| 11123 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11124 | fi |
| 11125 | |
| 11126 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11127 | # Binary search between lo and hi bounds. |
| 11128 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11129 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11130 | cat >conftest.$ac_ext <<_ACEOF |
| 11131 | /* confdefs.h. */ |
| 11132 | _ACEOF |
| 11133 | cat confdefs.h >>conftest.$ac_ext |
| 11134 | cat >>conftest.$ac_ext <<_ACEOF |
| 11135 | /* end confdefs.h. */ |
| 11136 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11137 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11138 | int |
| 11139 | main () |
| 11140 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11141 | 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] | 11142 | test_array [0] = 0 |
| 11143 | |
| 11144 | ; |
| 11145 | return 0; |
| 11146 | } |
| 11147 | _ACEOF |
| 11148 | rm -f conftest.$ac_objext |
| 11149 | if { (ac_try="$ac_compile" |
| 11150 | case "(($ac_try" in |
| 11151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11152 | *) ac_try_echo=$ac_try;; |
| 11153 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11155 | (eval "$ac_compile") 2>conftest.er1 |
| 11156 | ac_status=$? |
| 11157 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11158 | rm -f conftest.er1 |
| 11159 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11161 | (exit $ac_status); } && { |
| 11162 | test -z "$ac_c_werror_flag" || |
| 11163 | test ! -s conftest.err |
| 11164 | } && test -s conftest.$ac_objext; then |
| 11165 | ac_hi=$ac_mid |
| 11166 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11167 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11168 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11169 | |
| 11170 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 11171 | fi |
| 11172 | |
| 11173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11174 | done |
| 11175 | case $ac_lo in |
| 11176 | ?*) ac_cv_sizeof_pid_t=$ac_lo;; |
| 11177 | '') if test "$ac_cv_type_pid_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11178 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11179 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11180 | echo "$as_me: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11181 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11182 | { (exit 77); exit 77; }; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11183 | else |
| 11184 | ac_cv_sizeof_pid_t=0 |
| 11185 | fi ;; |
| 11186 | esac |
| 11187 | else |
| 11188 | cat >conftest.$ac_ext <<_ACEOF |
| 11189 | /* confdefs.h. */ |
| 11190 | _ACEOF |
| 11191 | cat confdefs.h >>conftest.$ac_ext |
| 11192 | cat >>conftest.$ac_ext <<_ACEOF |
| 11193 | /* end confdefs.h. */ |
| 11194 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11195 | typedef pid_t ac__type_sizeof_; |
| 11196 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11197 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11198 | #include <stdio.h> |
| 11199 | #include <stdlib.h> |
| 11200 | int |
| 11201 | main () |
| 11202 | { |
| 11203 | |
| 11204 | FILE *f = fopen ("conftest.val", "w"); |
| 11205 | if (! f) |
| 11206 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11207 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11208 | { |
| 11209 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11210 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11211 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11212 | fprintf (f, "%ld\n", i); |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11213 | } |
| 11214 | else |
| 11215 | { |
| 11216 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11217 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11218 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11219 | fprintf (f, "%lu\n", i); |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11220 | } |
| 11221 | return ferror (f) || fclose (f) != 0; |
| 11222 | |
| 11223 | ; |
| 11224 | return 0; |
| 11225 | } |
| 11226 | _ACEOF |
| 11227 | rm -f conftest$ac_exeext |
| 11228 | if { (ac_try="$ac_link" |
| 11229 | case "(($ac_try" in |
| 11230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11231 | *) ac_try_echo=$ac_try;; |
| 11232 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11234 | (eval "$ac_link") 2>&5 |
| 11235 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11237 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11238 | { (case "(($ac_try" in |
| 11239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11240 | *) ac_try_echo=$ac_try;; |
| 11241 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11242 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11243 | (eval "$ac_try") 2>&5 |
| 11244 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11246 | (exit $ac_status); }; }; then |
| 11247 | ac_cv_sizeof_pid_t=`cat conftest.val` |
| 11248 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11249 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11250 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11251 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11252 | |
| 11253 | ( exit $ac_status ) |
| 11254 | if test "$ac_cv_type_pid_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11255 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11256 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11257 | echo "$as_me: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11258 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11259 | { (exit 77); exit 77; }; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11260 | else |
| 11261 | ac_cv_sizeof_pid_t=0 |
| 11262 | fi |
| 11263 | fi |
| 11264 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11265 | fi |
| 11266 | rm -f conftest.val |
| 11267 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11268 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5 |
| 11269 | echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11270 | |
| 11271 | |
| 11272 | |
| 11273 | cat >>confdefs.h <<_ACEOF |
| 11274 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t |
| 11275 | _ACEOF |
| 11276 | |
| 11277 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11278 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11279 | { echo "$as_me:$LINENO: checking for long long support" >&5 |
| 11280 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11281 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11282 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11283 | /* confdefs.h. */ |
| 11284 | _ACEOF |
| 11285 | cat confdefs.h >>conftest.$ac_ext |
| 11286 | cat >>conftest.$ac_ext <<_ACEOF |
| 11287 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11288 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11289 | int |
| 11290 | main () |
| 11291 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11292 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11293 | ; |
| 11294 | return 0; |
| 11295 | } |
| 11296 | _ACEOF |
| 11297 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11298 | if { (ac_try="$ac_compile" |
| 11299 | case "(($ac_try" in |
| 11300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11301 | *) ac_try_echo=$ac_try;; |
| 11302 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11304 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11305 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11306 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11307 | rm -f conftest.er1 |
| 11308 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11310 | (exit $ac_status); } && { |
| 11311 | test -z "$ac_c_werror_flag" || |
| 11312 | test ! -s conftest.err |
| 11313 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11314 | |
| 11315 | |
| 11316 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11317 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11318 | _ACEOF |
| 11319 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11320 | have_long_long=yes |
| 11321 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11322 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11323 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11324 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11325 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11326 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11327 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11328 | |
| 11329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11330 | { echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 11331 | echo "${ECHO_T}$have_long_long" >&6; } |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 11332 | if test "$have_long_long" = yes ; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11333 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 11334 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
| 11335 | if test "${ac_cv_type_long_long+set}" = set; then |
| 11336 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11337 | else |
| 11338 | cat >conftest.$ac_ext <<_ACEOF |
| 11339 | /* confdefs.h. */ |
| 11340 | _ACEOF |
| 11341 | cat confdefs.h >>conftest.$ac_ext |
| 11342 | cat >>conftest.$ac_ext <<_ACEOF |
| 11343 | /* end confdefs.h. */ |
| 11344 | $ac_includes_default |
| 11345 | typedef long long ac__type_new_; |
| 11346 | int |
| 11347 | main () |
| 11348 | { |
| 11349 | if ((ac__type_new_ *) 0) |
| 11350 | return 0; |
| 11351 | if (sizeof (ac__type_new_)) |
| 11352 | return 0; |
| 11353 | ; |
| 11354 | return 0; |
| 11355 | } |
| 11356 | _ACEOF |
| 11357 | rm -f conftest.$ac_objext |
| 11358 | if { (ac_try="$ac_compile" |
| 11359 | case "(($ac_try" in |
| 11360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11361 | *) ac_try_echo=$ac_try;; |
| 11362 | esac |
| 11363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11364 | (eval "$ac_compile") 2>conftest.er1 |
| 11365 | ac_status=$? |
| 11366 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11367 | rm -f conftest.er1 |
| 11368 | cat conftest.err >&5 |
| 11369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11370 | (exit $ac_status); } && { |
| 11371 | test -z "$ac_c_werror_flag" || |
| 11372 | test ! -s conftest.err |
| 11373 | } && test -s conftest.$ac_objext; then |
| 11374 | ac_cv_type_long_long=yes |
| 11375 | else |
| 11376 | echo "$as_me: failed program was:" >&5 |
| 11377 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11378 | |
| 11379 | ac_cv_type_long_long=no |
| 11380 | fi |
| 11381 | |
| 11382 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11383 | fi |
| 11384 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 11385 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
| 11386 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11387 | # The cast to long int works around a bug in the HP C Compiler |
| 11388 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11389 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11390 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11391 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
| 11392 | 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] | 11393 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11395 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11396 | if test "$cross_compiling" = yes; then |
| 11397 | # Depending upon the size, compute the lo and hi bounds. |
| 11398 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11399 | /* confdefs.h. */ |
| 11400 | _ACEOF |
| 11401 | cat confdefs.h >>conftest.$ac_ext |
| 11402 | cat >>conftest.$ac_ext <<_ACEOF |
| 11403 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11404 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11405 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11406 | int |
| 11407 | main () |
| 11408 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11409 | 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] | 11410 | test_array [0] = 0 |
| 11411 | |
| 11412 | ; |
| 11413 | return 0; |
| 11414 | } |
| 11415 | _ACEOF |
| 11416 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11417 | if { (ac_try="$ac_compile" |
| 11418 | case "(($ac_try" in |
| 11419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11420 | *) ac_try_echo=$ac_try;; |
| 11421 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11422 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11423 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11424 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11425 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11426 | rm -f conftest.er1 |
| 11427 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11429 | (exit $ac_status); } && { |
| 11430 | test -z "$ac_c_werror_flag" || |
| 11431 | test ! -s conftest.err |
| 11432 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11433 | ac_lo=0 ac_mid=0 |
| 11434 | while :; do |
| 11435 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11436 | /* confdefs.h. */ |
| 11437 | _ACEOF |
| 11438 | cat confdefs.h >>conftest.$ac_ext |
| 11439 | cat >>conftest.$ac_ext <<_ACEOF |
| 11440 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11441 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11442 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11443 | int |
| 11444 | main () |
| 11445 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11446 | 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] | 11447 | test_array [0] = 0 |
| 11448 | |
| 11449 | ; |
| 11450 | return 0; |
| 11451 | } |
| 11452 | _ACEOF |
| 11453 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11454 | if { (ac_try="$ac_compile" |
| 11455 | case "(($ac_try" in |
| 11456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11457 | *) ac_try_echo=$ac_try;; |
| 11458 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11460 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11461 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11462 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11463 | rm -f conftest.er1 |
| 11464 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11466 | (exit $ac_status); } && { |
| 11467 | test -z "$ac_c_werror_flag" || |
| 11468 | test ! -s conftest.err |
| 11469 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11470 | ac_hi=$ac_mid; break |
| 11471 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11472 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11473 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11474 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11475 | ac_lo=`expr $ac_mid + 1` |
| 11476 | if test $ac_lo -le $ac_mid; then |
| 11477 | ac_lo= ac_hi= |
| 11478 | break |
| 11479 | fi |
| 11480 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11481 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11482 | |
| 11483 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11484 | done |
| 11485 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11486 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11487 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11488 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11489 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11490 | /* confdefs.h. */ |
| 11491 | _ACEOF |
| 11492 | cat confdefs.h >>conftest.$ac_ext |
| 11493 | cat >>conftest.$ac_ext <<_ACEOF |
| 11494 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11495 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11496 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11497 | int |
| 11498 | main () |
| 11499 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11500 | 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] | 11501 | test_array [0] = 0 |
| 11502 | |
| 11503 | ; |
| 11504 | return 0; |
| 11505 | } |
| 11506 | _ACEOF |
| 11507 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11508 | if { (ac_try="$ac_compile" |
| 11509 | case "(($ac_try" in |
| 11510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11511 | *) ac_try_echo=$ac_try;; |
| 11512 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11513 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11514 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11515 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11516 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11517 | rm -f conftest.er1 |
| 11518 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11520 | (exit $ac_status); } && { |
| 11521 | test -z "$ac_c_werror_flag" || |
| 11522 | test ! -s conftest.err |
| 11523 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11524 | ac_hi=-1 ac_mid=-1 |
| 11525 | while :; do |
| 11526 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11527 | /* confdefs.h. */ |
| 11528 | _ACEOF |
| 11529 | cat confdefs.h >>conftest.$ac_ext |
| 11530 | cat >>conftest.$ac_ext <<_ACEOF |
| 11531 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11532 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11533 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11534 | int |
| 11535 | main () |
| 11536 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11537 | 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] | 11538 | test_array [0] = 0 |
| 11539 | |
| 11540 | ; |
| 11541 | return 0; |
| 11542 | } |
| 11543 | _ACEOF |
| 11544 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11545 | if { (ac_try="$ac_compile" |
| 11546 | case "(($ac_try" in |
| 11547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11548 | *) ac_try_echo=$ac_try;; |
| 11549 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11551 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11552 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11553 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11554 | rm -f conftest.er1 |
| 11555 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11557 | (exit $ac_status); } && { |
| 11558 | test -z "$ac_c_werror_flag" || |
| 11559 | test ! -s conftest.err |
| 11560 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11561 | ac_lo=$ac_mid; break |
| 11562 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11563 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11564 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11565 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11566 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11567 | if test $ac_mid -le $ac_hi; then |
| 11568 | ac_lo= ac_hi= |
| 11569 | break |
| 11570 | fi |
| 11571 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11572 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11573 | |
| 11574 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11575 | done |
| 11576 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11577 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11578 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11579 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11580 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11581 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11582 | |
| 11583 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11584 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11585 | |
| 11586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11587 | # Binary search between lo and hi bounds. |
| 11588 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11589 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11590 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11591 | /* confdefs.h. */ |
| 11592 | _ACEOF |
| 11593 | cat confdefs.h >>conftest.$ac_ext |
| 11594 | cat >>conftest.$ac_ext <<_ACEOF |
| 11595 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11596 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11597 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11598 | int |
| 11599 | main () |
| 11600 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11601 | 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] | 11602 | test_array [0] = 0 |
| 11603 | |
| 11604 | ; |
| 11605 | return 0; |
| 11606 | } |
| 11607 | _ACEOF |
| 11608 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11609 | if { (ac_try="$ac_compile" |
| 11610 | case "(($ac_try" in |
| 11611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11612 | *) ac_try_echo=$ac_try;; |
| 11613 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11615 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11616 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11617 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11618 | rm -f conftest.er1 |
| 11619 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11621 | (exit $ac_status); } && { |
| 11622 | test -z "$ac_c_werror_flag" || |
| 11623 | test ! -s conftest.err |
| 11624 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11625 | ac_hi=$ac_mid |
| 11626 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11627 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11628 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11629 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11630 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11631 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11632 | |
| 11633 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11634 | done |
| 11635 | case $ac_lo in |
| 11636 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11637 | '') if test "$ac_cv_type_long_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11638 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11639 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11640 | echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11641 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11642 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11643 | else |
| 11644 | ac_cv_sizeof_long_long=0 |
| 11645 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11646 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11647 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11648 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11649 | /* confdefs.h. */ |
| 11650 | _ACEOF |
| 11651 | cat confdefs.h >>conftest.$ac_ext |
| 11652 | cat >>conftest.$ac_ext <<_ACEOF |
| 11653 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11654 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11655 | typedef long long ac__type_sizeof_; |
| 11656 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11657 | 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] | 11658 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11659 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11660 | int |
| 11661 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11662 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11663 | |
| 11664 | FILE *f = fopen ("conftest.val", "w"); |
| 11665 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11666 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11667 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11668 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11669 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11670 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11671 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11672 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11673 | } |
| 11674 | else |
| 11675 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11676 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11677 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11678 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11679 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11680 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11681 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11682 | |
| 11683 | ; |
| 11684 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11685 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11686 | _ACEOF |
| 11687 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11688 | if { (ac_try="$ac_link" |
| 11689 | case "(($ac_try" in |
| 11690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11691 | *) ac_try_echo=$ac_try;; |
| 11692 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11693 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11694 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11695 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11697 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11698 | { (case "(($ac_try" in |
| 11699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11700 | *) ac_try_echo=$ac_try;; |
| 11701 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11703 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11704 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11706 | (exit $ac_status); }; }; then |
| 11707 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11708 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11709 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11710 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11711 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11712 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11713 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11714 | if test "$ac_cv_type_long_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11715 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11716 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11717 | echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11718 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11719 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11720 | else |
| 11721 | ac_cv_sizeof_long_long=0 |
| 11722 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11723 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11724 | 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] | 11725 | fi |
| 11726 | rm -f conftest.val |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11727 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11728 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 11729 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11730 | |
| 11731 | |
| 11732 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11733 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11734 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11735 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11736 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11737 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11738 | fi |
| 11739 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11740 | { echo "$as_me:$LINENO: checking for long double support" >&5 |
| 11741 | echo $ECHO_N "checking for long double support... $ECHO_C" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11742 | have_long_double=no |
| 11743 | cat >conftest.$ac_ext <<_ACEOF |
| 11744 | /* confdefs.h. */ |
| 11745 | _ACEOF |
| 11746 | cat confdefs.h >>conftest.$ac_ext |
| 11747 | cat >>conftest.$ac_ext <<_ACEOF |
| 11748 | /* end confdefs.h. */ |
| 11749 | |
| 11750 | int |
| 11751 | main () |
| 11752 | { |
| 11753 | long double x; x = (long double)0.; |
| 11754 | ; |
| 11755 | return 0; |
| 11756 | } |
| 11757 | _ACEOF |
| 11758 | rm -f conftest.$ac_objext |
| 11759 | if { (ac_try="$ac_compile" |
| 11760 | case "(($ac_try" in |
| 11761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11762 | *) ac_try_echo=$ac_try;; |
| 11763 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11765 | (eval "$ac_compile") 2>conftest.er1 |
| 11766 | ac_status=$? |
| 11767 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11768 | rm -f conftest.er1 |
| 11769 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11771 | (exit $ac_status); } && { |
| 11772 | test -z "$ac_c_werror_flag" || |
| 11773 | test ! -s conftest.err |
| 11774 | } && test -s conftest.$ac_objext; then |
| 11775 | |
| 11776 | |
| 11777 | cat >>confdefs.h <<\_ACEOF |
| 11778 | #define HAVE_LONG_DOUBLE 1 |
| 11779 | _ACEOF |
| 11780 | |
| 11781 | have_long_double=yes |
| 11782 | |
| 11783 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11784 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11785 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11786 | |
| 11787 | |
| 11788 | fi |
| 11789 | |
| 11790 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11791 | { echo "$as_me:$LINENO: result: $have_long_double" >&5 |
| 11792 | echo "${ECHO_T}$have_long_double" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11793 | if test "$have_long_double" = yes ; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11794 | { echo "$as_me:$LINENO: checking for long double" >&5 |
| 11795 | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } |
| 11796 | if test "${ac_cv_type_long_double+set}" = set; then |
| 11797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11798 | else |
| 11799 | cat >conftest.$ac_ext <<_ACEOF |
| 11800 | /* confdefs.h. */ |
| 11801 | _ACEOF |
| 11802 | cat confdefs.h >>conftest.$ac_ext |
| 11803 | cat >>conftest.$ac_ext <<_ACEOF |
| 11804 | /* end confdefs.h. */ |
| 11805 | $ac_includes_default |
| 11806 | typedef long double ac__type_new_; |
| 11807 | int |
| 11808 | main () |
| 11809 | { |
| 11810 | if ((ac__type_new_ *) 0) |
| 11811 | return 0; |
| 11812 | if (sizeof (ac__type_new_)) |
| 11813 | return 0; |
| 11814 | ; |
| 11815 | return 0; |
| 11816 | } |
| 11817 | _ACEOF |
| 11818 | rm -f conftest.$ac_objext |
| 11819 | if { (ac_try="$ac_compile" |
| 11820 | case "(($ac_try" in |
| 11821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11822 | *) ac_try_echo=$ac_try;; |
| 11823 | esac |
| 11824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11825 | (eval "$ac_compile") 2>conftest.er1 |
| 11826 | ac_status=$? |
| 11827 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11828 | rm -f conftest.er1 |
| 11829 | cat conftest.err >&5 |
| 11830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11831 | (exit $ac_status); } && { |
| 11832 | test -z "$ac_c_werror_flag" || |
| 11833 | test ! -s conftest.err |
| 11834 | } && test -s conftest.$ac_objext; then |
| 11835 | ac_cv_type_long_double=yes |
| 11836 | else |
| 11837 | echo "$as_me: failed program was:" >&5 |
| 11838 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11839 | |
| 11840 | ac_cv_type_long_double=no |
| 11841 | fi |
| 11842 | |
| 11843 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11844 | fi |
| 11845 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 |
| 11846 | echo "${ECHO_T}$ac_cv_type_long_double" >&6; } |
| 11847 | |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11848 | # The cast to long int works around a bug in the HP C Compiler |
| 11849 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11850 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11851 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11852 | { echo "$as_me:$LINENO: checking size of long double" >&5 |
| 11853 | echo $ECHO_N "checking size of long double... $ECHO_C" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11854 | if test "${ac_cv_sizeof_long_double+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11856 | else |
| 11857 | if test "$cross_compiling" = yes; then |
| 11858 | # Depending upon the size, compute the lo and hi bounds. |
| 11859 | cat >conftest.$ac_ext <<_ACEOF |
| 11860 | /* confdefs.h. */ |
| 11861 | _ACEOF |
| 11862 | cat confdefs.h >>conftest.$ac_ext |
| 11863 | cat >>conftest.$ac_ext <<_ACEOF |
| 11864 | /* end confdefs.h. */ |
| 11865 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11866 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11867 | int |
| 11868 | main () |
| 11869 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11870 | 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] | 11871 | test_array [0] = 0 |
| 11872 | |
| 11873 | ; |
| 11874 | return 0; |
| 11875 | } |
| 11876 | _ACEOF |
| 11877 | rm -f conftest.$ac_objext |
| 11878 | if { (ac_try="$ac_compile" |
| 11879 | case "(($ac_try" in |
| 11880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11881 | *) ac_try_echo=$ac_try;; |
| 11882 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11884 | (eval "$ac_compile") 2>conftest.er1 |
| 11885 | ac_status=$? |
| 11886 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11887 | rm -f conftest.er1 |
| 11888 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11890 | (exit $ac_status); } && { |
| 11891 | test -z "$ac_c_werror_flag" || |
| 11892 | test ! -s conftest.err |
| 11893 | } && test -s conftest.$ac_objext; then |
| 11894 | ac_lo=0 ac_mid=0 |
| 11895 | while :; do |
| 11896 | cat >conftest.$ac_ext <<_ACEOF |
| 11897 | /* confdefs.h. */ |
| 11898 | _ACEOF |
| 11899 | cat confdefs.h >>conftest.$ac_ext |
| 11900 | cat >>conftest.$ac_ext <<_ACEOF |
| 11901 | /* end confdefs.h. */ |
| 11902 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11903 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11904 | int |
| 11905 | main () |
| 11906 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11907 | 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] | 11908 | test_array [0] = 0 |
| 11909 | |
| 11910 | ; |
| 11911 | return 0; |
| 11912 | } |
| 11913 | _ACEOF |
| 11914 | rm -f conftest.$ac_objext |
| 11915 | if { (ac_try="$ac_compile" |
| 11916 | case "(($ac_try" in |
| 11917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11918 | *) ac_try_echo=$ac_try;; |
| 11919 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11920 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11921 | (eval "$ac_compile") 2>conftest.er1 |
| 11922 | ac_status=$? |
| 11923 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11924 | rm -f conftest.er1 |
| 11925 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11927 | (exit $ac_status); } && { |
| 11928 | test -z "$ac_c_werror_flag" || |
| 11929 | test ! -s conftest.err |
| 11930 | } && test -s conftest.$ac_objext; then |
| 11931 | ac_hi=$ac_mid; break |
| 11932 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11933 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11934 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11935 | |
| 11936 | ac_lo=`expr $ac_mid + 1` |
| 11937 | if test $ac_lo -le $ac_mid; then |
| 11938 | ac_lo= ac_hi= |
| 11939 | break |
| 11940 | fi |
| 11941 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 11942 | fi |
| 11943 | |
| 11944 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11945 | done |
| 11946 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11947 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11948 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11949 | |
| 11950 | cat >conftest.$ac_ext <<_ACEOF |
| 11951 | /* confdefs.h. */ |
| 11952 | _ACEOF |
| 11953 | cat confdefs.h >>conftest.$ac_ext |
| 11954 | cat >>conftest.$ac_ext <<_ACEOF |
| 11955 | /* end confdefs.h. */ |
| 11956 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11957 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11958 | int |
| 11959 | main () |
| 11960 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11961 | 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] | 11962 | test_array [0] = 0 |
| 11963 | |
| 11964 | ; |
| 11965 | return 0; |
| 11966 | } |
| 11967 | _ACEOF |
| 11968 | rm -f conftest.$ac_objext |
| 11969 | if { (ac_try="$ac_compile" |
| 11970 | case "(($ac_try" in |
| 11971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11972 | *) ac_try_echo=$ac_try;; |
| 11973 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11975 | (eval "$ac_compile") 2>conftest.er1 |
| 11976 | ac_status=$? |
| 11977 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11978 | rm -f conftest.er1 |
| 11979 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11981 | (exit $ac_status); } && { |
| 11982 | test -z "$ac_c_werror_flag" || |
| 11983 | test ! -s conftest.err |
| 11984 | } && test -s conftest.$ac_objext; then |
| 11985 | ac_hi=-1 ac_mid=-1 |
| 11986 | while :; do |
| 11987 | cat >conftest.$ac_ext <<_ACEOF |
| 11988 | /* confdefs.h. */ |
| 11989 | _ACEOF |
| 11990 | cat confdefs.h >>conftest.$ac_ext |
| 11991 | cat >>conftest.$ac_ext <<_ACEOF |
| 11992 | /* end confdefs.h. */ |
| 11993 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11994 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11995 | int |
| 11996 | main () |
| 11997 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11998 | 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] | 11999 | test_array [0] = 0 |
| 12000 | |
| 12001 | ; |
| 12002 | return 0; |
| 12003 | } |
| 12004 | _ACEOF |
| 12005 | rm -f conftest.$ac_objext |
| 12006 | if { (ac_try="$ac_compile" |
| 12007 | case "(($ac_try" in |
| 12008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12009 | *) ac_try_echo=$ac_try;; |
| 12010 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12012 | (eval "$ac_compile") 2>conftest.er1 |
| 12013 | ac_status=$? |
| 12014 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12015 | rm -f conftest.er1 |
| 12016 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12018 | (exit $ac_status); } && { |
| 12019 | test -z "$ac_c_werror_flag" || |
| 12020 | test ! -s conftest.err |
| 12021 | } && test -s conftest.$ac_objext; then |
| 12022 | ac_lo=$ac_mid; break |
| 12023 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12024 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12025 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12026 | |
| 12027 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12028 | if test $ac_mid -le $ac_hi; then |
| 12029 | ac_lo= ac_hi= |
| 12030 | break |
| 12031 | fi |
| 12032 | ac_mid=`expr 2 '*' $ac_mid` |
| 12033 | fi |
| 12034 | |
| 12035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12036 | done |
| 12037 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12038 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12039 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12040 | |
| 12041 | ac_lo= ac_hi= |
| 12042 | fi |
| 12043 | |
| 12044 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12045 | fi |
| 12046 | |
| 12047 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12048 | # Binary search between lo and hi bounds. |
| 12049 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12050 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12051 | cat >conftest.$ac_ext <<_ACEOF |
| 12052 | /* confdefs.h. */ |
| 12053 | _ACEOF |
| 12054 | cat confdefs.h >>conftest.$ac_ext |
| 12055 | cat >>conftest.$ac_ext <<_ACEOF |
| 12056 | /* end confdefs.h. */ |
| 12057 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12058 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12059 | int |
| 12060 | main () |
| 12061 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12062 | 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] | 12063 | test_array [0] = 0 |
| 12064 | |
| 12065 | ; |
| 12066 | return 0; |
| 12067 | } |
| 12068 | _ACEOF |
| 12069 | rm -f conftest.$ac_objext |
| 12070 | if { (ac_try="$ac_compile" |
| 12071 | case "(($ac_try" in |
| 12072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12073 | *) ac_try_echo=$ac_try;; |
| 12074 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12076 | (eval "$ac_compile") 2>conftest.er1 |
| 12077 | ac_status=$? |
| 12078 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12079 | rm -f conftest.er1 |
| 12080 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12082 | (exit $ac_status); } && { |
| 12083 | test -z "$ac_c_werror_flag" || |
| 12084 | test ! -s conftest.err |
| 12085 | } && test -s conftest.$ac_objext; then |
| 12086 | ac_hi=$ac_mid |
| 12087 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12088 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12089 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12090 | |
| 12091 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 12092 | fi |
| 12093 | |
| 12094 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12095 | done |
| 12096 | case $ac_lo in |
| 12097 | ?*) ac_cv_sizeof_long_double=$ac_lo;; |
| 12098 | '') if test "$ac_cv_type_long_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12099 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12100 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12101 | echo "$as_me: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12102 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12103 | { (exit 77); exit 77; }; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12104 | else |
| 12105 | ac_cv_sizeof_long_double=0 |
| 12106 | fi ;; |
| 12107 | esac |
| 12108 | else |
| 12109 | cat >conftest.$ac_ext <<_ACEOF |
| 12110 | /* confdefs.h. */ |
| 12111 | _ACEOF |
| 12112 | cat confdefs.h >>conftest.$ac_ext |
| 12113 | cat >>conftest.$ac_ext <<_ACEOF |
| 12114 | /* end confdefs.h. */ |
| 12115 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12116 | typedef long double ac__type_sizeof_; |
| 12117 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12118 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12119 | #include <stdio.h> |
| 12120 | #include <stdlib.h> |
| 12121 | int |
| 12122 | main () |
| 12123 | { |
| 12124 | |
| 12125 | FILE *f = fopen ("conftest.val", "w"); |
| 12126 | if (! f) |
| 12127 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12128 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12129 | { |
| 12130 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12131 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12132 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12133 | fprintf (f, "%ld\n", i); |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12134 | } |
| 12135 | else |
| 12136 | { |
| 12137 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12138 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12139 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12140 | fprintf (f, "%lu\n", i); |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12141 | } |
| 12142 | return ferror (f) || fclose (f) != 0; |
| 12143 | |
| 12144 | ; |
| 12145 | return 0; |
| 12146 | } |
| 12147 | _ACEOF |
| 12148 | rm -f conftest$ac_exeext |
| 12149 | if { (ac_try="$ac_link" |
| 12150 | case "(($ac_try" in |
| 12151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12152 | *) ac_try_echo=$ac_try;; |
| 12153 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12155 | (eval "$ac_link") 2>&5 |
| 12156 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12158 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12159 | { (case "(($ac_try" in |
| 12160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12161 | *) ac_try_echo=$ac_try;; |
| 12162 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12164 | (eval "$ac_try") 2>&5 |
| 12165 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12167 | (exit $ac_status); }; }; then |
| 12168 | ac_cv_sizeof_long_double=`cat conftest.val` |
| 12169 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12170 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12171 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12172 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12173 | |
| 12174 | ( exit $ac_status ) |
| 12175 | if test "$ac_cv_type_long_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12176 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12177 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12178 | echo "$as_me: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12179 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12180 | { (exit 77); exit 77; }; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12181 | else |
| 12182 | ac_cv_sizeof_long_double=0 |
| 12183 | fi |
| 12184 | fi |
| 12185 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 12186 | fi |
| 12187 | rm -f conftest.val |
| 12188 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12189 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5 |
| 12190 | echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12191 | |
| 12192 | |
| 12193 | |
| 12194 | cat >>confdefs.h <<_ACEOF |
| 12195 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double |
| 12196 | _ACEOF |
| 12197 | |
| 12198 | |
| 12199 | fi |
| 12200 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12201 | { echo "$as_me:$LINENO: checking for _Bool support" >&5 |
| 12202 | echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12203 | have_c99_bool=no |
| 12204 | cat >conftest.$ac_ext <<_ACEOF |
| 12205 | /* confdefs.h. */ |
| 12206 | _ACEOF |
| 12207 | cat confdefs.h >>conftest.$ac_ext |
| 12208 | cat >>conftest.$ac_ext <<_ACEOF |
| 12209 | /* end confdefs.h. */ |
| 12210 | |
| 12211 | int |
| 12212 | main () |
| 12213 | { |
| 12214 | _Bool x; x = (_Bool)0; |
| 12215 | ; |
| 12216 | return 0; |
| 12217 | } |
| 12218 | _ACEOF |
| 12219 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12220 | if { (ac_try="$ac_compile" |
| 12221 | case "(($ac_try" in |
| 12222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12223 | *) ac_try_echo=$ac_try;; |
| 12224 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12226 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12227 | ac_status=$? |
| 12228 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12229 | rm -f conftest.er1 |
| 12230 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12232 | (exit $ac_status); } && { |
| 12233 | test -z "$ac_c_werror_flag" || |
| 12234 | test ! -s conftest.err |
| 12235 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12236 | |
| 12237 | |
| 12238 | cat >>confdefs.h <<\_ACEOF |
| 12239 | #define HAVE_C99_BOOL 1 |
| 12240 | _ACEOF |
| 12241 | |
| 12242 | have_c99_bool=yes |
| 12243 | |
| 12244 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12245 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12246 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12247 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12248 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12249 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12250 | |
| 12251 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12252 | { echo "$as_me:$LINENO: result: $have_c99_bool" >&5 |
| 12253 | echo "${ECHO_T}$have_c99_bool" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12254 | if test "$have_c99_bool" = yes ; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12255 | { echo "$as_me:$LINENO: checking for _Bool" >&5 |
| 12256 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; } |
| 12257 | if test "${ac_cv_type__Bool+set}" = set; then |
| 12258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12259 | else |
| 12260 | cat >conftest.$ac_ext <<_ACEOF |
| 12261 | /* confdefs.h. */ |
| 12262 | _ACEOF |
| 12263 | cat confdefs.h >>conftest.$ac_ext |
| 12264 | cat >>conftest.$ac_ext <<_ACEOF |
| 12265 | /* end confdefs.h. */ |
| 12266 | $ac_includes_default |
| 12267 | typedef _Bool ac__type_new_; |
| 12268 | int |
| 12269 | main () |
| 12270 | { |
| 12271 | if ((ac__type_new_ *) 0) |
| 12272 | return 0; |
| 12273 | if (sizeof (ac__type_new_)) |
| 12274 | return 0; |
| 12275 | ; |
| 12276 | return 0; |
| 12277 | } |
| 12278 | _ACEOF |
| 12279 | rm -f conftest.$ac_objext |
| 12280 | if { (ac_try="$ac_compile" |
| 12281 | case "(($ac_try" in |
| 12282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12283 | *) ac_try_echo=$ac_try;; |
| 12284 | esac |
| 12285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12286 | (eval "$ac_compile") 2>conftest.er1 |
| 12287 | ac_status=$? |
| 12288 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12289 | rm -f conftest.er1 |
| 12290 | cat conftest.err >&5 |
| 12291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12292 | (exit $ac_status); } && { |
| 12293 | test -z "$ac_c_werror_flag" || |
| 12294 | test ! -s conftest.err |
| 12295 | } && test -s conftest.$ac_objext; then |
| 12296 | ac_cv_type__Bool=yes |
| 12297 | else |
| 12298 | echo "$as_me: failed program was:" >&5 |
| 12299 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12300 | |
| 12301 | ac_cv_type__Bool=no |
| 12302 | fi |
| 12303 | |
| 12304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12305 | fi |
| 12306 | { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
| 12307 | echo "${ECHO_T}$ac_cv_type__Bool" >&6; } |
| 12308 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12309 | # The cast to long int works around a bug in the HP C Compiler |
| 12310 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12311 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12312 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12313 | { echo "$as_me:$LINENO: checking size of _Bool" >&5 |
| 12314 | echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12315 | if test "${ac_cv_sizeof__Bool+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12316 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12317 | else |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12318 | if test "$cross_compiling" = yes; then |
| 12319 | # Depending upon the size, compute the lo and hi bounds. |
| 12320 | cat >conftest.$ac_ext <<_ACEOF |
| 12321 | /* confdefs.h. */ |
| 12322 | _ACEOF |
| 12323 | cat confdefs.h >>conftest.$ac_ext |
| 12324 | cat >>conftest.$ac_ext <<_ACEOF |
| 12325 | /* end confdefs.h. */ |
| 12326 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12327 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12328 | int |
| 12329 | main () |
| 12330 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12331 | 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] | 12332 | test_array [0] = 0 |
| 12333 | |
| 12334 | ; |
| 12335 | return 0; |
| 12336 | } |
| 12337 | _ACEOF |
| 12338 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12339 | if { (ac_try="$ac_compile" |
| 12340 | case "(($ac_try" in |
| 12341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12342 | *) ac_try_echo=$ac_try;; |
| 12343 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12345 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12346 | ac_status=$? |
| 12347 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12348 | rm -f conftest.er1 |
| 12349 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12351 | (exit $ac_status); } && { |
| 12352 | test -z "$ac_c_werror_flag" || |
| 12353 | test ! -s conftest.err |
| 12354 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12355 | ac_lo=0 ac_mid=0 |
| 12356 | while :; do |
| 12357 | cat >conftest.$ac_ext <<_ACEOF |
| 12358 | /* confdefs.h. */ |
| 12359 | _ACEOF |
| 12360 | cat confdefs.h >>conftest.$ac_ext |
| 12361 | cat >>conftest.$ac_ext <<_ACEOF |
| 12362 | /* end confdefs.h. */ |
| 12363 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12364 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12365 | int |
| 12366 | main () |
| 12367 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12368 | 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] | 12369 | test_array [0] = 0 |
| 12370 | |
| 12371 | ; |
| 12372 | return 0; |
| 12373 | } |
| 12374 | _ACEOF |
| 12375 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12376 | if { (ac_try="$ac_compile" |
| 12377 | case "(($ac_try" in |
| 12378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12379 | *) ac_try_echo=$ac_try;; |
| 12380 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12382 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12383 | ac_status=$? |
| 12384 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12385 | rm -f conftest.er1 |
| 12386 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12388 | (exit $ac_status); } && { |
| 12389 | test -z "$ac_c_werror_flag" || |
| 12390 | test ! -s conftest.err |
| 12391 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12392 | ac_hi=$ac_mid; break |
| 12393 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12394 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12395 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12396 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12397 | ac_lo=`expr $ac_mid + 1` |
| 12398 | if test $ac_lo -le $ac_mid; then |
| 12399 | ac_lo= ac_hi= |
| 12400 | break |
| 12401 | fi |
| 12402 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12403 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12404 | |
| 12405 | 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] | 12406 | done |
| 12407 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12408 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12409 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12410 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12411 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12412 | /* confdefs.h. */ |
| 12413 | _ACEOF |
| 12414 | cat confdefs.h >>conftest.$ac_ext |
| 12415 | cat >>conftest.$ac_ext <<_ACEOF |
| 12416 | /* end confdefs.h. */ |
| 12417 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12418 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12419 | int |
| 12420 | main () |
| 12421 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12422 | 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] | 12423 | test_array [0] = 0 |
| 12424 | |
| 12425 | ; |
| 12426 | return 0; |
| 12427 | } |
| 12428 | _ACEOF |
| 12429 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12430 | if { (ac_try="$ac_compile" |
| 12431 | case "(($ac_try" in |
| 12432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12433 | *) ac_try_echo=$ac_try;; |
| 12434 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12435 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12436 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12437 | ac_status=$? |
| 12438 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12439 | rm -f conftest.er1 |
| 12440 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12442 | (exit $ac_status); } && { |
| 12443 | test -z "$ac_c_werror_flag" || |
| 12444 | test ! -s conftest.err |
| 12445 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12446 | ac_hi=-1 ac_mid=-1 |
| 12447 | while :; do |
| 12448 | cat >conftest.$ac_ext <<_ACEOF |
| 12449 | /* confdefs.h. */ |
| 12450 | _ACEOF |
| 12451 | cat confdefs.h >>conftest.$ac_ext |
| 12452 | cat >>conftest.$ac_ext <<_ACEOF |
| 12453 | /* end confdefs.h. */ |
| 12454 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12455 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12456 | int |
| 12457 | main () |
| 12458 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12459 | 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] | 12460 | test_array [0] = 0 |
| 12461 | |
| 12462 | ; |
| 12463 | return 0; |
| 12464 | } |
| 12465 | _ACEOF |
| 12466 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12467 | if { (ac_try="$ac_compile" |
| 12468 | case "(($ac_try" in |
| 12469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12470 | *) ac_try_echo=$ac_try;; |
| 12471 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12472 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12473 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12474 | ac_status=$? |
| 12475 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12476 | rm -f conftest.er1 |
| 12477 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12479 | (exit $ac_status); } && { |
| 12480 | test -z "$ac_c_werror_flag" || |
| 12481 | test ! -s conftest.err |
| 12482 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12483 | ac_lo=$ac_mid; break |
| 12484 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12485 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12486 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12487 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12488 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12489 | if test $ac_mid -le $ac_hi; then |
| 12490 | ac_lo= ac_hi= |
| 12491 | break |
| 12492 | fi |
| 12493 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12494 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12495 | |
| 12496 | 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] | 12497 | done |
| 12498 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12499 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12500 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12501 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12502 | ac_lo= ac_hi= |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12503 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12504 | |
| 12505 | 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] | 12506 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12507 | |
| 12508 | 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] | 12509 | # Binary search between lo and hi bounds. |
| 12510 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12511 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12512 | cat >conftest.$ac_ext <<_ACEOF |
| 12513 | /* confdefs.h. */ |
| 12514 | _ACEOF |
| 12515 | cat confdefs.h >>conftest.$ac_ext |
| 12516 | cat >>conftest.$ac_ext <<_ACEOF |
| 12517 | /* end confdefs.h. */ |
| 12518 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12519 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12520 | int |
| 12521 | main () |
| 12522 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12523 | 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] | 12524 | test_array [0] = 0 |
| 12525 | |
| 12526 | ; |
| 12527 | return 0; |
| 12528 | } |
| 12529 | _ACEOF |
| 12530 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12531 | if { (ac_try="$ac_compile" |
| 12532 | case "(($ac_try" in |
| 12533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12534 | *) ac_try_echo=$ac_try;; |
| 12535 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12537 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12538 | ac_status=$? |
| 12539 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12540 | rm -f conftest.er1 |
| 12541 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12543 | (exit $ac_status); } && { |
| 12544 | test -z "$ac_c_werror_flag" || |
| 12545 | test ! -s conftest.err |
| 12546 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12547 | ac_hi=$ac_mid |
| 12548 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12549 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12550 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12551 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12552 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12553 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12554 | |
| 12555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12556 | done |
| 12557 | case $ac_lo in |
| 12558 | ?*) ac_cv_sizeof__Bool=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12559 | '') if test "$ac_cv_type__Bool" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12560 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12561 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12562 | echo "$as_me: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12563 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12564 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12565 | else |
| 12566 | ac_cv_sizeof__Bool=0 |
| 12567 | fi ;; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12568 | esac |
| 12569 | else |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12570 | cat >conftest.$ac_ext <<_ACEOF |
| 12571 | /* confdefs.h. */ |
| 12572 | _ACEOF |
| 12573 | cat confdefs.h >>conftest.$ac_ext |
| 12574 | cat >>conftest.$ac_ext <<_ACEOF |
| 12575 | /* end confdefs.h. */ |
| 12576 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12577 | typedef _Bool ac__type_sizeof_; |
| 12578 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12579 | 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] | 12580 | #include <stdio.h> |
| 12581 | #include <stdlib.h> |
| 12582 | int |
| 12583 | main () |
| 12584 | { |
| 12585 | |
| 12586 | FILE *f = fopen ("conftest.val", "w"); |
| 12587 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12588 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12589 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12590 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12591 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12592 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12593 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12594 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12595 | } |
| 12596 | else |
| 12597 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12598 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12599 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12600 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12601 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12602 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12603 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12604 | |
| 12605 | ; |
| 12606 | return 0; |
| 12607 | } |
| 12608 | _ACEOF |
| 12609 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12610 | if { (ac_try="$ac_link" |
| 12611 | case "(($ac_try" in |
| 12612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12613 | *) ac_try_echo=$ac_try;; |
| 12614 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12616 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12617 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12619 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12620 | { (case "(($ac_try" in |
| 12621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12622 | *) ac_try_echo=$ac_try;; |
| 12623 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12624 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12625 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12626 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12628 | (exit $ac_status); }; }; then |
| 12629 | ac_cv_sizeof__Bool=`cat conftest.val` |
| 12630 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12631 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12632 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12633 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12634 | |
| 12635 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12636 | if test "$ac_cv_type__Bool" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12637 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12638 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12639 | echo "$as_me: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12640 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12641 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12642 | else |
| 12643 | ac_cv_sizeof__Bool=0 |
| 12644 | fi |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12645 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12646 | 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] | 12647 | fi |
| 12648 | rm -f conftest.val |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12649 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12650 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5 |
| 12651 | echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12652 | |
| 12653 | |
| 12654 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12655 | cat >>confdefs.h <<_ACEOF |
| 12656 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool |
| 12657 | _ACEOF |
| 12658 | |
| 12659 | |
| 12660 | fi |
| 12661 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12662 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 12663 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12664 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12666 | else |
| 12667 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12668 | /* confdefs.h. */ |
| 12669 | _ACEOF |
| 12670 | cat confdefs.h >>conftest.$ac_ext |
| 12671 | cat >>conftest.$ac_ext <<_ACEOF |
| 12672 | /* end confdefs.h. */ |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 12673 | #ifdef HAVE_STDINT_H |
| 12674 | #include <stdint.h> |
| 12675 | #endif |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12676 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12677 | typedef uintptr_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12678 | int |
| 12679 | main () |
| 12680 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12681 | if ((ac__type_new_ *) 0) |
| 12682 | return 0; |
| 12683 | if (sizeof (ac__type_new_)) |
| 12684 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12685 | ; |
| 12686 | return 0; |
| 12687 | } |
| 12688 | _ACEOF |
| 12689 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12690 | if { (ac_try="$ac_compile" |
| 12691 | case "(($ac_try" in |
| 12692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12693 | *) ac_try_echo=$ac_try;; |
| 12694 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12695 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12696 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12697 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12698 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12699 | rm -f conftest.er1 |
| 12700 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12702 | (exit $ac_status); } && { |
| 12703 | test -z "$ac_c_werror_flag" || |
| 12704 | test ! -s conftest.err |
| 12705 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12706 | ac_cv_type_uintptr_t=yes |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12707 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12708 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12709 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12710 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12711 | ac_cv_type_uintptr_t=no |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12712 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12713 | |
| 12714 | 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] | 12715 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12716 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 12717 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } |
| 12718 | if test $ac_cv_type_uintptr_t = yes; then |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12719 | |
| 12720 | cat >>confdefs.h <<_ACEOF |
| 12721 | #define HAVE_UINTPTR_T 1 |
| 12722 | _ACEOF |
| 12723 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12724 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 12725 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } |
| 12726 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 12727 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12728 | else |
| 12729 | cat >conftest.$ac_ext <<_ACEOF |
| 12730 | /* confdefs.h. */ |
| 12731 | _ACEOF |
| 12732 | cat confdefs.h >>conftest.$ac_ext |
| 12733 | cat >>conftest.$ac_ext <<_ACEOF |
| 12734 | /* end confdefs.h. */ |
| 12735 | $ac_includes_default |
| 12736 | typedef uintptr_t ac__type_new_; |
| 12737 | int |
| 12738 | main () |
| 12739 | { |
| 12740 | if ((ac__type_new_ *) 0) |
| 12741 | return 0; |
| 12742 | if (sizeof (ac__type_new_)) |
| 12743 | return 0; |
| 12744 | ; |
| 12745 | return 0; |
| 12746 | } |
| 12747 | _ACEOF |
| 12748 | rm -f conftest.$ac_objext |
| 12749 | if { (ac_try="$ac_compile" |
| 12750 | case "(($ac_try" in |
| 12751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12752 | *) ac_try_echo=$ac_try;; |
| 12753 | esac |
| 12754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12755 | (eval "$ac_compile") 2>conftest.er1 |
| 12756 | ac_status=$? |
| 12757 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12758 | rm -f conftest.er1 |
| 12759 | cat conftest.err >&5 |
| 12760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12761 | (exit $ac_status); } && { |
| 12762 | test -z "$ac_c_werror_flag" || |
| 12763 | test ! -s conftest.err |
| 12764 | } && test -s conftest.$ac_objext; then |
| 12765 | ac_cv_type_uintptr_t=yes |
| 12766 | else |
| 12767 | echo "$as_me: failed program was:" >&5 |
| 12768 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12769 | |
| 12770 | ac_cv_type_uintptr_t=no |
| 12771 | fi |
| 12772 | |
| 12773 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12774 | fi |
| 12775 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 12776 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } |
| 12777 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12778 | # The cast to long int works around a bug in the HP C Compiler |
| 12779 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12780 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12781 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12782 | { echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 12783 | 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] | 12784 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12786 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12787 | if test "$cross_compiling" = yes; then |
| 12788 | # Depending upon the size, compute the lo and hi bounds. |
| 12789 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12790 | /* confdefs.h. */ |
| 12791 | _ACEOF |
| 12792 | cat confdefs.h >>conftest.$ac_ext |
| 12793 | cat >>conftest.$ac_ext <<_ACEOF |
| 12794 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12795 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12796 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12797 | int |
| 12798 | main () |
| 12799 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12800 | 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] | 12801 | test_array [0] = 0 |
| 12802 | |
| 12803 | ; |
| 12804 | return 0; |
| 12805 | } |
| 12806 | _ACEOF |
| 12807 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12808 | if { (ac_try="$ac_compile" |
| 12809 | case "(($ac_try" in |
| 12810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12811 | *) ac_try_echo=$ac_try;; |
| 12812 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12813 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12814 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12815 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12816 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12817 | rm -f conftest.er1 |
| 12818 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12820 | (exit $ac_status); } && { |
| 12821 | test -z "$ac_c_werror_flag" || |
| 12822 | test ! -s conftest.err |
| 12823 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12824 | ac_lo=0 ac_mid=0 |
| 12825 | while :; do |
| 12826 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12827 | /* confdefs.h. */ |
| 12828 | _ACEOF |
| 12829 | cat confdefs.h >>conftest.$ac_ext |
| 12830 | cat >>conftest.$ac_ext <<_ACEOF |
| 12831 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12832 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12833 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12834 | int |
| 12835 | main () |
| 12836 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12837 | 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] | 12838 | test_array [0] = 0 |
| 12839 | |
| 12840 | ; |
| 12841 | return 0; |
| 12842 | } |
| 12843 | _ACEOF |
| 12844 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12845 | if { (ac_try="$ac_compile" |
| 12846 | case "(($ac_try" in |
| 12847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12848 | *) ac_try_echo=$ac_try;; |
| 12849 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12851 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12852 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12853 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12854 | rm -f conftest.er1 |
| 12855 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12857 | (exit $ac_status); } && { |
| 12858 | test -z "$ac_c_werror_flag" || |
| 12859 | test ! -s conftest.err |
| 12860 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12861 | ac_hi=$ac_mid; break |
| 12862 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12863 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12864 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12865 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12866 | ac_lo=`expr $ac_mid + 1` |
| 12867 | if test $ac_lo -le $ac_mid; then |
| 12868 | ac_lo= ac_hi= |
| 12869 | break |
| 12870 | fi |
| 12871 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12872 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12873 | |
| 12874 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12875 | done |
| 12876 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12877 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12878 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12879 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12880 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12881 | /* confdefs.h. */ |
| 12882 | _ACEOF |
| 12883 | cat confdefs.h >>conftest.$ac_ext |
| 12884 | cat >>conftest.$ac_ext <<_ACEOF |
| 12885 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12886 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12887 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12888 | int |
| 12889 | main () |
| 12890 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12891 | 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] | 12892 | test_array [0] = 0 |
| 12893 | |
| 12894 | ; |
| 12895 | return 0; |
| 12896 | } |
| 12897 | _ACEOF |
| 12898 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12899 | if { (ac_try="$ac_compile" |
| 12900 | case "(($ac_try" in |
| 12901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12902 | *) ac_try_echo=$ac_try;; |
| 12903 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12904 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12905 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12906 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12907 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12908 | rm -f conftest.er1 |
| 12909 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12911 | (exit $ac_status); } && { |
| 12912 | test -z "$ac_c_werror_flag" || |
| 12913 | test ! -s conftest.err |
| 12914 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12915 | ac_hi=-1 ac_mid=-1 |
| 12916 | while :; do |
| 12917 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12918 | /* confdefs.h. */ |
| 12919 | _ACEOF |
| 12920 | cat confdefs.h >>conftest.$ac_ext |
| 12921 | cat >>conftest.$ac_ext <<_ACEOF |
| 12922 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12923 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12924 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12925 | int |
| 12926 | main () |
| 12927 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12928 | 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] | 12929 | test_array [0] = 0 |
| 12930 | |
| 12931 | ; |
| 12932 | return 0; |
| 12933 | } |
| 12934 | _ACEOF |
| 12935 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12936 | if { (ac_try="$ac_compile" |
| 12937 | case "(($ac_try" in |
| 12938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12939 | *) ac_try_echo=$ac_try;; |
| 12940 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12942 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12943 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12944 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12945 | rm -f conftest.er1 |
| 12946 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12948 | (exit $ac_status); } && { |
| 12949 | test -z "$ac_c_werror_flag" || |
| 12950 | test ! -s conftest.err |
| 12951 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12952 | ac_lo=$ac_mid; break |
| 12953 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12954 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12956 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12957 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12958 | if test $ac_mid -le $ac_hi; then |
| 12959 | ac_lo= ac_hi= |
| 12960 | break |
| 12961 | fi |
| 12962 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12963 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12964 | |
| 12965 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12966 | done |
| 12967 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12968 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12969 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12970 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12971 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12972 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12973 | |
| 12974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12975 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12976 | |
| 12977 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12978 | # Binary search between lo and hi bounds. |
| 12979 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12980 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12981 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12982 | /* confdefs.h. */ |
| 12983 | _ACEOF |
| 12984 | cat confdefs.h >>conftest.$ac_ext |
| 12985 | cat >>conftest.$ac_ext <<_ACEOF |
| 12986 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12987 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12988 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12989 | int |
| 12990 | main () |
| 12991 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12992 | 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] | 12993 | test_array [0] = 0 |
| 12994 | |
| 12995 | ; |
| 12996 | return 0; |
| 12997 | } |
| 12998 | _ACEOF |
| 12999 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13000 | if { (ac_try="$ac_compile" |
| 13001 | case "(($ac_try" in |
| 13002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13003 | *) ac_try_echo=$ac_try;; |
| 13004 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13005 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13006 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13007 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13008 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13009 | rm -f conftest.er1 |
| 13010 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13012 | (exit $ac_status); } && { |
| 13013 | test -z "$ac_c_werror_flag" || |
| 13014 | test ! -s conftest.err |
| 13015 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13016 | ac_hi=$ac_mid |
| 13017 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13018 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13019 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13020 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13021 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13022 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13023 | |
| 13024 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13025 | done |
| 13026 | case $ac_lo in |
| 13027 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13028 | '') if test "$ac_cv_type_uintptr_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13029 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13030 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13031 | echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13032 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13033 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13034 | else |
| 13035 | ac_cv_sizeof_uintptr_t=0 |
| 13036 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13037 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13038 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13039 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13040 | /* confdefs.h. */ |
| 13041 | _ACEOF |
| 13042 | cat confdefs.h >>conftest.$ac_ext |
| 13043 | cat >>conftest.$ac_ext <<_ACEOF |
| 13044 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13045 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13046 | typedef uintptr_t ac__type_sizeof_; |
| 13047 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13048 | 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] | 13049 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13050 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13051 | int |
| 13052 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13053 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13054 | |
| 13055 | FILE *f = fopen ("conftest.val", "w"); |
| 13056 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13057 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13058 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13059 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13060 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13061 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13062 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13063 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13064 | } |
| 13065 | else |
| 13066 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13067 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13068 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13069 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13070 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13071 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13072 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13073 | |
| 13074 | ; |
| 13075 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13076 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13077 | _ACEOF |
| 13078 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13079 | if { (ac_try="$ac_link" |
| 13080 | case "(($ac_try" in |
| 13081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13082 | *) ac_try_echo=$ac_try;; |
| 13083 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13085 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13086 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13088 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13089 | { (case "(($ac_try" in |
| 13090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13091 | *) ac_try_echo=$ac_try;; |
| 13092 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13093 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13094 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13095 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13097 | (exit $ac_status); }; }; then |
| 13098 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13099 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13100 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13101 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13102 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13103 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13104 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13105 | if test "$ac_cv_type_uintptr_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13106 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13107 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13108 | echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13109 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13110 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13111 | else |
| 13112 | ac_cv_sizeof_uintptr_t=0 |
| 13113 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13114 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13115 | 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] | 13116 | fi |
| 13117 | rm -f conftest.val |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13118 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13119 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 13120 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13121 | |
| 13122 | |
| 13123 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13124 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13125 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13126 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13127 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13128 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13129 | fi |
| 13130 | |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 13131 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13132 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 13133 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
| 13134 | if test "${ac_cv_type_off_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13135 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13136 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13137 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13138 | /* confdefs.h. */ |
| 13139 | _ACEOF |
| 13140 | cat confdefs.h >>conftest.$ac_ext |
| 13141 | cat >>conftest.$ac_ext <<_ACEOF |
| 13142 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13143 | |
| 13144 | #ifdef HAVE_SYS_TYPES_H |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13145 | #include <sys/types.h> |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13146 | #endif |
| 13147 | |
| 13148 | |
| 13149 | typedef off_t ac__type_new_; |
| 13150 | int |
| 13151 | main () |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13152 | { |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13153 | if ((ac__type_new_ *) 0) |
| 13154 | return 0; |
| 13155 | if (sizeof (ac__type_new_)) |
| 13156 | return 0; |
| 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_cv_type_off_t=yes |
| 13179 | else |
| 13180 | echo "$as_me: failed program was:" >&5 |
| 13181 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13182 | |
| 13183 | ac_cv_type_off_t=no |
| 13184 | fi |
| 13185 | |
| 13186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13187 | fi |
| 13188 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 13189 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
| 13190 | |
| 13191 | # The cast to long int works around a bug in the HP C Compiler |
| 13192 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13193 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13194 | # This bug is HP SR number 8606223364. |
| 13195 | { echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 13196 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; } |
| 13197 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 13198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13199 | else |
| 13200 | if test "$cross_compiling" = yes; then |
| 13201 | # Depending upon the size, compute the lo and hi bounds. |
| 13202 | cat >conftest.$ac_ext <<_ACEOF |
| 13203 | /* confdefs.h. */ |
| 13204 | _ACEOF |
| 13205 | cat confdefs.h >>conftest.$ac_ext |
| 13206 | cat >>conftest.$ac_ext <<_ACEOF |
| 13207 | /* end confdefs.h. */ |
| 13208 | |
| 13209 | #ifdef HAVE_SYS_TYPES_H |
| 13210 | #include <sys/types.h> |
| 13211 | #endif |
| 13212 | |
| 13213 | |
| 13214 | typedef off_t ac__type_sizeof_; |
| 13215 | int |
| 13216 | main () |
| 13217 | { |
| 13218 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 13219 | test_array [0] = 0 |
| 13220 | |
| 13221 | ; |
| 13222 | return 0; |
| 13223 | } |
| 13224 | _ACEOF |
| 13225 | rm -f conftest.$ac_objext |
| 13226 | if { (ac_try="$ac_compile" |
| 13227 | case "(($ac_try" in |
| 13228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13229 | *) ac_try_echo=$ac_try;; |
| 13230 | esac |
| 13231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13232 | (eval "$ac_compile") 2>conftest.er1 |
| 13233 | ac_status=$? |
| 13234 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13235 | rm -f conftest.er1 |
| 13236 | cat conftest.err >&5 |
| 13237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13238 | (exit $ac_status); } && { |
| 13239 | test -z "$ac_c_werror_flag" || |
| 13240 | test ! -s conftest.err |
| 13241 | } && test -s conftest.$ac_objext; then |
| 13242 | ac_lo=0 ac_mid=0 |
| 13243 | while :; do |
| 13244 | cat >conftest.$ac_ext <<_ACEOF |
| 13245 | /* confdefs.h. */ |
| 13246 | _ACEOF |
| 13247 | cat confdefs.h >>conftest.$ac_ext |
| 13248 | cat >>conftest.$ac_ext <<_ACEOF |
| 13249 | /* end confdefs.h. */ |
| 13250 | |
| 13251 | #ifdef HAVE_SYS_TYPES_H |
| 13252 | #include <sys/types.h> |
| 13253 | #endif |
| 13254 | |
| 13255 | |
| 13256 | typedef off_t ac__type_sizeof_; |
| 13257 | int |
| 13258 | main () |
| 13259 | { |
| 13260 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13261 | test_array [0] = 0 |
| 13262 | |
| 13263 | ; |
| 13264 | return 0; |
| 13265 | } |
| 13266 | _ACEOF |
| 13267 | rm -f conftest.$ac_objext |
| 13268 | if { (ac_try="$ac_compile" |
| 13269 | case "(($ac_try" in |
| 13270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13271 | *) ac_try_echo=$ac_try;; |
| 13272 | esac |
| 13273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13274 | (eval "$ac_compile") 2>conftest.er1 |
| 13275 | ac_status=$? |
| 13276 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13277 | rm -f conftest.er1 |
| 13278 | cat conftest.err >&5 |
| 13279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13280 | (exit $ac_status); } && { |
| 13281 | test -z "$ac_c_werror_flag" || |
| 13282 | test ! -s conftest.err |
| 13283 | } && test -s conftest.$ac_objext; then |
| 13284 | ac_hi=$ac_mid; break |
| 13285 | else |
| 13286 | echo "$as_me: failed program was:" >&5 |
| 13287 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13288 | |
| 13289 | ac_lo=`expr $ac_mid + 1` |
| 13290 | if test $ac_lo -le $ac_mid; then |
| 13291 | ac_lo= ac_hi= |
| 13292 | break |
| 13293 | fi |
| 13294 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 13295 | fi |
| 13296 | |
| 13297 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13298 | done |
| 13299 | else |
| 13300 | echo "$as_me: failed program was:" >&5 |
| 13301 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13302 | |
| 13303 | cat >conftest.$ac_ext <<_ACEOF |
| 13304 | /* confdefs.h. */ |
| 13305 | _ACEOF |
| 13306 | cat confdefs.h >>conftest.$ac_ext |
| 13307 | cat >>conftest.$ac_ext <<_ACEOF |
| 13308 | /* end confdefs.h. */ |
| 13309 | |
| 13310 | #ifdef HAVE_SYS_TYPES_H |
| 13311 | #include <sys/types.h> |
| 13312 | #endif |
| 13313 | |
| 13314 | |
| 13315 | typedef off_t ac__type_sizeof_; |
| 13316 | int |
| 13317 | main () |
| 13318 | { |
| 13319 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
| 13320 | test_array [0] = 0 |
| 13321 | |
| 13322 | ; |
| 13323 | return 0; |
| 13324 | } |
| 13325 | _ACEOF |
| 13326 | rm -f conftest.$ac_objext |
| 13327 | if { (ac_try="$ac_compile" |
| 13328 | case "(($ac_try" in |
| 13329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13330 | *) ac_try_echo=$ac_try;; |
| 13331 | esac |
| 13332 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13333 | (eval "$ac_compile") 2>conftest.er1 |
| 13334 | ac_status=$? |
| 13335 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13336 | rm -f conftest.er1 |
| 13337 | cat conftest.err >&5 |
| 13338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13339 | (exit $ac_status); } && { |
| 13340 | test -z "$ac_c_werror_flag" || |
| 13341 | test ! -s conftest.err |
| 13342 | } && test -s conftest.$ac_objext; then |
| 13343 | ac_hi=-1 ac_mid=-1 |
| 13344 | while :; do |
| 13345 | cat >conftest.$ac_ext <<_ACEOF |
| 13346 | /* confdefs.h. */ |
| 13347 | _ACEOF |
| 13348 | cat confdefs.h >>conftest.$ac_ext |
| 13349 | cat >>conftest.$ac_ext <<_ACEOF |
| 13350 | /* end confdefs.h. */ |
| 13351 | |
| 13352 | #ifdef HAVE_SYS_TYPES_H |
| 13353 | #include <sys/types.h> |
| 13354 | #endif |
| 13355 | |
| 13356 | |
| 13357 | typedef off_t ac__type_sizeof_; |
| 13358 | int |
| 13359 | main () |
| 13360 | { |
| 13361 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 13362 | test_array [0] = 0 |
| 13363 | |
| 13364 | ; |
| 13365 | return 0; |
| 13366 | } |
| 13367 | _ACEOF |
| 13368 | rm -f conftest.$ac_objext |
| 13369 | if { (ac_try="$ac_compile" |
| 13370 | case "(($ac_try" in |
| 13371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13372 | *) ac_try_echo=$ac_try;; |
| 13373 | esac |
| 13374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13375 | (eval "$ac_compile") 2>conftest.er1 |
| 13376 | ac_status=$? |
| 13377 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13378 | rm -f conftest.er1 |
| 13379 | cat conftest.err >&5 |
| 13380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13381 | (exit $ac_status); } && { |
| 13382 | test -z "$ac_c_werror_flag" || |
| 13383 | test ! -s conftest.err |
| 13384 | } && test -s conftest.$ac_objext; then |
| 13385 | ac_lo=$ac_mid; break |
| 13386 | else |
| 13387 | echo "$as_me: failed program was:" >&5 |
| 13388 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13389 | |
| 13390 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13391 | if test $ac_mid -le $ac_hi; then |
| 13392 | ac_lo= ac_hi= |
| 13393 | break |
| 13394 | fi |
| 13395 | ac_mid=`expr 2 '*' $ac_mid` |
| 13396 | fi |
| 13397 | |
| 13398 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13399 | done |
| 13400 | else |
| 13401 | echo "$as_me: failed program was:" >&5 |
| 13402 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13403 | |
| 13404 | ac_lo= ac_hi= |
| 13405 | fi |
| 13406 | |
| 13407 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13408 | fi |
| 13409 | |
| 13410 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13411 | # Binary search between lo and hi bounds. |
| 13412 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13413 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13414 | cat >conftest.$ac_ext <<_ACEOF |
| 13415 | /* confdefs.h. */ |
| 13416 | _ACEOF |
| 13417 | cat confdefs.h >>conftest.$ac_ext |
| 13418 | cat >>conftest.$ac_ext <<_ACEOF |
| 13419 | /* end confdefs.h. */ |
| 13420 | |
| 13421 | #ifdef HAVE_SYS_TYPES_H |
| 13422 | #include <sys/types.h> |
| 13423 | #endif |
| 13424 | |
| 13425 | |
| 13426 | typedef off_t ac__type_sizeof_; |
| 13427 | int |
| 13428 | main () |
| 13429 | { |
| 13430 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13431 | test_array [0] = 0 |
| 13432 | |
| 13433 | ; |
| 13434 | return 0; |
| 13435 | } |
| 13436 | _ACEOF |
| 13437 | rm -f conftest.$ac_objext |
| 13438 | if { (ac_try="$ac_compile" |
| 13439 | case "(($ac_try" in |
| 13440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13441 | *) ac_try_echo=$ac_try;; |
| 13442 | esac |
| 13443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13444 | (eval "$ac_compile") 2>conftest.er1 |
| 13445 | ac_status=$? |
| 13446 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13447 | rm -f conftest.er1 |
| 13448 | cat conftest.err >&5 |
| 13449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13450 | (exit $ac_status); } && { |
| 13451 | test -z "$ac_c_werror_flag" || |
| 13452 | test ! -s conftest.err |
| 13453 | } && test -s conftest.$ac_objext; then |
| 13454 | ac_hi=$ac_mid |
| 13455 | else |
| 13456 | echo "$as_me: failed program was:" >&5 |
| 13457 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13458 | |
| 13459 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 13460 | fi |
| 13461 | |
| 13462 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13463 | done |
| 13464 | case $ac_lo in |
| 13465 | ?*) ac_cv_sizeof_off_t=$ac_lo;; |
| 13466 | '') if test "$ac_cv_type_off_t" = yes; then |
| 13467 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t) |
| 13468 | See \`config.log' for more details." >&5 |
| 13469 | echo "$as_me: error: cannot compute sizeof (off_t) |
| 13470 | See \`config.log' for more details." >&2;} |
| 13471 | { (exit 77); exit 77; }; } |
| 13472 | else |
| 13473 | ac_cv_sizeof_off_t=0 |
| 13474 | fi ;; |
| 13475 | esac |
| 13476 | else |
| 13477 | cat >conftest.$ac_ext <<_ACEOF |
| 13478 | /* confdefs.h. */ |
| 13479 | _ACEOF |
| 13480 | cat confdefs.h >>conftest.$ac_ext |
| 13481 | cat >>conftest.$ac_ext <<_ACEOF |
| 13482 | /* end confdefs.h. */ |
| 13483 | |
| 13484 | #ifdef HAVE_SYS_TYPES_H |
| 13485 | #include <sys/types.h> |
| 13486 | #endif |
| 13487 | |
| 13488 | |
| 13489 | typedef off_t ac__type_sizeof_; |
| 13490 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13491 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13492 | #include <stdio.h> |
| 13493 | #include <stdlib.h> |
| 13494 | int |
| 13495 | main () |
| 13496 | { |
| 13497 | |
| 13498 | FILE *f = fopen ("conftest.val", "w"); |
| 13499 | if (! f) |
| 13500 | return 1; |
| 13501 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 13502 | { |
| 13503 | long int i = longval (); |
| 13504 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13505 | return 1; |
| 13506 | fprintf (f, "%ld\n", i); |
| 13507 | } |
| 13508 | else |
| 13509 | { |
| 13510 | unsigned long int i = ulongval (); |
| 13511 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13512 | return 1; |
| 13513 | fprintf (f, "%lu\n", i); |
| 13514 | } |
| 13515 | return ferror (f) || fclose (f) != 0; |
| 13516 | |
| 13517 | ; |
| 13518 | return 0; |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13519 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13520 | _ACEOF |
| 13521 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13522 | if { (ac_try="$ac_link" |
| 13523 | case "(($ac_try" in |
| 13524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13525 | *) ac_try_echo=$ac_try;; |
| 13526 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13527 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13528 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13529 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13531 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13532 | { (case "(($ac_try" in |
| 13533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13534 | *) ac_try_echo=$ac_try;; |
| 13535 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13537 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13538 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13540 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13541 | ac_cv_sizeof_off_t=`cat conftest.val` |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13542 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13543 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13544 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13545 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13546 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13547 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13548 | if test "$ac_cv_type_off_t" = yes; then |
| 13549 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t) |
| 13550 | See \`config.log' for more details." >&5 |
| 13551 | echo "$as_me: error: cannot compute sizeof (off_t) |
| 13552 | See \`config.log' for more details." >&2;} |
| 13553 | { (exit 77); exit 77; }; } |
| 13554 | else |
| 13555 | ac_cv_sizeof_off_t=0 |
| 13556 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13557 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13558 | 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] | 13559 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13560 | rm -f conftest.val |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13561 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13562 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 13563 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13564 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13565 | |
| 13566 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13567 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13568 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13569 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13570 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13571 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13572 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13573 | { echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 13574 | echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; } |
Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 13575 | if test "$have_long_long" = yes |
| 13576 | then |
| 13577 | if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 13578 | "$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] | 13579 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13580 | cat >>confdefs.h <<\_ACEOF |
| 13581 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 13582 | _ACEOF |
| 13583 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13584 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 13585 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13586 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13587 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13588 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13589 | fi |
Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 13590 | else |
| 13591 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13592 | echo "${ECHO_T}no" >&6; } |
| 13593 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13594 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13595 | { echo "$as_me:$LINENO: checking for time_t" >&5 |
| 13596 | echo $ECHO_N "checking for time_t... $ECHO_C" >&6; } |
| 13597 | if test "${ac_cv_type_time_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13598 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13599 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13600 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13601 | /* confdefs.h. */ |
| 13602 | _ACEOF |
| 13603 | cat confdefs.h >>conftest.$ac_ext |
| 13604 | cat >>conftest.$ac_ext <<_ACEOF |
| 13605 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13606 | |
| 13607 | #ifdef HAVE_SYS_TYPES_H |
| 13608 | #include <sys/types.h> |
| 13609 | #endif |
| 13610 | #ifdef HAVE_TIME_H |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13611 | #include <time.h> |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13612 | #endif |
| 13613 | |
| 13614 | |
| 13615 | typedef time_t ac__type_new_; |
| 13616 | int |
| 13617 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13618 | { |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13619 | if ((ac__type_new_ *) 0) |
| 13620 | return 0; |
| 13621 | if (sizeof (ac__type_new_)) |
| 13622 | return 0; |
| 13623 | ; |
| 13624 | return 0; |
| 13625 | } |
| 13626 | _ACEOF |
| 13627 | rm -f conftest.$ac_objext |
| 13628 | if { (ac_try="$ac_compile" |
| 13629 | case "(($ac_try" in |
| 13630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13631 | *) ac_try_echo=$ac_try;; |
| 13632 | esac |
| 13633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13634 | (eval "$ac_compile") 2>conftest.er1 |
| 13635 | ac_status=$? |
| 13636 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13637 | rm -f conftest.er1 |
| 13638 | cat conftest.err >&5 |
| 13639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13640 | (exit $ac_status); } && { |
| 13641 | test -z "$ac_c_werror_flag" || |
| 13642 | test ! -s conftest.err |
| 13643 | } && test -s conftest.$ac_objext; then |
| 13644 | ac_cv_type_time_t=yes |
| 13645 | else |
| 13646 | echo "$as_me: failed program was:" >&5 |
| 13647 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13648 | |
| 13649 | ac_cv_type_time_t=no |
| 13650 | fi |
| 13651 | |
| 13652 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13653 | fi |
| 13654 | { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5 |
| 13655 | echo "${ECHO_T}$ac_cv_type_time_t" >&6; } |
| 13656 | |
| 13657 | # The cast to long int works around a bug in the HP C Compiler |
| 13658 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13659 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13660 | # This bug is HP SR number 8606223364. |
| 13661 | { echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 13662 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; } |
| 13663 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 13664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13665 | else |
| 13666 | if test "$cross_compiling" = yes; then |
| 13667 | # Depending upon the size, compute the lo and hi bounds. |
| 13668 | cat >conftest.$ac_ext <<_ACEOF |
| 13669 | /* confdefs.h. */ |
| 13670 | _ACEOF |
| 13671 | cat confdefs.h >>conftest.$ac_ext |
| 13672 | cat >>conftest.$ac_ext <<_ACEOF |
| 13673 | /* end confdefs.h. */ |
| 13674 | |
| 13675 | #ifdef HAVE_SYS_TYPES_H |
| 13676 | #include <sys/types.h> |
| 13677 | #endif |
| 13678 | #ifdef HAVE_TIME_H |
| 13679 | #include <time.h> |
| 13680 | #endif |
| 13681 | |
| 13682 | |
| 13683 | typedef time_t ac__type_sizeof_; |
| 13684 | int |
| 13685 | main () |
| 13686 | { |
| 13687 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 13688 | test_array [0] = 0 |
| 13689 | |
| 13690 | ; |
| 13691 | return 0; |
| 13692 | } |
| 13693 | _ACEOF |
| 13694 | rm -f conftest.$ac_objext |
| 13695 | if { (ac_try="$ac_compile" |
| 13696 | case "(($ac_try" in |
| 13697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13698 | *) ac_try_echo=$ac_try;; |
| 13699 | esac |
| 13700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13701 | (eval "$ac_compile") 2>conftest.er1 |
| 13702 | ac_status=$? |
| 13703 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13704 | rm -f conftest.er1 |
| 13705 | cat conftest.err >&5 |
| 13706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13707 | (exit $ac_status); } && { |
| 13708 | test -z "$ac_c_werror_flag" || |
| 13709 | test ! -s conftest.err |
| 13710 | } && test -s conftest.$ac_objext; then |
| 13711 | ac_lo=0 ac_mid=0 |
| 13712 | while :; do |
| 13713 | cat >conftest.$ac_ext <<_ACEOF |
| 13714 | /* confdefs.h. */ |
| 13715 | _ACEOF |
| 13716 | cat confdefs.h >>conftest.$ac_ext |
| 13717 | cat >>conftest.$ac_ext <<_ACEOF |
| 13718 | /* end confdefs.h. */ |
| 13719 | |
| 13720 | #ifdef HAVE_SYS_TYPES_H |
| 13721 | #include <sys/types.h> |
| 13722 | #endif |
| 13723 | #ifdef HAVE_TIME_H |
| 13724 | #include <time.h> |
| 13725 | #endif |
| 13726 | |
| 13727 | |
| 13728 | typedef time_t ac__type_sizeof_; |
| 13729 | int |
| 13730 | main () |
| 13731 | { |
| 13732 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13733 | test_array [0] = 0 |
| 13734 | |
| 13735 | ; |
| 13736 | return 0; |
| 13737 | } |
| 13738 | _ACEOF |
| 13739 | rm -f conftest.$ac_objext |
| 13740 | if { (ac_try="$ac_compile" |
| 13741 | case "(($ac_try" in |
| 13742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13743 | *) ac_try_echo=$ac_try;; |
| 13744 | esac |
| 13745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13746 | (eval "$ac_compile") 2>conftest.er1 |
| 13747 | ac_status=$? |
| 13748 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13749 | rm -f conftest.er1 |
| 13750 | cat conftest.err >&5 |
| 13751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13752 | (exit $ac_status); } && { |
| 13753 | test -z "$ac_c_werror_flag" || |
| 13754 | test ! -s conftest.err |
| 13755 | } && test -s conftest.$ac_objext; then |
| 13756 | ac_hi=$ac_mid; break |
| 13757 | else |
| 13758 | echo "$as_me: failed program was:" >&5 |
| 13759 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13760 | |
| 13761 | ac_lo=`expr $ac_mid + 1` |
| 13762 | if test $ac_lo -le $ac_mid; then |
| 13763 | ac_lo= ac_hi= |
| 13764 | break |
| 13765 | fi |
| 13766 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 13767 | fi |
| 13768 | |
| 13769 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13770 | done |
| 13771 | else |
| 13772 | echo "$as_me: failed program was:" >&5 |
| 13773 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13774 | |
| 13775 | cat >conftest.$ac_ext <<_ACEOF |
| 13776 | /* confdefs.h. */ |
| 13777 | _ACEOF |
| 13778 | cat confdefs.h >>conftest.$ac_ext |
| 13779 | cat >>conftest.$ac_ext <<_ACEOF |
| 13780 | /* end confdefs.h. */ |
| 13781 | |
| 13782 | #ifdef HAVE_SYS_TYPES_H |
| 13783 | #include <sys/types.h> |
| 13784 | #endif |
| 13785 | #ifdef HAVE_TIME_H |
| 13786 | #include <time.h> |
| 13787 | #endif |
| 13788 | |
| 13789 | |
| 13790 | typedef time_t ac__type_sizeof_; |
| 13791 | int |
| 13792 | main () |
| 13793 | { |
| 13794 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
| 13795 | test_array [0] = 0 |
| 13796 | |
| 13797 | ; |
| 13798 | return 0; |
| 13799 | } |
| 13800 | _ACEOF |
| 13801 | rm -f conftest.$ac_objext |
| 13802 | if { (ac_try="$ac_compile" |
| 13803 | case "(($ac_try" in |
| 13804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13805 | *) ac_try_echo=$ac_try;; |
| 13806 | esac |
| 13807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13808 | (eval "$ac_compile") 2>conftest.er1 |
| 13809 | ac_status=$? |
| 13810 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13811 | rm -f conftest.er1 |
| 13812 | cat conftest.err >&5 |
| 13813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13814 | (exit $ac_status); } && { |
| 13815 | test -z "$ac_c_werror_flag" || |
| 13816 | test ! -s conftest.err |
| 13817 | } && test -s conftest.$ac_objext; then |
| 13818 | ac_hi=-1 ac_mid=-1 |
| 13819 | while :; do |
| 13820 | cat >conftest.$ac_ext <<_ACEOF |
| 13821 | /* confdefs.h. */ |
| 13822 | _ACEOF |
| 13823 | cat confdefs.h >>conftest.$ac_ext |
| 13824 | cat >>conftest.$ac_ext <<_ACEOF |
| 13825 | /* end confdefs.h. */ |
| 13826 | |
| 13827 | #ifdef HAVE_SYS_TYPES_H |
| 13828 | #include <sys/types.h> |
| 13829 | #endif |
| 13830 | #ifdef HAVE_TIME_H |
| 13831 | #include <time.h> |
| 13832 | #endif |
| 13833 | |
| 13834 | |
| 13835 | typedef time_t ac__type_sizeof_; |
| 13836 | int |
| 13837 | main () |
| 13838 | { |
| 13839 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 13840 | test_array [0] = 0 |
| 13841 | |
| 13842 | ; |
| 13843 | return 0; |
| 13844 | } |
| 13845 | _ACEOF |
| 13846 | rm -f conftest.$ac_objext |
| 13847 | if { (ac_try="$ac_compile" |
| 13848 | case "(($ac_try" in |
| 13849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13850 | *) ac_try_echo=$ac_try;; |
| 13851 | esac |
| 13852 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13853 | (eval "$ac_compile") 2>conftest.er1 |
| 13854 | ac_status=$? |
| 13855 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13856 | rm -f conftest.er1 |
| 13857 | cat conftest.err >&5 |
| 13858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13859 | (exit $ac_status); } && { |
| 13860 | test -z "$ac_c_werror_flag" || |
| 13861 | test ! -s conftest.err |
| 13862 | } && test -s conftest.$ac_objext; then |
| 13863 | ac_lo=$ac_mid; break |
| 13864 | else |
| 13865 | echo "$as_me: failed program was:" >&5 |
| 13866 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13867 | |
| 13868 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13869 | if test $ac_mid -le $ac_hi; then |
| 13870 | ac_lo= ac_hi= |
| 13871 | break |
| 13872 | fi |
| 13873 | ac_mid=`expr 2 '*' $ac_mid` |
| 13874 | fi |
| 13875 | |
| 13876 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13877 | done |
| 13878 | else |
| 13879 | echo "$as_me: failed program was:" >&5 |
| 13880 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13881 | |
| 13882 | ac_lo= ac_hi= |
| 13883 | fi |
| 13884 | |
| 13885 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13886 | fi |
| 13887 | |
| 13888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13889 | # Binary search between lo and hi bounds. |
| 13890 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13891 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13892 | cat >conftest.$ac_ext <<_ACEOF |
| 13893 | /* confdefs.h. */ |
| 13894 | _ACEOF |
| 13895 | cat confdefs.h >>conftest.$ac_ext |
| 13896 | cat >>conftest.$ac_ext <<_ACEOF |
| 13897 | /* end confdefs.h. */ |
| 13898 | |
| 13899 | #ifdef HAVE_SYS_TYPES_H |
| 13900 | #include <sys/types.h> |
| 13901 | #endif |
| 13902 | #ifdef HAVE_TIME_H |
| 13903 | #include <time.h> |
| 13904 | #endif |
| 13905 | |
| 13906 | |
| 13907 | typedef time_t ac__type_sizeof_; |
| 13908 | int |
| 13909 | main () |
| 13910 | { |
| 13911 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13912 | test_array [0] = 0 |
| 13913 | |
| 13914 | ; |
| 13915 | return 0; |
| 13916 | } |
| 13917 | _ACEOF |
| 13918 | rm -f conftest.$ac_objext |
| 13919 | if { (ac_try="$ac_compile" |
| 13920 | case "(($ac_try" in |
| 13921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13922 | *) ac_try_echo=$ac_try;; |
| 13923 | esac |
| 13924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13925 | (eval "$ac_compile") 2>conftest.er1 |
| 13926 | ac_status=$? |
| 13927 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13928 | rm -f conftest.er1 |
| 13929 | cat conftest.err >&5 |
| 13930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13931 | (exit $ac_status); } && { |
| 13932 | test -z "$ac_c_werror_flag" || |
| 13933 | test ! -s conftest.err |
| 13934 | } && test -s conftest.$ac_objext; then |
| 13935 | ac_hi=$ac_mid |
| 13936 | else |
| 13937 | echo "$as_me: failed program was:" >&5 |
| 13938 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13939 | |
| 13940 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 13941 | fi |
| 13942 | |
| 13943 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13944 | done |
| 13945 | case $ac_lo in |
| 13946 | ?*) ac_cv_sizeof_time_t=$ac_lo;; |
| 13947 | '') if test "$ac_cv_type_time_t" = yes; then |
| 13948 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t) |
| 13949 | See \`config.log' for more details." >&5 |
| 13950 | echo "$as_me: error: cannot compute sizeof (time_t) |
| 13951 | See \`config.log' for more details." >&2;} |
| 13952 | { (exit 77); exit 77; }; } |
| 13953 | else |
| 13954 | ac_cv_sizeof_time_t=0 |
| 13955 | fi ;; |
| 13956 | esac |
| 13957 | else |
| 13958 | cat >conftest.$ac_ext <<_ACEOF |
| 13959 | /* confdefs.h. */ |
| 13960 | _ACEOF |
| 13961 | cat confdefs.h >>conftest.$ac_ext |
| 13962 | cat >>conftest.$ac_ext <<_ACEOF |
| 13963 | /* end confdefs.h. */ |
| 13964 | |
| 13965 | #ifdef HAVE_SYS_TYPES_H |
| 13966 | #include <sys/types.h> |
| 13967 | #endif |
| 13968 | #ifdef HAVE_TIME_H |
| 13969 | #include <time.h> |
| 13970 | #endif |
| 13971 | |
| 13972 | |
| 13973 | typedef time_t ac__type_sizeof_; |
| 13974 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13975 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13976 | #include <stdio.h> |
| 13977 | #include <stdlib.h> |
| 13978 | int |
| 13979 | main () |
| 13980 | { |
| 13981 | |
| 13982 | FILE *f = fopen ("conftest.val", "w"); |
| 13983 | if (! f) |
| 13984 | return 1; |
| 13985 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 13986 | { |
| 13987 | long int i = longval (); |
| 13988 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13989 | return 1; |
| 13990 | fprintf (f, "%ld\n", i); |
| 13991 | } |
| 13992 | else |
| 13993 | { |
| 13994 | unsigned long int i = ulongval (); |
| 13995 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13996 | return 1; |
| 13997 | fprintf (f, "%lu\n", i); |
| 13998 | } |
| 13999 | return ferror (f) || fclose (f) != 0; |
| 14000 | |
| 14001 | ; |
| 14002 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 14003 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14004 | _ACEOF |
| 14005 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14006 | if { (ac_try="$ac_link" |
| 14007 | case "(($ac_try" in |
| 14008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14009 | *) ac_try_echo=$ac_try;; |
| 14010 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14012 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14013 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14015 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14016 | { (case "(($ac_try" in |
| 14017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14018 | *) ac_try_echo=$ac_try;; |
| 14019 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14021 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14022 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14024 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14025 | ac_cv_sizeof_time_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 14026 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14027 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14028 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14029 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14030 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14031 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14032 | if test "$ac_cv_type_time_t" = yes; then |
| 14033 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t) |
| 14034 | See \`config.log' for more details." >&5 |
| 14035 | echo "$as_me: error: cannot compute sizeof (time_t) |
| 14036 | See \`config.log' for more details." >&2;} |
| 14037 | { (exit 77); exit 77; }; } |
| 14038 | else |
| 14039 | ac_cv_sizeof_time_t=0 |
| 14040 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 14041 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14042 | 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] | 14043 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14044 | rm -f conftest.val |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 14045 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14046 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 14047 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14048 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14049 | |
| 14050 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14051 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 14052 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14053 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 14054 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14055 | |
| 14056 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14057 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 14058 | ac_save_cc="$CC" |
| 14059 | if test "$ac_cv_kpthread" = "yes" |
| 14060 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 14061 | elif test "$ac_cv_kthread" = "yes" |
| 14062 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14063 | elif test "$ac_cv_pthread" = "yes" |
| 14064 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 14065 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14066 | { echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 14067 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14068 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14069 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14070 | /* confdefs.h. */ |
| 14071 | _ACEOF |
| 14072 | cat confdefs.h >>conftest.$ac_ext |
| 14073 | cat >>conftest.$ac_ext <<_ACEOF |
| 14074 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14075 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14076 | int |
| 14077 | main () |
| 14078 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 14079 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14080 | ; |
| 14081 | return 0; |
| 14082 | } |
| 14083 | _ACEOF |
| 14084 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14085 | if { (ac_try="$ac_compile" |
| 14086 | case "(($ac_try" in |
| 14087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14088 | *) ac_try_echo=$ac_try;; |
| 14089 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14091 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14092 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14093 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14094 | rm -f conftest.er1 |
| 14095 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14097 | (exit $ac_status); } && { |
| 14098 | test -z "$ac_c_werror_flag" || |
| 14099 | test ! -s conftest.err |
| 14100 | } && test -s conftest.$ac_objext; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14101 | have_pthread_t=yes |
| 14102 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14103 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14104 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14105 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14106 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14107 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14108 | |
| 14109 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14110 | { echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 14111 | echo "${ECHO_T}$have_pthread_t" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14112 | if test "$have_pthread_t" = yes ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14113 | { echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 14114 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; } |
| 14115 | if test "${ac_cv_type_pthread_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14117 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14118 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14119 | /* confdefs.h. */ |
| 14120 | _ACEOF |
| 14121 | cat confdefs.h >>conftest.$ac_ext |
| 14122 | cat >>conftest.$ac_ext <<_ACEOF |
| 14123 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14124 | |
| 14125 | #ifdef HAVE_PTHREAD_H |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14126 | #include <pthread.h> |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14127 | #endif |
| 14128 | |
| 14129 | |
| 14130 | typedef pthread_t ac__type_new_; |
| 14131 | int |
| 14132 | main () |
| 14133 | { |
| 14134 | if ((ac__type_new_ *) 0) |
| 14135 | return 0; |
| 14136 | if (sizeof (ac__type_new_)) |
| 14137 | return 0; |
| 14138 | ; |
| 14139 | return 0; |
| 14140 | } |
| 14141 | _ACEOF |
| 14142 | rm -f conftest.$ac_objext |
| 14143 | if { (ac_try="$ac_compile" |
| 14144 | case "(($ac_try" in |
| 14145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14146 | *) ac_try_echo=$ac_try;; |
| 14147 | esac |
| 14148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14149 | (eval "$ac_compile") 2>conftest.er1 |
| 14150 | ac_status=$? |
| 14151 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14152 | rm -f conftest.er1 |
| 14153 | cat conftest.err >&5 |
| 14154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14155 | (exit $ac_status); } && { |
| 14156 | test -z "$ac_c_werror_flag" || |
| 14157 | test ! -s conftest.err |
| 14158 | } && test -s conftest.$ac_objext; then |
| 14159 | ac_cv_type_pthread_t=yes |
| 14160 | else |
| 14161 | echo "$as_me: failed program was:" >&5 |
| 14162 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14163 | |
| 14164 | ac_cv_type_pthread_t=no |
| 14165 | fi |
| 14166 | |
| 14167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14168 | fi |
| 14169 | { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_t" >&5 |
| 14170 | echo "${ECHO_T}$ac_cv_type_pthread_t" >&6; } |
| 14171 | |
| 14172 | # The cast to long int works around a bug in the HP C Compiler |
| 14173 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14174 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14175 | # This bug is HP SR number 8606223364. |
| 14176 | { echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 14177 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; } |
| 14178 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 14179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14180 | else |
| 14181 | if test "$cross_compiling" = yes; then |
| 14182 | # Depending upon the size, compute the lo and hi bounds. |
| 14183 | cat >conftest.$ac_ext <<_ACEOF |
| 14184 | /* confdefs.h. */ |
| 14185 | _ACEOF |
| 14186 | cat confdefs.h >>conftest.$ac_ext |
| 14187 | cat >>conftest.$ac_ext <<_ACEOF |
| 14188 | /* end confdefs.h. */ |
| 14189 | |
| 14190 | #ifdef HAVE_PTHREAD_H |
| 14191 | #include <pthread.h> |
| 14192 | #endif |
| 14193 | |
| 14194 | |
| 14195 | typedef pthread_t ac__type_sizeof_; |
| 14196 | int |
| 14197 | main () |
| 14198 | { |
| 14199 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 14200 | test_array [0] = 0 |
| 14201 | |
| 14202 | ; |
| 14203 | return 0; |
| 14204 | } |
| 14205 | _ACEOF |
| 14206 | rm -f conftest.$ac_objext |
| 14207 | if { (ac_try="$ac_compile" |
| 14208 | case "(($ac_try" in |
| 14209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14210 | *) ac_try_echo=$ac_try;; |
| 14211 | esac |
| 14212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14213 | (eval "$ac_compile") 2>conftest.er1 |
| 14214 | ac_status=$? |
| 14215 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14216 | rm -f conftest.er1 |
| 14217 | cat conftest.err >&5 |
| 14218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14219 | (exit $ac_status); } && { |
| 14220 | test -z "$ac_c_werror_flag" || |
| 14221 | test ! -s conftest.err |
| 14222 | } && test -s conftest.$ac_objext; then |
| 14223 | ac_lo=0 ac_mid=0 |
| 14224 | while :; do |
| 14225 | cat >conftest.$ac_ext <<_ACEOF |
| 14226 | /* confdefs.h. */ |
| 14227 | _ACEOF |
| 14228 | cat confdefs.h >>conftest.$ac_ext |
| 14229 | cat >>conftest.$ac_ext <<_ACEOF |
| 14230 | /* end confdefs.h. */ |
| 14231 | |
| 14232 | #ifdef HAVE_PTHREAD_H |
| 14233 | #include <pthread.h> |
| 14234 | #endif |
| 14235 | |
| 14236 | |
| 14237 | typedef pthread_t ac__type_sizeof_; |
| 14238 | int |
| 14239 | main () |
| 14240 | { |
| 14241 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 14242 | test_array [0] = 0 |
| 14243 | |
| 14244 | ; |
| 14245 | return 0; |
| 14246 | } |
| 14247 | _ACEOF |
| 14248 | rm -f conftest.$ac_objext |
| 14249 | if { (ac_try="$ac_compile" |
| 14250 | case "(($ac_try" in |
| 14251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14252 | *) ac_try_echo=$ac_try;; |
| 14253 | esac |
| 14254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14255 | (eval "$ac_compile") 2>conftest.er1 |
| 14256 | ac_status=$? |
| 14257 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14258 | rm -f conftest.er1 |
| 14259 | cat conftest.err >&5 |
| 14260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14261 | (exit $ac_status); } && { |
| 14262 | test -z "$ac_c_werror_flag" || |
| 14263 | test ! -s conftest.err |
| 14264 | } && test -s conftest.$ac_objext; then |
| 14265 | ac_hi=$ac_mid; break |
| 14266 | else |
| 14267 | echo "$as_me: failed program was:" >&5 |
| 14268 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14269 | |
| 14270 | ac_lo=`expr $ac_mid + 1` |
| 14271 | if test $ac_lo -le $ac_mid; then |
| 14272 | ac_lo= ac_hi= |
| 14273 | break |
| 14274 | fi |
| 14275 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 14276 | fi |
| 14277 | |
| 14278 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14279 | done |
| 14280 | else |
| 14281 | echo "$as_me: failed program was:" >&5 |
| 14282 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14283 | |
| 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_))) < 0)]; |
| 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=-1 ac_mid=-1 |
| 14325 | while :; do |
| 14326 | cat >conftest.$ac_ext <<_ACEOF |
| 14327 | /* confdefs.h. */ |
| 14328 | _ACEOF |
| 14329 | cat confdefs.h >>conftest.$ac_ext |
| 14330 | cat >>conftest.$ac_ext <<_ACEOF |
| 14331 | /* end confdefs.h. */ |
| 14332 | |
| 14333 | #ifdef HAVE_PTHREAD_H |
| 14334 | #include <pthread.h> |
| 14335 | #endif |
| 14336 | |
| 14337 | |
| 14338 | typedef pthread_t ac__type_sizeof_; |
| 14339 | int |
| 14340 | main () |
| 14341 | { |
| 14342 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 14343 | test_array [0] = 0 |
| 14344 | |
| 14345 | ; |
| 14346 | return 0; |
| 14347 | } |
| 14348 | _ACEOF |
| 14349 | rm -f conftest.$ac_objext |
| 14350 | if { (ac_try="$ac_compile" |
| 14351 | case "(($ac_try" in |
| 14352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14353 | *) ac_try_echo=$ac_try;; |
| 14354 | esac |
| 14355 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14356 | (eval "$ac_compile") 2>conftest.er1 |
| 14357 | ac_status=$? |
| 14358 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14359 | rm -f conftest.er1 |
| 14360 | cat conftest.err >&5 |
| 14361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14362 | (exit $ac_status); } && { |
| 14363 | test -z "$ac_c_werror_flag" || |
| 14364 | test ! -s conftest.err |
| 14365 | } && test -s conftest.$ac_objext; then |
| 14366 | ac_lo=$ac_mid; break |
| 14367 | else |
| 14368 | echo "$as_me: failed program was:" >&5 |
| 14369 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14370 | |
| 14371 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 14372 | if test $ac_mid -le $ac_hi; then |
| 14373 | ac_lo= ac_hi= |
| 14374 | break |
| 14375 | fi |
| 14376 | ac_mid=`expr 2 '*' $ac_mid` |
| 14377 | fi |
| 14378 | |
| 14379 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14380 | done |
| 14381 | else |
| 14382 | echo "$as_me: failed program was:" >&5 |
| 14383 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14384 | |
| 14385 | ac_lo= ac_hi= |
| 14386 | fi |
| 14387 | |
| 14388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14389 | fi |
| 14390 | |
| 14391 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14392 | # Binary search between lo and hi bounds. |
| 14393 | while test "x$ac_lo" != "x$ac_hi"; do |
| 14394 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 14395 | cat >conftest.$ac_ext <<_ACEOF |
| 14396 | /* confdefs.h. */ |
| 14397 | _ACEOF |
| 14398 | cat confdefs.h >>conftest.$ac_ext |
| 14399 | cat >>conftest.$ac_ext <<_ACEOF |
| 14400 | /* end confdefs.h. */ |
| 14401 | |
| 14402 | #ifdef HAVE_PTHREAD_H |
| 14403 | #include <pthread.h> |
| 14404 | #endif |
| 14405 | |
| 14406 | |
| 14407 | typedef pthread_t ac__type_sizeof_; |
| 14408 | int |
| 14409 | main () |
| 14410 | { |
| 14411 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 14412 | test_array [0] = 0 |
| 14413 | |
| 14414 | ; |
| 14415 | return 0; |
| 14416 | } |
| 14417 | _ACEOF |
| 14418 | rm -f conftest.$ac_objext |
| 14419 | if { (ac_try="$ac_compile" |
| 14420 | case "(($ac_try" in |
| 14421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14422 | *) ac_try_echo=$ac_try;; |
| 14423 | esac |
| 14424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14425 | (eval "$ac_compile") 2>conftest.er1 |
| 14426 | ac_status=$? |
| 14427 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14428 | rm -f conftest.er1 |
| 14429 | cat conftest.err >&5 |
| 14430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14431 | (exit $ac_status); } && { |
| 14432 | test -z "$ac_c_werror_flag" || |
| 14433 | test ! -s conftest.err |
| 14434 | } && test -s conftest.$ac_objext; then |
| 14435 | ac_hi=$ac_mid |
| 14436 | else |
| 14437 | echo "$as_me: failed program was:" >&5 |
| 14438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14439 | |
| 14440 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 14441 | fi |
| 14442 | |
| 14443 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14444 | done |
| 14445 | case $ac_lo in |
| 14446 | ?*) ac_cv_sizeof_pthread_t=$ac_lo;; |
| 14447 | '') if test "$ac_cv_type_pthread_t" = yes; then |
| 14448 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t) |
| 14449 | See \`config.log' for more details." >&5 |
| 14450 | echo "$as_me: error: cannot compute sizeof (pthread_t) |
| 14451 | See \`config.log' for more details." >&2;} |
| 14452 | { (exit 77); exit 77; }; } |
| 14453 | else |
| 14454 | ac_cv_sizeof_pthread_t=0 |
| 14455 | fi ;; |
| 14456 | esac |
| 14457 | else |
| 14458 | cat >conftest.$ac_ext <<_ACEOF |
| 14459 | /* confdefs.h. */ |
| 14460 | _ACEOF |
| 14461 | cat confdefs.h >>conftest.$ac_ext |
| 14462 | cat >>conftest.$ac_ext <<_ACEOF |
| 14463 | /* end confdefs.h. */ |
| 14464 | |
| 14465 | #ifdef HAVE_PTHREAD_H |
| 14466 | #include <pthread.h> |
| 14467 | #endif |
| 14468 | |
| 14469 | |
| 14470 | typedef pthread_t ac__type_sizeof_; |
| 14471 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 14472 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 14473 | #include <stdio.h> |
| 14474 | #include <stdlib.h> |
| 14475 | int |
| 14476 | main () |
| 14477 | { |
| 14478 | |
| 14479 | FILE *f = fopen ("conftest.val", "w"); |
| 14480 | if (! f) |
| 14481 | return 1; |
| 14482 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 14483 | { |
| 14484 | long int i = longval (); |
| 14485 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14486 | return 1; |
| 14487 | fprintf (f, "%ld\n", i); |
| 14488 | } |
| 14489 | else |
| 14490 | { |
| 14491 | unsigned long int i = ulongval (); |
| 14492 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14493 | return 1; |
| 14494 | fprintf (f, "%lu\n", i); |
| 14495 | } |
| 14496 | return ferror (f) || fclose (f) != 0; |
| 14497 | |
| 14498 | ; |
| 14499 | return 0; |
| 14500 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14501 | _ACEOF |
| 14502 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14503 | if { (ac_try="$ac_link" |
| 14504 | case "(($ac_try" in |
| 14505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14506 | *) ac_try_echo=$ac_try;; |
| 14507 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14509 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14510 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14512 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14513 | { (case "(($ac_try" in |
| 14514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14515 | *) ac_try_echo=$ac_try;; |
| 14516 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14518 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14519 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14521 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14522 | ac_cv_sizeof_pthread_t=`cat conftest.val` |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14523 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14524 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14525 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14526 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14527 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14528 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14529 | if test "$ac_cv_type_pthread_t" = yes; then |
| 14530 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t) |
| 14531 | See \`config.log' for more details." >&5 |
| 14532 | echo "$as_me: error: cannot compute sizeof (pthread_t) |
| 14533 | See \`config.log' for more details." >&2;} |
| 14534 | { (exit 77); exit 77; }; } |
| 14535 | else |
| 14536 | ac_cv_sizeof_pthread_t=0 |
| 14537 | fi |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14538 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14539 | 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] | 14540 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14541 | rm -f conftest.val |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14542 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14543 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14544 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14545 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14546 | |
| 14547 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14548 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14549 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14550 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14551 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14552 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14553 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 14554 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14555 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14556 | { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 14557 | 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] | 14558 | # Check whether --enable-toolbox-glue was given. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14559 | if test "${enable_toolbox_glue+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14560 | enableval=$enable_toolbox_glue; |
| 14561 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14562 | |
| 14563 | |
| 14564 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14565 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14566 | case $ac_sys_system/$ac_sys_release in |
| 14567 | Darwin/*) |
| 14568 | enable_toolbox_glue="yes";; |
| 14569 | *) |
| 14570 | enable_toolbox_glue="no";; |
| 14571 | esac |
| 14572 | fi |
| 14573 | case "$enable_toolbox_glue" in |
| 14574 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14575 | extra_machdep_objs="Python/mactoolboxglue.o" |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14576 | extra_undefs="-u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14577 | |
| 14578 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14579 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14580 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14581 | |
| 14582 | ;; |
| 14583 | *) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14584 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 14585 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14586 | ;; |
| 14587 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14588 | { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 14589 | echo "${ECHO_T}$enable_toolbox_glue" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14590 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14591 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 14592 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14593 | case $ac_sys_system/$ac_sys_release in |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 14594 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 14595 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 14596 | ;; |
| 14597 | Darwin/*) |
| 14598 | OTHER_LIBTOOL_OPT="" |
| 14599 | ;; |
| 14600 | esac |
| 14601 | |
| 14602 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14603 | ARCH_RUN_32BIT="" |
| 14604 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 14605 | case $ac_sys_system/$ac_sys_release in |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 14606 | Darwin/[01567]\..*) |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14607 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
| 14608 | if test "${enable_universalsdk}"; then |
| 14609 | : |
| 14610 | else |
Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 14611 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14612 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 14613 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14614 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 14615 | Darwin/*) |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 14616 | gcc_version=`gcc -dumpversion` |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 14617 | if test ${gcc_version} '<' 4.0 |
| 14618 | then |
| 14619 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 14620 | else |
| 14621 | LIBTOOL_CRUFT="" |
| 14622 | fi |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14623 | if test "$cross_compiling" = yes; then |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 14624 | ac_osx_32bit=yes |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14625 | else |
| 14626 | cat >conftest.$ac_ext <<_ACEOF |
| 14627 | /* confdefs.h. */ |
| 14628 | _ACEOF |
| 14629 | cat confdefs.h >>conftest.$ac_ext |
| 14630 | cat >>conftest.$ac_ext <<_ACEOF |
| 14631 | /* end confdefs.h. */ |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 14632 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14633 | #include <unistd.h> |
| 14634 | int main(int argc, char*argv[]) |
| 14635 | { |
| 14636 | if (sizeof(long) == 4) { |
| 14637 | return 0; |
| 14638 | } else { |
| 14639 | return 1; |
| 14640 | } |
Ronald Oussoren | 84ddd72 | 2009-09-08 07:17:10 +0000 | [diff] [blame] | 14641 | } |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 14642 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14643 | _ACEOF |
| 14644 | rm -f conftest$ac_exeext |
| 14645 | if { (ac_try="$ac_link" |
| 14646 | case "(($ac_try" in |
| 14647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14648 | *) ac_try_echo=$ac_try;; |
| 14649 | esac |
| 14650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14651 | (eval "$ac_link") 2>&5 |
| 14652 | ac_status=$? |
| 14653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14654 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14655 | { (case "(($ac_try" in |
| 14656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14657 | *) ac_try_echo=$ac_try;; |
| 14658 | esac |
| 14659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14660 | (eval "$ac_try") 2>&5 |
| 14661 | ac_status=$? |
| 14662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14663 | (exit $ac_status); }; }; then |
| 14664 | ac_osx_32bit=yes |
| 14665 | else |
| 14666 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14667 | echo "$as_me: failed program was:" >&5 |
| 14668 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14669 | |
| 14670 | ( exit $ac_status ) |
| 14671 | ac_osx_32bit=no |
| 14672 | fi |
| 14673 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 14674 | fi |
| 14675 | |
| 14676 | |
| 14677 | |
| 14678 | if test "${ac_osx_32bit}" = "yes"; then |
Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 14679 | case `/usr/bin/arch` in |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14680 | i386) |
| 14681 | MACOSX_DEFAULT_ARCH="i386" |
| 14682 | ;; |
| 14683 | ppc) |
| 14684 | MACOSX_DEFAULT_ARCH="ppc" |
| 14685 | ;; |
| 14686 | *) |
| 14687 | { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5 |
| 14688 | echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;} |
| 14689 | { (exit 1); exit 1; }; } |
| 14690 | ;; |
| 14691 | esac |
| 14692 | else |
Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 14693 | case `/usr/bin/arch` in |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14694 | i386) |
| 14695 | MACOSX_DEFAULT_ARCH="x86_64" |
| 14696 | ;; |
| 14697 | ppc) |
| 14698 | MACOSX_DEFAULT_ARCH="ppc64" |
| 14699 | ;; |
| 14700 | *) |
| 14701 | { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5 |
| 14702 | echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;} |
| 14703 | { (exit 1); exit 1; }; } |
| 14704 | ;; |
| 14705 | esac |
| 14706 | |
| 14707 | #ARCH_RUN_32BIT="true" |
| 14708 | fi |
| 14709 | |
| 14710 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 14711 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14712 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14713 | esac |
| 14714 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14715 | { echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 14716 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14717 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14718 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 14719 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14720 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14721 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14722 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14723 | cat >>confdefs.h <<\_ACEOF |
| 14724 | #define WITH_NEXT_FRAMEWORK 1 |
| 14725 | _ACEOF |
| 14726 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14727 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 14728 | echo "${ECHO_T}yes" >&6; } |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 14729 | if test $enable_shared = "yes" |
| 14730 | then |
Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 14731 | { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." >&5 |
| 14732 | 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] | 14733 | { (exit 1); exit 1; }; } |
| 14734 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14735 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14736 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14737 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14738 | fi |
| 14739 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14740 | { echo "$as_me:$LINENO: checking for dyld" >&5 |
| 14741 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14742 | case $ac_sys_system/$ac_sys_release in |
| 14743 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14744 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14745 | cat >>confdefs.h <<\_ACEOF |
| 14746 | #define WITH_DYLD 1 |
| 14747 | _ACEOF |
| 14748 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14749 | { echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 14750 | echo "${ECHO_T}always on for Darwin" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14751 | ;; |
| 14752 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14753 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14754 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14755 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14756 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14757 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14758 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14759 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14760 | |
| 14761 | |
| 14762 | |
| 14763 | |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14764 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14765 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 14766 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14767 | { echo "$as_me:$LINENO: checking SO" >&5 |
| 14768 | echo $ECHO_N "checking SO... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14769 | if test -z "$SO" |
| 14770 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14771 | case $ac_sys_system in |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 14772 | hp*|HP*) |
| 14773 | case `uname -m` in |
| 14774 | ia64) SO=.so;; |
| 14775 | *) SO=.sl;; |
| 14776 | esac |
| 14777 | ;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 14778 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14779 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14780 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 14781 | else |
| 14782 | # this might also be a termcap variable, see #610332 |
| 14783 | echo |
| 14784 | echo '=====================================================================' |
| 14785 | echo '+ +' |
| 14786 | echo '+ WARNING: You have set SO in your environment. +' |
| 14787 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 14788 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 14789 | echo '+ +' |
| 14790 | echo '=====================================================================' |
| 14791 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14792 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14793 | { echo "$as_me:$LINENO: result: $SO" >&5 |
| 14794 | echo "${ECHO_T}$SO" >&6; } |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 14795 | |
Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 14796 | |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 14797 | cat >>confdefs.h <<_ACEOF |
| 14798 | #define SHLIB_EXT "$SO" |
| 14799 | _ACEOF |
| 14800 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14801 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 14802 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14803 | # (Shared libraries in this instance are shared modules to be loaded into |
| 14804 | # Python, as opposed to building Python itself as a shared library.) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14805 | { echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 14806 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14807 | if test -z "$LDSHARED" |
| 14808 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14809 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14810 | AIX*) |
| 14811 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 14812 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14813 | ;; |
| 14814 | BeOS*) |
| 14815 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 14816 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14817 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 14818 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 14819 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14820 | SunOS/5*) |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14821 | if test "$GCC" = "yes" ; then |
| 14822 | LDSHARED='$(CC) -shared' |
| 14823 | LDCXXSHARED='$(CXX) -shared' |
| 14824 | else |
| 14825 | LDSHARED='$(CC) -G' |
| 14826 | LDCXXSHARED='$(CXX) -G' |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 14827 | fi ;; |
Thomas Heller | dc96a77 | 2008-04-04 10:07:55 +0000 | [diff] [blame] | 14828 | hp*|HP*) |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14829 | if test "$GCC" = "yes" ; then |
| 14830 | LDSHARED='$(CC) -shared' |
| 14831 | LDCXXSHARED='$(CXX) -shared' |
| 14832 | else |
| 14833 | LDSHARED='ld -b' |
Thomas Heller | dc96a77 | 2008-04-04 10:07:55 +0000 | [diff] [blame] | 14834 | fi ;; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14835 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 14836 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14837 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14838 | LDCXXSHARED='$(CXX) $(LDFLAGS) -bundle' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14839 | if test "$enable_framework" ; then |
| 14840 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14841 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 14842 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14843 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14844 | else |
| 14845 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 14846 | LDSHARED="$LDSHARED -undefined suppress" |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14847 | LDCXXSHARED="$LDCXXSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14848 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14849 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14850 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14851 | LDCXXSHARED='$(CXX) $(LDFLAGS) -bundle' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14852 | if test "$enable_framework" ; then |
| 14853 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14854 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 14855 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14856 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14857 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 14858 | # No framework, use the Python app as bundle-loader |
| 14859 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 14860 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14861 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14862 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14863 | Darwin/*) |
| 14864 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 14865 | # This allows an extension to be used in any Python |
Ronald Oussoren | 38f1b98 | 2007-09-02 09:46:07 +0000 | [diff] [blame] | 14866 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 14867 | if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14868 | then |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14869 | if test "${enable_universalsdk}"; then |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 14870 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14871 | fi |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14872 | LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14873 | LDCXXSHARED='$(CXX) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14874 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14875 | else |
| 14876 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14877 | LDCXXSHARED='$(CXX) $(LDFLAGS) -bundle' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14878 | if test "$enable_framework" ; then |
| 14879 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14880 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 14881 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14882 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14883 | else |
| 14884 | # No framework, use the Python app as bundle-loader |
| 14885 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 14886 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14887 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14888 | fi |
| 14889 | fi |
| 14890 | ;; |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14891 | Linux*|GNU*|QNX*) |
| 14892 | LDSHARED='$(CC) -shared' |
| 14893 | LDCXXSHARED='$(CXX) -shared';; |
| 14894 | BSD/OS*/4*) |
| 14895 | LDSHARED="gcc -shared" |
| 14896 | LDCXXSHARED="g++ -shared";; |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 14897 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 14898 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 14899 | then |
Benjamin Peterson | 3b2abe9 | 2010-03-14 15:06:14 +0000 | [diff] [blame] | 14900 | LDSHARED='$(CC) -shared ${LDFLAGS}' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14901 | LDCXXSHARED='$(CXX) -shared ${LDFLAGS}' |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 14902 | else |
| 14903 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 14904 | fi;; |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 14905 | OpenBSD*) |
| 14906 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 14907 | then |
| 14908 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14909 | LDCXXSHARED='$(CXX) -shared $(CCSHARED) ${LDFLAGS}' |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 14910 | else |
| 14911 | case `uname -r` in |
| 14912 | [01].* | 2.[0-7] | 2.[0-7].*) |
| 14913 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 14914 | ;; |
| 14915 | *) |
| 14916 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14917 | LDCXXSHARED='$(CXX) -shared $(CCSHARED) ${LDFLAGS}' |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 14918 | ;; |
| 14919 | esac |
| 14920 | fi;; |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14921 | NetBSD*|DragonFly*) |
| 14922 | LDSHARED="cc -shared ${LDFLAGS}" |
| 14923 | LDCXXSHARED="c++ -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 14924 | OpenUNIX*|UnixWare*) |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14925 | if test "$GCC" = "yes" ; then |
| 14926 | LDSHARED='$(CC) -shared' |
| 14927 | LDCXXSHARED='$(CXX) -shared' |
| 14928 | else |
| 14929 | LDSHARED='$(CC) -G' |
| 14930 | LDCXXSHARED='$(CXX) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14931 | fi;; |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14932 | SCO_SV*) |
| 14933 | LDSHARED='$(CC) -Wl,-G,-Bexport' |
| 14934 | LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; |
| 14935 | CYGWIN*) |
| 14936 | LDSHARED="gcc -shared -Wl,--enable-auto-image-base" |
| 14937 | LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; |
| 14938 | atheos*) |
| 14939 | LDSHARED="gcc -shared" |
| 14940 | LDCXXSHARED="g++ -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14941 | *) LDSHARED="ld";; |
| 14942 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14943 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14944 | { echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 14945 | echo "${ECHO_T}$LDSHARED" >&6; } |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14946 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14947 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14948 | # 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] | 14949 | # library (module) -- this is only needed for a few systems |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14950 | { echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 14951 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14952 | if test -z "$CCSHARED" |
| 14953 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 14954 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 14955 | SunOS*) if test "$GCC" = yes; |
Martin v. Löwis | eb62357 | 2007-03-12 10:50:39 +0000 | [diff] [blame] | 14956 | then CCSHARED="-fPIC"; |
| 14957 | elif test `uname -p` = sparc; |
| 14958 | then CCSHARED="-xcode=pic32"; |
| 14959 | else CCSHARED="-Kpic"; |
| 14960 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 14961 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 14962 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 14963 | else CCSHARED="+z"; |
| 14964 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14965 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 14966 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 14967 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 14968 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14969 | if test "$GCC" = "yes" |
| 14970 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14971 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14972 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 14973 | SCO_SV*) |
| 14974 | if test "$GCC" = "yes" |
| 14975 | then CCSHARED="-fPIC" |
| 14976 | else CCSHARED="-Kpic -belf" |
| 14977 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14978 | IRIX*/6*) case $CC in |
| 14979 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 14980 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14981 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14982 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14983 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14984 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14985 | { echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 14986 | echo "${ECHO_T}$CCSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14987 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14988 | # the python executable -- this is only needed for a few systems |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14989 | { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 14990 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14991 | if test -z "$LINKFORSHARED" |
| 14992 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 14993 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14994 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 14995 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14996 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 14997 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 14998 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14999 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 15000 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15001 | Darwin/*) |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 15002 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, |
| 15003 | # which is |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 15004 | # not used by the core itself but which needs to be in the core so |
| 15005 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 15006 | # -prebind is no longer used, because it actually seems to give a |
| 15007 | # slowdown in stead of a speedup, maybe due to the large number of |
| 15008 | # dynamic loads Python does. |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 15009 | |
| 15010 | LINKFORSHARED="$extra_undefs" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 15011 | if test "$enable_framework" |
| 15012 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 15013 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 15014 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 15015 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 15016 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 15017 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 15018 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 15019 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 15020 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 15021 | then |
| 15022 | LINKFORSHARED="-Wl,--export-dynamic" |
| 15023 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 15024 | SunOS/5*) case $CC in |
| 15025 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 15026 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 15027 | then |
| 15028 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 15029 | fi;; |
| 15030 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 15031 | CYGWIN*) |
| 15032 | if test $enable_shared = "no" |
| 15033 | then |
| 15034 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 15035 | fi;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 15036 | QNX*) |
| 15037 | # -Wl,-E causes the symbols to be added to the dynamic |
| 15038 | # symbol table so that they can be found when a module |
| 15039 | # is loaded. -N 2048K causes the stack size to be set |
| 15040 | # to 2048 kilobytes so that the stack doesn't overflow |
| 15041 | # when running test_compile.py. |
| 15042 | LINKFORSHARED='-Wl,-E -N 2048K';; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 15043 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 15044 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15045 | { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 15046 | echo "${ECHO_T}$LINKFORSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 15047 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15048 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 15049 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15050 | { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 15051 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15052 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 15053 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 15054 | case $ac_sys_system in |
| 15055 | CYGWIN*) |
| 15056 | # Cygwin needs CCSHARED when building extension DLLs |
| 15057 | # but not when building the interpreter DLL. |
| 15058 | CFLAGSFORSHARED='';; |
| 15059 | *) |
| 15060 | CFLAGSFORSHARED='$(CCSHARED)' |
| 15061 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15062 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15063 | { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 15064 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15065 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15066 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 15067 | # library (with --enable-shared). |
| 15068 | # 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] | 15069 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 15070 | # if it is not required, since it creates a dependency of the shared library |
| 15071 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 15072 | # don't need to link LIBS explicitly. The default should be only changed |
| 15073 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15074 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15075 | { echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 15076 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15077 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15078 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 15079 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15080 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15081 | { echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 15082 | echo "${ECHO_T}$SHLIBS" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15083 | |
| 15084 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15085 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15086 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15087 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 15088 | 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] | 15089 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15091 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15092 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15093 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15094 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15095 | /* confdefs.h. */ |
| 15096 | _ACEOF |
| 15097 | cat confdefs.h >>conftest.$ac_ext |
| 15098 | cat >>conftest.$ac_ext <<_ACEOF |
| 15099 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15100 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15101 | /* Override any GCC internal prototype to avoid an error. |
| 15102 | Use char because int might match the return type of a GCC |
| 15103 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15104 | #ifdef __cplusplus |
| 15105 | extern "C" |
| 15106 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15107 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15108 | int |
| 15109 | main () |
| 15110 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15111 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15112 | ; |
| 15113 | return 0; |
| 15114 | } |
| 15115 | _ACEOF |
| 15116 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15117 | if { (ac_try="$ac_link" |
| 15118 | case "(($ac_try" in |
| 15119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15120 | *) ac_try_echo=$ac_try;; |
| 15121 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15123 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15124 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15125 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15126 | rm -f conftest.er1 |
| 15127 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15129 | (exit $ac_status); } && { |
| 15130 | test -z "$ac_c_werror_flag" || |
| 15131 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15132 | } && test -s conftest$ac_exeext && |
| 15133 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15134 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15135 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15136 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15137 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15138 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15139 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15140 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15141 | |
| 15142 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15143 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15144 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15145 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15146 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 15147 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 15148 | if test $ac_cv_lib_dl_dlopen = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15149 | cat >>confdefs.h <<_ACEOF |
| 15150 | #define HAVE_LIBDL 1 |
| 15151 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15152 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15153 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15154 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15155 | fi |
| 15156 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15157 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15158 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 15159 | 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] | 15160 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15162 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15163 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15164 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15165 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15166 | /* confdefs.h. */ |
| 15167 | _ACEOF |
| 15168 | cat confdefs.h >>conftest.$ac_ext |
| 15169 | cat >>conftest.$ac_ext <<_ACEOF |
| 15170 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15171 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15172 | /* Override any GCC internal prototype to avoid an error. |
| 15173 | Use char because int might match the return type of a GCC |
| 15174 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15175 | #ifdef __cplusplus |
| 15176 | extern "C" |
| 15177 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15178 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15179 | int |
| 15180 | main () |
| 15181 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15182 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15183 | ; |
| 15184 | return 0; |
| 15185 | } |
| 15186 | _ACEOF |
| 15187 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15188 | if { (ac_try="$ac_link" |
| 15189 | case "(($ac_try" in |
| 15190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15191 | *) ac_try_echo=$ac_try;; |
| 15192 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15194 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15195 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15196 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15197 | rm -f conftest.er1 |
| 15198 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15200 | (exit $ac_status); } && { |
| 15201 | test -z "$ac_c_werror_flag" || |
| 15202 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15203 | } && test -s conftest$ac_exeext && |
| 15204 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15205 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15206 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15207 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15208 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15209 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15210 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15211 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15212 | |
| 15213 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15214 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15215 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15216 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15217 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 15218 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
| 15219 | if test $ac_cv_lib_dld_shl_load = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15220 | cat >>confdefs.h <<_ACEOF |
| 15221 | #define HAVE_LIBDLD 1 |
| 15222 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15223 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15224 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15225 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15226 | fi |
| 15227 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15228 | |
Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 15229 | # only check for sem_init if thread support is requested |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15230 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15231 | { echo "$as_me:$LINENO: checking for library containing sem_init" >&5 |
| 15232 | 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] | 15233 | if test "${ac_cv_search_sem_init+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 15235 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 15236 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15237 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15238 | /* confdefs.h. */ |
| 15239 | _ACEOF |
| 15240 | cat confdefs.h >>conftest.$ac_ext |
| 15241 | cat >>conftest.$ac_ext <<_ACEOF |
| 15242 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15243 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15244 | /* Override any GCC internal prototype to avoid an error. |
| 15245 | Use char because int might match the return type of a GCC |
| 15246 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15247 | #ifdef __cplusplus |
| 15248 | extern "C" |
| 15249 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15250 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15251 | int |
| 15252 | main () |
| 15253 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15254 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15255 | ; |
| 15256 | return 0; |
| 15257 | } |
| 15258 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15259 | for ac_lib in '' pthread rt posix4; do |
| 15260 | if test -z "$ac_lib"; then |
| 15261 | ac_res="none required" |
| 15262 | else |
| 15263 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15264 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15265 | fi |
| 15266 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15267 | if { (ac_try="$ac_link" |
| 15268 | case "(($ac_try" in |
| 15269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15270 | *) ac_try_echo=$ac_try;; |
| 15271 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15273 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15274 | ac_status=$? |
| 15275 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15276 | rm -f conftest.er1 |
| 15277 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15279 | (exit $ac_status); } && { |
| 15280 | test -z "$ac_c_werror_flag" || |
| 15281 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15282 | } && test -s conftest$ac_exeext && |
| 15283 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15284 | ac_cv_search_sem_init=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 15285 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15286 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15287 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15288 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15289 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 15290 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15291 | |
| 15292 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 15293 | conftest$ac_exeext |
| 15294 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 15295 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15296 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15297 | done |
| 15298 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 15299 | : |
| 15300 | else |
| 15301 | ac_cv_search_sem_init=no |
| 15302 | fi |
| 15303 | rm conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 15304 | LIBS=$ac_func_search_save_LIBS |
| 15305 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15306 | { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 15307 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15308 | ac_res=$ac_cv_search_sem_init |
| 15309 | if test "$ac_res" != no; then |
| 15310 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 15311 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 15312 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 15313 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15314 | # posix4 on Solaris 2.6 |
| 15315 | # pthread (first!) on Linux |
| 15316 | fi |
| 15317 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15318 | # check if we need libintl for locale functions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15319 | { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| 15320 | 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] | 15321 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15322 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15323 | else |
| 15324 | ac_check_lib_save_LIBS=$LIBS |
| 15325 | LIBS="-lintl $LIBS" |
| 15326 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15327 | /* confdefs.h. */ |
| 15328 | _ACEOF |
| 15329 | cat confdefs.h >>conftest.$ac_ext |
| 15330 | cat >>conftest.$ac_ext <<_ACEOF |
| 15331 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15332 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15333 | /* Override any GCC internal prototype to avoid an error. |
| 15334 | Use char because int might match the return type of a GCC |
| 15335 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15336 | #ifdef __cplusplus |
| 15337 | extern "C" |
| 15338 | #endif |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15339 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15340 | int |
| 15341 | main () |
| 15342 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15343 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15344 | ; |
| 15345 | return 0; |
| 15346 | } |
| 15347 | _ACEOF |
| 15348 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15349 | if { (ac_try="$ac_link" |
| 15350 | case "(($ac_try" in |
| 15351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15352 | *) ac_try_echo=$ac_try;; |
| 15353 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15355 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15356 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15357 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15358 | rm -f conftest.er1 |
| 15359 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15361 | (exit $ac_status); } && { |
| 15362 | test -z "$ac_c_werror_flag" || |
| 15363 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15364 | } && test -s conftest$ac_exeext && |
| 15365 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15366 | ac_cv_lib_intl_textdomain=yes |
| 15367 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15368 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15369 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15370 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15371 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15372 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15373 | |
| 15374 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15375 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15376 | LIBS=$ac_check_lib_save_LIBS |
| 15377 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15378 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| 15379 | echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; } |
| 15380 | if test $ac_cv_lib_intl_textdomain = yes; then |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15381 | |
| 15382 | cat >>confdefs.h <<\_ACEOF |
| 15383 | #define WITH_LIBINTL 1 |
| 15384 | _ACEOF |
| 15385 | |
| 15386 | fi |
| 15387 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15388 | |
| 15389 | # checks for system dependent C++ extensions support |
| 15390 | case "$ac_sys_system" in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15391 | AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 15392 | 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] | 15393 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15394 | /* confdefs.h. */ |
| 15395 | _ACEOF |
| 15396 | cat confdefs.h >>conftest.$ac_ext |
| 15397 | cat >>conftest.$ac_ext <<_ACEOF |
| 15398 | /* end confdefs.h. */ |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15399 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15400 | int |
| 15401 | main () |
| 15402 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15403 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15404 | ; |
| 15405 | return 0; |
| 15406 | } |
| 15407 | _ACEOF |
| 15408 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15409 | if { (ac_try="$ac_link" |
| 15410 | case "(($ac_try" in |
| 15411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15412 | *) ac_try_echo=$ac_try;; |
| 15413 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15415 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15416 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15417 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15418 | rm -f conftest.er1 |
| 15419 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15421 | (exit $ac_status); } && { |
| 15422 | test -z "$ac_c_werror_flag" || |
| 15423 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15424 | } && test -s conftest$ac_exeext && |
| 15425 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15426 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15427 | cat >>confdefs.h <<\_ACEOF |
| 15428 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 15429 | _ACEOF |
| 15430 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15431 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15432 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15433 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15434 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15435 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15436 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15437 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15438 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15439 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15440 | |
| 15441 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15442 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15443 | *) ;; |
| 15444 | esac |
| 15445 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 15446 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15447 | # BeOS' sockets are stashed in libnet. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15448 | { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 15449 | 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] | 15450 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15451 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15452 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15453 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15454 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15455 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15456 | /* confdefs.h. */ |
| 15457 | _ACEOF |
| 15458 | cat confdefs.h >>conftest.$ac_ext |
| 15459 | cat >>conftest.$ac_ext <<_ACEOF |
| 15460 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15461 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15462 | /* Override any GCC internal prototype to avoid an error. |
| 15463 | Use char because int might match the return type of a GCC |
| 15464 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15465 | #ifdef __cplusplus |
| 15466 | extern "C" |
| 15467 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15468 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15469 | int |
| 15470 | main () |
| 15471 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15472 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15473 | ; |
| 15474 | return 0; |
| 15475 | } |
| 15476 | _ACEOF |
| 15477 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15478 | if { (ac_try="$ac_link" |
| 15479 | case "(($ac_try" in |
| 15480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15481 | *) ac_try_echo=$ac_try;; |
| 15482 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15484 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15485 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15486 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15487 | rm -f conftest.er1 |
| 15488 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15490 | (exit $ac_status); } && { |
| 15491 | test -z "$ac_c_werror_flag" || |
| 15492 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15493 | } && test -s conftest$ac_exeext && |
| 15494 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15495 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15496 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15497 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15498 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15499 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15500 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15501 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15502 | |
| 15503 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15504 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15505 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15506 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15507 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 15508 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; } |
| 15509 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15510 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15511 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 15512 | # SVR4 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15513 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 15514 | 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] | 15515 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15517 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15518 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15519 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15520 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15521 | /* confdefs.h. */ |
| 15522 | _ACEOF |
| 15523 | cat confdefs.h >>conftest.$ac_ext |
| 15524 | cat >>conftest.$ac_ext <<_ACEOF |
| 15525 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15526 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15527 | /* Override any GCC internal prototype to avoid an error. |
| 15528 | Use char because int might match the return type of a GCC |
| 15529 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15530 | #ifdef __cplusplus |
| 15531 | extern "C" |
| 15532 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15533 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15534 | int |
| 15535 | main () |
| 15536 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15537 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15538 | ; |
| 15539 | return 0; |
| 15540 | } |
| 15541 | _ACEOF |
| 15542 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15543 | if { (ac_try="$ac_link" |
| 15544 | case "(($ac_try" in |
| 15545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15546 | *) ac_try_echo=$ac_try;; |
| 15547 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15549 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15550 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15551 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15552 | rm -f conftest.er1 |
| 15553 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15555 | (exit $ac_status); } && { |
| 15556 | test -z "$ac_c_werror_flag" || |
| 15557 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15558 | } && test -s conftest$ac_exeext && |
| 15559 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15560 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15561 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15562 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15563 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15564 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15565 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15566 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15567 | |
| 15568 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15569 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15570 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15571 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15572 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 15573 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } |
| 15574 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15575 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15576 | fi |
| 15577 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 15578 | |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 15579 | case "$ac_sys_system" in |
| 15580 | BeOS*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15581 | { echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 15582 | 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] | 15583 | if test "${ac_cv_lib_net_socket+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15585 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15586 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15587 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15588 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15589 | /* confdefs.h. */ |
| 15590 | _ACEOF |
| 15591 | cat confdefs.h >>conftest.$ac_ext |
| 15592 | cat >>conftest.$ac_ext <<_ACEOF |
| 15593 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15594 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15595 | /* Override any GCC internal prototype to avoid an error. |
| 15596 | Use char because int might match the return type of a GCC |
| 15597 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15598 | #ifdef __cplusplus |
| 15599 | extern "C" |
| 15600 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15601 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15602 | int |
| 15603 | main () |
| 15604 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15605 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15606 | ; |
| 15607 | return 0; |
| 15608 | } |
| 15609 | _ACEOF |
| 15610 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15611 | if { (ac_try="$ac_link" |
| 15612 | case "(($ac_try" in |
| 15613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15614 | *) ac_try_echo=$ac_try;; |
| 15615 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15617 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15618 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15619 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15620 | rm -f conftest.er1 |
| 15621 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15623 | (exit $ac_status); } && { |
| 15624 | test -z "$ac_c_werror_flag" || |
| 15625 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15626 | } && test -s conftest$ac_exeext && |
| 15627 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15628 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15629 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15630 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15631 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15632 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15633 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15634 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15635 | |
| 15636 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15637 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15638 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15639 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15640 | { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 15641 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; } |
| 15642 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15643 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15644 | fi |
| 15645 | # BeOS |
| 15646 | ;; |
| 15647 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 15648 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15649 | { echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 15650 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15651 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15652 | # Check whether --with-libs was given. |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 15653 | if test "${with_libs+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15654 | withval=$with_libs; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15655 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 15656 | echo "${ECHO_T}$withval" >&6; } |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 15657 | LIBS="$withval $LIBS" |
| 15658 | |
| 15659 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15660 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15661 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15662 | fi |
| 15663 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15664 | |
Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 15665 | if test -n "$ac_tool_prefix"; then |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 15666 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 15667 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 15668 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 15669 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 15670 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
| 15671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15672 | else |
| 15673 | case $PKG_CONFIG in |
| 15674 | [\\/]* | ?:[\\/]*) |
| 15675 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 15676 | ;; |
| 15677 | *) |
| 15678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15679 | for as_dir in $PATH |
| 15680 | do |
| 15681 | IFS=$as_save_IFS |
| 15682 | test -z "$as_dir" && as_dir=. |
| 15683 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15684 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 15685 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 15686 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15687 | break 2 |
| 15688 | fi |
| 15689 | done |
| 15690 | done |
| 15691 | IFS=$as_save_IFS |
| 15692 | |
| 15693 | ;; |
| 15694 | esac |
| 15695 | fi |
| 15696 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 15697 | if test -n "$PKG_CONFIG"; then |
| 15698 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| 15699 | echo "${ECHO_T}$PKG_CONFIG" >&6; } |
| 15700 | else |
| 15701 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15702 | echo "${ECHO_T}no" >&6; } |
| 15703 | fi |
| 15704 | |
| 15705 | |
| 15706 | fi |
| 15707 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 15708 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 15709 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 15710 | set dummy pkg-config; ac_word=$2 |
| 15711 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 15712 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 15713 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then |
| 15714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15715 | else |
| 15716 | case $ac_pt_PKG_CONFIG in |
| 15717 | [\\/]* | ?:[\\/]*) |
| 15718 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 15719 | ;; |
| 15720 | *) |
| 15721 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15722 | for as_dir in $PATH |
| 15723 | do |
| 15724 | IFS=$as_save_IFS |
| 15725 | test -z "$as_dir" && as_dir=. |
| 15726 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15727 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 15728 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 15729 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15730 | break 2 |
| 15731 | fi |
| 15732 | done |
| 15733 | done |
| 15734 | IFS=$as_save_IFS |
| 15735 | |
| 15736 | ;; |
| 15737 | esac |
| 15738 | fi |
| 15739 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 15740 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 15741 | { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 |
| 15742 | echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } |
| 15743 | else |
| 15744 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15745 | echo "${ECHO_T}no" >&6; } |
| 15746 | fi |
| 15747 | |
| 15748 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 15749 | PKG_CONFIG="" |
| 15750 | else |
| 15751 | case $cross_compiling:$ac_tool_warned in |
| 15752 | yes:) |
| 15753 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 15754 | whose name does not start with the host triplet. If you think this |
| 15755 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 15756 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 15757 | whose name does not start with the host triplet. If you think this |
| 15758 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 15759 | ac_tool_warned=yes ;; |
| 15760 | esac |
| 15761 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 15762 | fi |
| 15763 | else |
| 15764 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 15765 | fi |
| 15766 | |
Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 15767 | |
| 15768 | # Check for use of the system expat library |
| 15769 | { echo "$as_me:$LINENO: checking for --with-system-expat" >&5 |
| 15770 | echo $ECHO_N "checking for --with-system-expat... $ECHO_C" >&6; } |
| 15771 | |
| 15772 | # Check whether --with-system_expat was given. |
| 15773 | if test "${with_system_expat+set}" = set; then |
| 15774 | withval=$with_system_expat; |
| 15775 | fi |
| 15776 | |
| 15777 | |
| 15778 | { echo "$as_me:$LINENO: result: $with_system_expat" >&5 |
| 15779 | echo "${ECHO_T}$with_system_expat" >&6; } |
| 15780 | |
| 15781 | # Check for use of the system libffi library |
| 15782 | { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5 |
| 15783 | echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; } |
| 15784 | |
| 15785 | # Check whether --with-system_ffi was given. |
| 15786 | if test "${with_system_ffi+set}" = set; then |
| 15787 | withval=$with_system_ffi; |
| 15788 | fi |
| 15789 | |
| 15790 | |
| 15791 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 15792 | LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" |
| 15793 | else |
| 15794 | LIBFFI_INCLUDEDIR="" |
| 15795 | fi |
| 15796 | |
| 15797 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15798 | { echo "$as_me:$LINENO: result: $with_system_ffi" >&5 |
| 15799 | echo "${ECHO_T}$with_system_ffi" >&6; } |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15800 | |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15801 | # Check for --with-dbmliborder |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15802 | { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5 |
| 15803 | echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; } |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15804 | |
| 15805 | # Check whether --with-dbmliborder was given. |
| 15806 | if test "${with_dbmliborder+set}" = set; then |
| 15807 | withval=$with_dbmliborder; |
| 15808 | if test x$with_dbmliborder = xyes |
| 15809 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15810 | { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5 |
| 15811 | echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;} |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15812 | { (exit 1); exit 1; }; } |
| 15813 | else |
| 15814 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do |
| 15815 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb |
| 15816 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15817 | { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5 |
| 15818 | echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;} |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15819 | { (exit 1); exit 1; }; } |
| 15820 | fi |
| 15821 | done |
| 15822 | fi |
| 15823 | fi |
| 15824 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15825 | { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5 |
| 15826 | echo "${ECHO_T}$with_dbmliborder" >&6; } |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15827 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 15828 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15829 | |
| 15830 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15831 | { echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 15832 | 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] | 15833 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15834 | # Check whether --with-signal-module was given. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15835 | if test "${with_signal_module+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15836 | withval=$with_signal_module; |
| 15837 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15838 | |
| 15839 | |
| 15840 | if test -z "$with_signal_module" |
| 15841 | then with_signal_module="yes" |
| 15842 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15843 | { echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 15844 | echo "${ECHO_T}$with_signal_module" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15845 | |
| 15846 | if test "${with_signal_module}" = "yes"; then |
| 15847 | USE_SIGNAL_MODULE="" |
| 15848 | SIGNAL_OBJS="" |
| 15849 | else |
| 15850 | USE_SIGNAL_MODULE="#" |
| 15851 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 15852 | fi |
| 15853 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 15854 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 15855 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15856 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 15857 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15858 | { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 15859 | 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] | 15860 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15861 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15862 | # Check whether --with-dec-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15863 | if test "${with_dec_threads+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15864 | withval=$with_dec_threads; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15865 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 15866 | echo "${ECHO_T}$withval" >&6; } |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15867 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15868 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15869 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15870 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15871 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15872 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15873 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15874 | fi |
| 15875 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15876 | |
| 15877 | # Templates for things AC_DEFINEd more than once. |
| 15878 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15879 | |
| 15880 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15881 | |
| 15882 | |
| 15883 | |
| 15884 | |
| 15885 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15886 | { echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 15887 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15888 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15889 | # Check whether --with-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15890 | if test "${with_threads+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15891 | withval=$with_threads; |
| 15892 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15893 | |
| 15894 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15895 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15896 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15897 | # Check whether --with-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15898 | if test "${with_thread+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15899 | withval=$with_thread; with_threads=$with_thread |
| 15900 | fi |
| 15901 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15902 | |
| 15903 | if test -z "$with_threads" |
| 15904 | then with_threads="yes" |
| 15905 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15906 | { echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 15907 | echo "${ECHO_T}$with_threads" >&6; } |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15908 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15909 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15910 | if test "$with_threads" = "no" |
| 15911 | then |
| 15912 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15913 | elif test "$ac_cv_pthread_is_default" = yes |
| 15914 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15915 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15916 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15917 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15918 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15919 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15920 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15921 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15922 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15923 | |
| 15924 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15925 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15926 | elif test "$ac_cv_kpthread" = "yes" |
| 15927 | then |
| 15928 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15929 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 15930 | CXX="$CXX -Kpthread" |
| 15931 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15932 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 15933 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15934 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 15935 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15936 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15937 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 15938 | elif test "$ac_cv_kthread" = "yes" |
| 15939 | then |
| 15940 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15941 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 15942 | CXX="$CXX -Kthread" |
| 15943 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 15944 | cat >>confdefs.h <<\_ACEOF |
| 15945 | #define WITH_THREAD 1 |
| 15946 | _ACEOF |
| 15947 | |
| 15948 | posix_threads=yes |
| 15949 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15950 | elif test "$ac_cv_pthread" = "yes" |
| 15951 | then |
| 15952 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15953 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 15954 | CXX="$CXX -pthread" |
| 15955 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15956 | cat >>confdefs.h <<\_ACEOF |
| 15957 | #define WITH_THREAD 1 |
| 15958 | _ACEOF |
| 15959 | |
| 15960 | posix_threads=yes |
| 15961 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15962 | else |
| 15963 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 15964 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 15965 | fi |
| 15966 | if test ! -z "$withval" -a -d "$withval" |
| 15967 | then LDFLAGS="$LDFLAGS -L$withval" |
| 15968 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15969 | |
| 15970 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 15971 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 15972 | # (e.g. gnu pth with pthread emulation) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15973 | { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 15974 | 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] | 15975 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15976 | /* confdefs.h. */ |
| 15977 | _ACEOF |
| 15978 | cat confdefs.h >>conftest.$ac_ext |
| 15979 | cat >>conftest.$ac_ext <<_ACEOF |
| 15980 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 15981 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15982 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 15983 | #ifdef _POSIX_THREADS |
| 15984 | yes |
| 15985 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15986 | |
| 15987 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15988 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15989 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15990 | unistd_defines_pthreads=yes |
| 15991 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15992 | unistd_defines_pthreads=no |
| 15993 | fi |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 15994 | rm -f -r conftest* |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15995 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15996 | { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 15997 | echo "${ECHO_T}$unistd_defines_pthreads" >&6; } |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15998 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15999 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 16000 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16001 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 16002 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16003 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16004 | { echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 16005 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16006 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16008 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16009 | { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 16010 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16011 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16012 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16013 | { echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 16014 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16015 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16016 | /* confdefs.h. */ |
| 16017 | _ACEOF |
| 16018 | cat confdefs.h >>conftest.$ac_ext |
| 16019 | cat >>conftest.$ac_ext <<_ACEOF |
| 16020 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16021 | $ac_includes_default |
| 16022 | #include <cthreads.h> |
| 16023 | _ACEOF |
| 16024 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16025 | if { (ac_try="$ac_compile" |
| 16026 | case "(($ac_try" in |
| 16027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16028 | *) ac_try_echo=$ac_try;; |
| 16029 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16031 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16032 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16033 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16034 | rm -f conftest.er1 |
| 16035 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16037 | (exit $ac_status); } && { |
| 16038 | test -z "$ac_c_werror_flag" || |
| 16039 | test ! -s conftest.err |
| 16040 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16041 | ac_header_compiler=yes |
| 16042 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16043 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16044 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16045 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16046 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16047 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16048 | |
| 16049 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16050 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16051 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16052 | |
| 16053 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16054 | { echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 16055 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16056 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16057 | /* confdefs.h. */ |
| 16058 | _ACEOF |
| 16059 | cat confdefs.h >>conftest.$ac_ext |
| 16060 | cat >>conftest.$ac_ext <<_ACEOF |
| 16061 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16062 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16063 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16064 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16065 | case "(($ac_try" in |
| 16066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16067 | *) ac_try_echo=$ac_try;; |
| 16068 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16070 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16071 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16072 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16073 | rm -f conftest.er1 |
| 16074 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16076 | (exit $ac_status); } >/dev/null && { |
| 16077 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16078 | test ! -s conftest.err |
| 16079 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16080 | ac_header_preproc=yes |
| 16081 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16082 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16083 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16084 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16085 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16086 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16087 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16088 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16089 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16090 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16091 | |
| 16092 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16093 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16094 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16095 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16096 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16097 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5 |
| 16098 | 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] | 16099 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16100 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16101 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16102 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 16103 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 16104 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 16105 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 16106 | { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5 |
| 16107 | echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;} |
| 16108 | { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16109 | echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16110 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 16111 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 16112 | { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5 |
| 16113 | 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] | 16114 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 16115 | ## -------------------------------------- ## |
| 16116 | ## Report this to http://bugs.python.org/ ## |
| 16117 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16118 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16119 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16120 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16121 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16122 | { echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 16123 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16124 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16126 | else |
| 16127 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16128 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16129 | { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 16130 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16131 | |
| 16132 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16133 | if test $ac_cv_header_cthreads_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16134 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16135 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16136 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16137 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16138 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16139 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16140 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16141 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16142 | |
| 16143 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16144 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16145 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16146 | |
| 16147 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16148 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16149 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16150 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16151 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16152 | { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 16153 | 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] | 16154 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16156 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16157 | { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 16158 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16159 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16160 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16161 | { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 16162 | 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] | 16163 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16164 | /* confdefs.h. */ |
| 16165 | _ACEOF |
| 16166 | cat confdefs.h >>conftest.$ac_ext |
| 16167 | cat >>conftest.$ac_ext <<_ACEOF |
| 16168 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16169 | $ac_includes_default |
| 16170 | #include <mach/cthreads.h> |
| 16171 | _ACEOF |
| 16172 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16173 | if { (ac_try="$ac_compile" |
| 16174 | case "(($ac_try" in |
| 16175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16176 | *) ac_try_echo=$ac_try;; |
| 16177 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16179 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16180 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16181 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16182 | rm -f conftest.er1 |
| 16183 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16185 | (exit $ac_status); } && { |
| 16186 | test -z "$ac_c_werror_flag" || |
| 16187 | test ! -s conftest.err |
| 16188 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16189 | ac_header_compiler=yes |
| 16190 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16191 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16192 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16193 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16194 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16195 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16196 | |
| 16197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16198 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16199 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16200 | |
| 16201 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16202 | { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 16203 | 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] | 16204 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16205 | /* confdefs.h. */ |
| 16206 | _ACEOF |
| 16207 | cat confdefs.h >>conftest.$ac_ext |
| 16208 | cat >>conftest.$ac_ext <<_ACEOF |
| 16209 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16210 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16211 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16212 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16213 | case "(($ac_try" in |
| 16214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16215 | *) ac_try_echo=$ac_try;; |
| 16216 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16218 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16219 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16220 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16221 | rm -f conftest.er1 |
| 16222 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16224 | (exit $ac_status); } >/dev/null && { |
| 16225 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16226 | test ! -s conftest.err |
| 16227 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16228 | ac_header_preproc=yes |
| 16229 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16230 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16231 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16232 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16233 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16234 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16235 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16236 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16237 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16238 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16239 | |
| 16240 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16241 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16242 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16243 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16244 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16245 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5 |
| 16246 | 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] | 16247 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16248 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16249 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16250 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 16251 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 16252 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 16253 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 16254 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5 |
| 16255 | echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;} |
| 16256 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16257 | echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16258 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 16259 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 16260 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5 |
| 16261 | 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] | 16262 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 16263 | ## -------------------------------------- ## |
| 16264 | ## Report this to http://bugs.python.org/ ## |
| 16265 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16266 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16267 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16268 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16269 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16270 | { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 16271 | 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] | 16272 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16274 | else |
| 16275 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16276 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16277 | { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 16278 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16279 | |
| 16280 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16281 | if test $ac_cv_header_mach_cthreads_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16282 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16283 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16284 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16285 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16286 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16287 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16288 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16289 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16290 | |
| 16291 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16292 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16293 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16294 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16295 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16296 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16297 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16298 | { echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 16299 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16300 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16301 | # Check whether --with-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16302 | if test "${with_pth+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16303 | withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5 |
| 16304 | echo "${ECHO_T}$withval" >&6; } |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 16305 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16306 | #define WITH_THREAD 1 |
| 16307 | _ACEOF |
| 16308 | |
| 16309 | |
| 16310 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16311 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16312 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16313 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 16314 | LIBS="-lpth $LIBS" |
| 16315 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16316 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16317 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16318 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16319 | |
| 16320 | # Just looking for pthread_create in libpthread is not enough: |
| 16321 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 16322 | # So we really have to include pthread.h, and then link. |
| 16323 | _libs=$LIBS |
| 16324 | LIBS="$LIBS -lpthread" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16325 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 16326 | 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] | 16327 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16328 | /* confdefs.h. */ |
| 16329 | _ACEOF |
| 16330 | cat confdefs.h >>conftest.$ac_ext |
| 16331 | cat >>conftest.$ac_ext <<_ACEOF |
| 16332 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16333 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16334 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16335 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16336 | int |
| 16337 | main () |
| 16338 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16339 | |
| 16340 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16341 | ; |
| 16342 | return 0; |
| 16343 | } |
| 16344 | _ACEOF |
| 16345 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16346 | if { (ac_try="$ac_link" |
| 16347 | case "(($ac_try" in |
| 16348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16349 | *) ac_try_echo=$ac_try;; |
| 16350 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16352 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16353 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16354 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16355 | rm -f conftest.er1 |
| 16356 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16358 | (exit $ac_status); } && { |
| 16359 | test -z "$ac_c_werror_flag" || |
| 16360 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16361 | } && test -s conftest$ac_exeext && |
| 16362 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16363 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16364 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16365 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16366 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16367 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16368 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16369 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 16370 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16371 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16372 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16373 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16374 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16375 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16376 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16377 | LIBS=$_libs |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16378 | { echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 16379 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16380 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16382 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16383 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16384 | /* confdefs.h. */ |
| 16385 | _ACEOF |
| 16386 | cat confdefs.h >>conftest.$ac_ext |
| 16387 | cat >>conftest.$ac_ext <<_ACEOF |
| 16388 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16389 | /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach. |
| 16390 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16391 | #define pthread_detach innocuous_pthread_detach |
| 16392 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16393 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16394 | which can conflict with char pthread_detach (); below. |
| 16395 | 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] | 16396 | <limits.h> exists even on freestanding compilers. */ |
| 16397 | |
| 16398 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16399 | # include <limits.h> |
| 16400 | #else |
| 16401 | # include <assert.h> |
| 16402 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16403 | |
| 16404 | #undef pthread_detach |
| 16405 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16406 | /* Override any GCC internal prototype to avoid an error. |
| 16407 | Use char because int might match the return type of a GCC |
| 16408 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16409 | #ifdef __cplusplus |
| 16410 | extern "C" |
| 16411 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16412 | char pthread_detach (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16413 | /* The GNU C library defines this for functions which it implements |
| 16414 | to always fail with ENOSYS. Some functions are actually named |
| 16415 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16416 | #if defined __stub_pthread_detach || defined __stub___pthread_detach |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16417 | choke me |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16418 | #endif |
| 16419 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16420 | int |
| 16421 | main () |
| 16422 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16423 | return pthread_detach (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16424 | ; |
| 16425 | return 0; |
| 16426 | } |
| 16427 | _ACEOF |
| 16428 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16429 | if { (ac_try="$ac_link" |
| 16430 | case "(($ac_try" in |
| 16431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16432 | *) ac_try_echo=$ac_try;; |
| 16433 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16435 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16436 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16437 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16438 | rm -f conftest.er1 |
| 16439 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16441 | (exit $ac_status); } && { |
| 16442 | test -z "$ac_c_werror_flag" || |
| 16443 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16444 | } && test -s conftest$ac_exeext && |
| 16445 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16446 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16447 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16448 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16449 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16450 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16451 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16452 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16453 | |
| 16454 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16455 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16456 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16457 | { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 16458 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; } |
| 16459 | if test $ac_cv_func_pthread_detach = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16460 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16461 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16462 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16463 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 16464 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16465 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16466 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16467 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16468 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16469 | { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 16470 | 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] | 16471 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16472 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16473 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16474 | { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 16475 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16476 | else |
| 16477 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16478 | { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 16479 | 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] | 16480 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16481 | /* confdefs.h. */ |
| 16482 | _ACEOF |
| 16483 | cat confdefs.h >>conftest.$ac_ext |
| 16484 | cat >>conftest.$ac_ext <<_ACEOF |
| 16485 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16486 | $ac_includes_default |
| 16487 | #include <atheos/threads.h> |
| 16488 | _ACEOF |
| 16489 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16490 | if { (ac_try="$ac_compile" |
| 16491 | case "(($ac_try" in |
| 16492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16493 | *) ac_try_echo=$ac_try;; |
| 16494 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16496 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16497 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16498 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16499 | rm -f conftest.er1 |
| 16500 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16502 | (exit $ac_status); } && { |
| 16503 | test -z "$ac_c_werror_flag" || |
| 16504 | test ! -s conftest.err |
| 16505 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16506 | ac_header_compiler=yes |
| 16507 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16508 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16509 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16510 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16511 | ac_header_compiler=no |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16512 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16513 | |
| 16514 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16515 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16516 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16517 | |
| 16518 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16519 | { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 16520 | 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] | 16521 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16522 | /* confdefs.h. */ |
| 16523 | _ACEOF |
| 16524 | cat confdefs.h >>conftest.$ac_ext |
| 16525 | cat >>conftest.$ac_ext <<_ACEOF |
| 16526 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16527 | #include <atheos/threads.h> |
| 16528 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16529 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16530 | case "(($ac_try" in |
| 16531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16532 | *) ac_try_echo=$ac_try;; |
| 16533 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16535 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16536 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16537 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16538 | rm -f conftest.er1 |
| 16539 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16541 | (exit $ac_status); } >/dev/null && { |
| 16542 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16543 | test ! -s conftest.err |
| 16544 | }; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16545 | ac_header_preproc=yes |
| 16546 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16547 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16548 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16549 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16550 | ac_header_preproc=no |
| 16551 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16552 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16553 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16554 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16555 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16556 | |
| 16557 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16558 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16559 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16560 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16561 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16562 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5 |
| 16563 | 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] | 16564 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16565 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16566 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16567 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 16568 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 16569 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 16570 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 16571 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5 |
| 16572 | echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;} |
| 16573 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16574 | echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16575 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 16576 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;} |
| 16577 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5 |
| 16578 | 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] | 16579 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 16580 | ## -------------------------------------- ## |
| 16581 | ## Report this to http://bugs.python.org/ ## |
| 16582 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16583 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16584 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16585 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16586 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16587 | { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 16588 | 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] | 16589 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16591 | else |
| 16592 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 16593 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16594 | { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 16595 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16596 | |
| 16597 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16598 | if test $ac_cv_header_atheos_threads_h = yes; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16599 | cat >>confdefs.h <<\_ACEOF |
| 16600 | #define WITH_THREAD 1 |
| 16601 | _ACEOF |
| 16602 | |
| 16603 | |
| 16604 | cat >>confdefs.h <<\_ACEOF |
| 16605 | #define ATHEOS_THREADS 1 |
| 16606 | _ACEOF |
| 16607 | |
| 16608 | THREADOBJ="Python/thread.o" |
| 16609 | else |
| 16610 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16611 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16612 | { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 16613 | 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] | 16614 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16616 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16617 | { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 16618 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16619 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16620 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16621 | { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 16622 | 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] | 16623 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16624 | /* confdefs.h. */ |
| 16625 | _ACEOF |
| 16626 | cat confdefs.h >>conftest.$ac_ext |
| 16627 | cat >>conftest.$ac_ext <<_ACEOF |
| 16628 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16629 | $ac_includes_default |
| 16630 | #include <kernel/OS.h> |
| 16631 | _ACEOF |
| 16632 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16633 | if { (ac_try="$ac_compile" |
| 16634 | case "(($ac_try" in |
| 16635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16636 | *) ac_try_echo=$ac_try;; |
| 16637 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16639 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16640 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16641 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16642 | rm -f conftest.er1 |
| 16643 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16645 | (exit $ac_status); } && { |
| 16646 | test -z "$ac_c_werror_flag" || |
| 16647 | test ! -s conftest.err |
| 16648 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16649 | ac_header_compiler=yes |
| 16650 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16651 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16652 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16653 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16654 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16655 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16656 | |
| 16657 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16658 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16659 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16660 | |
| 16661 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16662 | { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 16663 | 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] | 16664 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16665 | /* confdefs.h. */ |
| 16666 | _ACEOF |
| 16667 | cat confdefs.h >>conftest.$ac_ext |
| 16668 | cat >>conftest.$ac_ext <<_ACEOF |
| 16669 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16670 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16671 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16672 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16673 | case "(($ac_try" in |
| 16674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16675 | *) ac_try_echo=$ac_try;; |
| 16676 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16678 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16679 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16680 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16681 | rm -f conftest.er1 |
| 16682 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16684 | (exit $ac_status); } >/dev/null && { |
| 16685 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16686 | test ! -s conftest.err |
| 16687 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16688 | ac_header_preproc=yes |
| 16689 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16690 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16691 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16692 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16693 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16694 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16695 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16696 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16697 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16698 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16699 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16700 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16701 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16702 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16703 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16704 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16705 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5 |
| 16706 | 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] | 16707 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16708 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16709 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16710 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 16711 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| 16712 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 16713 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 16714 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5 |
| 16715 | echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;} |
| 16716 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16717 | echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16718 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 16719 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;} |
| 16720 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5 |
| 16721 | 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] | 16722 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 16723 | ## -------------------------------------- ## |
| 16724 | ## Report this to http://bugs.python.org/ ## |
| 16725 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16726 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16727 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16728 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16729 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16730 | { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 16731 | 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] | 16732 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16734 | else |
| 16735 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 16736 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16737 | { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 16738 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16739 | |
| 16740 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16741 | if test $ac_cv_header_kernel_OS_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16742 | cat >>confdefs.h <<\_ACEOF |
| 16743 | #define WITH_THREAD 1 |
| 16744 | _ACEOF |
| 16745 | |
| 16746 | |
| 16747 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16748 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16749 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16750 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16751 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16752 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16753 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16754 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 16755 | 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] | 16756 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16758 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16759 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16760 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16761 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16762 | /* confdefs.h. */ |
| 16763 | _ACEOF |
| 16764 | cat confdefs.h >>conftest.$ac_ext |
| 16765 | cat >>conftest.$ac_ext <<_ACEOF |
| 16766 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16767 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16768 | /* Override any GCC internal prototype to avoid an error. |
| 16769 | Use char because int might match the return type of a GCC |
| 16770 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16771 | #ifdef __cplusplus |
| 16772 | extern "C" |
| 16773 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16774 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16775 | int |
| 16776 | main () |
| 16777 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16778 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16779 | ; |
| 16780 | return 0; |
| 16781 | } |
| 16782 | _ACEOF |
| 16783 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16784 | if { (ac_try="$ac_link" |
| 16785 | case "(($ac_try" in |
| 16786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16787 | *) ac_try_echo=$ac_try;; |
| 16788 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16790 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16791 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16792 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16793 | rm -f conftest.er1 |
| 16794 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16796 | (exit $ac_status); } && { |
| 16797 | test -z "$ac_c_werror_flag" || |
| 16798 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16799 | } && test -s conftest$ac_exeext && |
| 16800 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16801 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16802 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16803 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16804 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16805 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16806 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16807 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16808 | |
| 16809 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16810 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16811 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16812 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16813 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 16814 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; } |
| 16815 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16816 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16817 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16818 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16819 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16820 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16821 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16822 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16823 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16824 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16825 | { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 16826 | 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] | 16827 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16829 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16830 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16831 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16832 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16833 | /* confdefs.h. */ |
| 16834 | _ACEOF |
| 16835 | cat confdefs.h >>conftest.$ac_ext |
| 16836 | cat >>conftest.$ac_ext <<_ACEOF |
| 16837 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16838 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16839 | /* Override any GCC internal prototype to avoid an error. |
| 16840 | Use char because int might match the return type of a GCC |
| 16841 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16842 | #ifdef __cplusplus |
| 16843 | extern "C" |
| 16844 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16845 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16846 | int |
| 16847 | main () |
| 16848 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16849 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16850 | ; |
| 16851 | return 0; |
| 16852 | } |
| 16853 | _ACEOF |
| 16854 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16855 | if { (ac_try="$ac_link" |
| 16856 | case "(($ac_try" in |
| 16857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16858 | *) ac_try_echo=$ac_try;; |
| 16859 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16861 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16862 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16863 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16864 | rm -f conftest.er1 |
| 16865 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16867 | (exit $ac_status); } && { |
| 16868 | test -z "$ac_c_werror_flag" || |
| 16869 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16870 | } && test -s conftest$ac_exeext && |
| 16871 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16872 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16873 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16874 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16875 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16876 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16877 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16878 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16879 | |
| 16880 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16881 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16882 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16883 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16884 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 16885 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; } |
| 16886 | 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] | 16887 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16888 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16889 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16890 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16891 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16892 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16893 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 16894 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 16895 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16896 | { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 16897 | 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] | 16898 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16900 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16901 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16902 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16903 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16904 | /* confdefs.h. */ |
| 16905 | _ACEOF |
| 16906 | cat confdefs.h >>conftest.$ac_ext |
| 16907 | cat >>conftest.$ac_ext <<_ACEOF |
| 16908 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16909 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16910 | /* Override any GCC internal prototype to avoid an error. |
| 16911 | Use char because int might match the return type of a GCC |
| 16912 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16913 | #ifdef __cplusplus |
| 16914 | extern "C" |
| 16915 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16916 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16917 | int |
| 16918 | main () |
| 16919 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16920 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16921 | ; |
| 16922 | return 0; |
| 16923 | } |
| 16924 | _ACEOF |
| 16925 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16926 | if { (ac_try="$ac_link" |
| 16927 | case "(($ac_try" in |
| 16928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16929 | *) ac_try_echo=$ac_try;; |
| 16930 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16932 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16933 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16934 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16935 | rm -f conftest.er1 |
| 16936 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16938 | (exit $ac_status); } && { |
| 16939 | test -z "$ac_c_werror_flag" || |
| 16940 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16941 | } && test -s conftest$ac_exeext && |
| 16942 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16943 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16944 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16945 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16946 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16947 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16948 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16949 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16950 | |
| 16951 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16952 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16953 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16954 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16955 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 16956 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; } |
| 16957 | 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] | 16958 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16959 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16960 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16961 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16962 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16963 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16964 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16965 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16966 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16967 | { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 16968 | 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] | 16969 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16971 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16972 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16973 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16974 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16975 | /* confdefs.h. */ |
| 16976 | _ACEOF |
| 16977 | cat confdefs.h >>conftest.$ac_ext |
| 16978 | cat >>conftest.$ac_ext <<_ACEOF |
| 16979 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16980 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16981 | /* Override any GCC internal prototype to avoid an error. |
| 16982 | Use char because int might match the return type of a GCC |
| 16983 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16984 | #ifdef __cplusplus |
| 16985 | extern "C" |
| 16986 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16987 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16988 | int |
| 16989 | main () |
| 16990 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16991 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16992 | ; |
| 16993 | return 0; |
| 16994 | } |
| 16995 | _ACEOF |
| 16996 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16997 | if { (ac_try="$ac_link" |
| 16998 | case "(($ac_try" in |
| 16999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17000 | *) ac_try_echo=$ac_try;; |
| 17001 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17003 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17004 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17005 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17006 | rm -f conftest.er1 |
| 17007 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17009 | (exit $ac_status); } && { |
| 17010 | test -z "$ac_c_werror_flag" || |
| 17011 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17012 | } && test -s conftest$ac_exeext && |
| 17013 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17014 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 17015 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17016 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17017 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17018 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17019 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 17020 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17021 | |
| 17022 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17023 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17024 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 17025 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17026 | { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 17027 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; } |
| 17028 | if test $ac_cv_lib_cma_pthread_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17029 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 17030 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17031 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 17032 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17033 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 17034 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 17035 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 17036 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 17037 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 17038 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 17039 | fi |
| 17040 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17041 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 17042 | fi |
| 17043 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 17044 | fi |
| 17045 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 17046 | fi |
| 17047 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 17048 | fi |
| 17049 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 17050 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17051 | fi |
| 17052 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 17053 | |
| 17054 | fi |
| 17055 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 17056 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17057 | |
| 17058 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17059 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17060 | fi |
| 17061 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17062 | fi |
| 17063 | |
| 17064 | |
| 17065 | fi |
| 17066 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 17067 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17068 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17069 | { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 17070 | 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] | 17071 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17073 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17074 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17075 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17076 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17077 | /* confdefs.h. */ |
| 17078 | _ACEOF |
| 17079 | cat confdefs.h >>conftest.$ac_ext |
| 17080 | cat >>conftest.$ac_ext <<_ACEOF |
| 17081 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17082 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17083 | /* Override any GCC internal prototype to avoid an error. |
| 17084 | Use char because int might match the return type of a GCC |
| 17085 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17086 | #ifdef __cplusplus |
| 17087 | extern "C" |
| 17088 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17089 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17090 | int |
| 17091 | main () |
| 17092 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17093 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17094 | ; |
| 17095 | return 0; |
| 17096 | } |
| 17097 | _ACEOF |
| 17098 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17099 | if { (ac_try="$ac_link" |
| 17100 | case "(($ac_try" in |
| 17101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17102 | *) ac_try_echo=$ac_try;; |
| 17103 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17105 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17106 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17107 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17108 | rm -f conftest.er1 |
| 17109 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17111 | (exit $ac_status); } && { |
| 17112 | test -z "$ac_c_werror_flag" || |
| 17113 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17114 | } && test -s conftest$ac_exeext && |
| 17115 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17116 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17117 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17118 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17119 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17120 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17121 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17122 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17123 | |
| 17124 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17125 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17126 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17127 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17128 | { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 17129 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; } |
| 17130 | if test $ac_cv_lib_mpc_usconfig = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17131 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17132 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17133 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17134 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 17135 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 17136 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 17137 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17138 | fi |
| 17139 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 17140 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 17141 | if test "$posix_threads" != "yes"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17142 | { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 17143 | 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] | 17144 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17146 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17147 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17148 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17149 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17150 | /* confdefs.h. */ |
| 17151 | _ACEOF |
| 17152 | cat confdefs.h >>conftest.$ac_ext |
| 17153 | cat >>conftest.$ac_ext <<_ACEOF |
| 17154 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17155 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17156 | /* Override any GCC internal prototype to avoid an error. |
| 17157 | Use char because int might match the return type of a GCC |
| 17158 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17159 | #ifdef __cplusplus |
| 17160 | extern "C" |
| 17161 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17162 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17163 | int |
| 17164 | main () |
| 17165 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17166 | return thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17167 | ; |
| 17168 | return 0; |
| 17169 | } |
| 17170 | _ACEOF |
| 17171 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17172 | if { (ac_try="$ac_link" |
| 17173 | case "(($ac_try" in |
| 17174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17175 | *) ac_try_echo=$ac_try;; |
| 17176 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17178 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17179 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17180 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17181 | rm -f conftest.er1 |
| 17182 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17184 | (exit $ac_status); } && { |
| 17185 | test -z "$ac_c_werror_flag" || |
| 17186 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17187 | } && test -s conftest$ac_exeext && |
| 17188 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17189 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17190 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17191 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17192 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17193 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17194 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17195 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17196 | |
| 17197 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17198 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17199 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17200 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17201 | { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 17202 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; } |
| 17203 | if test $ac_cv_lib_thread_thr_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17204 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17205 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17206 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17207 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 17208 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 17209 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 17210 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17211 | fi |
| 17212 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 17213 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17214 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 17215 | if test "$USE_THREAD_MODULE" != "#" |
| 17216 | then |
| 17217 | # If the above checks didn't disable threads, (at least) OSF1 |
| 17218 | # needs this '-threads' argument during linking. |
| 17219 | case $ac_sys_system in |
| 17220 | OSF1) LDLAST=-threads;; |
| 17221 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 17222 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17223 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 17224 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17225 | if test "$posix_threads" = "yes"; then |
| 17226 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 17227 | |
| 17228 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17229 | #define _POSIX_THREADS 1 |
| 17230 | _ACEOF |
| 17231 | |
| 17232 | fi |
| 17233 | |
| 17234 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 17235 | case $ac_sys_system/$ac_sys_release in |
| 17236 | SunOS/5.6) |
| 17237 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 17238 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 17239 | _ACEOF |
| 17240 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17241 | ;; |
| 17242 | SunOS/5.8) |
| 17243 | cat >>confdefs.h <<\_ACEOF |
| 17244 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 17245 | _ACEOF |
| 17246 | |
| 17247 | ;; |
Christian Heimes | cba36bb | 2008-01-30 22:54:18 +0000 | [diff] [blame] | 17248 | AIX/5) |
| 17249 | cat >>confdefs.h <<\_ACEOF |
| 17250 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 17251 | _ACEOF |
| 17252 | |
| 17253 | ;; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17254 | esac |
| 17255 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17256 | { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 17257 | 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] | 17258 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17259 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17260 | else |
| 17261 | if test "$cross_compiling" = yes; then |
| 17262 | ac_cv_pthread_system_supported=no |
| 17263 | else |
| 17264 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17265 | /* confdefs.h. */ |
| 17266 | _ACEOF |
| 17267 | cat confdefs.h >>conftest.$ac_ext |
| 17268 | cat >>conftest.$ac_ext <<_ACEOF |
| 17269 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17270 | #include <pthread.h> |
| 17271 | void *foo(void *parm) { |
| 17272 | return NULL; |
| 17273 | } |
| 17274 | main() { |
| 17275 | pthread_attr_t attr; |
| 17276 | pthread_t id; |
| 17277 | if (pthread_attr_init(&attr)) exit(-1); |
| 17278 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 17279 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 17280 | exit(0); |
| 17281 | } |
| 17282 | _ACEOF |
| 17283 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17284 | if { (ac_try="$ac_link" |
| 17285 | case "(($ac_try" in |
| 17286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17287 | *) ac_try_echo=$ac_try;; |
| 17288 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17290 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17291 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17293 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17294 | { (case "(($ac_try" in |
| 17295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17296 | *) ac_try_echo=$ac_try;; |
| 17297 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17299 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17300 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17302 | (exit $ac_status); }; }; then |
| 17303 | ac_cv_pthread_system_supported=yes |
| 17304 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17305 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17306 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17307 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17308 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17309 | ( exit $ac_status ) |
| 17310 | ac_cv_pthread_system_supported=no |
| 17311 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17312 | 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] | 17313 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 17314 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17315 | |
| 17316 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17317 | fi |
| 17318 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17319 | { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 17320 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17321 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 17322 | |
| 17323 | cat >>confdefs.h <<\_ACEOF |
| 17324 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 17325 | _ACEOF |
| 17326 | |
| 17327 | fi |
| 17328 | |
| 17329 | for ac_func in pthread_sigmask |
| 17330 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17331 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17332 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17333 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17334 | 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] | 17335 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17336 | else |
| 17337 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17338 | /* confdefs.h. */ |
| 17339 | _ACEOF |
| 17340 | cat confdefs.h >>conftest.$ac_ext |
| 17341 | cat >>conftest.$ac_ext <<_ACEOF |
| 17342 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17343 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17344 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17345 | #define $ac_func innocuous_$ac_func |
| 17346 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17347 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17348 | which can conflict with char $ac_func (); below. |
| 17349 | 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] | 17350 | <limits.h> exists even on freestanding compilers. */ |
| 17351 | |
| 17352 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17353 | # include <limits.h> |
| 17354 | #else |
| 17355 | # include <assert.h> |
| 17356 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17357 | |
| 17358 | #undef $ac_func |
| 17359 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17360 | /* Override any GCC internal prototype to avoid an error. |
| 17361 | Use char because int might match the return type of a GCC |
| 17362 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17363 | #ifdef __cplusplus |
| 17364 | extern "C" |
| 17365 | #endif |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17366 | char $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17367 | /* The GNU C library defines this for functions which it implements |
| 17368 | to always fail with ENOSYS. Some functions are actually named |
| 17369 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17370 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17371 | choke me |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17372 | #endif |
| 17373 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17374 | int |
| 17375 | main () |
| 17376 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17377 | return $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17378 | ; |
| 17379 | return 0; |
| 17380 | } |
| 17381 | _ACEOF |
| 17382 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17383 | if { (ac_try="$ac_link" |
| 17384 | case "(($ac_try" in |
| 17385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17386 | *) ac_try_echo=$ac_try;; |
| 17387 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17389 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17390 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17391 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17392 | rm -f conftest.er1 |
| 17393 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17395 | (exit $ac_status); } && { |
| 17396 | test -z "$ac_c_werror_flag" || |
| 17397 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17398 | } && test -s conftest$ac_exeext && |
| 17399 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17400 | eval "$as_ac_var=yes" |
| 17401 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17402 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17403 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17404 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17405 | eval "$as_ac_var=no" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17406 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17407 | |
| 17408 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17409 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17410 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17411 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17412 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17413 | echo "${ECHO_T}$ac_res" >&6; } |
| 17414 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17415 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17416 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17417 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 17418 | case $ac_sys_system in |
| 17419 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17420 | |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 17421 | cat >>confdefs.h <<\_ACEOF |
| 17422 | #define HAVE_BROKEN_PTHREAD_SIGMASK 1 |
| 17423 | _ACEOF |
| 17424 | |
| 17425 | ;; |
| 17426 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17427 | fi |
| 17428 | done |
| 17429 | |
| 17430 | fi |
| 17431 | |
| 17432 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17433 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17434 | |
| 17435 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17436 | { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 17437 | 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] | 17438 | # Check whether --enable-ipv6 was given. |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17439 | if test "${enable_ipv6+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17440 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17441 | no) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17442 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17443 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17444 | ipv6=no |
| 17445 | ;; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17446 | *) { echo "$as_me:$LINENO: result: yes" >&5 |
| 17447 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17448 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17449 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17450 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17451 | |
| 17452 | ipv6=yes |
| 17453 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17454 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17455 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17456 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17457 | if test "$cross_compiling" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17458 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17459 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17460 | ipv6=no |
| 17461 | |
| 17462 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17463 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17464 | /* confdefs.h. */ |
| 17465 | _ACEOF |
| 17466 | cat confdefs.h >>conftest.$ac_ext |
| 17467 | cat >>conftest.$ac_ext <<_ACEOF |
| 17468 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17469 | /* AF_INET6 available check */ |
| 17470 | #include <sys/types.h> |
| 17471 | #include <sys/socket.h> |
| 17472 | main() |
| 17473 | { |
| 17474 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 17475 | exit(1); |
| 17476 | else |
| 17477 | exit(0); |
| 17478 | } |
| 17479 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17480 | _ACEOF |
| 17481 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17482 | if { (ac_try="$ac_link" |
| 17483 | case "(($ac_try" in |
| 17484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17485 | *) ac_try_echo=$ac_try;; |
| 17486 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17487 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17488 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17489 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17491 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17492 | { (case "(($ac_try" in |
| 17493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17494 | *) ac_try_echo=$ac_try;; |
| 17495 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17497 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17498 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17500 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17501 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17502 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17503 | ipv6=yes |
| 17504 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17505 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17506 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17507 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17508 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17509 | ( exit $ac_status ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17510 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17511 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17512 | ipv6=no |
| 17513 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17514 | 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] | 17515 | fi |
| 17516 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17517 | |
| 17518 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17519 | if test "$ipv6" = "yes"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17520 | { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 17521 | 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] | 17522 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17523 | /* confdefs.h. */ |
| 17524 | _ACEOF |
| 17525 | cat confdefs.h >>conftest.$ac_ext |
| 17526 | cat >>conftest.$ac_ext <<_ACEOF |
| 17527 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17528 | #include <sys/types.h> |
| 17529 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17530 | int |
| 17531 | main () |
| 17532 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17533 | struct sockaddr_in6 x; |
| 17534 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17535 | ; |
| 17536 | return 0; |
| 17537 | } |
| 17538 | _ACEOF |
| 17539 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17540 | if { (ac_try="$ac_compile" |
| 17541 | case "(($ac_try" in |
| 17542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17543 | *) ac_try_echo=$ac_try;; |
| 17544 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17545 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17546 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17547 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17548 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17549 | rm -f conftest.er1 |
| 17550 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17552 | (exit $ac_status); } && { |
| 17553 | test -z "$ac_c_werror_flag" || |
| 17554 | test ! -s conftest.err |
| 17555 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17556 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17557 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17558 | ipv6=yes |
| 17559 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17560 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17561 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17562 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17563 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17564 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17565 | ipv6=no |
| 17566 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17567 | |
| 17568 | 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] | 17569 | fi |
| 17570 | |
| 17571 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17572 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17573 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17574 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17575 | |
| 17576 | fi |
| 17577 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17578 | fi |
| 17579 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17580 | |
| 17581 | ipv6type=unknown |
| 17582 | ipv6lib=none |
| 17583 | ipv6trylibc=no |
| 17584 | |
| 17585 | if test "$ipv6" = "yes"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17586 | { echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 17587 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; } |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 17588 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 17589 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17590 | case $i in |
| 17591 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17592 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17593 | /* confdefs.h. */ |
| 17594 | _ACEOF |
| 17595 | cat confdefs.h >>conftest.$ac_ext |
| 17596 | cat >>conftest.$ac_ext <<_ACEOF |
| 17597 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17598 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17599 | #include <netinet/in.h> |
| 17600 | #ifdef IPV6_INRIA_VERSION |
| 17601 | yes |
| 17602 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17603 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17604 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17605 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 17606 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17607 | fi |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 17608 | rm -f -r conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17609 | |
| 17610 | ;; |
| 17611 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17612 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17613 | /* confdefs.h. */ |
| 17614 | _ACEOF |
| 17615 | cat confdefs.h >>conftest.$ac_ext |
| 17616 | cat >>conftest.$ac_ext <<_ACEOF |
| 17617 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17618 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17619 | #include <netinet/in.h> |
| 17620 | #ifdef __KAME__ |
| 17621 | yes |
| 17622 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17623 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17624 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17625 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17626 | ipv6type=$i; |
| 17627 | ipv6lib=inet6 |
| 17628 | ipv6libdir=/usr/local/v6/lib |
| 17629 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17630 | fi |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 17631 | rm -f -r conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17632 | |
| 17633 | ;; |
| 17634 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17635 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17636 | /* confdefs.h. */ |
| 17637 | _ACEOF |
| 17638 | cat confdefs.h >>conftest.$ac_ext |
| 17639 | cat >>conftest.$ac_ext <<_ACEOF |
| 17640 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17641 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17642 | #include <features.h> |
| 17643 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 17644 | yes |
| 17645 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17646 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17647 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17648 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17649 | ipv6type=$i; |
| 17650 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17651 | fi |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 17652 | rm -f -r conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17653 | |
| 17654 | ;; |
| 17655 | linux-inet6) |
| 17656 | if test -d /usr/inet6; then |
| 17657 | ipv6type=$i |
| 17658 | ipv6lib=inet6 |
| 17659 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 17660 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17661 | fi |
| 17662 | ;; |
| 17663 | solaris) |
| 17664 | if test -f /etc/netconfig; then |
| 17665 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 17666 | ipv6type=$i |
| 17667 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17668 | fi |
| 17669 | fi |
| 17670 | ;; |
| 17671 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17672 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17673 | /* confdefs.h. */ |
| 17674 | _ACEOF |
| 17675 | cat confdefs.h >>conftest.$ac_ext |
| 17676 | cat >>conftest.$ac_ext <<_ACEOF |
| 17677 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17678 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17679 | #include <sys/param.h> |
| 17680 | #ifdef _TOSHIBA_INET6 |
| 17681 | yes |
| 17682 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17683 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17684 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17685 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17686 | ipv6type=$i; |
| 17687 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 17688 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17689 | fi |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 17690 | rm -f -r conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17691 | |
| 17692 | ;; |
| 17693 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17694 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17695 | /* confdefs.h. */ |
| 17696 | _ACEOF |
| 17697 | cat confdefs.h >>conftest.$ac_ext |
| 17698 | cat >>conftest.$ac_ext <<_ACEOF |
| 17699 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17700 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17701 | #include </usr/local/v6/include/sys/v6config.h> |
| 17702 | #ifdef __V6D__ |
| 17703 | yes |
| 17704 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17705 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17706 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17707 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17708 | ipv6type=$i; |
| 17709 | ipv6lib=v6; |
| 17710 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 17711 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17712 | fi |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 17713 | rm -f -r conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17714 | |
| 17715 | ;; |
| 17716 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17717 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17718 | /* confdefs.h. */ |
| 17719 | _ACEOF |
| 17720 | cat confdefs.h >>conftest.$ac_ext |
| 17721 | cat >>conftest.$ac_ext <<_ACEOF |
| 17722 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17723 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17724 | #include <sys/param.h> |
| 17725 | #ifdef _ZETA_MINAMI_INET6 |
| 17726 | yes |
| 17727 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17728 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17729 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17730 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17731 | ipv6type=$i; |
| 17732 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 17733 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17734 | fi |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 17735 | rm -f -r conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17736 | |
| 17737 | ;; |
| 17738 | esac |
| 17739 | if test "$ipv6type" != "unknown"; then |
| 17740 | break |
| 17741 | fi |
| 17742 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17743 | { echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 17744 | echo "${ECHO_T}$ipv6type" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17745 | fi |
| 17746 | |
| 17747 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 17748 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 17749 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 17750 | echo "using lib$ipv6lib" |
| 17751 | else |
| 17752 | if test $ipv6trylibc = "yes"; then |
| 17753 | echo "using libc" |
| 17754 | else |
| 17755 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 17756 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 17757 | echo 'ipv6 kit and compile beforehand.' |
| 17758 | exit 1 |
| 17759 | fi |
| 17760 | fi |
| 17761 | fi |
| 17762 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17763 | { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5 |
| 17764 | 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] | 17765 | cat >conftest.$ac_ext <<_ACEOF |
| 17766 | /* confdefs.h. */ |
| 17767 | _ACEOF |
| 17768 | cat confdefs.h >>conftest.$ac_ext |
| 17769 | cat >>conftest.$ac_ext <<_ACEOF |
| 17770 | /* end confdefs.h. */ |
| 17771 | #include <Carbon/Carbon.h> |
| 17772 | int |
| 17773 | main () |
| 17774 | { |
| 17775 | FSIORefNum fRef = 0 |
| 17776 | ; |
| 17777 | return 0; |
| 17778 | } |
| 17779 | _ACEOF |
| 17780 | rm -f conftest.$ac_objext |
| 17781 | if { (ac_try="$ac_compile" |
| 17782 | case "(($ac_try" in |
| 17783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17784 | *) ac_try_echo=$ac_try;; |
| 17785 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17787 | (eval "$ac_compile") 2>conftest.er1 |
| 17788 | ac_status=$? |
| 17789 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17790 | rm -f conftest.er1 |
| 17791 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17793 | (exit $ac_status); } && { |
| 17794 | test -z "$ac_c_werror_flag" || |
| 17795 | test ! -s conftest.err |
| 17796 | } && test -s conftest.$ac_objext; then |
| 17797 | |
| 17798 | cat >>confdefs.h <<\_ACEOF |
| 17799 | #define HAVE_OSX105_SDK 1 |
| 17800 | _ACEOF |
| 17801 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17802 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17803 | echo "${ECHO_T}yes" >&6; } |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17804 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17805 | echo "$as_me: failed program was:" >&5 |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17806 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17807 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17808 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17809 | echo "${ECHO_T}no" >&6; } |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17810 | |
| 17811 | fi |
| 17812 | |
| 17813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17814 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17815 | # Check for --with-doc-strings |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17816 | { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 17817 | 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] | 17818 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17819 | # Check whether --with-doc-strings was given. |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17820 | if test "${with_doc_strings+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17821 | withval=$with_doc_strings; |
| 17822 | fi |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17823 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17824 | |
| 17825 | if test -z "$with_doc_strings" |
| 17826 | then with_doc_strings="yes" |
| 17827 | fi |
| 17828 | if test "$with_doc_strings" != "no" |
| 17829 | then |
| 17830 | |
| 17831 | cat >>confdefs.h <<\_ACEOF |
| 17832 | #define WITH_DOC_STRINGS 1 |
| 17833 | _ACEOF |
| 17834 | |
| 17835 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17836 | { echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 17837 | echo "${ECHO_T}$with_doc_strings" >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17838 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 17839 | # Check for Python-specific malloc support |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17840 | { echo "$as_me:$LINENO: checking for --with-tsc" >&5 |
| 17841 | echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17842 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17843 | # Check whether --with-tsc was given. |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17844 | if test "${with_tsc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17845 | withval=$with_tsc; |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17846 | if test "$withval" != no |
| 17847 | then |
| 17848 | |
| 17849 | cat >>confdefs.h <<\_ACEOF |
| 17850 | #define WITH_TSC 1 |
| 17851 | _ACEOF |
| 17852 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17853 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17854 | echo "${ECHO_T}yes" >&6; } |
| 17855 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 17856 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17857 | fi |
| 17858 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17859 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17860 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17861 | fi |
| 17862 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17863 | |
| 17864 | # Check for Python-specific malloc support |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17865 | { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 17866 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17867 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17868 | # Check whether --with-pymalloc was given. |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 17869 | if test "${with_pymalloc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17870 | withval=$with_pymalloc; |
| 17871 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17872 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 17873 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17874 | if test -z "$with_pymalloc" |
| 17875 | then with_pymalloc="yes" |
| 17876 | fi |
| 17877 | if test "$with_pymalloc" != "no" |
| 17878 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17879 | |
| 17880 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17881 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17882 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17883 | |
| 17884 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17885 | { echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 17886 | echo "${ECHO_T}$with_pymalloc" >&6; } |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17887 | |
Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 17888 | # Check for Valgrind support |
| 17889 | { echo "$as_me:$LINENO: checking for --with-valgrind" >&5 |
| 17890 | echo $ECHO_N "checking for --with-valgrind... $ECHO_C" >&6; } |
| 17891 | |
| 17892 | # Check whether --with-valgrind was given. |
| 17893 | if test "${with_valgrind+set}" = set; then |
| 17894 | withval=$with_valgrind; |
| 17895 | else |
| 17896 | with_valgrind=no |
| 17897 | fi |
| 17898 | |
| 17899 | { echo "$as_me:$LINENO: result: $with_valgrind" >&5 |
| 17900 | echo "${ECHO_T}$with_valgrind" >&6; } |
| 17901 | if test "$with_valgrind" != no; then |
| 17902 | if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then |
| 17903 | { echo "$as_me:$LINENO: checking for valgrind/valgrind.h" >&5 |
| 17904 | echo $ECHO_N "checking for valgrind/valgrind.h... $ECHO_C" >&6; } |
| 17905 | if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then |
| 17906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17907 | fi |
| 17908 | { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_valgrind_h" >&5 |
| 17909 | echo "${ECHO_T}$ac_cv_header_valgrind_valgrind_h" >&6; } |
| 17910 | else |
| 17911 | # Is the header compilable? |
| 17912 | { echo "$as_me:$LINENO: checking valgrind/valgrind.h usability" >&5 |
| 17913 | echo $ECHO_N "checking valgrind/valgrind.h usability... $ECHO_C" >&6; } |
| 17914 | cat >conftest.$ac_ext <<_ACEOF |
| 17915 | /* confdefs.h. */ |
| 17916 | _ACEOF |
| 17917 | cat confdefs.h >>conftest.$ac_ext |
| 17918 | cat >>conftest.$ac_ext <<_ACEOF |
| 17919 | /* end confdefs.h. */ |
| 17920 | $ac_includes_default |
| 17921 | #include <valgrind/valgrind.h> |
| 17922 | _ACEOF |
| 17923 | rm -f conftest.$ac_objext |
| 17924 | if { (ac_try="$ac_compile" |
| 17925 | case "(($ac_try" in |
| 17926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17927 | *) ac_try_echo=$ac_try;; |
| 17928 | esac |
| 17929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17930 | (eval "$ac_compile") 2>conftest.er1 |
| 17931 | ac_status=$? |
| 17932 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17933 | rm -f conftest.er1 |
| 17934 | cat conftest.err >&5 |
| 17935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17936 | (exit $ac_status); } && { |
| 17937 | test -z "$ac_c_werror_flag" || |
| 17938 | test ! -s conftest.err |
| 17939 | } && test -s conftest.$ac_objext; then |
| 17940 | ac_header_compiler=yes |
| 17941 | else |
| 17942 | echo "$as_me: failed program was:" >&5 |
| 17943 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17944 | |
| 17945 | ac_header_compiler=no |
| 17946 | fi |
| 17947 | |
| 17948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17949 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 17950 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 17951 | |
| 17952 | # Is the header present? |
| 17953 | { echo "$as_me:$LINENO: checking valgrind/valgrind.h presence" >&5 |
| 17954 | echo $ECHO_N "checking valgrind/valgrind.h presence... $ECHO_C" >&6; } |
| 17955 | cat >conftest.$ac_ext <<_ACEOF |
| 17956 | /* confdefs.h. */ |
| 17957 | _ACEOF |
| 17958 | cat confdefs.h >>conftest.$ac_ext |
| 17959 | cat >>conftest.$ac_ext <<_ACEOF |
| 17960 | /* end confdefs.h. */ |
| 17961 | #include <valgrind/valgrind.h> |
| 17962 | _ACEOF |
| 17963 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 17964 | case "(($ac_try" in |
| 17965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17966 | *) ac_try_echo=$ac_try;; |
| 17967 | esac |
| 17968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17969 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 17970 | ac_status=$? |
| 17971 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17972 | rm -f conftest.er1 |
| 17973 | cat conftest.err >&5 |
| 17974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17975 | (exit $ac_status); } >/dev/null && { |
| 17976 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 17977 | test ! -s conftest.err |
| 17978 | }; then |
| 17979 | ac_header_preproc=yes |
| 17980 | else |
| 17981 | echo "$as_me: failed program was:" >&5 |
| 17982 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17983 | |
| 17984 | ac_header_preproc=no |
| 17985 | fi |
| 17986 | |
| 17987 | rm -f conftest.err conftest.$ac_ext |
| 17988 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 17989 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 17990 | |
| 17991 | # So? What about this header? |
| 17992 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 17993 | yes:no: ) |
| 17994 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 17995 | echo "$as_me: WARNING: valgrind/valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 17996 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: proceeding with the compiler's result" >&5 |
| 17997 | echo "$as_me: WARNING: valgrind/valgrind.h: proceeding with the compiler's result" >&2;} |
| 17998 | ac_header_preproc=yes |
| 17999 | ;; |
| 18000 | no:yes:* ) |
| 18001 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: present but cannot be compiled" >&5 |
| 18002 | echo "$as_me: WARNING: valgrind/valgrind.h: present but cannot be compiled" >&2;} |
| 18003 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: check for missing prerequisite headers?" >&5 |
| 18004 | echo "$as_me: WARNING: valgrind/valgrind.h: check for missing prerequisite headers?" >&2;} |
| 18005 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: see the Autoconf documentation" >&5 |
| 18006 | echo "$as_me: WARNING: valgrind/valgrind.h: see the Autoconf documentation" >&2;} |
| 18007 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 18008 | echo "$as_me: WARNING: valgrind/valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 18009 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: proceeding with the preprocessor's result" >&5 |
| 18010 | echo "$as_me: WARNING: valgrind/valgrind.h: proceeding with the preprocessor's result" >&2;} |
| 18011 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: in the future, the compiler will take precedence" >&5 |
| 18012 | echo "$as_me: WARNING: valgrind/valgrind.h: in the future, the compiler will take precedence" >&2;} |
| 18013 | ( cat <<\_ASBOX |
| 18014 | ## -------------------------------------- ## |
| 18015 | ## Report this to http://bugs.python.org/ ## |
| 18016 | ## -------------------------------------- ## |
| 18017 | _ASBOX |
| 18018 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 18019 | ;; |
| 18020 | esac |
| 18021 | { echo "$as_me:$LINENO: checking for valgrind/valgrind.h" >&5 |
| 18022 | echo $ECHO_N "checking for valgrind/valgrind.h... $ECHO_C" >&6; } |
| 18023 | if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then |
| 18024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18025 | else |
| 18026 | ac_cv_header_valgrind_valgrind_h=$ac_header_preproc |
| 18027 | fi |
| 18028 | { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_valgrind_h" >&5 |
| 18029 | echo "${ECHO_T}$ac_cv_header_valgrind_valgrind_h" >&6; } |
| 18030 | |
| 18031 | fi |
| 18032 | if test $ac_cv_header_valgrind_valgrind_h = yes; then |
| 18033 | |
| 18034 | cat >>confdefs.h <<\_ACEOF |
| 18035 | #define WITH_VALGRIND 1 |
| 18036 | _ACEOF |
| 18037 | |
| 18038 | else |
| 18039 | { { echo "$as_me:$LINENO: error: Valgrind support requested but headers not available" >&5 |
| 18040 | echo "$as_me: error: Valgrind support requested but headers not available" >&2;} |
| 18041 | { (exit 1); exit 1; }; } |
| 18042 | |
| 18043 | fi |
| 18044 | |
| 18045 | |
| 18046 | fi |
| 18047 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 18048 | # Check for --with-wctype-functions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18049 | { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 18050 | 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] | 18051 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18052 | # Check whether --with-wctype-functions was given. |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 18053 | if test "${with_wctype_functions+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18054 | withval=$with_wctype_functions; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 18055 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18056 | then |
| 18057 | |
| 18058 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 18059 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18060 | _ACEOF |
| 18061 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18062 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18063 | echo "${ECHO_T}yes" >&6; } |
| 18064 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 18065 | echo "${ECHO_T}no" >&6; } |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 18066 | fi |
| 18067 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18068 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18069 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18070 | fi |
| 18071 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 18072 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 18073 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18074 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 18075 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18076 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18077 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 18078 | # 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] | 18079 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 18080 | for ac_func in dlopen |
| 18081 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18082 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18083 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18084 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18085 | 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] | 18086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18087 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18088 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18089 | /* confdefs.h. */ |
| 18090 | _ACEOF |
| 18091 | cat confdefs.h >>conftest.$ac_ext |
| 18092 | cat >>conftest.$ac_ext <<_ACEOF |
| 18093 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18094 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18095 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18096 | #define $ac_func innocuous_$ac_func |
| 18097 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18098 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18099 | which can conflict with char $ac_func (); below. |
| 18100 | 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] | 18101 | <limits.h> exists even on freestanding compilers. */ |
| 18102 | |
| 18103 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18104 | # include <limits.h> |
| 18105 | #else |
| 18106 | # include <assert.h> |
| 18107 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18108 | |
| 18109 | #undef $ac_func |
| 18110 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18111 | /* Override any GCC internal prototype to avoid an error. |
| 18112 | Use char because int might match the return type of a GCC |
| 18113 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18114 | #ifdef __cplusplus |
| 18115 | extern "C" |
| 18116 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18117 | char $ac_func (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18118 | /* The GNU C library defines this for functions which it implements |
| 18119 | to always fail with ENOSYS. Some functions are actually named |
| 18120 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18121 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18122 | choke me |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18123 | #endif |
| 18124 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18125 | int |
| 18126 | main () |
| 18127 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18128 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18129 | ; |
| 18130 | return 0; |
| 18131 | } |
| 18132 | _ACEOF |
| 18133 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18134 | if { (ac_try="$ac_link" |
| 18135 | case "(($ac_try" in |
| 18136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18137 | *) ac_try_echo=$ac_try;; |
| 18138 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18140 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18141 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18142 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18143 | rm -f conftest.er1 |
| 18144 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18146 | (exit $ac_status); } && { |
| 18147 | test -z "$ac_c_werror_flag" || |
| 18148 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18149 | } && test -s conftest$ac_exeext && |
| 18150 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18151 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18152 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18153 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18154 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18155 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18156 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18157 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18158 | |
| 18159 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18160 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18161 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18162 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18163 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18164 | echo "${ECHO_T}$ac_res" >&6; } |
| 18165 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18166 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18167 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18168 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18169 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18170 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 18171 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18172 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18173 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18174 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 18175 | # loading of modules. |
| 18176 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18177 | { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 18178 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18179 | if test -z "$DYNLOADFILE" |
| 18180 | then |
| 18181 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 18182 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 18183 | if test "$ac_cv_func_dlopen" = yes |
| 18184 | then DYNLOADFILE="dynload_shlib.o" |
| 18185 | else DYNLOADFILE="dynload_aix.o" |
| 18186 | fi |
| 18187 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18188 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 18189 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 18190 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() |
| 18191 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 18192 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18193 | *) |
| 18194 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 18195 | # out any dynamic loading |
| 18196 | if test "$ac_cv_func_dlopen" = yes |
| 18197 | then DYNLOADFILE="dynload_shlib.o" |
| 18198 | else DYNLOADFILE="dynload_stub.o" |
| 18199 | fi |
| 18200 | ;; |
| 18201 | esac |
| 18202 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18203 | { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 18204 | echo "${ECHO_T}$DYNLOADFILE" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18205 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 18206 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18207 | |
| 18208 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18209 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18210 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18211 | |
| 18212 | fi |
| 18213 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 18214 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 18215 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18216 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18217 | { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 18218 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 18219 | if test -z "$MACHDEP_OBJS" |
| 18220 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 18221 | MACHDEP_OBJS=$extra_machdep_objs |
| 18222 | else |
| 18223 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 18224 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18225 | { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 18226 | echo "${ECHO_T}MACHDEP_OBJS" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 18227 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18228 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18229 | |
| 18230 | |
| 18231 | |
| 18232 | |
| 18233 | |
| 18234 | |
| 18235 | |
| 18236 | |
| 18237 | |
| 18238 | |
| 18239 | |
| 18240 | |
| 18241 | |
| 18242 | |
| 18243 | |
| 18244 | |
| 18245 | |
| 18246 | |
| 18247 | |
| 18248 | |
| 18249 | |
| 18250 | |
| 18251 | |
| 18252 | |
| 18253 | |
| 18254 | |
| 18255 | |
| 18256 | |
| 18257 | |
| 18258 | |
| 18259 | |
| 18260 | |
| 18261 | |
| 18262 | |
| 18263 | |
| 18264 | |
| 18265 | |
| 18266 | |
| 18267 | |
| 18268 | |
| 18269 | |
| 18270 | |
| 18271 | |
| 18272 | |
| 18273 | |
| 18274 | |
| 18275 | |
| 18276 | |
| 18277 | |
| 18278 | |
| 18279 | |
| 18280 | |
| 18281 | |
| 18282 | |
| 18283 | |
| 18284 | |
| 18285 | |
| 18286 | |
| 18287 | |
| 18288 | |
| 18289 | |
| 18290 | |
| 18291 | |
| 18292 | |
| 18293 | |
| 18294 | |
| 18295 | |
| 18296 | |
| 18297 | |
| 18298 | |
| 18299 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 18300 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 18301 | |
| 18302 | |
Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 18303 | |
| 18304 | |
Martin v. Löwis | 382abef | 2007-02-19 10:55:19 +0000 | [diff] [blame] | 18305 | |
| 18306 | |
Christian Heimes | 3628187 | 2007-11-30 21:11:28 +0000 | [diff] [blame] | 18307 | |
Martin v. Löwis | aef18b1 | 2008-03-24 13:31:16 +0000 | [diff] [blame] | 18308 | |
| 18309 | |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 18310 | |
| 18311 | |
| 18312 | |
| 18313 | |
Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 18314 | |
| 18315 | |
| 18316 | |
| 18317 | |
| 18318 | |
| 18319 | |
| 18320 | |
| 18321 | |
| 18322 | |
| 18323 | |
| 18324 | |
| 18325 | |
| 18326 | |
Antoine Pitrou | 30b3b35 | 2009-12-02 20:37:54 +0000 | [diff] [blame] | 18327 | |
Martin v. Löwis | aef18b1 | 2008-03-24 13:31:16 +0000 | [diff] [blame] | 18328 | for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \ |
| 18329 | clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 18330 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 18331 | getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ |
Antoine Pitrou | 30b3b35 | 2009-12-02 20:37:54 +0000 | [diff] [blame] | 18332 | initgroups kill killpg lchmod lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 18333 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 18334 | putenv readlink realpath \ |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 18335 | select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \ |
| 18336 | setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 18337 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 18338 | setlocale setregid setreuid setresuid setresgid \ |
| 18339 | setsid setpgid setpgrp setuid setvbuf snprintf \ |
Skip Montanaro | 7e11a01 | 2004-02-07 12:55:46 +0000 | [diff] [blame] | 18340 | sigaction siginterrupt sigrelse strftime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 18341 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 18342 | truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18343 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18344 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18345 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18346 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18347 | 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] | 18348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18349 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18350 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18351 | /* confdefs.h. */ |
| 18352 | _ACEOF |
| 18353 | cat confdefs.h >>conftest.$ac_ext |
| 18354 | cat >>conftest.$ac_ext <<_ACEOF |
| 18355 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18356 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18357 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18358 | #define $ac_func innocuous_$ac_func |
| 18359 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18360 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18361 | which can conflict with char $ac_func (); below. |
| 18362 | 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] | 18363 | <limits.h> exists even on freestanding compilers. */ |
| 18364 | |
| 18365 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18366 | # include <limits.h> |
| 18367 | #else |
| 18368 | # include <assert.h> |
| 18369 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18370 | |
| 18371 | #undef $ac_func |
| 18372 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18373 | /* Override any GCC internal prototype to avoid an error. |
| 18374 | Use char because int might match the return type of a GCC |
| 18375 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18376 | #ifdef __cplusplus |
| 18377 | extern "C" |
| 18378 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18379 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18380 | /* The GNU C library defines this for functions which it implements |
| 18381 | to always fail with ENOSYS. Some functions are actually named |
| 18382 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18383 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18384 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18385 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18386 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18387 | int |
| 18388 | main () |
| 18389 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18390 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18391 | ; |
| 18392 | return 0; |
| 18393 | } |
| 18394 | _ACEOF |
| 18395 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18396 | if { (ac_try="$ac_link" |
| 18397 | case "(($ac_try" in |
| 18398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18399 | *) ac_try_echo=$ac_try;; |
| 18400 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18402 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18403 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18404 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18405 | rm -f conftest.er1 |
| 18406 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18408 | (exit $ac_status); } && { |
| 18409 | test -z "$ac_c_werror_flag" || |
| 18410 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18411 | } && test -s conftest$ac_exeext && |
| 18412 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18413 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18414 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18415 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18416 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18417 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18418 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18419 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18420 | |
| 18421 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18422 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18423 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18424 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18425 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18426 | echo "${ECHO_T}$ac_res" >&6; } |
| 18427 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18428 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18429 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18430 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18431 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 18432 | fi |
| 18433 | done |
| 18434 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18435 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18436 | # For some functions, having a definition is not sufficient, since |
| 18437 | # we want to take their address. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18438 | { echo "$as_me:$LINENO: checking for chroot" >&5 |
| 18439 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18440 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18441 | /* confdefs.h. */ |
| 18442 | _ACEOF |
| 18443 | cat confdefs.h >>conftest.$ac_ext |
| 18444 | cat >>conftest.$ac_ext <<_ACEOF |
| 18445 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18446 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18447 | int |
| 18448 | main () |
| 18449 | { |
| 18450 | void *x=chroot |
| 18451 | ; |
| 18452 | return 0; |
| 18453 | } |
| 18454 | _ACEOF |
| 18455 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18456 | if { (ac_try="$ac_compile" |
| 18457 | case "(($ac_try" in |
| 18458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18459 | *) ac_try_echo=$ac_try;; |
| 18460 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18461 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18462 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18463 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18464 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18465 | rm -f conftest.er1 |
| 18466 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18468 | (exit $ac_status); } && { |
| 18469 | test -z "$ac_c_werror_flag" || |
| 18470 | test ! -s conftest.err |
| 18471 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18472 | |
| 18473 | cat >>confdefs.h <<\_ACEOF |
| 18474 | #define HAVE_CHROOT 1 |
| 18475 | _ACEOF |
| 18476 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18477 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18478 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18479 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18480 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18481 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18482 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18483 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18484 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18485 | |
| 18486 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18487 | |
| 18488 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18489 | { echo "$as_me:$LINENO: checking for link" >&5 |
| 18490 | echo $ECHO_N "checking for link... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18491 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18492 | /* confdefs.h. */ |
| 18493 | _ACEOF |
| 18494 | cat confdefs.h >>conftest.$ac_ext |
| 18495 | cat >>conftest.$ac_ext <<_ACEOF |
| 18496 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18497 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18498 | int |
| 18499 | main () |
| 18500 | { |
| 18501 | void *x=link |
| 18502 | ; |
| 18503 | return 0; |
| 18504 | } |
| 18505 | _ACEOF |
| 18506 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18507 | if { (ac_try="$ac_compile" |
| 18508 | case "(($ac_try" in |
| 18509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18510 | *) ac_try_echo=$ac_try;; |
| 18511 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18513 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18514 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18515 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18516 | rm -f conftest.er1 |
| 18517 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18519 | (exit $ac_status); } && { |
| 18520 | test -z "$ac_c_werror_flag" || |
| 18521 | test ! -s conftest.err |
| 18522 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18523 | |
| 18524 | cat >>confdefs.h <<\_ACEOF |
| 18525 | #define HAVE_LINK 1 |
| 18526 | _ACEOF |
| 18527 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18528 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18529 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18530 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18531 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18532 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18533 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18534 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18535 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18536 | |
| 18537 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18538 | |
| 18539 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18540 | { echo "$as_me:$LINENO: checking for symlink" >&5 |
| 18541 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18542 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18543 | /* confdefs.h. */ |
| 18544 | _ACEOF |
| 18545 | cat confdefs.h >>conftest.$ac_ext |
| 18546 | cat >>conftest.$ac_ext <<_ACEOF |
| 18547 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18548 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18549 | int |
| 18550 | main () |
| 18551 | { |
| 18552 | void *x=symlink |
| 18553 | ; |
| 18554 | return 0; |
| 18555 | } |
| 18556 | _ACEOF |
| 18557 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18558 | if { (ac_try="$ac_compile" |
| 18559 | case "(($ac_try" in |
| 18560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18561 | *) ac_try_echo=$ac_try;; |
| 18562 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18563 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18564 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18565 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18566 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18567 | rm -f conftest.er1 |
| 18568 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18570 | (exit $ac_status); } && { |
| 18571 | test -z "$ac_c_werror_flag" || |
| 18572 | test ! -s conftest.err |
| 18573 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18574 | |
| 18575 | cat >>confdefs.h <<\_ACEOF |
| 18576 | #define HAVE_SYMLINK 1 |
| 18577 | _ACEOF |
| 18578 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18579 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18580 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18581 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18582 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18583 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18584 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18585 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18586 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18587 | |
| 18588 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18589 | |
| 18590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18591 | { echo "$as_me:$LINENO: checking for fchdir" >&5 |
| 18592 | echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18593 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18594 | /* confdefs.h. */ |
| 18595 | _ACEOF |
| 18596 | cat confdefs.h >>conftest.$ac_ext |
| 18597 | cat >>conftest.$ac_ext <<_ACEOF |
| 18598 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18599 | #include <unistd.h> |
| 18600 | int |
| 18601 | main () |
| 18602 | { |
| 18603 | void *x=fchdir |
| 18604 | ; |
| 18605 | return 0; |
| 18606 | } |
| 18607 | _ACEOF |
| 18608 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18609 | if { (ac_try="$ac_compile" |
| 18610 | case "(($ac_try" in |
| 18611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18612 | *) ac_try_echo=$ac_try;; |
| 18613 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18615 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18616 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18617 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18618 | rm -f conftest.er1 |
| 18619 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18621 | (exit $ac_status); } && { |
| 18622 | test -z "$ac_c_werror_flag" || |
| 18623 | test ! -s conftest.err |
| 18624 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18625 | |
| 18626 | cat >>confdefs.h <<\_ACEOF |
| 18627 | #define HAVE_FCHDIR 1 |
| 18628 | _ACEOF |
| 18629 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18630 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18631 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18632 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18633 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18634 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18635 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18636 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18637 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18638 | |
| 18639 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18640 | |
| 18641 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18642 | { echo "$as_me:$LINENO: checking for fsync" >&5 |
| 18643 | echo $ECHO_N "checking for fsync... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18644 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18645 | /* confdefs.h. */ |
| 18646 | _ACEOF |
| 18647 | cat confdefs.h >>conftest.$ac_ext |
| 18648 | cat >>conftest.$ac_ext <<_ACEOF |
| 18649 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18650 | #include <unistd.h> |
| 18651 | int |
| 18652 | main () |
| 18653 | { |
| 18654 | void *x=fsync |
| 18655 | ; |
| 18656 | return 0; |
| 18657 | } |
| 18658 | _ACEOF |
| 18659 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18660 | if { (ac_try="$ac_compile" |
| 18661 | case "(($ac_try" in |
| 18662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18663 | *) ac_try_echo=$ac_try;; |
| 18664 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18666 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18667 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18668 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18669 | rm -f conftest.er1 |
| 18670 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18672 | (exit $ac_status); } && { |
| 18673 | test -z "$ac_c_werror_flag" || |
| 18674 | test ! -s conftest.err |
| 18675 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18676 | |
| 18677 | cat >>confdefs.h <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18678 | #define HAVE_FSYNC 1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18679 | _ACEOF |
| 18680 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18681 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18682 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18683 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18684 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18685 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18686 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18687 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18688 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18689 | |
| 18690 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18691 | |
| 18692 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18693 | { echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 18694 | echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18695 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18696 | /* confdefs.h. */ |
| 18697 | _ACEOF |
| 18698 | cat confdefs.h >>conftest.$ac_ext |
| 18699 | cat >>conftest.$ac_ext <<_ACEOF |
| 18700 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18701 | #include <unistd.h> |
| 18702 | int |
| 18703 | main () |
| 18704 | { |
| 18705 | void *x=fdatasync |
| 18706 | ; |
| 18707 | return 0; |
| 18708 | } |
| 18709 | _ACEOF |
| 18710 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18711 | if { (ac_try="$ac_compile" |
| 18712 | case "(($ac_try" in |
| 18713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18714 | *) ac_try_echo=$ac_try;; |
| 18715 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18717 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18718 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18719 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18720 | rm -f conftest.er1 |
| 18721 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18723 | (exit $ac_status); } && { |
| 18724 | test -z "$ac_c_werror_flag" || |
| 18725 | test ! -s conftest.err |
| 18726 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18727 | |
| 18728 | cat >>confdefs.h <<\_ACEOF |
| 18729 | #define HAVE_FDATASYNC 1 |
| 18730 | _ACEOF |
| 18731 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18732 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18733 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18734 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18735 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18736 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18737 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18738 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18739 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18740 | |
| 18741 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18742 | |
| 18743 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18744 | { echo "$as_me:$LINENO: checking for epoll" >&5 |
| 18745 | echo $ECHO_N "checking for epoll... $ECHO_C" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18746 | cat >conftest.$ac_ext <<_ACEOF |
| 18747 | /* confdefs.h. */ |
| 18748 | _ACEOF |
| 18749 | cat confdefs.h >>conftest.$ac_ext |
| 18750 | cat >>conftest.$ac_ext <<_ACEOF |
| 18751 | /* end confdefs.h. */ |
| 18752 | #include <sys/epoll.h> |
| 18753 | int |
| 18754 | main () |
| 18755 | { |
| 18756 | void *x=epoll_create |
| 18757 | ; |
| 18758 | return 0; |
| 18759 | } |
| 18760 | _ACEOF |
| 18761 | rm -f conftest.$ac_objext |
| 18762 | if { (ac_try="$ac_compile" |
| 18763 | case "(($ac_try" in |
| 18764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18765 | *) ac_try_echo=$ac_try;; |
| 18766 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18768 | (eval "$ac_compile") 2>conftest.er1 |
| 18769 | ac_status=$? |
| 18770 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18771 | rm -f conftest.er1 |
| 18772 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18774 | (exit $ac_status); } && { |
| 18775 | test -z "$ac_c_werror_flag" || |
| 18776 | test ! -s conftest.err |
| 18777 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18778 | |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18779 | cat >>confdefs.h <<\_ACEOF |
| 18780 | #define HAVE_EPOLL 1 |
| 18781 | _ACEOF |
| 18782 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18783 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18784 | echo "${ECHO_T}yes" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18785 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18786 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18787 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18788 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18789 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18790 | echo "${ECHO_T}no" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18791 | |
| 18792 | fi |
| 18793 | |
| 18794 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18795 | { echo "$as_me:$LINENO: checking for kqueue" >&5 |
| 18796 | echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18797 | cat >conftest.$ac_ext <<_ACEOF |
| 18798 | /* confdefs.h. */ |
| 18799 | _ACEOF |
| 18800 | cat confdefs.h >>conftest.$ac_ext |
| 18801 | cat >>conftest.$ac_ext <<_ACEOF |
| 18802 | /* end confdefs.h. */ |
| 18803 | |
| 18804 | #include <sys/types.h> |
| 18805 | #include <sys/event.h> |
| 18806 | |
| 18807 | int |
| 18808 | main () |
| 18809 | { |
| 18810 | int x=kqueue() |
| 18811 | ; |
| 18812 | return 0; |
| 18813 | } |
| 18814 | _ACEOF |
| 18815 | rm -f conftest.$ac_objext |
| 18816 | if { (ac_try="$ac_compile" |
| 18817 | case "(($ac_try" in |
| 18818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18819 | *) ac_try_echo=$ac_try;; |
| 18820 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18822 | (eval "$ac_compile") 2>conftest.er1 |
| 18823 | ac_status=$? |
| 18824 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18825 | rm -f conftest.er1 |
| 18826 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18828 | (exit $ac_status); } && { |
| 18829 | test -z "$ac_c_werror_flag" || |
| 18830 | test ! -s conftest.err |
| 18831 | } && test -s conftest.$ac_objext; then |
| 18832 | |
| 18833 | cat >>confdefs.h <<\_ACEOF |
| 18834 | #define HAVE_KQUEUE 1 |
| 18835 | _ACEOF |
| 18836 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18837 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18838 | echo "${ECHO_T}yes" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18839 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18840 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18841 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18842 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18843 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18844 | echo "${ECHO_T}no" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18845 | |
| 18846 | fi |
| 18847 | |
| 18848 | 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] | 18849 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 18850 | # functions ctermid_r, setgroups in the library, but no prototype |
| 18851 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 18852 | # address to avoid compiler warnings and potential miscompilations |
| 18853 | # because of the missing prototypes. |
| 18854 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18855 | { echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 18856 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18857 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18858 | /* confdefs.h. */ |
| 18859 | _ACEOF |
| 18860 | cat confdefs.h >>conftest.$ac_ext |
| 18861 | cat >>conftest.$ac_ext <<_ACEOF |
| 18862 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18863 | |
| 18864 | #include "confdefs.h" |
| 18865 | #include <stdio.h> |
| 18866 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18867 | int |
| 18868 | main () |
| 18869 | { |
| 18870 | void* p = ctermid_r |
| 18871 | ; |
| 18872 | return 0; |
| 18873 | } |
| 18874 | _ACEOF |
| 18875 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18876 | if { (ac_try="$ac_compile" |
| 18877 | case "(($ac_try" in |
| 18878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18879 | *) ac_try_echo=$ac_try;; |
| 18880 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18882 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18883 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18884 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18885 | rm -f conftest.er1 |
| 18886 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18888 | (exit $ac_status); } && { |
| 18889 | test -z "$ac_c_werror_flag" || |
| 18890 | test ! -s conftest.err |
| 18891 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18892 | |
| 18893 | cat >>confdefs.h <<\_ACEOF |
| 18894 | #define HAVE_CTERMID_R 1 |
| 18895 | _ACEOF |
| 18896 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18897 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18898 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18899 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18900 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18901 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18902 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18903 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18904 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18905 | |
| 18906 | fi |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18907 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18909 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18910 | { echo "$as_me:$LINENO: checking for flock" >&5 |
| 18911 | echo $ECHO_N "checking for flock... $ECHO_C" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18912 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18913 | /* confdefs.h. */ |
| 18914 | _ACEOF |
| 18915 | cat confdefs.h >>conftest.$ac_ext |
| 18916 | cat >>conftest.$ac_ext <<_ACEOF |
| 18917 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18918 | |
| 18919 | #include "confdefs.h" |
| 18920 | #include <sys/file.h> |
| 18921 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18922 | int |
| 18923 | main () |
| 18924 | { |
| 18925 | void* p = flock |
| 18926 | ; |
| 18927 | return 0; |
| 18928 | } |
| 18929 | _ACEOF |
| 18930 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18931 | if { (ac_try="$ac_compile" |
| 18932 | case "(($ac_try" in |
| 18933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18934 | *) ac_try_echo=$ac_try;; |
| 18935 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18937 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18938 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18939 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18940 | rm -f conftest.er1 |
| 18941 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18943 | (exit $ac_status); } && { |
| 18944 | test -z "$ac_c_werror_flag" || |
| 18945 | test ! -s conftest.err |
| 18946 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18947 | |
| 18948 | cat >>confdefs.h <<\_ACEOF |
| 18949 | #define HAVE_FLOCK 1 |
| 18950 | _ACEOF |
| 18951 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18952 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18953 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18954 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18955 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18956 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18957 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18958 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18959 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18960 | |
| 18961 | fi |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18962 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18963 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18964 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18965 | { echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 18966 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18967 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18968 | /* confdefs.h. */ |
| 18969 | _ACEOF |
| 18970 | cat confdefs.h >>conftest.$ac_ext |
| 18971 | cat >>conftest.$ac_ext <<_ACEOF |
| 18972 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18973 | |
| 18974 | #include "confdefs.h" |
| 18975 | #include <unistd.h> |
| 18976 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18977 | int |
| 18978 | main () |
| 18979 | { |
| 18980 | void* p = getpagesize |
| 18981 | ; |
| 18982 | return 0; |
| 18983 | } |
| 18984 | _ACEOF |
| 18985 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18986 | if { (ac_try="$ac_compile" |
| 18987 | case "(($ac_try" in |
| 18988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18989 | *) ac_try_echo=$ac_try;; |
| 18990 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18992 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18993 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18994 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18995 | rm -f conftest.er1 |
| 18996 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18998 | (exit $ac_status); } && { |
| 18999 | test -z "$ac_c_werror_flag" || |
| 19000 | test ! -s conftest.err |
| 19001 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 19002 | |
| 19003 | cat >>confdefs.h <<\_ACEOF |
| 19004 | #define HAVE_GETPAGESIZE 1 |
| 19005 | _ACEOF |
| 19006 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19007 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19008 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 19009 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19010 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19011 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19012 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19013 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19014 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 19015 | |
| 19016 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19017 | |
| 19018 | 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] | 19019 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 19020 | for ac_prog in true |
| 19021 | do |
| 19022 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 19023 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19024 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 19025 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 19026 | if test "${ac_cv_prog_TRUE+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19027 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 19028 | else |
| 19029 | if test -n "$TRUE"; then |
| 19030 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 19031 | else |
| 19032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19033 | for as_dir in $PATH |
| 19034 | do |
| 19035 | IFS=$as_save_IFS |
| 19036 | test -z "$as_dir" && as_dir=. |
| 19037 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19038 | 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] | 19039 | ac_cv_prog_TRUE="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19040 | 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] | 19041 | break 2 |
| 19042 | fi |
| 19043 | done |
| 19044 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19045 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 19046 | |
| 19047 | fi |
| 19048 | fi |
| 19049 | TRUE=$ac_cv_prog_TRUE |
| 19050 | if test -n "$TRUE"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19051 | { echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 19052 | echo "${ECHO_T}$TRUE" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 19053 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19054 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19055 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 19056 | fi |
| 19057 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19058 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 19059 | test -n "$TRUE" && break |
| 19060 | done |
| 19061 | test -n "$TRUE" || TRUE="/bin/true" |
| 19062 | |
| 19063 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19064 | { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 19065 | 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] | 19066 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19068 | else |
| 19069 | ac_check_lib_save_LIBS=$LIBS |
| 19070 | LIBS="-lc $LIBS" |
| 19071 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19072 | /* confdefs.h. */ |
| 19073 | _ACEOF |
| 19074 | cat confdefs.h >>conftest.$ac_ext |
| 19075 | cat >>conftest.$ac_ext <<_ACEOF |
| 19076 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19077 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19078 | /* Override any GCC internal prototype to avoid an error. |
| 19079 | Use char because int might match the return type of a GCC |
| 19080 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19081 | #ifdef __cplusplus |
| 19082 | extern "C" |
| 19083 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19084 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19085 | int |
| 19086 | main () |
| 19087 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19088 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19089 | ; |
| 19090 | return 0; |
| 19091 | } |
| 19092 | _ACEOF |
| 19093 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19094 | if { (ac_try="$ac_link" |
| 19095 | case "(($ac_try" in |
| 19096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19097 | *) ac_try_echo=$ac_try;; |
| 19098 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19100 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19101 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19102 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19103 | rm -f conftest.er1 |
| 19104 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19106 | (exit $ac_status); } && { |
| 19107 | test -z "$ac_c_werror_flag" || |
| 19108 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19109 | } && test -s conftest$ac_exeext && |
| 19110 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19111 | ac_cv_lib_c_inet_aton=yes |
| 19112 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19113 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19114 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19115 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19116 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19117 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19118 | |
| 19119 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19120 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19121 | LIBS=$ac_check_lib_save_LIBS |
| 19122 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19123 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 19124 | echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; } |
| 19125 | if test $ac_cv_lib_c_inet_aton = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 19126 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19127 | else |
| 19128 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19129 | { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 19130 | 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] | 19131 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19133 | else |
| 19134 | ac_check_lib_save_LIBS=$LIBS |
| 19135 | LIBS="-lresolv $LIBS" |
| 19136 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19137 | /* confdefs.h. */ |
| 19138 | _ACEOF |
| 19139 | cat confdefs.h >>conftest.$ac_ext |
| 19140 | cat >>conftest.$ac_ext <<_ACEOF |
| 19141 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19142 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19143 | /* Override any GCC internal prototype to avoid an error. |
| 19144 | Use char because int might match the return type of a GCC |
| 19145 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19146 | #ifdef __cplusplus |
| 19147 | extern "C" |
| 19148 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19149 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19150 | int |
| 19151 | main () |
| 19152 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19153 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19154 | ; |
| 19155 | return 0; |
| 19156 | } |
| 19157 | _ACEOF |
| 19158 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19159 | if { (ac_try="$ac_link" |
| 19160 | case "(($ac_try" in |
| 19161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19162 | *) ac_try_echo=$ac_try;; |
| 19163 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19165 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19166 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19167 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19168 | rm -f conftest.er1 |
| 19169 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19171 | (exit $ac_status); } && { |
| 19172 | test -z "$ac_c_werror_flag" || |
| 19173 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19174 | } && test -s conftest$ac_exeext && |
| 19175 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19176 | ac_cv_lib_resolv_inet_aton=yes |
| 19177 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19178 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19179 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19180 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19181 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19182 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19183 | |
| 19184 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19185 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19186 | LIBS=$ac_check_lib_save_LIBS |
| 19187 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19188 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 19189 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; } |
| 19190 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19191 | cat >>confdefs.h <<_ACEOF |
| 19192 | #define HAVE_LIBRESOLV 1 |
| 19193 | _ACEOF |
| 19194 | |
| 19195 | LIBS="-lresolv $LIBS" |
| 19196 | |
| 19197 | fi |
| 19198 | |
| 19199 | |
| 19200 | fi |
| 19201 | |
| 19202 | |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19203 | # On Tru64, chflags seems to be present, but calling it will |
| 19204 | # exit Python |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19205 | { echo "$as_me:$LINENO: checking for chflags" >&5 |
| 19206 | echo $ECHO_N "checking for chflags... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19207 | if test "${ac_cv_have_chflags+set}" = set; then |
| 19208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19209 | else |
| 19210 | if test "$cross_compiling" = yes; then |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19211 | ac_cv_have_chflags=cross |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19212 | else |
| 19213 | cat >conftest.$ac_ext <<_ACEOF |
| 19214 | /* confdefs.h. */ |
| 19215 | _ACEOF |
| 19216 | cat confdefs.h >>conftest.$ac_ext |
| 19217 | cat >>conftest.$ac_ext <<_ACEOF |
| 19218 | /* end confdefs.h. */ |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19219 | [ |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19220 | #include <sys/stat.h> |
| 19221 | #include <unistd.h> |
| 19222 | int main(int argc, char*argv[]) |
| 19223 | { |
| 19224 | if(chflags(argv[0], 0) != 0) |
| 19225 | return 1; |
| 19226 | return 0; |
| 19227 | } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19228 | ] |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19229 | _ACEOF |
| 19230 | rm -f conftest$ac_exeext |
| 19231 | if { (ac_try="$ac_link" |
| 19232 | case "(($ac_try" in |
| 19233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19234 | *) ac_try_echo=$ac_try;; |
| 19235 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19237 | (eval "$ac_link") 2>&5 |
| 19238 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19240 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19241 | { (case "(($ac_try" in |
| 19242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19243 | *) ac_try_echo=$ac_try;; |
| 19244 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19246 | (eval "$ac_try") 2>&5 |
| 19247 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19249 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19250 | ac_cv_have_chflags=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19251 | else |
| 19252 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19253 | echo "$as_me: failed program was:" >&5 |
| 19254 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19255 | |
| 19256 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19257 | ac_cv_have_chflags=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19258 | fi |
| 19259 | 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] | 19260 | fi |
| 19261 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19262 | |
| 19263 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19264 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19265 | { echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5 |
| 19266 | echo "${ECHO_T}$ac_cv_have_chflags" >&6; } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19267 | if test "$ac_cv_have_chflags" = cross ; then |
| 19268 | { echo "$as_me:$LINENO: checking for chflags" >&5 |
| 19269 | echo $ECHO_N "checking for chflags... $ECHO_C" >&6; } |
| 19270 | if test "${ac_cv_func_chflags+set}" = set; then |
| 19271 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19272 | else |
| 19273 | cat >conftest.$ac_ext <<_ACEOF |
| 19274 | /* confdefs.h. */ |
| 19275 | _ACEOF |
| 19276 | cat confdefs.h >>conftest.$ac_ext |
| 19277 | cat >>conftest.$ac_ext <<_ACEOF |
| 19278 | /* end confdefs.h. */ |
| 19279 | /* Define chflags to an innocuous variant, in case <limits.h> declares chflags. |
| 19280 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19281 | #define chflags innocuous_chflags |
| 19282 | |
| 19283 | /* System header to define __stub macros and hopefully few prototypes, |
| 19284 | which can conflict with char chflags (); below. |
| 19285 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19286 | <limits.h> exists even on freestanding compilers. */ |
| 19287 | |
| 19288 | #ifdef __STDC__ |
| 19289 | # include <limits.h> |
| 19290 | #else |
| 19291 | # include <assert.h> |
| 19292 | #endif |
| 19293 | |
| 19294 | #undef chflags |
| 19295 | |
| 19296 | /* Override any GCC internal prototype to avoid an error. |
| 19297 | Use char because int might match the return type of a GCC |
| 19298 | builtin and then its argument prototype would still apply. */ |
| 19299 | #ifdef __cplusplus |
| 19300 | extern "C" |
| 19301 | #endif |
| 19302 | char chflags (); |
| 19303 | /* The GNU C library defines this for functions which it implements |
| 19304 | to always fail with ENOSYS. Some functions are actually named |
| 19305 | something starting with __ and the normal name is an alias. */ |
| 19306 | #if defined __stub_chflags || defined __stub___chflags |
| 19307 | choke me |
| 19308 | #endif |
| 19309 | |
| 19310 | int |
| 19311 | main () |
| 19312 | { |
| 19313 | return chflags (); |
| 19314 | ; |
| 19315 | return 0; |
| 19316 | } |
| 19317 | _ACEOF |
| 19318 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19319 | if { (ac_try="$ac_link" |
| 19320 | case "(($ac_try" in |
| 19321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19322 | *) ac_try_echo=$ac_try;; |
| 19323 | esac |
| 19324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19325 | (eval "$ac_link") 2>conftest.er1 |
| 19326 | ac_status=$? |
| 19327 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19328 | rm -f conftest.er1 |
| 19329 | cat conftest.err >&5 |
| 19330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19331 | (exit $ac_status); } && { |
| 19332 | test -z "$ac_c_werror_flag" || |
| 19333 | test ! -s conftest.err |
| 19334 | } && test -s conftest$ac_exeext && |
| 19335 | $as_test_x conftest$ac_exeext; then |
| 19336 | ac_cv_func_chflags=yes |
| 19337 | else |
| 19338 | echo "$as_me: failed program was:" >&5 |
| 19339 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19340 | |
| 19341 | ac_cv_func_chflags=no |
| 19342 | fi |
| 19343 | |
| 19344 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 19345 | conftest$ac_exeext conftest.$ac_ext |
| 19346 | fi |
| 19347 | { echo "$as_me:$LINENO: result: $ac_cv_func_chflags" >&5 |
| 19348 | echo "${ECHO_T}$ac_cv_func_chflags" >&6; } |
| 19349 | if test $ac_cv_func_chflags = yes; then |
| 19350 | ac_cv_have_chflags="yes" |
| 19351 | else |
| 19352 | ac_cv_have_chflags="no" |
| 19353 | fi |
| 19354 | |
| 19355 | fi |
| 19356 | if test "$ac_cv_have_chflags" = yes ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19357 | |
| 19358 | cat >>confdefs.h <<\_ACEOF |
| 19359 | #define HAVE_CHFLAGS 1 |
| 19360 | _ACEOF |
| 19361 | |
| 19362 | fi |
| 19363 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19364 | { echo "$as_me:$LINENO: checking for lchflags" >&5 |
| 19365 | echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19366 | if test "${ac_cv_have_lchflags+set}" = set; then |
| 19367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19368 | else |
| 19369 | if test "$cross_compiling" = yes; then |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19370 | ac_cv_have_lchflags=cross |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19371 | else |
| 19372 | cat >conftest.$ac_ext <<_ACEOF |
| 19373 | /* confdefs.h. */ |
| 19374 | _ACEOF |
| 19375 | cat confdefs.h >>conftest.$ac_ext |
| 19376 | cat >>conftest.$ac_ext <<_ACEOF |
| 19377 | /* end confdefs.h. */ |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19378 | [ |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19379 | #include <sys/stat.h> |
| 19380 | #include <unistd.h> |
| 19381 | int main(int argc, char*argv[]) |
| 19382 | { |
| 19383 | if(lchflags(argv[0], 0) != 0) |
| 19384 | return 1; |
| 19385 | return 0; |
| 19386 | } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19387 | ] |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19388 | _ACEOF |
| 19389 | rm -f conftest$ac_exeext |
| 19390 | if { (ac_try="$ac_link" |
| 19391 | case "(($ac_try" in |
| 19392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19393 | *) ac_try_echo=$ac_try;; |
| 19394 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19396 | (eval "$ac_link") 2>&5 |
| 19397 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19399 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19400 | { (case "(($ac_try" in |
| 19401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19402 | *) ac_try_echo=$ac_try;; |
| 19403 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19405 | (eval "$ac_try") 2>&5 |
| 19406 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19408 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19409 | ac_cv_have_lchflags=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19410 | else |
| 19411 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19412 | echo "$as_me: failed program was:" >&5 |
| 19413 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19414 | |
| 19415 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19416 | ac_cv_have_lchflags=no |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19417 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19418 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 19419 | fi |
| 19420 | |
| 19421 | |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19422 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19423 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19424 | { echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5 |
| 19425 | echo "${ECHO_T}$ac_cv_have_lchflags" >&6; } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19426 | if test "$ac_cv_have_lchflags" = cross ; then |
| 19427 | { echo "$as_me:$LINENO: checking for lchflags" >&5 |
| 19428 | echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; } |
| 19429 | if test "${ac_cv_func_lchflags+set}" = set; then |
| 19430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19431 | else |
| 19432 | cat >conftest.$ac_ext <<_ACEOF |
| 19433 | /* confdefs.h. */ |
| 19434 | _ACEOF |
| 19435 | cat confdefs.h >>conftest.$ac_ext |
| 19436 | cat >>conftest.$ac_ext <<_ACEOF |
| 19437 | /* end confdefs.h. */ |
| 19438 | /* Define lchflags to an innocuous variant, in case <limits.h> declares lchflags. |
| 19439 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19440 | #define lchflags innocuous_lchflags |
| 19441 | |
| 19442 | /* System header to define __stub macros and hopefully few prototypes, |
| 19443 | which can conflict with char lchflags (); below. |
| 19444 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19445 | <limits.h> exists even on freestanding compilers. */ |
| 19446 | |
| 19447 | #ifdef __STDC__ |
| 19448 | # include <limits.h> |
| 19449 | #else |
| 19450 | # include <assert.h> |
| 19451 | #endif |
| 19452 | |
| 19453 | #undef lchflags |
| 19454 | |
| 19455 | /* Override any GCC internal prototype to avoid an error. |
| 19456 | Use char because int might match the return type of a GCC |
| 19457 | builtin and then its argument prototype would still apply. */ |
| 19458 | #ifdef __cplusplus |
| 19459 | extern "C" |
| 19460 | #endif |
| 19461 | char lchflags (); |
| 19462 | /* The GNU C library defines this for functions which it implements |
| 19463 | to always fail with ENOSYS. Some functions are actually named |
| 19464 | something starting with __ and the normal name is an alias. */ |
| 19465 | #if defined __stub_lchflags || defined __stub___lchflags |
| 19466 | choke me |
| 19467 | #endif |
| 19468 | |
| 19469 | int |
| 19470 | main () |
| 19471 | { |
| 19472 | return lchflags (); |
| 19473 | ; |
| 19474 | return 0; |
| 19475 | } |
| 19476 | _ACEOF |
| 19477 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19478 | if { (ac_try="$ac_link" |
| 19479 | case "(($ac_try" in |
| 19480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19481 | *) ac_try_echo=$ac_try;; |
| 19482 | esac |
| 19483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19484 | (eval "$ac_link") 2>conftest.er1 |
| 19485 | ac_status=$? |
| 19486 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19487 | rm -f conftest.er1 |
| 19488 | cat conftest.err >&5 |
| 19489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19490 | (exit $ac_status); } && { |
| 19491 | test -z "$ac_c_werror_flag" || |
| 19492 | test ! -s conftest.err |
| 19493 | } && test -s conftest$ac_exeext && |
| 19494 | $as_test_x conftest$ac_exeext; then |
| 19495 | ac_cv_func_lchflags=yes |
| 19496 | else |
| 19497 | echo "$as_me: failed program was:" >&5 |
| 19498 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19499 | |
| 19500 | ac_cv_func_lchflags=no |
| 19501 | fi |
| 19502 | |
| 19503 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 19504 | conftest$ac_exeext conftest.$ac_ext |
| 19505 | fi |
| 19506 | { echo "$as_me:$LINENO: result: $ac_cv_func_lchflags" >&5 |
| 19507 | echo "${ECHO_T}$ac_cv_func_lchflags" >&6; } |
| 19508 | if test $ac_cv_func_lchflags = yes; then |
| 19509 | ac_cv_have_lchflags="yes" |
| 19510 | else |
| 19511 | ac_cv_have_lchflags="no" |
| 19512 | fi |
| 19513 | |
| 19514 | fi |
| 19515 | if test "$ac_cv_have_lchflags" = yes ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19516 | |
| 19517 | cat >>confdefs.h <<\_ACEOF |
| 19518 | #define HAVE_LCHFLAGS 1 |
| 19519 | _ACEOF |
| 19520 | |
| 19521 | fi |
| 19522 | |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 19523 | case $ac_sys_system/$ac_sys_release in |
| 19524 | Darwin/*) |
| 19525 | _CUR_CFLAGS="${CFLAGS}" |
| 19526 | _CUR_LDFLAGS="${LDFLAGS}" |
| 19527 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" |
| 19528 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" |
| 19529 | ;; |
| 19530 | esac |
| 19531 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19532 | { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5 |
| 19533 | echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; } |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19534 | if test "${ac_cv_lib_z_inflateCopy+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19535 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19536 | else |
| 19537 | ac_check_lib_save_LIBS=$LIBS |
| 19538 | LIBS="-lz $LIBS" |
| 19539 | cat >conftest.$ac_ext <<_ACEOF |
| 19540 | /* confdefs.h. */ |
| 19541 | _ACEOF |
| 19542 | cat confdefs.h >>conftest.$ac_ext |
| 19543 | cat >>conftest.$ac_ext <<_ACEOF |
| 19544 | /* end confdefs.h. */ |
| 19545 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19546 | /* Override any GCC internal prototype to avoid an error. |
| 19547 | Use char because int might match the return type of a GCC |
| 19548 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19549 | #ifdef __cplusplus |
| 19550 | extern "C" |
| 19551 | #endif |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19552 | char inflateCopy (); |
| 19553 | int |
| 19554 | main () |
| 19555 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19556 | return inflateCopy (); |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19557 | ; |
| 19558 | return 0; |
| 19559 | } |
| 19560 | _ACEOF |
| 19561 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19562 | if { (ac_try="$ac_link" |
| 19563 | case "(($ac_try" in |
| 19564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19565 | *) ac_try_echo=$ac_try;; |
| 19566 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19568 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19569 | ac_status=$? |
| 19570 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19571 | rm -f conftest.er1 |
| 19572 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19574 | (exit $ac_status); } && { |
| 19575 | test -z "$ac_c_werror_flag" || |
| 19576 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19577 | } && test -s conftest$ac_exeext && |
| 19578 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19579 | ac_cv_lib_z_inflateCopy=yes |
| 19580 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19581 | echo "$as_me: failed program was:" >&5 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19582 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19583 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19584 | ac_cv_lib_z_inflateCopy=no |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19585 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19586 | |
| 19587 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19588 | conftest$ac_exeext conftest.$ac_ext |
| 19589 | LIBS=$ac_check_lib_save_LIBS |
| 19590 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19591 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5 |
| 19592 | echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; } |
| 19593 | if test $ac_cv_lib_z_inflateCopy = yes; then |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19594 | |
| 19595 | cat >>confdefs.h <<\_ACEOF |
| 19596 | #define HAVE_ZLIB_COPY 1 |
| 19597 | _ACEOF |
| 19598 | |
| 19599 | fi |
| 19600 | |
| 19601 | |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 19602 | case $ac_sys_system/$ac_sys_release in |
| 19603 | Darwin/*) |
| 19604 | CFLAGS="${_CUR_CFLAGS}" |
| 19605 | LDFLAGS="${_CUR_LDFLAGS}" |
| 19606 | ;; |
| 19607 | esac |
| 19608 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19609 | { echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 19610 | echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19611 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19612 | /* confdefs.h. */ |
| 19613 | _ACEOF |
| 19614 | cat confdefs.h >>conftest.$ac_ext |
| 19615 | cat >>conftest.$ac_ext <<_ACEOF |
| 19616 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19617 | |
| 19618 | #include "confdefs.h" |
| 19619 | #include <netdb.h> |
| 19620 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19621 | int |
| 19622 | main () |
| 19623 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19624 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19625 | ; |
| 19626 | return 0; |
| 19627 | } |
| 19628 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19629 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19630 | if { (ac_try="$ac_link" |
| 19631 | case "(($ac_try" in |
| 19632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19633 | *) ac_try_echo=$ac_try;; |
| 19634 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19636 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19637 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19638 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19639 | rm -f conftest.er1 |
| 19640 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19642 | (exit $ac_status); } && { |
| 19643 | test -z "$ac_c_werror_flag" || |
| 19644 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19645 | } && test -s conftest$ac_exeext && |
| 19646 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19647 | |
| 19648 | cat >>confdefs.h <<\_ACEOF |
| 19649 | #define HAVE_HSTRERROR 1 |
| 19650 | _ACEOF |
| 19651 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19652 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19653 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19654 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19655 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19656 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19657 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19658 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19659 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19660 | |
| 19661 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19662 | |
| 19663 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19664 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19665 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19666 | { echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 19667 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19668 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19669 | /* confdefs.h. */ |
| 19670 | _ACEOF |
| 19671 | cat confdefs.h >>conftest.$ac_ext |
| 19672 | cat >>conftest.$ac_ext <<_ACEOF |
| 19673 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19674 | |
| 19675 | #include "confdefs.h" |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 19676 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19677 | #include <sys/socket.h> |
| 19678 | #include <netinet/in.h> |
| 19679 | #include <arpa/inet.h> |
| 19680 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19681 | int |
| 19682 | main () |
| 19683 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19684 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19685 | ; |
| 19686 | return 0; |
| 19687 | } |
| 19688 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19689 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19690 | if { (ac_try="$ac_link" |
| 19691 | case "(($ac_try" in |
| 19692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19693 | *) ac_try_echo=$ac_try;; |
| 19694 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19695 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19696 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19697 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19698 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19699 | rm -f conftest.er1 |
| 19700 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19702 | (exit $ac_status); } && { |
| 19703 | test -z "$ac_c_werror_flag" || |
| 19704 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19705 | } && test -s conftest$ac_exeext && |
| 19706 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19707 | |
| 19708 | cat >>confdefs.h <<\_ACEOF |
| 19709 | #define HAVE_INET_ATON 1 |
| 19710 | _ACEOF |
| 19711 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19712 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19713 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19714 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19715 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19716 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19717 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19718 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19719 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19720 | |
| 19721 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19722 | |
| 19723 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19724 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19725 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19726 | { echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 19727 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19728 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19729 | /* confdefs.h. */ |
| 19730 | _ACEOF |
| 19731 | cat confdefs.h >>conftest.$ac_ext |
| 19732 | cat >>conftest.$ac_ext <<_ACEOF |
| 19733 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19734 | |
| 19735 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 19736 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19737 | #include <sys/socket.h> |
| 19738 | #include <netinet/in.h> |
| 19739 | #include <arpa/inet.h> |
| 19740 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19741 | int |
| 19742 | main () |
| 19743 | { |
| 19744 | void* p = inet_pton |
| 19745 | ; |
| 19746 | return 0; |
| 19747 | } |
| 19748 | _ACEOF |
| 19749 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19750 | if { (ac_try="$ac_compile" |
| 19751 | case "(($ac_try" in |
| 19752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19753 | *) ac_try_echo=$ac_try;; |
| 19754 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19756 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19757 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19758 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19759 | rm -f conftest.er1 |
| 19760 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19762 | (exit $ac_status); } && { |
| 19763 | test -z "$ac_c_werror_flag" || |
| 19764 | test ! -s conftest.err |
| 19765 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19766 | |
| 19767 | cat >>confdefs.h <<\_ACEOF |
| 19768 | #define HAVE_INET_PTON 1 |
| 19769 | _ACEOF |
| 19770 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19771 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19772 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19773 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19774 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19776 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19777 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19778 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19779 | |
| 19780 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19781 | |
| 19782 | 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] | 19783 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 19784 | # 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] | 19785 | { echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 19786 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19787 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19788 | /* confdefs.h. */ |
| 19789 | _ACEOF |
| 19790 | cat confdefs.h >>conftest.$ac_ext |
| 19791 | cat >>conftest.$ac_ext <<_ACEOF |
| 19792 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19793 | |
| 19794 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 19795 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 19796 | #ifdef HAVE_GRP_H |
| 19797 | #include <grp.h> |
| 19798 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19799 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19800 | int |
| 19801 | main () |
| 19802 | { |
| 19803 | void* p = setgroups |
| 19804 | ; |
| 19805 | return 0; |
| 19806 | } |
| 19807 | _ACEOF |
| 19808 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19809 | if { (ac_try="$ac_compile" |
| 19810 | case "(($ac_try" in |
| 19811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19812 | *) ac_try_echo=$ac_try;; |
| 19813 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19815 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19816 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19817 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19818 | rm -f conftest.er1 |
| 19819 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19821 | (exit $ac_status); } && { |
| 19822 | test -z "$ac_c_werror_flag" || |
| 19823 | test ! -s conftest.err |
| 19824 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19825 | |
| 19826 | cat >>confdefs.h <<\_ACEOF |
| 19827 | #define HAVE_SETGROUPS 1 |
| 19828 | _ACEOF |
| 19829 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19830 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19831 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19832 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19833 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19834 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19835 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19836 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19837 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19838 | |
| 19839 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19840 | |
| 19841 | 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] | 19842 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19843 | # check for openpty and forkpty |
| 19844 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19845 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19846 | for ac_func in openpty |
| 19847 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19848 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19849 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19850 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19851 | 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] | 19852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19853 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19854 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19855 | /* confdefs.h. */ |
| 19856 | _ACEOF |
| 19857 | cat confdefs.h >>conftest.$ac_ext |
| 19858 | cat >>conftest.$ac_ext <<_ACEOF |
| 19859 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19860 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19861 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19862 | #define $ac_func innocuous_$ac_func |
| 19863 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19864 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19865 | which can conflict with char $ac_func (); below. |
| 19866 | 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] | 19867 | <limits.h> exists even on freestanding compilers. */ |
| 19868 | |
| 19869 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19870 | # include <limits.h> |
| 19871 | #else |
| 19872 | # include <assert.h> |
| 19873 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19874 | |
| 19875 | #undef $ac_func |
| 19876 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19877 | /* Override any GCC internal prototype to avoid an error. |
| 19878 | Use char because int might match the return type of a GCC |
| 19879 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19880 | #ifdef __cplusplus |
| 19881 | extern "C" |
| 19882 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19883 | char $ac_func (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19884 | /* The GNU C library defines this for functions which it implements |
| 19885 | to always fail with ENOSYS. Some functions are actually named |
| 19886 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19887 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19888 | choke me |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19889 | #endif |
| 19890 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19891 | int |
| 19892 | main () |
| 19893 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19894 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19895 | ; |
| 19896 | return 0; |
| 19897 | } |
| 19898 | _ACEOF |
| 19899 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19900 | if { (ac_try="$ac_link" |
| 19901 | case "(($ac_try" in |
| 19902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19903 | *) ac_try_echo=$ac_try;; |
| 19904 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19906 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19907 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19908 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19909 | rm -f conftest.er1 |
| 19910 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19912 | (exit $ac_status); } && { |
| 19913 | test -z "$ac_c_werror_flag" || |
| 19914 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19915 | } && test -s conftest$ac_exeext && |
| 19916 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19917 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19918 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19919 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19920 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19921 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19922 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19923 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19924 | |
| 19925 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19926 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19927 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19928 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19929 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19930 | echo "${ECHO_T}$ac_res" >&6; } |
| 19931 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19932 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19933 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19934 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19935 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19936 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19937 | { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 19938 | 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] | 19939 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19941 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19942 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19943 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19944 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19945 | /* confdefs.h. */ |
| 19946 | _ACEOF |
| 19947 | cat confdefs.h >>conftest.$ac_ext |
| 19948 | cat >>conftest.$ac_ext <<_ACEOF |
| 19949 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19950 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19951 | /* Override any GCC internal prototype to avoid an error. |
| 19952 | Use char because int might match the return type of a GCC |
| 19953 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19954 | #ifdef __cplusplus |
| 19955 | extern "C" |
| 19956 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19957 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19958 | int |
| 19959 | main () |
| 19960 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19961 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19962 | ; |
| 19963 | return 0; |
| 19964 | } |
| 19965 | _ACEOF |
| 19966 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19967 | if { (ac_try="$ac_link" |
| 19968 | case "(($ac_try" in |
| 19969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19970 | *) ac_try_echo=$ac_try;; |
| 19971 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19973 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19974 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19975 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19976 | rm -f conftest.er1 |
| 19977 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19979 | (exit $ac_status); } && { |
| 19980 | test -z "$ac_c_werror_flag" || |
| 19981 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19982 | } && test -s conftest$ac_exeext && |
| 19983 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19984 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19985 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19986 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19987 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19988 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19989 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19990 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19991 | |
| 19992 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19993 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19994 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19995 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19996 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 19997 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; } |
| 19998 | if test $ac_cv_lib_util_openpty = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19999 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20000 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20001 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20002 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20003 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20004 | { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5 |
| 20005 | 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] | 20006 | if test "${ac_cv_lib_bsd_openpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20008 | else |
| 20009 | ac_check_lib_save_LIBS=$LIBS |
| 20010 | LIBS="-lbsd $LIBS" |
| 20011 | cat >conftest.$ac_ext <<_ACEOF |
| 20012 | /* confdefs.h. */ |
| 20013 | _ACEOF |
| 20014 | cat confdefs.h >>conftest.$ac_ext |
| 20015 | cat >>conftest.$ac_ext <<_ACEOF |
| 20016 | /* end confdefs.h. */ |
| 20017 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20018 | /* Override any GCC internal prototype to avoid an error. |
| 20019 | Use char because int might match the return type of a GCC |
| 20020 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20021 | #ifdef __cplusplus |
| 20022 | extern "C" |
| 20023 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20024 | char openpty (); |
| 20025 | int |
| 20026 | main () |
| 20027 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20028 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20029 | ; |
| 20030 | return 0; |
| 20031 | } |
| 20032 | _ACEOF |
| 20033 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20034 | if { (ac_try="$ac_link" |
| 20035 | case "(($ac_try" in |
| 20036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20037 | *) ac_try_echo=$ac_try;; |
| 20038 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20040 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20041 | ac_status=$? |
| 20042 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20043 | rm -f conftest.er1 |
| 20044 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20046 | (exit $ac_status); } && { |
| 20047 | test -z "$ac_c_werror_flag" || |
| 20048 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20049 | } && test -s conftest$ac_exeext && |
| 20050 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20051 | ac_cv_lib_bsd_openpty=yes |
| 20052 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20053 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20054 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20055 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20056 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20057 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20058 | |
| 20059 | 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] | 20060 | conftest$ac_exeext conftest.$ac_ext |
| 20061 | LIBS=$ac_check_lib_save_LIBS |
| 20062 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20063 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5 |
| 20064 | echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; } |
| 20065 | if test $ac_cv_lib_bsd_openpty = yes; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20066 | cat >>confdefs.h <<\_ACEOF |
| 20067 | #define HAVE_OPENPTY 1 |
| 20068 | _ACEOF |
| 20069 | LIBS="$LIBS -lbsd" |
| 20070 | fi |
| 20071 | |
| 20072 | |
| 20073 | fi |
| 20074 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20075 | |
| 20076 | fi |
| 20077 | done |
| 20078 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20079 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20080 | for ac_func in forkpty |
| 20081 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20082 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20083 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20084 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20085 | 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] | 20086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20087 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20088 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20089 | /* confdefs.h. */ |
| 20090 | _ACEOF |
| 20091 | cat confdefs.h >>conftest.$ac_ext |
| 20092 | cat >>conftest.$ac_ext <<_ACEOF |
| 20093 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20094 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20095 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20096 | #define $ac_func innocuous_$ac_func |
| 20097 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20098 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20099 | which can conflict with char $ac_func (); below. |
| 20100 | 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] | 20101 | <limits.h> exists even on freestanding compilers. */ |
| 20102 | |
| 20103 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20104 | # include <limits.h> |
| 20105 | #else |
| 20106 | # include <assert.h> |
| 20107 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20108 | |
| 20109 | #undef $ac_func |
| 20110 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20111 | /* Override any GCC internal prototype to avoid an error. |
| 20112 | Use char because int might match the return type of a GCC |
| 20113 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20114 | #ifdef __cplusplus |
| 20115 | extern "C" |
| 20116 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20117 | char $ac_func (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20118 | /* The GNU C library defines this for functions which it implements |
| 20119 | to always fail with ENOSYS. Some functions are actually named |
| 20120 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20121 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20122 | choke me |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20123 | #endif |
| 20124 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20125 | int |
| 20126 | main () |
| 20127 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20128 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20129 | ; |
| 20130 | return 0; |
| 20131 | } |
| 20132 | _ACEOF |
| 20133 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20134 | if { (ac_try="$ac_link" |
| 20135 | case "(($ac_try" in |
| 20136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20137 | *) ac_try_echo=$ac_try;; |
| 20138 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20140 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20141 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20142 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20143 | rm -f conftest.er1 |
| 20144 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20146 | (exit $ac_status); } && { |
| 20147 | test -z "$ac_c_werror_flag" || |
| 20148 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20149 | } && test -s conftest$ac_exeext && |
| 20150 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20151 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20152 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20153 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20154 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20155 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20156 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20157 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20158 | |
| 20159 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20160 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20161 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20162 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20163 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20164 | echo "${ECHO_T}$ac_res" >&6; } |
| 20165 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20166 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20167 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20168 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20169 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20170 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20171 | { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 20172 | 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] | 20173 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20175 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20176 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20177 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20178 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20179 | /* confdefs.h. */ |
| 20180 | _ACEOF |
| 20181 | cat confdefs.h >>conftest.$ac_ext |
| 20182 | cat >>conftest.$ac_ext <<_ACEOF |
| 20183 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20184 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20185 | /* Override any GCC internal prototype to avoid an error. |
| 20186 | Use char because int might match the return type of a GCC |
| 20187 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20188 | #ifdef __cplusplus |
| 20189 | extern "C" |
| 20190 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20191 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20192 | int |
| 20193 | main () |
| 20194 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20195 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20196 | ; |
| 20197 | return 0; |
| 20198 | } |
| 20199 | _ACEOF |
| 20200 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20201 | if { (ac_try="$ac_link" |
| 20202 | case "(($ac_try" in |
| 20203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20204 | *) ac_try_echo=$ac_try;; |
| 20205 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20207 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20208 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20209 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20210 | rm -f conftest.er1 |
| 20211 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20213 | (exit $ac_status); } && { |
| 20214 | test -z "$ac_c_werror_flag" || |
| 20215 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20216 | } && test -s conftest$ac_exeext && |
| 20217 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20218 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20219 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20220 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20221 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20222 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20223 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20224 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20225 | |
| 20226 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20227 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20228 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20229 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20230 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 20231 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; } |
| 20232 | if test $ac_cv_lib_util_forkpty = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20233 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20234 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20235 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20236 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20237 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20238 | { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5 |
| 20239 | 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] | 20240 | if test "${ac_cv_lib_bsd_forkpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20242 | else |
| 20243 | ac_check_lib_save_LIBS=$LIBS |
| 20244 | LIBS="-lbsd $LIBS" |
| 20245 | cat >conftest.$ac_ext <<_ACEOF |
| 20246 | /* confdefs.h. */ |
| 20247 | _ACEOF |
| 20248 | cat confdefs.h >>conftest.$ac_ext |
| 20249 | cat >>conftest.$ac_ext <<_ACEOF |
| 20250 | /* end confdefs.h. */ |
| 20251 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20252 | /* Override any GCC internal prototype to avoid an error. |
| 20253 | Use char because int might match the return type of a GCC |
| 20254 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20255 | #ifdef __cplusplus |
| 20256 | extern "C" |
| 20257 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20258 | char forkpty (); |
| 20259 | int |
| 20260 | main () |
| 20261 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20262 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20263 | ; |
| 20264 | return 0; |
| 20265 | } |
| 20266 | _ACEOF |
| 20267 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20268 | if { (ac_try="$ac_link" |
| 20269 | case "(($ac_try" in |
| 20270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20271 | *) ac_try_echo=$ac_try;; |
| 20272 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20274 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20275 | ac_status=$? |
| 20276 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20277 | rm -f conftest.er1 |
| 20278 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20280 | (exit $ac_status); } && { |
| 20281 | test -z "$ac_c_werror_flag" || |
| 20282 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20283 | } && test -s conftest$ac_exeext && |
| 20284 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20285 | ac_cv_lib_bsd_forkpty=yes |
| 20286 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20287 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20288 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20289 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20290 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20291 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20292 | |
| 20293 | 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] | 20294 | conftest$ac_exeext conftest.$ac_ext |
| 20295 | LIBS=$ac_check_lib_save_LIBS |
| 20296 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20297 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5 |
| 20298 | echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; } |
| 20299 | if test $ac_cv_lib_bsd_forkpty = yes; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20300 | cat >>confdefs.h <<\_ACEOF |
| 20301 | #define HAVE_FORKPTY 1 |
| 20302 | _ACEOF |
| 20303 | LIBS="$LIBS -lbsd" |
| 20304 | fi |
| 20305 | |
| 20306 | |
| 20307 | fi |
| 20308 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20309 | |
| 20310 | fi |
| 20311 | done |
| 20312 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20313 | |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20314 | # Stuff for expat. |
| 20315 | |
| 20316 | for ac_func in memmove |
| 20317 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20318 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20319 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20320 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20321 | 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] | 20322 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20323 | else |
| 20324 | cat >conftest.$ac_ext <<_ACEOF |
| 20325 | /* confdefs.h. */ |
| 20326 | _ACEOF |
| 20327 | cat confdefs.h >>conftest.$ac_ext |
| 20328 | cat >>conftest.$ac_ext <<_ACEOF |
| 20329 | /* end confdefs.h. */ |
| 20330 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20331 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20332 | #define $ac_func innocuous_$ac_func |
| 20333 | |
| 20334 | /* System header to define __stub macros and hopefully few prototypes, |
| 20335 | which can conflict with char $ac_func (); below. |
| 20336 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20337 | <limits.h> exists even on freestanding compilers. */ |
| 20338 | |
| 20339 | #ifdef __STDC__ |
| 20340 | # include <limits.h> |
| 20341 | #else |
| 20342 | # include <assert.h> |
| 20343 | #endif |
| 20344 | |
| 20345 | #undef $ac_func |
| 20346 | |
| 20347 | /* Override any GCC internal prototype to avoid an error. |
| 20348 | Use char because int might match the return type of a GCC |
| 20349 | builtin and then its argument prototype would still apply. */ |
| 20350 | #ifdef __cplusplus |
| 20351 | extern "C" |
| 20352 | #endif |
| 20353 | char $ac_func (); |
| 20354 | /* The GNU C library defines this for functions which it implements |
| 20355 | to always fail with ENOSYS. Some functions are actually named |
| 20356 | something starting with __ and the normal name is an alias. */ |
| 20357 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 20358 | choke me |
| 20359 | #endif |
| 20360 | |
| 20361 | int |
| 20362 | main () |
| 20363 | { |
| 20364 | return $ac_func (); |
| 20365 | ; |
| 20366 | return 0; |
| 20367 | } |
| 20368 | _ACEOF |
| 20369 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20370 | if { (ac_try="$ac_link" |
| 20371 | case "(($ac_try" in |
| 20372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20373 | *) ac_try_echo=$ac_try;; |
| 20374 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20376 | (eval "$ac_link") 2>conftest.er1 |
| 20377 | ac_status=$? |
| 20378 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20379 | rm -f conftest.er1 |
| 20380 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20382 | (exit $ac_status); } && { |
| 20383 | test -z "$ac_c_werror_flag" || |
| 20384 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20385 | } && test -s conftest$ac_exeext && |
| 20386 | $as_test_x conftest$ac_exeext; then |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20387 | eval "$as_ac_var=yes" |
| 20388 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20389 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20390 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20391 | |
| 20392 | eval "$as_ac_var=no" |
| 20393 | fi |
| 20394 | |
| 20395 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 20396 | conftest$ac_exeext conftest.$ac_ext |
| 20397 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20398 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20399 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20400 | echo "${ECHO_T}$ac_res" >&6; } |
| 20401 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20402 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20403 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20404 | _ACEOF |
| 20405 | |
| 20406 | fi |
| 20407 | done |
| 20408 | |
| 20409 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20410 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20411 | |
| 20412 | |
| 20413 | |
| 20414 | |
| 20415 | |
| 20416 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20417 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 20418 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20419 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20420 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20421 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20422 | 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] | 20423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20424 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20425 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20426 | /* confdefs.h. */ |
| 20427 | _ACEOF |
| 20428 | cat confdefs.h >>conftest.$ac_ext |
| 20429 | cat >>conftest.$ac_ext <<_ACEOF |
| 20430 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20431 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20432 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20433 | #define $ac_func innocuous_$ac_func |
| 20434 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20435 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20436 | which can conflict with char $ac_func (); below. |
| 20437 | 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] | 20438 | <limits.h> exists even on freestanding compilers. */ |
| 20439 | |
| 20440 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20441 | # include <limits.h> |
| 20442 | #else |
| 20443 | # include <assert.h> |
| 20444 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20445 | |
| 20446 | #undef $ac_func |
| 20447 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20448 | /* Override any GCC internal prototype to avoid an error. |
| 20449 | Use char because int might match the return type of a GCC |
| 20450 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20451 | #ifdef __cplusplus |
| 20452 | extern "C" |
| 20453 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20454 | char $ac_func (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20455 | /* The GNU C library defines this for functions which it implements |
| 20456 | to always fail with ENOSYS. Some functions are actually named |
| 20457 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20458 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20459 | choke me |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20460 | #endif |
| 20461 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20462 | int |
| 20463 | main () |
| 20464 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20465 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20466 | ; |
| 20467 | return 0; |
| 20468 | } |
| 20469 | _ACEOF |
| 20470 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20471 | if { (ac_try="$ac_link" |
| 20472 | case "(($ac_try" in |
| 20473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20474 | *) ac_try_echo=$ac_try;; |
| 20475 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20477 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20478 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20479 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20480 | rm -f conftest.er1 |
| 20481 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20483 | (exit $ac_status); } && { |
| 20484 | test -z "$ac_c_werror_flag" || |
| 20485 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20486 | } && test -s conftest$ac_exeext && |
| 20487 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20488 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20489 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20490 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20491 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20492 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20493 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20494 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20495 | |
| 20496 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20497 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20498 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20499 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20500 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20501 | echo "${ECHO_T}$ac_res" >&6; } |
| 20502 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20503 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20504 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20505 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20506 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20507 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20508 | done |
| 20509 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20510 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20511 | |
| 20512 | |
| 20513 | |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20514 | for ac_func in dup2 getcwd strdup |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20515 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20516 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20517 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20518 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20519 | 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] | 20520 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20521 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20522 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20523 | /* confdefs.h. */ |
| 20524 | _ACEOF |
| 20525 | cat confdefs.h >>conftest.$ac_ext |
| 20526 | cat >>conftest.$ac_ext <<_ACEOF |
| 20527 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20528 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20529 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20530 | #define $ac_func innocuous_$ac_func |
| 20531 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20532 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20533 | which can conflict with char $ac_func (); below. |
| 20534 | 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] | 20535 | <limits.h> exists even on freestanding compilers. */ |
| 20536 | |
| 20537 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20538 | # include <limits.h> |
| 20539 | #else |
| 20540 | # include <assert.h> |
| 20541 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20542 | |
| 20543 | #undef $ac_func |
| 20544 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20545 | /* Override any GCC internal prototype to avoid an error. |
| 20546 | Use char because int might match the return type of a GCC |
| 20547 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20548 | #ifdef __cplusplus |
| 20549 | extern "C" |
| 20550 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20551 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20552 | /* The GNU C library defines this for functions which it implements |
| 20553 | to always fail with ENOSYS. Some functions are actually named |
| 20554 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20555 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20556 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20557 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20558 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20559 | int |
| 20560 | main () |
| 20561 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20562 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20563 | ; |
| 20564 | return 0; |
| 20565 | } |
| 20566 | _ACEOF |
| 20567 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20568 | if { (ac_try="$ac_link" |
| 20569 | case "(($ac_try" in |
| 20570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20571 | *) ac_try_echo=$ac_try;; |
| 20572 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20574 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20575 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20576 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20577 | rm -f conftest.er1 |
| 20578 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20580 | (exit $ac_status); } && { |
| 20581 | test -z "$ac_c_werror_flag" || |
| 20582 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20583 | } && test -s conftest$ac_exeext && |
| 20584 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20585 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20586 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20587 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20588 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20589 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20590 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20591 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20592 | |
| 20593 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20594 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20595 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20596 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20597 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20598 | echo "${ECHO_T}$ac_res" >&6; } |
| 20599 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20600 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20601 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20602 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20603 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20604 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20605 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20606 | *" $ac_func.$ac_objext "* ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20607 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
| 20608 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20609 | esac |
| 20610 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20611 | fi |
| 20612 | done |
| 20613 | |
| 20614 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20615 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20616 | for ac_func in getpgrp |
| 20617 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20618 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20619 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20620 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20621 | 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] | 20622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20623 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20624 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20625 | /* confdefs.h. */ |
| 20626 | _ACEOF |
| 20627 | cat confdefs.h >>conftest.$ac_ext |
| 20628 | cat >>conftest.$ac_ext <<_ACEOF |
| 20629 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20630 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20631 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20632 | #define $ac_func innocuous_$ac_func |
| 20633 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20634 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20635 | which can conflict with char $ac_func (); below. |
| 20636 | 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] | 20637 | <limits.h> exists even on freestanding compilers. */ |
| 20638 | |
| 20639 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20640 | # include <limits.h> |
| 20641 | #else |
| 20642 | # include <assert.h> |
| 20643 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20644 | |
| 20645 | #undef $ac_func |
| 20646 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20647 | /* Override any GCC internal prototype to avoid an error. |
| 20648 | Use char because int might match the return type of a GCC |
| 20649 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20650 | #ifdef __cplusplus |
| 20651 | extern "C" |
| 20652 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20653 | char $ac_func (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20654 | /* The GNU C library defines this for functions which it implements |
| 20655 | to always fail with ENOSYS. Some functions are actually named |
| 20656 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20657 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20658 | choke me |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20659 | #endif |
| 20660 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20661 | int |
| 20662 | main () |
| 20663 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20664 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20665 | ; |
| 20666 | return 0; |
| 20667 | } |
| 20668 | _ACEOF |
| 20669 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20670 | if { (ac_try="$ac_link" |
| 20671 | case "(($ac_try" in |
| 20672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20673 | *) ac_try_echo=$ac_try;; |
| 20674 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20675 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20676 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20677 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20678 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20679 | rm -f conftest.er1 |
| 20680 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20682 | (exit $ac_status); } && { |
| 20683 | test -z "$ac_c_werror_flag" || |
| 20684 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20685 | } && test -s conftest$ac_exeext && |
| 20686 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20687 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20688 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20689 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20690 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20691 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20692 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20693 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20694 | |
| 20695 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20696 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20697 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20698 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20699 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20700 | echo "${ECHO_T}$ac_res" >&6; } |
| 20701 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20702 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20703 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20704 | _ACEOF |
| 20705 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20706 | /* confdefs.h. */ |
| 20707 | _ACEOF |
| 20708 | cat confdefs.h >>conftest.$ac_ext |
| 20709 | cat >>conftest.$ac_ext <<_ACEOF |
| 20710 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20711 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20712 | int |
| 20713 | main () |
| 20714 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20715 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20716 | ; |
| 20717 | return 0; |
| 20718 | } |
| 20719 | _ACEOF |
| 20720 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20721 | if { (ac_try="$ac_compile" |
| 20722 | case "(($ac_try" in |
| 20723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20724 | *) ac_try_echo=$ac_try;; |
| 20725 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20727 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20728 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20729 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20730 | rm -f conftest.er1 |
| 20731 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20733 | (exit $ac_status); } && { |
| 20734 | test -z "$ac_c_werror_flag" || |
| 20735 | test ! -s conftest.err |
| 20736 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20737 | |
| 20738 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20739 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20740 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20741 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20742 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 20743 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20744 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20745 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20746 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20747 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20748 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20749 | |
| 20750 | 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] | 20751 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20752 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20753 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20754 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20755 | |
| 20756 | for ac_func in setpgrp |
| 20757 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20758 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20759 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20760 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20761 | 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] | 20762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20763 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20764 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20765 | /* confdefs.h. */ |
| 20766 | _ACEOF |
| 20767 | cat confdefs.h >>conftest.$ac_ext |
| 20768 | cat >>conftest.$ac_ext <<_ACEOF |
| 20769 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20770 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20771 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20772 | #define $ac_func innocuous_$ac_func |
| 20773 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20774 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20775 | which can conflict with char $ac_func (); below. |
| 20776 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20777 | <limits.h> exists even on freestanding compilers. */ |
| 20778 | |
| 20779 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20780 | # include <limits.h> |
| 20781 | #else |
| 20782 | # include <assert.h> |
| 20783 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20784 | |
| 20785 | #undef $ac_func |
| 20786 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20787 | /* Override any GCC internal prototype to avoid an error. |
| 20788 | Use char because int might match the return type of a GCC |
| 20789 | builtin and then its argument prototype would still apply. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20790 | #ifdef __cplusplus |
| 20791 | extern "C" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20792 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20793 | char $ac_func (); |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20794 | /* The GNU C library defines this for functions which it implements |
| 20795 | to always fail with ENOSYS. Some functions are actually named |
| 20796 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20797 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20798 | choke me |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20799 | #endif |
| 20800 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20801 | int |
| 20802 | main () |
| 20803 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20804 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20805 | ; |
| 20806 | return 0; |
| 20807 | } |
| 20808 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20809 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20810 | if { (ac_try="$ac_link" |
| 20811 | case "(($ac_try" in |
| 20812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20813 | *) ac_try_echo=$ac_try;; |
| 20814 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20815 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20816 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20817 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20818 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20819 | rm -f conftest.er1 |
| 20820 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20822 | (exit $ac_status); } && { |
| 20823 | test -z "$ac_c_werror_flag" || |
| 20824 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20825 | } && test -s conftest$ac_exeext && |
| 20826 | $as_test_x conftest$ac_exeext; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20827 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20828 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20829 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20830 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20831 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20832 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20833 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20834 | |
| 20835 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20836 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20837 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20838 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20839 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20840 | echo "${ECHO_T}$ac_res" >&6; } |
| 20841 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20842 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20843 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20844 | _ACEOF |
| 20845 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20846 | /* confdefs.h. */ |
| 20847 | _ACEOF |
| 20848 | cat confdefs.h >>conftest.$ac_ext |
| 20849 | cat >>conftest.$ac_ext <<_ACEOF |
| 20850 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20851 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20852 | int |
| 20853 | main () |
| 20854 | { |
| 20855 | setpgrp(0,0); |
| 20856 | ; |
| 20857 | return 0; |
| 20858 | } |
| 20859 | _ACEOF |
| 20860 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20861 | if { (ac_try="$ac_compile" |
| 20862 | case "(($ac_try" in |
| 20863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20864 | *) ac_try_echo=$ac_try;; |
| 20865 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20866 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20867 | (eval "$ac_compile") 2>conftest.er1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20868 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20869 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20870 | rm -f conftest.er1 |
| 20871 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20873 | (exit $ac_status); } && { |
| 20874 | test -z "$ac_c_werror_flag" || |
| 20875 | test ! -s conftest.err |
| 20876 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20877 | |
| 20878 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20879 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20880 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 20881 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20882 | |
| 20883 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20884 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20885 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20886 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20887 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 20888 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20889 | |
| 20890 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20891 | |
| 20892 | fi |
| 20893 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 20894 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20895 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20896 | for ac_func in gettimeofday |
| 20897 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20898 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20899 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20900 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20901 | 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] | 20902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20903 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20904 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20905 | /* confdefs.h. */ |
| 20906 | _ACEOF |
| 20907 | cat confdefs.h >>conftest.$ac_ext |
| 20908 | cat >>conftest.$ac_ext <<_ACEOF |
| 20909 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20910 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20911 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20912 | #define $ac_func innocuous_$ac_func |
| 20913 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20914 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20915 | which can conflict with char $ac_func (); below. |
| 20916 | 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] | 20917 | <limits.h> exists even on freestanding compilers. */ |
| 20918 | |
| 20919 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20920 | # include <limits.h> |
| 20921 | #else |
| 20922 | # include <assert.h> |
| 20923 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20924 | |
| 20925 | #undef $ac_func |
| 20926 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20927 | /* Override any GCC internal prototype to avoid an error. |
| 20928 | Use char because int might match the return type of a GCC |
| 20929 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20930 | #ifdef __cplusplus |
| 20931 | extern "C" |
| 20932 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20933 | char $ac_func (); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20934 | /* The GNU C library defines this for functions which it implements |
| 20935 | to always fail with ENOSYS. Some functions are actually named |
| 20936 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20937 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20938 | choke me |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20939 | #endif |
| 20940 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20941 | int |
| 20942 | main () |
| 20943 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20944 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20945 | ; |
| 20946 | return 0; |
| 20947 | } |
| 20948 | _ACEOF |
| 20949 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20950 | if { (ac_try="$ac_link" |
| 20951 | case "(($ac_try" in |
| 20952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20953 | *) ac_try_echo=$ac_try;; |
| 20954 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20956 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20957 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20958 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20959 | rm -f conftest.er1 |
| 20960 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20962 | (exit $ac_status); } && { |
| 20963 | test -z "$ac_c_werror_flag" || |
| 20964 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20965 | } && test -s conftest$ac_exeext && |
| 20966 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20967 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20968 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20969 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20970 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20971 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20972 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20973 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20974 | |
| 20975 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20976 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20977 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20978 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20979 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20980 | echo "${ECHO_T}$ac_res" >&6; } |
| 20981 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20982 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20983 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20984 | _ACEOF |
| 20985 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20986 | /* confdefs.h. */ |
| 20987 | _ACEOF |
| 20988 | cat confdefs.h >>conftest.$ac_ext |
| 20989 | cat >>conftest.$ac_ext <<_ACEOF |
| 20990 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20991 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20992 | int |
| 20993 | main () |
| 20994 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20995 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20996 | ; |
| 20997 | return 0; |
| 20998 | } |
| 20999 | _ACEOF |
| 21000 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21001 | if { (ac_try="$ac_compile" |
| 21002 | case "(($ac_try" in |
| 21003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21004 | *) ac_try_echo=$ac_try;; |
| 21005 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21007 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21008 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21009 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21010 | rm -f conftest.er1 |
| 21011 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21013 | (exit $ac_status); } && { |
| 21014 | test -z "$ac_c_werror_flag" || |
| 21015 | test ! -s conftest.err |
| 21016 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21017 | : |
| 21018 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21019 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21020 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21021 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21022 | |
| 21023 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21024 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21025 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21026 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21027 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21028 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21029 | |
| 21030 | 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] | 21031 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21032 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 21033 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21034 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21035 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21036 | { echo "$as_me:$LINENO: checking for major" >&5 |
| 21037 | echo $ECHO_N "checking for major... $ECHO_C" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21038 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21039 | /* confdefs.h. */ |
| 21040 | _ACEOF |
| 21041 | cat confdefs.h >>conftest.$ac_ext |
| 21042 | cat >>conftest.$ac_ext <<_ACEOF |
| 21043 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21044 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 21045 | #if defined(MAJOR_IN_MKDEV) |
| 21046 | #include <sys/mkdev.h> |
| 21047 | #elif defined(MAJOR_IN_SYSMACROS) |
| 21048 | #include <sys/sysmacros.h> |
| 21049 | #else |
| 21050 | #include <sys/types.h> |
| 21051 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21052 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21053 | int |
| 21054 | main () |
| 21055 | { |
| 21056 | |
| 21057 | makedev(major(0),minor(0)); |
| 21058 | |
| 21059 | ; |
| 21060 | return 0; |
| 21061 | } |
| 21062 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 21063 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21064 | if { (ac_try="$ac_link" |
| 21065 | case "(($ac_try" in |
| 21066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21067 | *) ac_try_echo=$ac_try;; |
| 21068 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21070 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21071 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21072 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21073 | rm -f conftest.er1 |
| 21074 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21076 | (exit $ac_status); } && { |
| 21077 | test -z "$ac_c_werror_flag" || |
| 21078 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21079 | } && test -s conftest$ac_exeext && |
| 21080 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21081 | |
| 21082 | |
| 21083 | cat >>confdefs.h <<\_ACEOF |
| 21084 | #define HAVE_DEVICE_MACROS 1 |
| 21085 | _ACEOF |
| 21086 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21087 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 21088 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21089 | |
| 21090 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21091 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21092 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21093 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21094 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21095 | { echo "$as_me:$LINENO: result: no" >&5 |
| 21096 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21097 | |
| 21098 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21099 | |
| 21100 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21101 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21102 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21103 | # 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] | 21104 | # for [no]getaddrinfo in netdb.h. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21105 | { echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 21106 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21107 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21108 | /* confdefs.h. */ |
| 21109 | _ACEOF |
| 21110 | cat confdefs.h >>conftest.$ac_ext |
| 21111 | cat >>conftest.$ac_ext <<_ACEOF |
| 21112 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21113 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 21114 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21115 | #include <sys/socket.h> |
| 21116 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 21117 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21118 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21119 | int |
| 21120 | main () |
| 21121 | { |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21122 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21123 | ; |
| 21124 | return 0; |
| 21125 | } |
| 21126 | _ACEOF |
| 21127 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21128 | if { (ac_try="$ac_link" |
| 21129 | case "(($ac_try" in |
| 21130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21131 | *) ac_try_echo=$ac_try;; |
| 21132 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21134 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21135 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21136 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21137 | rm -f conftest.er1 |
| 21138 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21140 | (exit $ac_status); } && { |
| 21141 | test -z "$ac_c_werror_flag" || |
| 21142 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21143 | } && test -s conftest$ac_exeext && |
| 21144 | $as_test_x conftest$ac_exeext; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21145 | have_getaddrinfo=yes |
| 21146 | else |
| 21147 | echo "$as_me: failed program was:" >&5 |
| 21148 | sed 's/^/| /' conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21149 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21150 | have_getaddrinfo=no |
| 21151 | fi |
| 21152 | |
| 21153 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 21154 | conftest$ac_exeext conftest.$ac_ext |
| 21155 | { echo "$as_me:$LINENO: result: $have_getaddrinfo" >&5 |
| 21156 | echo "${ECHO_T}$have_getaddrinfo" >&6; } |
| 21157 | if test $have_getaddrinfo = yes |
| 21158 | then |
| 21159 | { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21160 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21161 | if test "${ac_cv_buggy_getaddrinfo+set}" = set; then |
| 21162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21163 | else |
| 21164 | if test "$cross_compiling" = yes; then |
| 21165 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21166 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21167 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21168 | /* confdefs.h. */ |
| 21169 | _ACEOF |
| 21170 | cat confdefs.h >>conftest.$ac_ext |
| 21171 | cat >>conftest.$ac_ext <<_ACEOF |
| 21172 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21173 | |
| 21174 | #include <sys/types.h> |
| 21175 | #include <netdb.h> |
| 21176 | #include <string.h> |
| 21177 | #include <sys/socket.h> |
| 21178 | #include <netinet/in.h> |
| 21179 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21180 | int main() |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21181 | { |
| 21182 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 21183 | struct addrinfo hints, *ai, *aitop; |
| 21184 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 21185 | |
| 21186 | for (passive = 0; passive <= 1; passive++) { |
| 21187 | memset(&hints, 0, sizeof(hints)); |
| 21188 | hints.ai_family = AF_UNSPEC; |
| 21189 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 21190 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 21191 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21192 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 21193 | (void)gai_strerror(gaierr); |
| 21194 | goto bad; |
| 21195 | } |
| 21196 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 21197 | if (ai->ai_addr == NULL || |
| 21198 | ai->ai_addrlen == 0 || |
| 21199 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 21200 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 21201 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 21202 | goto bad; |
| 21203 | } |
| 21204 | switch (ai->ai_family) { |
| 21205 | case AF_INET: |
| 21206 | if (strcmp(strport, "54321") != 0) { |
| 21207 | goto bad; |
| 21208 | } |
| 21209 | if (passive) { |
| 21210 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 21211 | goto bad; |
| 21212 | } |
| 21213 | } else { |
| 21214 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 21215 | goto bad; |
| 21216 | } |
| 21217 | } |
| 21218 | inet4++; |
| 21219 | break; |
| 21220 | case AF_INET6: |
| 21221 | if (strcmp(strport, "54321") != 0) { |
| 21222 | goto bad; |
| 21223 | } |
| 21224 | if (passive) { |
| 21225 | if (strcmp(straddr, "::") != 0) { |
| 21226 | goto bad; |
| 21227 | } |
| 21228 | } else { |
| 21229 | if (strcmp(straddr, "::1") != 0) { |
| 21230 | goto bad; |
| 21231 | } |
| 21232 | } |
| 21233 | inet6++; |
| 21234 | break; |
| 21235 | case AF_UNSPEC: |
| 21236 | goto bad; |
| 21237 | break; |
| 21238 | default: |
| 21239 | /* another family support? */ |
| 21240 | break; |
| 21241 | } |
| 21242 | } |
| 21243 | } |
| 21244 | |
| 21245 | if (!(inet4 == 0 || inet4 == 2)) |
| 21246 | goto bad; |
| 21247 | if (!(inet6 == 0 || inet6 == 2)) |
| 21248 | goto bad; |
| 21249 | |
| 21250 | if (aitop) |
| 21251 | freeaddrinfo(aitop); |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21252 | return 0; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21253 | |
| 21254 | bad: |
| 21255 | if (aitop) |
| 21256 | freeaddrinfo(aitop); |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21257 | return 1; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21258 | } |
| 21259 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21260 | _ACEOF |
| 21261 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21262 | if { (ac_try="$ac_link" |
| 21263 | case "(($ac_try" in |
| 21264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21265 | *) ac_try_echo=$ac_try;; |
| 21266 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21267 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21268 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21269 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21271 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21272 | { (case "(($ac_try" in |
| 21273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21274 | *) ac_try_echo=$ac_try;; |
| 21275 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21277 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21278 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21280 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21281 | ac_cv_buggy_getaddrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21282 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21283 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21284 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21285 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21286 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21287 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21288 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21289 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21290 | 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] | 21291 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21292 | |
| 21293 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21294 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21295 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21296 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21297 | |
Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 21298 | if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21299 | then |
| 21300 | if test $ipv6 = yes |
| 21301 | then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21302 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 21303 | echo ' or you can specify "--disable-ipv6"'. |
| 21304 | exit 1 |
| 21305 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21306 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21307 | |
| 21308 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21309 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21310 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21311 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21312 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21313 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 21314 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21315 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21316 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 21317 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 21318 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21319 | 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] | 21320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21321 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21322 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21323 | /* confdefs.h. */ |
| 21324 | _ACEOF |
| 21325 | cat confdefs.h >>conftest.$ac_ext |
| 21326 | cat >>conftest.$ac_ext <<_ACEOF |
| 21327 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21328 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 21329 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 21330 | #define $ac_func innocuous_$ac_func |
| 21331 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21332 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21333 | which can conflict with char $ac_func (); below. |
| 21334 | 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] | 21335 | <limits.h> exists even on freestanding compilers. */ |
| 21336 | |
| 21337 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21338 | # include <limits.h> |
| 21339 | #else |
| 21340 | # include <assert.h> |
| 21341 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21342 | |
| 21343 | #undef $ac_func |
| 21344 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21345 | /* Override any GCC internal prototype to avoid an error. |
| 21346 | Use char because int might match the return type of a GCC |
| 21347 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21348 | #ifdef __cplusplus |
| 21349 | extern "C" |
| 21350 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21351 | char $ac_func (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21352 | /* The GNU C library defines this for functions which it implements |
| 21353 | to always fail with ENOSYS. Some functions are actually named |
| 21354 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21355 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21356 | choke me |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21357 | #endif |
| 21358 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21359 | int |
| 21360 | main () |
| 21361 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21362 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21363 | ; |
| 21364 | return 0; |
| 21365 | } |
| 21366 | _ACEOF |
| 21367 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21368 | if { (ac_try="$ac_link" |
| 21369 | case "(($ac_try" in |
| 21370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21371 | *) ac_try_echo=$ac_try;; |
| 21372 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21374 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21375 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21376 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21377 | rm -f conftest.er1 |
| 21378 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21380 | (exit $ac_status); } && { |
| 21381 | test -z "$ac_c_werror_flag" || |
| 21382 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21383 | } && test -s conftest$ac_exeext && |
| 21384 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21385 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21386 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21387 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21388 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21389 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21390 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21391 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21392 | |
| 21393 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21394 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21395 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21396 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 21397 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 21398 | echo "${ECHO_T}$ac_res" >&6; } |
| 21399 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21400 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21401 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21402 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21403 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21404 | fi |
| 21405 | done |
| 21406 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21407 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21408 | # checks for structures |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21409 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 21410 | 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] | 21411 | if test "${ac_cv_header_time+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21413 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21414 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21415 | /* confdefs.h. */ |
| 21416 | _ACEOF |
| 21417 | cat confdefs.h >>conftest.$ac_ext |
| 21418 | cat >>conftest.$ac_ext <<_ACEOF |
| 21419 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21420 | #include <sys/types.h> |
| 21421 | #include <sys/time.h> |
| 21422 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21423 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21424 | int |
| 21425 | main () |
| 21426 | { |
| 21427 | if ((struct tm *) 0) |
| 21428 | return 0; |
| 21429 | ; |
| 21430 | return 0; |
| 21431 | } |
| 21432 | _ACEOF |
| 21433 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21434 | if { (ac_try="$ac_compile" |
| 21435 | case "(($ac_try" in |
| 21436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21437 | *) ac_try_echo=$ac_try;; |
| 21438 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21440 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21441 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21442 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21443 | rm -f conftest.er1 |
| 21444 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21446 | (exit $ac_status); } && { |
| 21447 | test -z "$ac_c_werror_flag" || |
| 21448 | test ! -s conftest.err |
| 21449 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21450 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21451 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21452 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21453 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21454 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21455 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21456 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21457 | |
| 21458 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21459 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21460 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 21461 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21462 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21463 | |
| 21464 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21465 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21466 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21467 | |
| 21468 | fi |
| 21469 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21470 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 21471 | 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] | 21472 | if test "${ac_cv_struct_tm+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21474 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21475 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21476 | /* confdefs.h. */ |
| 21477 | _ACEOF |
| 21478 | cat confdefs.h >>conftest.$ac_ext |
| 21479 | cat >>conftest.$ac_ext <<_ACEOF |
| 21480 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21481 | #include <sys/types.h> |
| 21482 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21483 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21484 | int |
| 21485 | main () |
| 21486 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21487 | struct tm tm; |
| 21488 | int *p = &tm.tm_sec; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21489 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21490 | ; |
| 21491 | return 0; |
| 21492 | } |
| 21493 | _ACEOF |
| 21494 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21495 | if { (ac_try="$ac_compile" |
| 21496 | case "(($ac_try" in |
| 21497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21498 | *) ac_try_echo=$ac_try;; |
| 21499 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21501 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21502 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21503 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21504 | rm -f conftest.er1 |
| 21505 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21507 | (exit $ac_status); } && { |
| 21508 | test -z "$ac_c_werror_flag" || |
| 21509 | test ! -s conftest.err |
| 21510 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21511 | ac_cv_struct_tm=time.h |
| 21512 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21513 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21514 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21515 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21516 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21517 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21518 | |
| 21519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21520 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21521 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 21522 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21523 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21524 | |
| 21525 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21526 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21527 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21528 | |
| 21529 | fi |
| 21530 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21531 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 21532 | 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] | 21533 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21535 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21536 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21537 | /* confdefs.h. */ |
| 21538 | _ACEOF |
| 21539 | cat confdefs.h >>conftest.$ac_ext |
| 21540 | cat >>conftest.$ac_ext <<_ACEOF |
| 21541 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21542 | #include <sys/types.h> |
| 21543 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21544 | |
| 21545 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21546 | int |
| 21547 | main () |
| 21548 | { |
| 21549 | static struct tm ac_aggr; |
| 21550 | if (ac_aggr.tm_zone) |
| 21551 | return 0; |
| 21552 | ; |
| 21553 | return 0; |
| 21554 | } |
| 21555 | _ACEOF |
| 21556 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21557 | if { (ac_try="$ac_compile" |
| 21558 | case "(($ac_try" in |
| 21559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21560 | *) ac_try_echo=$ac_try;; |
| 21561 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21563 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21564 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21565 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21566 | rm -f conftest.er1 |
| 21567 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21569 | (exit $ac_status); } && { |
| 21570 | test -z "$ac_c_werror_flag" || |
| 21571 | test ! -s conftest.err |
| 21572 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21573 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21574 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21575 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21576 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21577 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21578 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21579 | /* confdefs.h. */ |
| 21580 | _ACEOF |
| 21581 | cat confdefs.h >>conftest.$ac_ext |
| 21582 | cat >>conftest.$ac_ext <<_ACEOF |
| 21583 | /* end confdefs.h. */ |
| 21584 | #include <sys/types.h> |
| 21585 | #include <$ac_cv_struct_tm> |
| 21586 | |
| 21587 | |
| 21588 | int |
| 21589 | main () |
| 21590 | { |
| 21591 | static struct tm ac_aggr; |
| 21592 | if (sizeof ac_aggr.tm_zone) |
| 21593 | return 0; |
| 21594 | ; |
| 21595 | return 0; |
| 21596 | } |
| 21597 | _ACEOF |
| 21598 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21599 | if { (ac_try="$ac_compile" |
| 21600 | case "(($ac_try" in |
| 21601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21602 | *) ac_try_echo=$ac_try;; |
| 21603 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21605 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21606 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21607 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21608 | rm -f conftest.er1 |
| 21609 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21611 | (exit $ac_status); } && { |
| 21612 | test -z "$ac_c_werror_flag" || |
| 21613 | test ! -s conftest.err |
| 21614 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21615 | ac_cv_member_struct_tm_tm_zone=yes |
| 21616 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21617 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21618 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21619 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21620 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21621 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21622 | |
| 21623 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21624 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21625 | |
| 21626 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21627 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21628 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 21629 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } |
| 21630 | 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] | 21631 | |
| 21632 | cat >>confdefs.h <<_ACEOF |
| 21633 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 21634 | _ACEOF |
| 21635 | |
| 21636 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21637 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 21638 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21639 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 21640 | |
| 21641 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21642 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21643 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21644 | |
| 21645 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21646 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 21647 | 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] | 21648 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21650 | else |
| 21651 | cat >conftest.$ac_ext <<_ACEOF |
| 21652 | /* confdefs.h. */ |
| 21653 | _ACEOF |
| 21654 | cat confdefs.h >>conftest.$ac_ext |
| 21655 | cat >>conftest.$ac_ext <<_ACEOF |
| 21656 | /* end confdefs.h. */ |
| 21657 | #include <time.h> |
| 21658 | |
| 21659 | int |
| 21660 | main () |
| 21661 | { |
| 21662 | #ifndef tzname |
| 21663 | (void) tzname; |
| 21664 | #endif |
| 21665 | |
| 21666 | ; |
| 21667 | return 0; |
| 21668 | } |
| 21669 | _ACEOF |
| 21670 | rm -f conftest.$ac_objext |
| 21671 | if { (ac_try="$ac_compile" |
| 21672 | case "(($ac_try" in |
| 21673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21674 | *) ac_try_echo=$ac_try;; |
| 21675 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21676 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21677 | (eval "$ac_compile") 2>conftest.er1 |
| 21678 | ac_status=$? |
| 21679 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21680 | rm -f conftest.er1 |
| 21681 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21683 | (exit $ac_status); } && { |
| 21684 | test -z "$ac_c_werror_flag" || |
| 21685 | test ! -s conftest.err |
| 21686 | } && test -s conftest.$ac_objext; then |
| 21687 | ac_cv_have_decl_tzname=yes |
| 21688 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21689 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21690 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21691 | |
| 21692 | ac_cv_have_decl_tzname=no |
| 21693 | fi |
| 21694 | |
| 21695 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21696 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21697 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 21698 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } |
| 21699 | if test $ac_cv_have_decl_tzname = yes; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21700 | |
| 21701 | cat >>confdefs.h <<_ACEOF |
| 21702 | #define HAVE_DECL_TZNAME 1 |
| 21703 | _ACEOF |
| 21704 | |
| 21705 | |
| 21706 | else |
| 21707 | cat >>confdefs.h <<_ACEOF |
| 21708 | #define HAVE_DECL_TZNAME 0 |
| 21709 | _ACEOF |
| 21710 | |
| 21711 | |
| 21712 | fi |
| 21713 | |
| 21714 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21715 | { echo "$as_me:$LINENO: checking for tzname" >&5 |
| 21716 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21717 | if test "${ac_cv_var_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21719 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21720 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21721 | /* confdefs.h. */ |
| 21722 | _ACEOF |
| 21723 | cat confdefs.h >>conftest.$ac_ext |
| 21724 | cat >>conftest.$ac_ext <<_ACEOF |
| 21725 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21726 | #include <time.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21727 | #if !HAVE_DECL_TZNAME |
| 21728 | extern char *tzname[]; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21729 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21730 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21731 | int |
| 21732 | main () |
| 21733 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21734 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21735 | ; |
| 21736 | return 0; |
| 21737 | } |
| 21738 | _ACEOF |
| 21739 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21740 | if { (ac_try="$ac_link" |
| 21741 | case "(($ac_try" in |
| 21742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21743 | *) ac_try_echo=$ac_try;; |
| 21744 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21746 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21747 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21748 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21749 | rm -f conftest.er1 |
| 21750 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21752 | (exit $ac_status); } && { |
| 21753 | test -z "$ac_c_werror_flag" || |
| 21754 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21755 | } && test -s conftest$ac_exeext && |
| 21756 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21757 | ac_cv_var_tzname=yes |
| 21758 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21759 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21760 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21761 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21762 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21763 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21764 | |
| 21765 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21766 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21767 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21768 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 21769 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21770 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21771 | |
| 21772 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21773 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21774 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21775 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21776 | fi |
| 21777 | fi |
| 21778 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21779 | { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 21780 | 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] | 21781 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21783 | else |
| 21784 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21785 | /* confdefs.h. */ |
| 21786 | _ACEOF |
| 21787 | cat confdefs.h >>conftest.$ac_ext |
| 21788 | cat >>conftest.$ac_ext <<_ACEOF |
| 21789 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21790 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21791 | int |
| 21792 | main () |
| 21793 | { |
| 21794 | static struct stat ac_aggr; |
| 21795 | if (ac_aggr.st_rdev) |
| 21796 | return 0; |
| 21797 | ; |
| 21798 | return 0; |
| 21799 | } |
| 21800 | _ACEOF |
| 21801 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21802 | if { (ac_try="$ac_compile" |
| 21803 | case "(($ac_try" in |
| 21804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21805 | *) ac_try_echo=$ac_try;; |
| 21806 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21808 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21809 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21810 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21811 | rm -f conftest.er1 |
| 21812 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21814 | (exit $ac_status); } && { |
| 21815 | test -z "$ac_c_werror_flag" || |
| 21816 | test ! -s conftest.err |
| 21817 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21818 | ac_cv_member_struct_stat_st_rdev=yes |
| 21819 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21820 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21821 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21822 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21823 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21824 | /* confdefs.h. */ |
| 21825 | _ACEOF |
| 21826 | cat confdefs.h >>conftest.$ac_ext |
| 21827 | cat >>conftest.$ac_ext <<_ACEOF |
| 21828 | /* end confdefs.h. */ |
| 21829 | $ac_includes_default |
| 21830 | int |
| 21831 | main () |
| 21832 | { |
| 21833 | static struct stat ac_aggr; |
| 21834 | if (sizeof ac_aggr.st_rdev) |
| 21835 | return 0; |
| 21836 | ; |
| 21837 | return 0; |
| 21838 | } |
| 21839 | _ACEOF |
| 21840 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21841 | if { (ac_try="$ac_compile" |
| 21842 | case "(($ac_try" in |
| 21843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21844 | *) ac_try_echo=$ac_try;; |
| 21845 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21847 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21848 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21849 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21850 | rm -f conftest.er1 |
| 21851 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21853 | (exit $ac_status); } && { |
| 21854 | test -z "$ac_c_werror_flag" || |
| 21855 | test ! -s conftest.err |
| 21856 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21857 | ac_cv_member_struct_stat_st_rdev=yes |
| 21858 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21859 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21860 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21861 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21862 | ac_cv_member_struct_stat_st_rdev=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21863 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21864 | |
| 21865 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21866 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21867 | |
| 21868 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21869 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21870 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 21871 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; } |
| 21872 | 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] | 21873 | |
| 21874 | cat >>confdefs.h <<_ACEOF |
| 21875 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 21876 | _ACEOF |
| 21877 | |
| 21878 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21879 | fi |
| 21880 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21881 | { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 21882 | 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] | 21883 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21884 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21885 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21886 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21887 | /* confdefs.h. */ |
| 21888 | _ACEOF |
| 21889 | cat confdefs.h >>conftest.$ac_ext |
| 21890 | cat >>conftest.$ac_ext <<_ACEOF |
| 21891 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21892 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21893 | int |
| 21894 | main () |
| 21895 | { |
| 21896 | static struct stat ac_aggr; |
| 21897 | if (ac_aggr.st_blksize) |
| 21898 | return 0; |
| 21899 | ; |
| 21900 | return 0; |
| 21901 | } |
| 21902 | _ACEOF |
| 21903 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21904 | if { (ac_try="$ac_compile" |
| 21905 | case "(($ac_try" in |
| 21906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21907 | *) ac_try_echo=$ac_try;; |
| 21908 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21910 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21911 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21912 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21913 | rm -f conftest.er1 |
| 21914 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21916 | (exit $ac_status); } && { |
| 21917 | test -z "$ac_c_werror_flag" || |
| 21918 | test ! -s conftest.err |
| 21919 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21920 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21921 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21922 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21923 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21924 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21925 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21926 | /* confdefs.h. */ |
| 21927 | _ACEOF |
| 21928 | cat confdefs.h >>conftest.$ac_ext |
| 21929 | cat >>conftest.$ac_ext <<_ACEOF |
| 21930 | /* end confdefs.h. */ |
| 21931 | $ac_includes_default |
| 21932 | int |
| 21933 | main () |
| 21934 | { |
| 21935 | static struct stat ac_aggr; |
| 21936 | if (sizeof ac_aggr.st_blksize) |
| 21937 | return 0; |
| 21938 | ; |
| 21939 | return 0; |
| 21940 | } |
| 21941 | _ACEOF |
| 21942 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21943 | if { (ac_try="$ac_compile" |
| 21944 | case "(($ac_try" in |
| 21945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21946 | *) ac_try_echo=$ac_try;; |
| 21947 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21949 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21950 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21951 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21952 | rm -f conftest.er1 |
| 21953 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21955 | (exit $ac_status); } && { |
| 21956 | test -z "$ac_c_werror_flag" || |
| 21957 | test ! -s conftest.err |
| 21958 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21959 | ac_cv_member_struct_stat_st_blksize=yes |
| 21960 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21961 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21962 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21963 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21964 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21965 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21966 | |
| 21967 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21968 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21969 | |
| 21970 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21971 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21972 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 21973 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; } |
| 21974 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21975 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21976 | cat >>confdefs.h <<_ACEOF |
| 21977 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 21978 | _ACEOF |
| 21979 | |
| 21980 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21981 | fi |
| 21982 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21983 | { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5 |
| 21984 | 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] | 21985 | if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21987 | else |
| 21988 | cat >conftest.$ac_ext <<_ACEOF |
| 21989 | /* confdefs.h. */ |
| 21990 | _ACEOF |
| 21991 | cat confdefs.h >>conftest.$ac_ext |
| 21992 | cat >>conftest.$ac_ext <<_ACEOF |
| 21993 | /* end confdefs.h. */ |
| 21994 | $ac_includes_default |
| 21995 | int |
| 21996 | main () |
| 21997 | { |
| 21998 | static struct stat ac_aggr; |
| 21999 | if (ac_aggr.st_flags) |
| 22000 | return 0; |
| 22001 | ; |
| 22002 | return 0; |
| 22003 | } |
| 22004 | _ACEOF |
| 22005 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22006 | if { (ac_try="$ac_compile" |
| 22007 | case "(($ac_try" in |
| 22008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22009 | *) ac_try_echo=$ac_try;; |
| 22010 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22012 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22013 | ac_status=$? |
| 22014 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22015 | rm -f conftest.er1 |
| 22016 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22018 | (exit $ac_status); } && { |
| 22019 | test -z "$ac_c_werror_flag" || |
| 22020 | test ! -s conftest.err |
| 22021 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22022 | ac_cv_member_struct_stat_st_flags=yes |
| 22023 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22024 | echo "$as_me: failed program was:" >&5 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22025 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22026 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22027 | cat >conftest.$ac_ext <<_ACEOF |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22028 | /* confdefs.h. */ |
| 22029 | _ACEOF |
| 22030 | cat confdefs.h >>conftest.$ac_ext |
| 22031 | cat >>conftest.$ac_ext <<_ACEOF |
| 22032 | /* end confdefs.h. */ |
| 22033 | $ac_includes_default |
| 22034 | int |
| 22035 | main () |
| 22036 | { |
| 22037 | static struct stat ac_aggr; |
| 22038 | if (sizeof ac_aggr.st_flags) |
| 22039 | return 0; |
| 22040 | ; |
| 22041 | return 0; |
| 22042 | } |
| 22043 | _ACEOF |
| 22044 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22045 | if { (ac_try="$ac_compile" |
| 22046 | case "(($ac_try" in |
| 22047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22048 | *) ac_try_echo=$ac_try;; |
| 22049 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22050 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22051 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22052 | ac_status=$? |
| 22053 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22054 | rm -f conftest.er1 |
| 22055 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22057 | (exit $ac_status); } && { |
| 22058 | test -z "$ac_c_werror_flag" || |
| 22059 | test ! -s conftest.err |
| 22060 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22061 | ac_cv_member_struct_stat_st_flags=yes |
| 22062 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22063 | echo "$as_me: failed program was:" >&5 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22064 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22065 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22066 | ac_cv_member_struct_stat_st_flags=no |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22067 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22068 | |
| 22069 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22070 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22071 | |
| 22072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22073 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22074 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5 |
| 22075 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; } |
| 22076 | if test $ac_cv_member_struct_stat_st_flags = yes; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22077 | |
| 22078 | cat >>confdefs.h <<_ACEOF |
| 22079 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 22080 | _ACEOF |
| 22081 | |
| 22082 | |
| 22083 | fi |
| 22084 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22085 | { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5 |
| 22086 | 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] | 22087 | if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22089 | else |
| 22090 | cat >conftest.$ac_ext <<_ACEOF |
| 22091 | /* confdefs.h. */ |
| 22092 | _ACEOF |
| 22093 | cat confdefs.h >>conftest.$ac_ext |
| 22094 | cat >>conftest.$ac_ext <<_ACEOF |
| 22095 | /* end confdefs.h. */ |
| 22096 | $ac_includes_default |
| 22097 | int |
| 22098 | main () |
| 22099 | { |
| 22100 | static struct stat ac_aggr; |
| 22101 | if (ac_aggr.st_gen) |
| 22102 | return 0; |
| 22103 | ; |
| 22104 | return 0; |
| 22105 | } |
| 22106 | _ACEOF |
| 22107 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22108 | if { (ac_try="$ac_compile" |
| 22109 | case "(($ac_try" in |
| 22110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22111 | *) ac_try_echo=$ac_try;; |
| 22112 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22114 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22115 | ac_status=$? |
| 22116 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22117 | rm -f conftest.er1 |
| 22118 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22120 | (exit $ac_status); } && { |
| 22121 | test -z "$ac_c_werror_flag" || |
| 22122 | test ! -s conftest.err |
| 22123 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22124 | ac_cv_member_struct_stat_st_gen=yes |
| 22125 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22126 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22127 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22128 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22129 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22130 | /* confdefs.h. */ |
| 22131 | _ACEOF |
| 22132 | cat confdefs.h >>conftest.$ac_ext |
| 22133 | cat >>conftest.$ac_ext <<_ACEOF |
| 22134 | /* end confdefs.h. */ |
| 22135 | $ac_includes_default |
| 22136 | int |
| 22137 | main () |
| 22138 | { |
| 22139 | static struct stat ac_aggr; |
| 22140 | if (sizeof ac_aggr.st_gen) |
| 22141 | return 0; |
| 22142 | ; |
| 22143 | return 0; |
| 22144 | } |
| 22145 | _ACEOF |
| 22146 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22147 | if { (ac_try="$ac_compile" |
| 22148 | case "(($ac_try" in |
| 22149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22150 | *) ac_try_echo=$ac_try;; |
| 22151 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22153 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22154 | ac_status=$? |
| 22155 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22156 | rm -f conftest.er1 |
| 22157 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22159 | (exit $ac_status); } && { |
| 22160 | test -z "$ac_c_werror_flag" || |
| 22161 | test ! -s conftest.err |
| 22162 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22163 | ac_cv_member_struct_stat_st_gen=yes |
| 22164 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22165 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22166 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22167 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22168 | ac_cv_member_struct_stat_st_gen=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22169 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22170 | |
| 22171 | 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] | 22172 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22173 | |
| 22174 | 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] | 22175 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22176 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5 |
| 22177 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; } |
| 22178 | 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] | 22179 | |
| 22180 | cat >>confdefs.h <<_ACEOF |
| 22181 | #define HAVE_STRUCT_STAT_ST_GEN 1 |
| 22182 | _ACEOF |
| 22183 | |
| 22184 | |
| 22185 | fi |
| 22186 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22187 | { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5 |
| 22188 | 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] | 22189 | if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22191 | else |
| 22192 | cat >conftest.$ac_ext <<_ACEOF |
| 22193 | /* confdefs.h. */ |
| 22194 | _ACEOF |
| 22195 | cat confdefs.h >>conftest.$ac_ext |
| 22196 | cat >>conftest.$ac_ext <<_ACEOF |
| 22197 | /* end confdefs.h. */ |
| 22198 | $ac_includes_default |
| 22199 | int |
| 22200 | main () |
| 22201 | { |
| 22202 | static struct stat ac_aggr; |
| 22203 | if (ac_aggr.st_birthtime) |
| 22204 | return 0; |
| 22205 | ; |
| 22206 | return 0; |
| 22207 | } |
| 22208 | _ACEOF |
| 22209 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22210 | if { (ac_try="$ac_compile" |
| 22211 | case "(($ac_try" in |
| 22212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22213 | *) ac_try_echo=$ac_try;; |
| 22214 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22216 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22217 | ac_status=$? |
| 22218 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22219 | rm -f conftest.er1 |
| 22220 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22222 | (exit $ac_status); } && { |
| 22223 | test -z "$ac_c_werror_flag" || |
| 22224 | test ! -s conftest.err |
| 22225 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22226 | ac_cv_member_struct_stat_st_birthtime=yes |
| 22227 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22228 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22229 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22230 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22231 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22232 | /* confdefs.h. */ |
| 22233 | _ACEOF |
| 22234 | cat confdefs.h >>conftest.$ac_ext |
| 22235 | cat >>conftest.$ac_ext <<_ACEOF |
| 22236 | /* end confdefs.h. */ |
| 22237 | $ac_includes_default |
| 22238 | int |
| 22239 | main () |
| 22240 | { |
| 22241 | static struct stat ac_aggr; |
| 22242 | if (sizeof ac_aggr.st_birthtime) |
| 22243 | return 0; |
| 22244 | ; |
| 22245 | return 0; |
| 22246 | } |
| 22247 | _ACEOF |
| 22248 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22249 | if { (ac_try="$ac_compile" |
| 22250 | case "(($ac_try" in |
| 22251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22252 | *) ac_try_echo=$ac_try;; |
| 22253 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22255 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22256 | ac_status=$? |
| 22257 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22258 | rm -f conftest.er1 |
| 22259 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22261 | (exit $ac_status); } && { |
| 22262 | test -z "$ac_c_werror_flag" || |
| 22263 | test ! -s conftest.err |
| 22264 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22265 | ac_cv_member_struct_stat_st_birthtime=yes |
| 22266 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22267 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22268 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22269 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22270 | ac_cv_member_struct_stat_st_birthtime=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22271 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22272 | |
| 22273 | 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] | 22274 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22275 | |
| 22276 | 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] | 22277 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22278 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5 |
| 22279 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; } |
| 22280 | 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] | 22281 | |
| 22282 | cat >>confdefs.h <<_ACEOF |
| 22283 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
| 22284 | _ACEOF |
| 22285 | |
| 22286 | |
| 22287 | fi |
| 22288 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22289 | { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 22290 | 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] | 22291 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 22293 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22294 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22295 | /* confdefs.h. */ |
| 22296 | _ACEOF |
| 22297 | cat confdefs.h >>conftest.$ac_ext |
| 22298 | cat >>conftest.$ac_ext <<_ACEOF |
| 22299 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22300 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22301 | int |
| 22302 | main () |
| 22303 | { |
| 22304 | static struct stat ac_aggr; |
| 22305 | if (ac_aggr.st_blocks) |
| 22306 | return 0; |
| 22307 | ; |
| 22308 | return 0; |
| 22309 | } |
| 22310 | _ACEOF |
| 22311 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22312 | if { (ac_try="$ac_compile" |
| 22313 | case "(($ac_try" in |
| 22314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22315 | *) ac_try_echo=$ac_try;; |
| 22316 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22318 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22319 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22320 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22321 | rm -f conftest.er1 |
| 22322 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22324 | (exit $ac_status); } && { |
| 22325 | test -z "$ac_c_werror_flag" || |
| 22326 | test ! -s conftest.err |
| 22327 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22328 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22329 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22330 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22331 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22332 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22333 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22334 | /* confdefs.h. */ |
| 22335 | _ACEOF |
| 22336 | cat confdefs.h >>conftest.$ac_ext |
| 22337 | cat >>conftest.$ac_ext <<_ACEOF |
| 22338 | /* end confdefs.h. */ |
| 22339 | $ac_includes_default |
| 22340 | int |
| 22341 | main () |
| 22342 | { |
| 22343 | static struct stat ac_aggr; |
| 22344 | if (sizeof ac_aggr.st_blocks) |
| 22345 | return 0; |
| 22346 | ; |
| 22347 | return 0; |
| 22348 | } |
| 22349 | _ACEOF |
| 22350 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22351 | if { (ac_try="$ac_compile" |
| 22352 | case "(($ac_try" in |
| 22353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22354 | *) ac_try_echo=$ac_try;; |
| 22355 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22356 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22357 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22358 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22359 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22360 | rm -f conftest.er1 |
| 22361 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22363 | (exit $ac_status); } && { |
| 22364 | test -z "$ac_c_werror_flag" || |
| 22365 | test ! -s conftest.err |
| 22366 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22367 | ac_cv_member_struct_stat_st_blocks=yes |
| 22368 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22369 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22370 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22371 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22372 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22373 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22374 | |
| 22375 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22376 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22377 | |
| 22378 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22379 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22380 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 22381 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; } |
| 22382 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22383 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22384 | cat >>confdefs.h <<_ACEOF |
| 22385 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 22386 | _ACEOF |
| 22387 | |
| 22388 | |
| 22389 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 22390 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22391 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 22392 | |
| 22393 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22394 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22395 | *" fileblocks.$ac_objext "* ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22396 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
| 22397 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22398 | esac |
| 22399 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 22400 | fi |
| 22401 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22402 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22403 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22404 | { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 22405 | 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] | 22406 | if test "${ac_cv_header_time_altzone+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22408 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22409 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22410 | /* confdefs.h. */ |
| 22411 | _ACEOF |
| 22412 | cat confdefs.h >>conftest.$ac_ext |
| 22413 | cat >>conftest.$ac_ext <<_ACEOF |
| 22414 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22415 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22416 | int |
| 22417 | main () |
| 22418 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22419 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22420 | ; |
| 22421 | return 0; |
| 22422 | } |
| 22423 | _ACEOF |
| 22424 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22425 | if { (ac_try="$ac_compile" |
| 22426 | case "(($ac_try" in |
| 22427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22428 | *) ac_try_echo=$ac_try;; |
| 22429 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22431 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22432 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22433 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22434 | rm -f conftest.er1 |
| 22435 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22437 | (exit $ac_status); } && { |
| 22438 | test -z "$ac_c_werror_flag" || |
| 22439 | test ! -s conftest.err |
| 22440 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22441 | ac_cv_header_time_altzone=yes |
| 22442 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22443 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22444 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22445 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22446 | ac_cv_header_time_altzone=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22447 | fi |
| 22448 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22449 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22450 | fi |
| 22451 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22452 | { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 22453 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22454 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22455 | |
| 22456 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22457 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22458 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22459 | |
| 22460 | fi |
| 22461 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22462 | was_it_defined=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22463 | { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 22464 | 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] | 22465 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22466 | /* confdefs.h. */ |
| 22467 | _ACEOF |
| 22468 | cat confdefs.h >>conftest.$ac_ext |
| 22469 | cat >>conftest.$ac_ext <<_ACEOF |
| 22470 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22471 | |
| 22472 | #include <sys/types.h> |
| 22473 | #include <sys/select.h> |
| 22474 | #include <sys/time.h> |
| 22475 | |
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 | ; |
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 SYS_SELECT_WITH_SYS_TIME 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 | was_it_defined=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 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 22513 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22514 | fi |
| 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: $was_it_defined" >&5 |
| 22518 | echo "${ECHO_T}$was_it_defined" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22519 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22520 | { echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 22521 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22522 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22524 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22525 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22526 | /* confdefs.h. */ |
| 22527 | _ACEOF |
| 22528 | cat confdefs.h >>conftest.$ac_ext |
| 22529 | cat >>conftest.$ac_ext <<_ACEOF |
| 22530 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22531 | |
| 22532 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22533 | int |
| 22534 | main () |
| 22535 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22536 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22537 | ; |
| 22538 | return 0; |
| 22539 | } |
| 22540 | _ACEOF |
| 22541 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22542 | if { (ac_try="$ac_compile" |
| 22543 | case "(($ac_try" in |
| 22544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22545 | *) ac_try_echo=$ac_try;; |
| 22546 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22548 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22549 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22550 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22551 | rm -f conftest.er1 |
| 22552 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22554 | (exit $ac_status); } && { |
| 22555 | test -z "$ac_c_werror_flag" || |
| 22556 | test ! -s conftest.err |
| 22557 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22558 | ac_cv_struct_addrinfo=yes |
| 22559 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22560 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22561 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22562 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22563 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22564 | fi |
| 22565 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22566 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22567 | fi |
| 22568 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22569 | { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 22570 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22571 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22572 | |
| 22573 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22574 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22575 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22576 | |
| 22577 | fi |
| 22578 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22579 | { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 22580 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22581 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22583 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22584 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22585 | /* confdefs.h. */ |
| 22586 | _ACEOF |
| 22587 | cat confdefs.h >>conftest.$ac_ext |
| 22588 | cat >>conftest.$ac_ext <<_ACEOF |
| 22589 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22590 | |
| 22591 | # include <sys/types.h> |
| 22592 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22593 | int |
| 22594 | main () |
| 22595 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22596 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22597 | ; |
| 22598 | return 0; |
| 22599 | } |
| 22600 | _ACEOF |
| 22601 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22602 | if { (ac_try="$ac_compile" |
| 22603 | case "(($ac_try" in |
| 22604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22605 | *) ac_try_echo=$ac_try;; |
| 22606 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22607 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22608 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22609 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22610 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22611 | rm -f conftest.er1 |
| 22612 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22614 | (exit $ac_status); } && { |
| 22615 | test -z "$ac_c_werror_flag" || |
| 22616 | test ! -s conftest.err |
| 22617 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22618 | ac_cv_struct_sockaddr_storage=yes |
| 22619 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22620 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22621 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22622 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22623 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22624 | fi |
| 22625 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22626 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22627 | fi |
| 22628 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22629 | { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 22630 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22631 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22632 | |
| 22633 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22634 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22635 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22636 | |
| 22637 | fi |
| 22638 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22639 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22640 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22641 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22642 | { echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 22643 | 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] | 22644 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22646 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22647 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22648 | /* confdefs.h. */ |
| 22649 | _ACEOF |
| 22650 | cat confdefs.h >>conftest.$ac_ext |
| 22651 | cat >>conftest.$ac_ext <<_ACEOF |
| 22652 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22653 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22654 | int |
| 22655 | main () |
| 22656 | { |
| 22657 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 22658 | test_array [0] = 0 |
| 22659 | |
| 22660 | ; |
| 22661 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22662 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22663 | _ACEOF |
| 22664 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22665 | if { (ac_try="$ac_compile" |
| 22666 | case "(($ac_try" in |
| 22667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22668 | *) ac_try_echo=$ac_try;; |
| 22669 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22671 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22672 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22673 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22674 | rm -f conftest.er1 |
| 22675 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22677 | (exit $ac_status); } && { |
| 22678 | test -z "$ac_c_werror_flag" || |
| 22679 | test ! -s conftest.err |
| 22680 | } && test -s conftest.$ac_objext; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22681 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22682 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22683 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22684 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22685 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22686 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22687 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22688 | |
| 22689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22690 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22691 | { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 22692 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22693 | 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] | 22694 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22695 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22696 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22697 | |
| 22698 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22699 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22700 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 22701 | 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] | 22702 | if test "${ac_cv_c_const+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22704 | else |
| 22705 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22706 | /* confdefs.h. */ |
| 22707 | _ACEOF |
| 22708 | cat confdefs.h >>conftest.$ac_ext |
| 22709 | cat >>conftest.$ac_ext <<_ACEOF |
| 22710 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22711 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22712 | int |
| 22713 | main () |
| 22714 | { |
| 22715 | /* FIXME: Include the comments suggested by Paul. */ |
| 22716 | #ifndef __cplusplus |
| 22717 | /* Ultrix mips cc rejects this. */ |
| 22718 | typedef int charset[2]; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22719 | const charset cs; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22720 | /* SunOS 4.1.1 cc rejects this. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22721 | char const *const *pcpcc; |
| 22722 | char **ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22723 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 22724 | struct point {int x, y;}; |
| 22725 | static struct point const zero = {0,0}; |
| 22726 | /* AIX XL C 1.02.0.0 rejects this. |
| 22727 | It does not let you subtract one const X* pointer from another in |
| 22728 | an arm of an if-expression whose if-part is not a constant |
| 22729 | expression */ |
| 22730 | const char *g = "string"; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22731 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22732 | /* HPUX 7.0 cc rejects these. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22733 | ++pcpcc; |
| 22734 | ppc = (char**) pcpcc; |
| 22735 | pcpcc = (char const *const *) ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22736 | { /* SCO 3.2v4 cc rejects this. */ |
| 22737 | char *t; |
| 22738 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22739 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22740 | *t++ = 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22741 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22742 | } |
| 22743 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 22744 | int x[] = {25, 17}; |
| 22745 | const int *foo = &x[0]; |
| 22746 | ++foo; |
| 22747 | } |
| 22748 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 22749 | typedef const int *iptr; |
| 22750 | iptr p = 0; |
| 22751 | ++p; |
| 22752 | } |
| 22753 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 22754 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 22755 | struct s { int j; const int *ap[3]; }; |
| 22756 | struct s *b; b->j = 5; |
| 22757 | } |
| 22758 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 22759 | const int foo = 10; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22760 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22761 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22762 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22763 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22764 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22765 | ; |
| 22766 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22767 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22768 | _ACEOF |
| 22769 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22770 | if { (ac_try="$ac_compile" |
| 22771 | case "(($ac_try" in |
| 22772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22773 | *) ac_try_echo=$ac_try;; |
| 22774 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22776 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22777 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22778 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22779 | rm -f conftest.er1 |
| 22780 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22782 | (exit $ac_status); } && { |
| 22783 | test -z "$ac_c_werror_flag" || |
| 22784 | test ! -s conftest.err |
| 22785 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22786 | ac_cv_c_const=yes |
| 22787 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22788 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22789 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22790 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22791 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22792 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22793 | |
| 22794 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22795 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22796 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 22797 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22798 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22799 | |
| 22800 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22801 | #define const |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22802 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22803 | |
| 22804 | fi |
| 22805 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22806 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22807 | works=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22808 | { echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 22809 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22810 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22811 | /* confdefs.h. */ |
| 22812 | _ACEOF |
| 22813 | cat confdefs.h >>conftest.$ac_ext |
| 22814 | cat >>conftest.$ac_ext <<_ACEOF |
| 22815 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22816 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22817 | int |
| 22818 | main () |
| 22819 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22820 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22821 | ; |
| 22822 | return 0; |
| 22823 | } |
| 22824 | _ACEOF |
| 22825 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22826 | if { (ac_try="$ac_compile" |
| 22827 | case "(($ac_try" in |
| 22828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22829 | *) ac_try_echo=$ac_try;; |
| 22830 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22832 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22833 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22834 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22835 | rm -f conftest.er1 |
| 22836 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22838 | (exit $ac_status); } && { |
| 22839 | test -z "$ac_c_werror_flag" || |
| 22840 | test ! -s conftest.err |
| 22841 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22842 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22843 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22844 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22845 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22846 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22847 | |
| 22848 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22849 | #define volatile |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22850 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22851 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22852 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22853 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22854 | |
| 22855 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22856 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 22857 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22858 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22859 | works=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22860 | { echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 22861 | 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] | 22862 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22863 | /* confdefs.h. */ |
| 22864 | _ACEOF |
| 22865 | cat confdefs.h >>conftest.$ac_ext |
| 22866 | cat >>conftest.$ac_ext <<_ACEOF |
| 22867 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 22868 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22869 | int |
| 22870 | main () |
| 22871 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22872 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22873 | ; |
| 22874 | return 0; |
| 22875 | } |
| 22876 | _ACEOF |
| 22877 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22878 | if { (ac_try="$ac_compile" |
| 22879 | case "(($ac_try" in |
| 22880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22881 | *) ac_try_echo=$ac_try;; |
| 22882 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22884 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22885 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22886 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22887 | rm -f conftest.er1 |
| 22888 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22890 | (exit $ac_status); } && { |
| 22891 | test -z "$ac_c_werror_flag" || |
| 22892 | test ! -s conftest.err |
| 22893 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22894 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 22895 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22896 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22897 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22898 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22899 | |
| 22900 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22901 | #define signed |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22902 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22903 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22904 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22905 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22906 | |
| 22907 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22908 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 22909 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22910 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22911 | have_prototypes=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22912 | { echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 22913 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22914 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22915 | /* confdefs.h. */ |
| 22916 | _ACEOF |
| 22917 | cat confdefs.h >>conftest.$ac_ext |
| 22918 | cat >>conftest.$ac_ext <<_ACEOF |
| 22919 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22920 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22921 | int |
| 22922 | main () |
| 22923 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22924 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22925 | ; |
| 22926 | return 0; |
| 22927 | } |
| 22928 | _ACEOF |
| 22929 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22930 | if { (ac_try="$ac_compile" |
| 22931 | case "(($ac_try" in |
| 22932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22933 | *) ac_try_echo=$ac_try;; |
| 22934 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22936 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22937 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22938 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22939 | rm -f conftest.er1 |
| 22940 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22942 | (exit $ac_status); } && { |
| 22943 | test -z "$ac_c_werror_flag" || |
| 22944 | test ! -s conftest.err |
| 22945 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22946 | |
| 22947 | |
| 22948 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22949 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22950 | _ACEOF |
| 22951 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22952 | have_prototypes=yes |
| 22953 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 22954 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22955 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22956 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22957 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22958 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22959 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22960 | |
| 22961 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22962 | { echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 22963 | echo "${ECHO_T}$have_prototypes" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22964 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22965 | works=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22966 | { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 22967 | 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] | 22968 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22969 | /* confdefs.h. */ |
| 22970 | _ACEOF |
| 22971 | cat confdefs.h >>conftest.$ac_ext |
| 22972 | cat >>conftest.$ac_ext <<_ACEOF |
| 22973 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22974 | |
| 22975 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 22976 | int foo(int x, ...) { |
| 22977 | va_list va; |
| 22978 | va_start(va, x); |
| 22979 | va_arg(va, int); |
| 22980 | va_arg(va, char *); |
| 22981 | va_arg(va, double); |
| 22982 | return 0; |
| 22983 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22984 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22985 | int |
| 22986 | main () |
| 22987 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 22988 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22989 | ; |
| 22990 | return 0; |
| 22991 | } |
| 22992 | _ACEOF |
| 22993 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22994 | if { (ac_try="$ac_compile" |
| 22995 | case "(($ac_try" in |
| 22996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22997 | *) ac_try_echo=$ac_try;; |
| 22998 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23000 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23001 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23002 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23003 | rm -f conftest.er1 |
| 23004 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23006 | (exit $ac_status); } && { |
| 23007 | test -z "$ac_c_werror_flag" || |
| 23008 | test ! -s conftest.err |
| 23009 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23010 | |
| 23011 | |
| 23012 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23013 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23014 | _ACEOF |
| 23015 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 23016 | works=yes |
| 23017 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 23018 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23019 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23020 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23021 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23022 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23023 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23024 | |
| 23025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23026 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 23027 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23028 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 23029 | # check for socketpair |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23030 | { echo "$as_me:$LINENO: checking for socketpair" >&5 |
| 23031 | echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 23032 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 23033 | /* confdefs.h. */ |
| 23034 | _ACEOF |
| 23035 | cat confdefs.h >>conftest.$ac_ext |
| 23036 | cat >>conftest.$ac_ext <<_ACEOF |
| 23037 | /* end confdefs.h. */ |
| 23038 | |
| 23039 | #include <sys/types.h> |
| 23040 | #include <sys/socket.h> |
| 23041 | |
| 23042 | int |
| 23043 | main () |
| 23044 | { |
| 23045 | void *x=socketpair |
| 23046 | ; |
| 23047 | return 0; |
| 23048 | } |
| 23049 | _ACEOF |
| 23050 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23051 | if { (ac_try="$ac_compile" |
| 23052 | case "(($ac_try" in |
| 23053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23054 | *) ac_try_echo=$ac_try;; |
| 23055 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23057 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 23058 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23059 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23060 | rm -f conftest.er1 |
| 23061 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23063 | (exit $ac_status); } && { |
| 23064 | test -z "$ac_c_werror_flag" || |
| 23065 | test ! -s conftest.err |
| 23066 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 23067 | |
| 23068 | cat >>confdefs.h <<\_ACEOF |
| 23069 | #define HAVE_SOCKETPAIR 1 |
| 23070 | _ACEOF |
| 23071 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23072 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23073 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 23074 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23075 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 23076 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23077 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23078 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23079 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 23080 | |
| 23081 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23082 | |
| 23083 | 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] | 23084 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 23085 | # check if sockaddr has sa_len member |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23086 | { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 23087 | 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] | 23088 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23089 | /* confdefs.h. */ |
| 23090 | _ACEOF |
| 23091 | cat confdefs.h >>conftest.$ac_ext |
| 23092 | cat >>conftest.$ac_ext <<_ACEOF |
| 23093 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 23094 | #include <sys/types.h> |
| 23095 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23096 | int |
| 23097 | main () |
| 23098 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 23099 | struct sockaddr x; |
| 23100 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23101 | ; |
| 23102 | return 0; |
| 23103 | } |
| 23104 | _ACEOF |
| 23105 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23106 | if { (ac_try="$ac_compile" |
| 23107 | case "(($ac_try" in |
| 23108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23109 | *) ac_try_echo=$ac_try;; |
| 23110 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23112 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23113 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23114 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23115 | rm -f conftest.er1 |
| 23116 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23118 | (exit $ac_status); } && { |
| 23119 | test -z "$ac_c_werror_flag" || |
| 23120 | test ! -s conftest.err |
| 23121 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23122 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23123 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23124 | |
| 23125 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 23126 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23127 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 23128 | |
| 23129 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23130 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23131 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23132 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23133 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23134 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 23135 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23136 | |
| 23137 | 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] | 23138 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 23139 | va_list_is_array=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23140 | { echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 23141 | 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] | 23142 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23143 | /* confdefs.h. */ |
| 23144 | _ACEOF |
| 23145 | cat confdefs.h >>conftest.$ac_ext |
| 23146 | cat >>conftest.$ac_ext <<_ACEOF |
| 23147 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23148 | |
| 23149 | #ifdef HAVE_STDARG_PROTOTYPES |
| 23150 | #include <stdarg.h> |
| 23151 | #else |
| 23152 | #include <varargs.h> |
| 23153 | #endif |
| 23154 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23155 | int |
| 23156 | main () |
| 23157 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23158 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23159 | ; |
| 23160 | return 0; |
| 23161 | } |
| 23162 | _ACEOF |
| 23163 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23164 | if { (ac_try="$ac_compile" |
| 23165 | case "(($ac_try" in |
| 23166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23167 | *) ac_try_echo=$ac_try;; |
| 23168 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23170 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23171 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23172 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23173 | rm -f conftest.er1 |
| 23174 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23176 | (exit $ac_status); } && { |
| 23177 | test -z "$ac_c_werror_flag" || |
| 23178 | test ! -s conftest.err |
| 23179 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23180 | : |
| 23181 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23182 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23184 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23185 | |
| 23186 | |
| 23187 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23188 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23189 | _ACEOF |
| 23190 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 23191 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 23192 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23193 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23194 | |
| 23195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23196 | { echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 23197 | echo "${ECHO_T}$va_list_is_array" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23198 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23199 | # 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] | 23200 | |
| 23201 | |
| 23202 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23203 | { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 23204 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23205 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23207 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23208 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23209 | /* confdefs.h. */ |
| 23210 | _ACEOF |
| 23211 | cat confdefs.h >>conftest.$ac_ext |
| 23212 | cat >>conftest.$ac_ext <<_ACEOF |
| 23213 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23214 | /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r. |
| 23215 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23216 | #define gethostbyname_r innocuous_gethostbyname_r |
| 23217 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23218 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23219 | which can conflict with char gethostbyname_r (); below. |
| 23220 | 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] | 23221 | <limits.h> exists even on freestanding compilers. */ |
| 23222 | |
| 23223 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23224 | # include <limits.h> |
| 23225 | #else |
| 23226 | # include <assert.h> |
| 23227 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23228 | |
| 23229 | #undef gethostbyname_r |
| 23230 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23231 | /* Override any GCC internal prototype to avoid an error. |
| 23232 | Use char because int might match the return type of a GCC |
| 23233 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23234 | #ifdef __cplusplus |
| 23235 | extern "C" |
| 23236 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23237 | char gethostbyname_r (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23238 | /* The GNU C library defines this for functions which it implements |
| 23239 | to always fail with ENOSYS. Some functions are actually named |
| 23240 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23241 | #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23242 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23243 | #endif |
| 23244 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23245 | int |
| 23246 | main () |
| 23247 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23248 | return gethostbyname_r (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23249 | ; |
| 23250 | return 0; |
| 23251 | } |
| 23252 | _ACEOF |
| 23253 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23254 | if { (ac_try="$ac_link" |
| 23255 | case "(($ac_try" in |
| 23256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23257 | *) ac_try_echo=$ac_try;; |
| 23258 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23260 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23261 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23262 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23263 | rm -f conftest.er1 |
| 23264 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23266 | (exit $ac_status); } && { |
| 23267 | test -z "$ac_c_werror_flag" || |
| 23268 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23269 | } && test -s conftest$ac_exeext && |
| 23270 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23271 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23272 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23273 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23274 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23275 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23276 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23277 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23278 | |
| 23279 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23280 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23281 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23282 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 23283 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; } |
| 23284 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23285 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23286 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23287 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23288 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23289 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23290 | { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 23291 | 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] | 23292 | OLD_CFLAGS=$CFLAGS |
| 23293 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23294 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23295 | /* confdefs.h. */ |
| 23296 | _ACEOF |
| 23297 | cat confdefs.h >>conftest.$ac_ext |
| 23298 | cat >>conftest.$ac_ext <<_ACEOF |
| 23299 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23300 | |
| 23301 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23302 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23303 | int |
| 23304 | main () |
| 23305 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23306 | |
| 23307 | char *name; |
| 23308 | struct hostent *he, *res; |
| 23309 | char buffer[2048]; |
| 23310 | int buflen = 2048; |
| 23311 | int h_errnop; |
| 23312 | |
| 23313 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23314 | |
| 23315 | ; |
| 23316 | return 0; |
| 23317 | } |
| 23318 | _ACEOF |
| 23319 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23320 | if { (ac_try="$ac_compile" |
| 23321 | case "(($ac_try" in |
| 23322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23323 | *) ac_try_echo=$ac_try;; |
| 23324 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23326 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23327 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23328 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23329 | rm -f conftest.er1 |
| 23330 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23332 | (exit $ac_status); } && { |
| 23333 | test -z "$ac_c_werror_flag" || |
| 23334 | test ! -s conftest.err |
| 23335 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23336 | |
| 23337 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23338 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23339 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23340 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23341 | |
| 23342 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23343 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23344 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23345 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23346 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23347 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23348 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23349 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23350 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23351 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23352 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23353 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23354 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23355 | echo "${ECHO_T}no" >&6; } |
| 23356 | { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 23357 | 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] | 23358 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23359 | /* confdefs.h. */ |
| 23360 | _ACEOF |
| 23361 | cat confdefs.h >>conftest.$ac_ext |
| 23362 | cat >>conftest.$ac_ext <<_ACEOF |
| 23363 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23364 | |
| 23365 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23366 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23367 | int |
| 23368 | main () |
| 23369 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23370 | |
| 23371 | char *name; |
| 23372 | struct hostent *he; |
| 23373 | char buffer[2048]; |
| 23374 | int buflen = 2048; |
| 23375 | int h_errnop; |
| 23376 | |
| 23377 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23378 | |
| 23379 | ; |
| 23380 | return 0; |
| 23381 | } |
| 23382 | _ACEOF |
| 23383 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23384 | if { (ac_try="$ac_compile" |
| 23385 | case "(($ac_try" in |
| 23386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23387 | *) ac_try_echo=$ac_try;; |
| 23388 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23390 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23391 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23392 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23393 | rm -f conftest.er1 |
| 23394 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23396 | (exit $ac_status); } && { |
| 23397 | test -z "$ac_c_werror_flag" || |
| 23398 | test ! -s conftest.err |
| 23399 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23400 | |
| 23401 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23402 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23403 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23404 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23405 | |
| 23406 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23407 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23408 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23409 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23410 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23411 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23412 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23413 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23414 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23415 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23416 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23417 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23418 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23419 | echo "${ECHO_T}no" >&6; } |
| 23420 | { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 23421 | 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] | 23422 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23423 | /* confdefs.h. */ |
| 23424 | _ACEOF |
| 23425 | cat confdefs.h >>conftest.$ac_ext |
| 23426 | cat >>conftest.$ac_ext <<_ACEOF |
| 23427 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23428 | |
| 23429 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23430 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23431 | int |
| 23432 | main () |
| 23433 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23434 | |
| 23435 | char *name; |
| 23436 | struct hostent *he; |
| 23437 | struct hostent_data data; |
| 23438 | |
| 23439 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23440 | |
| 23441 | ; |
| 23442 | return 0; |
| 23443 | } |
| 23444 | _ACEOF |
| 23445 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23446 | if { (ac_try="$ac_compile" |
| 23447 | case "(($ac_try" in |
| 23448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23449 | *) ac_try_echo=$ac_try;; |
| 23450 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23452 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23453 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23454 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23455 | rm -f conftest.er1 |
| 23456 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23458 | (exit $ac_status); } && { |
| 23459 | test -z "$ac_c_werror_flag" || |
| 23460 | test ! -s conftest.err |
| 23461 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23462 | |
| 23463 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23464 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23465 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23466 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23467 | |
| 23468 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23469 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23470 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23471 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23472 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23473 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23474 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23475 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23476 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23477 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23478 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23479 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23480 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23481 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23482 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23483 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23484 | |
| 23485 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23486 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23487 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23488 | |
| 23489 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23490 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23491 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23492 | |
| 23493 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23494 | CFLAGS=$OLD_CFLAGS |
| 23495 | |
| 23496 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23497 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23498 | |
| 23499 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 23500 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23501 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 23502 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 23503 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23504 | 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] | 23505 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23506 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23507 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23508 | /* confdefs.h. */ |
| 23509 | _ACEOF |
| 23510 | cat confdefs.h >>conftest.$ac_ext |
| 23511 | cat >>conftest.$ac_ext <<_ACEOF |
| 23512 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23513 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 23514 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23515 | #define $ac_func innocuous_$ac_func |
| 23516 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23517 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23518 | which can conflict with char $ac_func (); below. |
| 23519 | 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] | 23520 | <limits.h> exists even on freestanding compilers. */ |
| 23521 | |
| 23522 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23523 | # include <limits.h> |
| 23524 | #else |
| 23525 | # include <assert.h> |
| 23526 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23527 | |
| 23528 | #undef $ac_func |
| 23529 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23530 | /* Override any GCC internal prototype to avoid an error. |
| 23531 | Use char because int might match the return type of a GCC |
| 23532 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23533 | #ifdef __cplusplus |
| 23534 | extern "C" |
| 23535 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23536 | char $ac_func (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23537 | /* The GNU C library defines this for functions which it implements |
| 23538 | to always fail with ENOSYS. Some functions are actually named |
| 23539 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23540 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23541 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23542 | #endif |
| 23543 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23544 | int |
| 23545 | main () |
| 23546 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23547 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23548 | ; |
| 23549 | return 0; |
| 23550 | } |
| 23551 | _ACEOF |
| 23552 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23553 | if { (ac_try="$ac_link" |
| 23554 | case "(($ac_try" in |
| 23555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23556 | *) ac_try_echo=$ac_try;; |
| 23557 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23559 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23560 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23561 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23562 | rm -f conftest.er1 |
| 23563 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23565 | (exit $ac_status); } && { |
| 23566 | test -z "$ac_c_werror_flag" || |
| 23567 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23568 | } && test -s conftest$ac_exeext && |
| 23569 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23570 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23571 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23572 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23573 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23574 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23575 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23576 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23577 | |
| 23578 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23579 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23580 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23581 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 23582 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 23583 | echo "${ECHO_T}$ac_res" >&6; } |
| 23584 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23585 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23586 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23587 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23588 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23589 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 23590 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23591 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23592 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23593 | fi |
| 23594 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23595 | |
| 23596 | |
| 23597 | |
| 23598 | |
| 23599 | |
| 23600 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23601 | # checks for system services |
| 23602 | # (none yet) |
| 23603 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23604 | # Linux requires this for correct f.p. operations |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23605 | { echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 23606 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23607 | if test "${ac_cv_func___fpu_control+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23608 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23609 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23610 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23611 | /* confdefs.h. */ |
| 23612 | _ACEOF |
| 23613 | cat confdefs.h >>conftest.$ac_ext |
| 23614 | cat >>conftest.$ac_ext <<_ACEOF |
| 23615 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23616 | /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control. |
| 23617 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23618 | #define __fpu_control innocuous___fpu_control |
| 23619 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23620 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23621 | which can conflict with char __fpu_control (); below. |
| 23622 | 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] | 23623 | <limits.h> exists even on freestanding compilers. */ |
| 23624 | |
| 23625 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23626 | # include <limits.h> |
| 23627 | #else |
| 23628 | # include <assert.h> |
| 23629 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23630 | |
| 23631 | #undef __fpu_control |
| 23632 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23633 | /* Override any GCC internal prototype to avoid an error. |
| 23634 | Use char because int might match the return type of a GCC |
| 23635 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23636 | #ifdef __cplusplus |
| 23637 | extern "C" |
| 23638 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23639 | char __fpu_control (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23640 | /* The GNU C library defines this for functions which it implements |
| 23641 | to always fail with ENOSYS. Some functions are actually named |
| 23642 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23643 | #if defined __stub___fpu_control || defined __stub_____fpu_control |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23644 | choke me |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23645 | #endif |
| 23646 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23647 | int |
| 23648 | main () |
| 23649 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23650 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23651 | ; |
| 23652 | return 0; |
| 23653 | } |
| 23654 | _ACEOF |
| 23655 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23656 | if { (ac_try="$ac_link" |
| 23657 | case "(($ac_try" in |
| 23658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23659 | *) ac_try_echo=$ac_try;; |
| 23660 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23661 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23662 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23663 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23664 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23665 | rm -f conftest.er1 |
| 23666 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23668 | (exit $ac_status); } && { |
| 23669 | test -z "$ac_c_werror_flag" || |
| 23670 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23671 | } && test -s conftest$ac_exeext && |
| 23672 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23673 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23674 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23675 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23676 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23677 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23678 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23679 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23680 | |
| 23681 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23682 | conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23683 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23684 | { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 23685 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; } |
| 23686 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23687 | : |
| 23688 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23689 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23690 | { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 23691 | 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] | 23692 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23694 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23695 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 23696 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23697 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23698 | /* confdefs.h. */ |
| 23699 | _ACEOF |
| 23700 | cat confdefs.h >>conftest.$ac_ext |
| 23701 | cat >>conftest.$ac_ext <<_ACEOF |
| 23702 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23703 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23704 | /* Override any GCC internal prototype to avoid an error. |
| 23705 | Use char because int might match the return type of a GCC |
| 23706 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23707 | #ifdef __cplusplus |
| 23708 | extern "C" |
| 23709 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23710 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23711 | int |
| 23712 | main () |
| 23713 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23714 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23715 | ; |
| 23716 | return 0; |
| 23717 | } |
| 23718 | _ACEOF |
| 23719 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23720 | if { (ac_try="$ac_link" |
| 23721 | case "(($ac_try" in |
| 23722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23723 | *) ac_try_echo=$ac_try;; |
| 23724 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23726 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23727 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23728 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23729 | rm -f conftest.er1 |
| 23730 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23732 | (exit $ac_status); } && { |
| 23733 | test -z "$ac_c_werror_flag" || |
| 23734 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23735 | } && test -s conftest$ac_exeext && |
| 23736 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23737 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23738 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23739 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23740 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23741 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23742 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23743 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23744 | |
| 23745 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23746 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23747 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23748 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23749 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 23750 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; } |
| 23751 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23752 | cat >>confdefs.h <<_ACEOF |
| 23753 | #define HAVE_LIBIEEE 1 |
| 23754 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23755 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 23756 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23757 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23758 | fi |
| 23759 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23760 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23761 | fi |
| 23762 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23763 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23764 | # Check for --with-fpectl |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23765 | { echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 23766 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23767 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23768 | # Check whether --with-fpectl was given. |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23769 | if test "${with_fpectl+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23770 | withval=$with_fpectl; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23771 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23772 | then |
| 23773 | |
| 23774 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23775 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23776 | _ACEOF |
| 23777 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23778 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23779 | echo "${ECHO_T}yes" >&6; } |
| 23780 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 23781 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23782 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23783 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23784 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23785 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23786 | fi |
| 23787 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23788 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23789 | # check for --with-libm=... |
| 23790 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 23791 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 23792 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 23793 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 23794 | *) LIBM=-lm |
| 23795 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23796 | { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 23797 | 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] | 23798 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23799 | # Check whether --with-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 23800 | if test "${with_libm+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23801 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23802 | if test "$withval" = no |
| 23803 | then LIBM= |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23804 | { echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 23805 | echo "${ECHO_T}force LIBM empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23806 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23807 | then LIBM=$withval |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23808 | { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 23809 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6; } |
| 23810 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 23811 | 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] | 23812 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23813 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23814 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23815 | { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 23816 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23817 | fi |
| 23818 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23819 | |
| 23820 | # check for --with-libc=... |
| 23821 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23822 | { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 23823 | 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] | 23824 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23825 | # Check whether --with-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 23826 | if test "${with_libc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23827 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23828 | if test "$withval" = no |
| 23829 | then LIBC= |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23830 | { echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 23831 | echo "${ECHO_T}force LIBC empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23832 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23833 | then LIBC=$withval |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23834 | { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 23835 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6; } |
| 23836 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 23837 | 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] | 23838 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23839 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23840 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23841 | { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 23842 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23843 | fi |
| 23844 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23845 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 23846 | # ************************************************** |
| 23847 | # * Check for various properties of floating point * |
| 23848 | # ************************************************** |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23849 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 23850 | { echo "$as_me:$LINENO: checking whether C doubles are little-endian IEEE 754 binary64" >&5 |
| 23851 | echo $ECHO_N "checking whether C doubles are little-endian IEEE 754 binary64... $ECHO_C" >&6; } |
| 23852 | if test "${ac_cv_little_endian_double+set}" = set; then |
| 23853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23854 | else |
| 23855 | |
| 23856 | if test "$cross_compiling" = yes; then |
| 23857 | ac_cv_little_endian_double=no |
| 23858 | else |
| 23859 | cat >conftest.$ac_ext <<_ACEOF |
| 23860 | /* confdefs.h. */ |
| 23861 | _ACEOF |
| 23862 | cat confdefs.h >>conftest.$ac_ext |
| 23863 | cat >>conftest.$ac_ext <<_ACEOF |
| 23864 | /* end confdefs.h. */ |
| 23865 | |
| 23866 | #include <string.h> |
| 23867 | int main() { |
| 23868 | double x = 9006104071832581.0; |
| 23869 | if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) |
| 23870 | return 0; |
| 23871 | else |
| 23872 | return 1; |
| 23873 | } |
| 23874 | |
| 23875 | _ACEOF |
| 23876 | rm -f conftest$ac_exeext |
| 23877 | if { (ac_try="$ac_link" |
| 23878 | case "(($ac_try" in |
| 23879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23880 | *) ac_try_echo=$ac_try;; |
| 23881 | esac |
| 23882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23883 | (eval "$ac_link") 2>&5 |
| 23884 | ac_status=$? |
| 23885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23886 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23887 | { (case "(($ac_try" in |
| 23888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23889 | *) ac_try_echo=$ac_try;; |
| 23890 | esac |
| 23891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23892 | (eval "$ac_try") 2>&5 |
| 23893 | ac_status=$? |
| 23894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23895 | (exit $ac_status); }; }; then |
| 23896 | ac_cv_little_endian_double=yes |
| 23897 | else |
| 23898 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23899 | echo "$as_me: failed program was:" >&5 |
| 23900 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23901 | |
| 23902 | ( exit $ac_status ) |
| 23903 | ac_cv_little_endian_double=no |
| 23904 | fi |
| 23905 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23906 | fi |
| 23907 | |
| 23908 | |
| 23909 | fi |
| 23910 | |
| 23911 | { echo "$as_me:$LINENO: result: $ac_cv_little_endian_double" >&5 |
| 23912 | echo "${ECHO_T}$ac_cv_little_endian_double" >&6; } |
| 23913 | if test "$ac_cv_little_endian_double" = yes |
| 23914 | then |
| 23915 | |
| 23916 | cat >>confdefs.h <<\_ACEOF |
| 23917 | #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1 |
| 23918 | _ACEOF |
| 23919 | |
| 23920 | fi |
| 23921 | |
| 23922 | { echo "$as_me:$LINENO: checking whether C doubles are big-endian IEEE 754 binary64" >&5 |
| 23923 | echo $ECHO_N "checking whether C doubles are big-endian IEEE 754 binary64... $ECHO_C" >&6; } |
| 23924 | if test "${ac_cv_big_endian_double+set}" = set; then |
| 23925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23926 | else |
| 23927 | |
| 23928 | if test "$cross_compiling" = yes; then |
| 23929 | ac_cv_big_endian_double=no |
| 23930 | else |
| 23931 | cat >conftest.$ac_ext <<_ACEOF |
| 23932 | /* confdefs.h. */ |
| 23933 | _ACEOF |
| 23934 | cat confdefs.h >>conftest.$ac_ext |
| 23935 | cat >>conftest.$ac_ext <<_ACEOF |
| 23936 | /* end confdefs.h. */ |
| 23937 | |
| 23938 | #include <string.h> |
| 23939 | int main() { |
| 23940 | double x = 9006104071832581.0; |
| 23941 | if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) |
| 23942 | return 0; |
| 23943 | else |
| 23944 | return 1; |
| 23945 | } |
| 23946 | |
| 23947 | _ACEOF |
| 23948 | rm -f conftest$ac_exeext |
| 23949 | if { (ac_try="$ac_link" |
| 23950 | case "(($ac_try" in |
| 23951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23952 | *) ac_try_echo=$ac_try;; |
| 23953 | esac |
| 23954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23955 | (eval "$ac_link") 2>&5 |
| 23956 | ac_status=$? |
| 23957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23958 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23959 | { (case "(($ac_try" in |
| 23960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23961 | *) ac_try_echo=$ac_try;; |
| 23962 | esac |
| 23963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23964 | (eval "$ac_try") 2>&5 |
| 23965 | ac_status=$? |
| 23966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23967 | (exit $ac_status); }; }; then |
| 23968 | ac_cv_big_endian_double=yes |
| 23969 | else |
| 23970 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23971 | echo "$as_me: failed program was:" >&5 |
| 23972 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23973 | |
| 23974 | ( exit $ac_status ) |
| 23975 | ac_cv_big_endian_double=no |
| 23976 | fi |
| 23977 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23978 | fi |
| 23979 | |
| 23980 | |
| 23981 | fi |
| 23982 | |
| 23983 | { echo "$as_me:$LINENO: result: $ac_cv_big_endian_double" >&5 |
| 23984 | echo "${ECHO_T}$ac_cv_big_endian_double" >&6; } |
| 23985 | if test "$ac_cv_big_endian_double" = yes |
| 23986 | then |
| 23987 | |
| 23988 | cat >>confdefs.h <<\_ACEOF |
| 23989 | #define DOUBLE_IS_BIG_ENDIAN_IEEE754 1 |
| 23990 | _ACEOF |
| 23991 | |
| 23992 | fi |
| 23993 | |
| 23994 | # Some ARM platforms use a mixed-endian representation for doubles. |
| 23995 | # While Python doesn't currently have full support for these platforms |
| 23996 | # (see e.g., issue 1762561), we can at least make sure that float <-> string |
| 23997 | # conversions work. |
| 23998 | { echo "$as_me:$LINENO: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 |
| 23999 | echo $ECHO_N "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... $ECHO_C" >&6; } |
| 24000 | if test "${ac_cv_mixed_endian_double+set}" = set; then |
| 24001 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24002 | else |
| 24003 | |
| 24004 | if test "$cross_compiling" = yes; then |
| 24005 | ac_cv_mixed_endian_double=no |
| 24006 | else |
| 24007 | cat >conftest.$ac_ext <<_ACEOF |
| 24008 | /* confdefs.h. */ |
| 24009 | _ACEOF |
| 24010 | cat confdefs.h >>conftest.$ac_ext |
| 24011 | cat >>conftest.$ac_ext <<_ACEOF |
| 24012 | /* end confdefs.h. */ |
| 24013 | |
| 24014 | #include <string.h> |
| 24015 | int main() { |
| 24016 | double x = 9006104071832581.0; |
| 24017 | if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) |
| 24018 | return 0; |
| 24019 | else |
| 24020 | return 1; |
| 24021 | } |
| 24022 | |
| 24023 | _ACEOF |
| 24024 | rm -f conftest$ac_exeext |
| 24025 | if { (ac_try="$ac_link" |
| 24026 | case "(($ac_try" in |
| 24027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24028 | *) ac_try_echo=$ac_try;; |
| 24029 | esac |
| 24030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24031 | (eval "$ac_link") 2>&5 |
| 24032 | ac_status=$? |
| 24033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24034 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 24035 | { (case "(($ac_try" in |
| 24036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24037 | *) ac_try_echo=$ac_try;; |
| 24038 | esac |
| 24039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24040 | (eval "$ac_try") 2>&5 |
| 24041 | ac_status=$? |
| 24042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24043 | (exit $ac_status); }; }; then |
| 24044 | ac_cv_mixed_endian_double=yes |
| 24045 | else |
| 24046 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24047 | echo "$as_me: failed program was:" >&5 |
| 24048 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24049 | |
| 24050 | ( exit $ac_status ) |
| 24051 | ac_cv_mixed_endian_double=no |
| 24052 | fi |
| 24053 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 24054 | fi |
| 24055 | |
| 24056 | |
| 24057 | fi |
| 24058 | |
| 24059 | { echo "$as_me:$LINENO: result: $ac_cv_mixed_endian_double" >&5 |
| 24060 | echo "${ECHO_T}$ac_cv_mixed_endian_double" >&6; } |
| 24061 | if test "$ac_cv_mixed_endian_double" = yes |
| 24062 | then |
| 24063 | |
| 24064 | cat >>confdefs.h <<\_ACEOF |
| 24065 | #define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1 |
| 24066 | _ACEOF |
| 24067 | |
| 24068 | fi |
| 24069 | |
| 24070 | # The short float repr introduced in Python 3.1 requires the |
| 24071 | # correctly-rounded string <-> double conversion functions from |
| 24072 | # Python/dtoa.c, which in turn require that the FPU uses 53-bit |
| 24073 | # rounding; this is a problem on x86, where the x87 FPU has a default |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 24074 | # rounding precision of 64 bits. For gcc/x86, we can fix this by |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24075 | # using inline assembler to get and set the x87 FPU control word. |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 24076 | |
| 24077 | # This inline assembler syntax may also work for suncc and icc, |
| 24078 | # so we try it on all platforms. |
| 24079 | |
| 24080 | { echo "$as_me:$LINENO: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24081 | echo $ECHO_N "checking whether we can use gcc inline assembler to get and set x87 control word... $ECHO_C" >&6; } |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 24082 | cat >conftest.$ac_ext <<_ACEOF |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24083 | /* confdefs.h. */ |
| 24084 | _ACEOF |
| 24085 | cat confdefs.h >>conftest.$ac_ext |
| 24086 | cat >>conftest.$ac_ext <<_ACEOF |
| 24087 | /* end confdefs.h. */ |
| 24088 | |
| 24089 | int |
| 24090 | main () |
| 24091 | { |
| 24092 | |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 24093 | unsigned short cw; |
| 24094 | __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); |
| 24095 | __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24096 | |
| 24097 | ; |
| 24098 | return 0; |
| 24099 | } |
| 24100 | _ACEOF |
| 24101 | rm -f conftest.$ac_objext |
| 24102 | if { (ac_try="$ac_compile" |
| 24103 | case "(($ac_try" in |
| 24104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24105 | *) ac_try_echo=$ac_try;; |
| 24106 | esac |
| 24107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24108 | (eval "$ac_compile") 2>conftest.er1 |
| 24109 | ac_status=$? |
| 24110 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24111 | rm -f conftest.er1 |
| 24112 | cat conftest.err >&5 |
| 24113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24114 | (exit $ac_status); } && { |
| 24115 | test -z "$ac_c_werror_flag" || |
| 24116 | test ! -s conftest.err |
| 24117 | } && test -s conftest.$ac_objext; then |
| 24118 | have_gcc_asm_for_x87=yes |
| 24119 | else |
| 24120 | echo "$as_me: failed program was:" >&5 |
| 24121 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24122 | |
| 24123 | have_gcc_asm_for_x87=no |
| 24124 | fi |
| 24125 | |
| 24126 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 24127 | { echo "$as_me:$LINENO: result: $have_gcc_asm_for_x87" >&5 |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24128 | echo "${ECHO_T}$have_gcc_asm_for_x87" >&6; } |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 24129 | if test "$have_gcc_asm_for_x87" = yes |
| 24130 | then |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24131 | |
| 24132 | cat >>confdefs.h <<\_ACEOF |
| 24133 | #define HAVE_GCC_ASM_FOR_X87 1 |
| 24134 | _ACEOF |
| 24135 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24136 | fi |
Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 24137 | |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24138 | # Detect whether system arithmetic is subject to x87-style double |
| 24139 | # rounding issues. The result of this test has little meaning on non |
| 24140 | # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding |
| 24141 | # mode is round-to-nearest and double rounding issues are present, and |
| 24142 | # 0 otherwise. See http://bugs.python.org/issue2937 for more info. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24143 | { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5 |
| 24144 | echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; } |
Mark Dickinson | 99abd14 | 2009-10-24 13:44:16 +0000 | [diff] [blame] | 24145 | # $BASECFLAGS may affect the result |
| 24146 | ac_save_cc="$CC" |
| 24147 | CC="$CC $BASECFLAGS" |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24148 | if test "$cross_compiling" = yes; then |
| 24149 | ac_cv_x87_double_rounding=no |
| 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 | |
| 24158 | #include <stdlib.h> |
| 24159 | #include <math.h> |
| 24160 | int main() { |
| 24161 | volatile double x, y, z; |
| 24162 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ |
| 24163 | x = 0.99999999999999989; /* 1-2**-53 */ |
| 24164 | y = 1./x; |
| 24165 | if (y != 1.) |
| 24166 | exit(0); |
| 24167 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ |
| 24168 | x = 1e16; |
| 24169 | y = 2.99999; |
| 24170 | z = x + y; |
| 24171 | if (z != 1e16+4.) |
| 24172 | exit(0); |
| 24173 | /* both tests show evidence of double rounding */ |
| 24174 | exit(1); |
| 24175 | } |
| 24176 | |
| 24177 | _ACEOF |
| 24178 | rm -f conftest$ac_exeext |
| 24179 | if { (ac_try="$ac_link" |
| 24180 | case "(($ac_try" in |
| 24181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24182 | *) ac_try_echo=$ac_try;; |
| 24183 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24185 | (eval "$ac_link") 2>&5 |
| 24186 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24188 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 24189 | { (case "(($ac_try" in |
| 24190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24191 | *) ac_try_echo=$ac_try;; |
| 24192 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24194 | (eval "$ac_try") 2>&5 |
| 24195 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24197 | (exit $ac_status); }; }; then |
| 24198 | ac_cv_x87_double_rounding=no |
| 24199 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24200 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24201 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24202 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24203 | |
| 24204 | ( exit $ac_status ) |
| 24205 | ac_cv_x87_double_rounding=yes |
| 24206 | fi |
| 24207 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 24208 | fi |
| 24209 | |
| 24210 | |
Mark Dickinson | 99abd14 | 2009-10-24 13:44:16 +0000 | [diff] [blame] | 24211 | CC="$ac_save_cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24212 | { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5 |
| 24213 | echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; } |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24214 | if test "$ac_cv_x87_double_rounding" = yes |
| 24215 | then |
| 24216 | |
| 24217 | cat >>confdefs.h <<\_ACEOF |
| 24218 | #define X87_DOUBLE_ROUNDING 1 |
| 24219 | _ACEOF |
| 24220 | |
| 24221 | fi |
| 24222 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24223 | # ************************************ |
| 24224 | # * Check for mathematical functions * |
| 24225 | # ************************************ |
| 24226 | |
| 24227 | LIBS_SAVE=$LIBS |
| 24228 | LIBS="$LIBS $LIBM" |
| 24229 | |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24230 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of |
| 24231 | # -0. on some architectures. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24232 | { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5 |
| 24233 | 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] | 24234 | if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24236 | else |
| 24237 | |
| 24238 | if test "$cross_compiling" = yes; then |
| 24239 | ac_cv_tanh_preserves_zero_sign=no |
| 24240 | else |
| 24241 | cat >conftest.$ac_ext <<_ACEOF |
| 24242 | /* confdefs.h. */ |
| 24243 | _ACEOF |
| 24244 | cat confdefs.h >>conftest.$ac_ext |
| 24245 | cat >>conftest.$ac_ext <<_ACEOF |
| 24246 | /* end confdefs.h. */ |
| 24247 | |
| 24248 | #include <math.h> |
Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 24249 | #include <stdlib.h> |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24250 | int main() { |
| 24251 | /* return 0 if either negative zeros don't exist |
| 24252 | on this platform or if negative zeros exist |
| 24253 | and tanh(-0.) == -0. */ |
| 24254 | if (atan2(0., -1.) == atan2(-0., -1.) || |
| 24255 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); |
| 24256 | else exit(1); |
| 24257 | } |
| 24258 | |
| 24259 | _ACEOF |
| 24260 | rm -f conftest$ac_exeext |
| 24261 | if { (ac_try="$ac_link" |
| 24262 | case "(($ac_try" in |
| 24263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24264 | *) ac_try_echo=$ac_try;; |
| 24265 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24266 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24267 | (eval "$ac_link") 2>&5 |
| 24268 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24270 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 24271 | { (case "(($ac_try" in |
| 24272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24273 | *) ac_try_echo=$ac_try;; |
| 24274 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24276 | (eval "$ac_try") 2>&5 |
| 24277 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24279 | (exit $ac_status); }; }; then |
| 24280 | ac_cv_tanh_preserves_zero_sign=yes |
| 24281 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24282 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24283 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24284 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24285 | |
| 24286 | ( exit $ac_status ) |
| 24287 | ac_cv_tanh_preserves_zero_sign=no |
| 24288 | fi |
| 24289 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 24290 | fi |
| 24291 | |
| 24292 | |
| 24293 | fi |
| 24294 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24295 | { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5 |
| 24296 | echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; } |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24297 | if test "$ac_cv_tanh_preserves_zero_sign" = yes |
| 24298 | then |
| 24299 | |
| 24300 | cat >>confdefs.h <<\_ACEOF |
| 24301 | #define TANH_PRESERVES_ZERO_SIGN 1 |
| 24302 | _ACEOF |
| 24303 | |
| 24304 | fi |
| 24305 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24306 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 24307 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24308 | |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24309 | |
| 24310 | |
| 24311 | |
| 24312 | |
| 24313 | |
Mark Dickinson | 8e5446f | 2009-04-18 14:41:37 +0000 | [diff] [blame] | 24314 | |
Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 24315 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma |
| 24316 | do |
| 24317 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 24318 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 24319 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 24320 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 24321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24322 | else |
| 24323 | cat >conftest.$ac_ext <<_ACEOF |
| 24324 | /* confdefs.h. */ |
| 24325 | _ACEOF |
| 24326 | cat confdefs.h >>conftest.$ac_ext |
| 24327 | cat >>conftest.$ac_ext <<_ACEOF |
| 24328 | /* end confdefs.h. */ |
| 24329 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 24330 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 24331 | #define $ac_func innocuous_$ac_func |
| 24332 | |
| 24333 | /* System header to define __stub macros and hopefully few prototypes, |
| 24334 | which can conflict with char $ac_func (); below. |
| 24335 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 24336 | <limits.h> exists even on freestanding compilers. */ |
| 24337 | |
| 24338 | #ifdef __STDC__ |
| 24339 | # include <limits.h> |
| 24340 | #else |
| 24341 | # include <assert.h> |
| 24342 | #endif |
| 24343 | |
| 24344 | #undef $ac_func |
| 24345 | |
| 24346 | /* Override any GCC internal prototype to avoid an error. |
| 24347 | Use char because int might match the return type of a GCC |
| 24348 | builtin and then its argument prototype would still apply. */ |
| 24349 | #ifdef __cplusplus |
| 24350 | extern "C" |
| 24351 | #endif |
| 24352 | char $ac_func (); |
| 24353 | /* The GNU C library defines this for functions which it implements |
| 24354 | to always fail with ENOSYS. Some functions are actually named |
| 24355 | something starting with __ and the normal name is an alias. */ |
| 24356 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 24357 | choke me |
| 24358 | #endif |
| 24359 | |
| 24360 | int |
| 24361 | main () |
| 24362 | { |
| 24363 | return $ac_func (); |
| 24364 | ; |
| 24365 | return 0; |
| 24366 | } |
| 24367 | _ACEOF |
| 24368 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24369 | if { (ac_try="$ac_link" |
| 24370 | case "(($ac_try" in |
| 24371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24372 | *) ac_try_echo=$ac_try;; |
| 24373 | esac |
| 24374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24375 | (eval "$ac_link") 2>conftest.er1 |
| 24376 | ac_status=$? |
| 24377 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24378 | rm -f conftest.er1 |
| 24379 | cat conftest.err >&5 |
| 24380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24381 | (exit $ac_status); } && { |
| 24382 | test -z "$ac_c_werror_flag" || |
| 24383 | test ! -s conftest.err |
| 24384 | } && test -s conftest$ac_exeext && |
| 24385 | $as_test_x conftest$ac_exeext; then |
| 24386 | eval "$as_ac_var=yes" |
| 24387 | else |
| 24388 | echo "$as_me: failed program was:" >&5 |
| 24389 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24390 | |
| 24391 | eval "$as_ac_var=no" |
| 24392 | fi |
| 24393 | |
| 24394 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 24395 | conftest$ac_exeext conftest.$ac_ext |
| 24396 | fi |
| 24397 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 24398 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 24399 | echo "${ECHO_T}$ac_res" >&6; } |
| 24400 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 24401 | cat >>confdefs.h <<_ACEOF |
| 24402 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 24403 | _ACEOF |
| 24404 | |
| 24405 | fi |
| 24406 | done |
| 24407 | |
| 24408 | |
| 24409 | |
| 24410 | |
| 24411 | |
| 24412 | |
| 24413 | for ac_func in hypot lgamma log1p round tgamma |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24414 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24415 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 24416 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 24417 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24418 | 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] | 24419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24420 | else |
| 24421 | cat >conftest.$ac_ext <<_ACEOF |
| 24422 | /* confdefs.h. */ |
| 24423 | _ACEOF |
| 24424 | cat confdefs.h >>conftest.$ac_ext |
| 24425 | cat >>conftest.$ac_ext <<_ACEOF |
| 24426 | /* end confdefs.h. */ |
| 24427 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 24428 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 24429 | #define $ac_func innocuous_$ac_func |
| 24430 | |
| 24431 | /* System header to define __stub macros and hopefully few prototypes, |
| 24432 | which can conflict with char $ac_func (); below. |
| 24433 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 24434 | <limits.h> exists even on freestanding compilers. */ |
| 24435 | |
| 24436 | #ifdef __STDC__ |
| 24437 | # include <limits.h> |
| 24438 | #else |
| 24439 | # include <assert.h> |
| 24440 | #endif |
| 24441 | |
| 24442 | #undef $ac_func |
| 24443 | |
| 24444 | /* Override any GCC internal prototype to avoid an error. |
| 24445 | Use char because int might match the return type of a GCC |
| 24446 | builtin and then its argument prototype would still apply. */ |
| 24447 | #ifdef __cplusplus |
| 24448 | extern "C" |
| 24449 | #endif |
| 24450 | char $ac_func (); |
| 24451 | /* The GNU C library defines this for functions which it implements |
| 24452 | to always fail with ENOSYS. Some functions are actually named |
| 24453 | something starting with __ and the normal name is an alias. */ |
| 24454 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 24455 | choke me |
| 24456 | #endif |
| 24457 | |
| 24458 | int |
| 24459 | main () |
| 24460 | { |
| 24461 | return $ac_func (); |
| 24462 | ; |
| 24463 | return 0; |
| 24464 | } |
| 24465 | _ACEOF |
| 24466 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24467 | if { (ac_try="$ac_link" |
| 24468 | case "(($ac_try" in |
| 24469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24470 | *) ac_try_echo=$ac_try;; |
| 24471 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24472 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24473 | (eval "$ac_link") 2>conftest.er1 |
| 24474 | ac_status=$? |
| 24475 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24476 | rm -f conftest.er1 |
| 24477 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24479 | (exit $ac_status); } && { |
| 24480 | test -z "$ac_c_werror_flag" || |
| 24481 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24482 | } && test -s conftest$ac_exeext && |
| 24483 | $as_test_x conftest$ac_exeext; then |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24484 | eval "$as_ac_var=yes" |
| 24485 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24486 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24487 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24488 | |
| 24489 | eval "$as_ac_var=no" |
| 24490 | fi |
| 24491 | |
| 24492 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 24493 | conftest$ac_exeext conftest.$ac_ext |
| 24494 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24495 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 24496 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 24497 | echo "${ECHO_T}$ac_res" >&6; } |
| 24498 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24499 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24500 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24501 | _ACEOF |
| 24502 | |
| 24503 | fi |
| 24504 | done |
| 24505 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24506 | { echo "$as_me:$LINENO: checking whether isinf is declared" >&5 |
| 24507 | echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; } |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24508 | if test "${ac_cv_have_decl_isinf+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24510 | else |
| 24511 | cat >conftest.$ac_ext <<_ACEOF |
| 24512 | /* confdefs.h. */ |
| 24513 | _ACEOF |
| 24514 | cat confdefs.h >>conftest.$ac_ext |
| 24515 | cat >>conftest.$ac_ext <<_ACEOF |
| 24516 | /* end confdefs.h. */ |
| 24517 | #include <math.h> |
| 24518 | |
| 24519 | int |
| 24520 | main () |
| 24521 | { |
| 24522 | #ifndef isinf |
| 24523 | (void) isinf; |
| 24524 | #endif |
| 24525 | |
| 24526 | ; |
| 24527 | return 0; |
| 24528 | } |
| 24529 | _ACEOF |
| 24530 | rm -f conftest.$ac_objext |
| 24531 | if { (ac_try="$ac_compile" |
| 24532 | case "(($ac_try" in |
| 24533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24534 | *) ac_try_echo=$ac_try;; |
| 24535 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24537 | (eval "$ac_compile") 2>conftest.er1 |
| 24538 | ac_status=$? |
| 24539 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24540 | rm -f conftest.er1 |
| 24541 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24543 | (exit $ac_status); } && { |
| 24544 | test -z "$ac_c_werror_flag" || |
| 24545 | test ! -s conftest.err |
| 24546 | } && test -s conftest.$ac_objext; then |
| 24547 | ac_cv_have_decl_isinf=yes |
| 24548 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24549 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24550 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24551 | |
| 24552 | ac_cv_have_decl_isinf=no |
| 24553 | fi |
| 24554 | |
| 24555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24556 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24557 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5 |
| 24558 | echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; } |
| 24559 | if test $ac_cv_have_decl_isinf = yes; then |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24560 | |
| 24561 | cat >>confdefs.h <<_ACEOF |
| 24562 | #define HAVE_DECL_ISINF 1 |
| 24563 | _ACEOF |
| 24564 | |
| 24565 | |
| 24566 | else |
| 24567 | cat >>confdefs.h <<_ACEOF |
| 24568 | #define HAVE_DECL_ISINF 0 |
| 24569 | _ACEOF |
| 24570 | |
| 24571 | |
| 24572 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24573 | { echo "$as_me:$LINENO: checking whether isnan is declared" >&5 |
| 24574 | echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; } |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24575 | if test "${ac_cv_have_decl_isnan+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24577 | else |
| 24578 | cat >conftest.$ac_ext <<_ACEOF |
| 24579 | /* confdefs.h. */ |
| 24580 | _ACEOF |
| 24581 | cat confdefs.h >>conftest.$ac_ext |
| 24582 | cat >>conftest.$ac_ext <<_ACEOF |
| 24583 | /* end confdefs.h. */ |
| 24584 | #include <math.h> |
| 24585 | |
| 24586 | int |
| 24587 | main () |
| 24588 | { |
| 24589 | #ifndef isnan |
| 24590 | (void) isnan; |
| 24591 | #endif |
| 24592 | |
| 24593 | ; |
| 24594 | return 0; |
| 24595 | } |
| 24596 | _ACEOF |
| 24597 | rm -f conftest.$ac_objext |
| 24598 | if { (ac_try="$ac_compile" |
| 24599 | case "(($ac_try" in |
| 24600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24601 | *) ac_try_echo=$ac_try;; |
| 24602 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24604 | (eval "$ac_compile") 2>conftest.er1 |
| 24605 | ac_status=$? |
| 24606 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24607 | rm -f conftest.er1 |
| 24608 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24610 | (exit $ac_status); } && { |
| 24611 | test -z "$ac_c_werror_flag" || |
| 24612 | test ! -s conftest.err |
| 24613 | } && test -s conftest.$ac_objext; then |
| 24614 | ac_cv_have_decl_isnan=yes |
| 24615 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24616 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24617 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24618 | |
| 24619 | ac_cv_have_decl_isnan=no |
| 24620 | fi |
| 24621 | |
| 24622 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24623 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24624 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5 |
| 24625 | echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; } |
| 24626 | if test $ac_cv_have_decl_isnan = yes; then |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24627 | |
| 24628 | cat >>confdefs.h <<_ACEOF |
| 24629 | #define HAVE_DECL_ISNAN 1 |
| 24630 | _ACEOF |
| 24631 | |
| 24632 | |
| 24633 | else |
| 24634 | cat >>confdefs.h <<_ACEOF |
| 24635 | #define HAVE_DECL_ISNAN 0 |
| 24636 | _ACEOF |
| 24637 | |
| 24638 | |
| 24639 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24640 | { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5 |
| 24641 | echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; } |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24642 | if test "${ac_cv_have_decl_isfinite+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24644 | else |
| 24645 | cat >conftest.$ac_ext <<_ACEOF |
| 24646 | /* confdefs.h. */ |
| 24647 | _ACEOF |
| 24648 | cat confdefs.h >>conftest.$ac_ext |
| 24649 | cat >>conftest.$ac_ext <<_ACEOF |
| 24650 | /* end confdefs.h. */ |
| 24651 | #include <math.h> |
| 24652 | |
| 24653 | int |
| 24654 | main () |
| 24655 | { |
| 24656 | #ifndef isfinite |
| 24657 | (void) isfinite; |
| 24658 | #endif |
| 24659 | |
| 24660 | ; |
| 24661 | return 0; |
| 24662 | } |
| 24663 | _ACEOF |
| 24664 | rm -f conftest.$ac_objext |
| 24665 | if { (ac_try="$ac_compile" |
| 24666 | case "(($ac_try" in |
| 24667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24668 | *) ac_try_echo=$ac_try;; |
| 24669 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24671 | (eval "$ac_compile") 2>conftest.er1 |
| 24672 | ac_status=$? |
| 24673 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24674 | rm -f conftest.er1 |
| 24675 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24677 | (exit $ac_status); } && { |
| 24678 | test -z "$ac_c_werror_flag" || |
| 24679 | test ! -s conftest.err |
| 24680 | } && test -s conftest.$ac_objext; then |
| 24681 | ac_cv_have_decl_isfinite=yes |
| 24682 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24683 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24684 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24685 | |
| 24686 | ac_cv_have_decl_isfinite=no |
| 24687 | fi |
| 24688 | |
| 24689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24690 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24691 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5 |
| 24692 | echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; } |
| 24693 | if test $ac_cv_have_decl_isfinite = yes; then |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24694 | |
| 24695 | cat >>confdefs.h <<_ACEOF |
| 24696 | #define HAVE_DECL_ISFINITE 1 |
| 24697 | _ACEOF |
| 24698 | |
| 24699 | |
| 24700 | else |
| 24701 | cat >>confdefs.h <<_ACEOF |
| 24702 | #define HAVE_DECL_ISFINITE 0 |
| 24703 | _ACEOF |
| 24704 | |
| 24705 | |
| 24706 | fi |
| 24707 | |
| 24708 | |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24709 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 24710 | LIBS=$LIBS_SAVE |
| 24711 | |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 24712 | # For multiprocessing module, check that sem_open |
| 24713 | # actually works. For FreeBSD versions <= 7.2, |
| 24714 | # the kernel module that provides POSIX semaphores |
| 24715 | # isn't loaded by default, so an attempt to call |
| 24716 | # sem_open results in a 'Signal 12' error. |
| 24717 | { echo "$as_me:$LINENO: checking whether POSIX semaphores are enabled" >&5 |
| 24718 | echo $ECHO_N "checking whether POSIX semaphores are enabled... $ECHO_C" >&6; } |
| 24719 | if test "${ac_cv_posix_semaphores_enabled+set}" = set; then |
| 24720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24721 | else |
| 24722 | if test "$cross_compiling" = yes; then |
| 24723 | ac_cv_posix_semaphores_enabled=yes |
| 24724 | else |
| 24725 | cat >conftest.$ac_ext <<_ACEOF |
| 24726 | /* confdefs.h. */ |
| 24727 | _ACEOF |
| 24728 | cat confdefs.h >>conftest.$ac_ext |
| 24729 | cat >>conftest.$ac_ext <<_ACEOF |
| 24730 | /* end confdefs.h. */ |
| 24731 | |
| 24732 | #include <unistd.h> |
| 24733 | #include <fcntl.h> |
| 24734 | #include <stdio.h> |
| 24735 | #include <semaphore.h> |
| 24736 | #include <sys/stat.h> |
| 24737 | |
| 24738 | int main(void) { |
| 24739 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); |
| 24740 | if (a == SEM_FAILED) { |
| 24741 | perror("sem_open"); |
| 24742 | return 1; |
| 24743 | } |
| 24744 | sem_close(a); |
Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 24745 | sem_unlink("/autoconf"); |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 24746 | return 0; |
| 24747 | } |
| 24748 | |
| 24749 | _ACEOF |
| 24750 | rm -f conftest$ac_exeext |
| 24751 | if { (ac_try="$ac_link" |
| 24752 | case "(($ac_try" in |
| 24753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24754 | *) ac_try_echo=$ac_try;; |
| 24755 | esac |
| 24756 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24757 | (eval "$ac_link") 2>&5 |
| 24758 | ac_status=$? |
| 24759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24760 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 24761 | { (case "(($ac_try" in |
| 24762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24763 | *) ac_try_echo=$ac_try;; |
| 24764 | esac |
| 24765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24766 | (eval "$ac_try") 2>&5 |
| 24767 | ac_status=$? |
| 24768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24769 | (exit $ac_status); }; }; then |
| 24770 | ac_cv_posix_semaphores_enabled=yes |
| 24771 | else |
| 24772 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24773 | echo "$as_me: failed program was:" >&5 |
| 24774 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24775 | |
| 24776 | ( exit $ac_status ) |
| 24777 | ac_cv_posix_semaphores_enabled=no |
| 24778 | fi |
| 24779 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 24780 | fi |
| 24781 | |
| 24782 | |
| 24783 | |
| 24784 | fi |
| 24785 | |
| 24786 | { echo "$as_me:$LINENO: result: $ac_cv_posix_semaphores_enabled" >&5 |
| 24787 | echo "${ECHO_T}$ac_cv_posix_semaphores_enabled" >&6; } |
| 24788 | if test $ac_cv_posix_semaphores_enabled = no |
| 24789 | then |
| 24790 | |
| 24791 | cat >>confdefs.h <<\_ACEOF |
| 24792 | #define POSIX_SEMAPHORES_NOT_ENABLED 1 |
| 24793 | _ACEOF |
| 24794 | |
| 24795 | fi |
| 24796 | |
| 24797 | # Multiprocessing check for broken sem_getvalue |
| 24798 | { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5 |
| 24799 | echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; } |
| 24800 | if test "${ac_cv_broken_sem_getvalue+set}" = set; then |
| 24801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24802 | else |
| 24803 | if test "$cross_compiling" = yes; then |
| 24804 | ac_cv_broken_sem_getvalue=yes |
| 24805 | else |
| 24806 | cat >conftest.$ac_ext <<_ACEOF |
| 24807 | /* confdefs.h. */ |
| 24808 | _ACEOF |
| 24809 | cat confdefs.h >>conftest.$ac_ext |
| 24810 | cat >>conftest.$ac_ext <<_ACEOF |
| 24811 | /* end confdefs.h. */ |
| 24812 | |
| 24813 | #include <unistd.h> |
| 24814 | #include <fcntl.h> |
| 24815 | #include <stdio.h> |
| 24816 | #include <semaphore.h> |
| 24817 | #include <sys/stat.h> |
| 24818 | |
| 24819 | int main(void){ |
Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 24820 | sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0); |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 24821 | int count; |
| 24822 | int res; |
| 24823 | if(a==SEM_FAILED){ |
| 24824 | perror("sem_open"); |
| 24825 | return 1; |
| 24826 | |
| 24827 | } |
| 24828 | res = sem_getvalue(a, &count); |
| 24829 | sem_close(a); |
Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 24830 | sem_unlink("/autocftw"); |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 24831 | return res==-1 ? 1 : 0; |
| 24832 | } |
| 24833 | |
| 24834 | _ACEOF |
| 24835 | rm -f conftest$ac_exeext |
| 24836 | if { (ac_try="$ac_link" |
| 24837 | case "(($ac_try" in |
| 24838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24839 | *) ac_try_echo=$ac_try;; |
| 24840 | esac |
| 24841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24842 | (eval "$ac_link") 2>&5 |
| 24843 | ac_status=$? |
| 24844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24845 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 24846 | { (case "(($ac_try" in |
| 24847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24848 | *) ac_try_echo=$ac_try;; |
| 24849 | esac |
| 24850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24851 | (eval "$ac_try") 2>&5 |
| 24852 | ac_status=$? |
| 24853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24854 | (exit $ac_status); }; }; then |
| 24855 | ac_cv_broken_sem_getvalue=no |
| 24856 | else |
| 24857 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24858 | echo "$as_me: failed program was:" >&5 |
| 24859 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24860 | |
| 24861 | ( exit $ac_status ) |
| 24862 | ac_cv_broken_sem_getvalue=yes |
| 24863 | fi |
| 24864 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 24865 | fi |
| 24866 | |
| 24867 | |
| 24868 | |
| 24869 | fi |
| 24870 | |
| 24871 | { echo "$as_me:$LINENO: result: $ac_cv_broken_sem_getvalue" >&5 |
| 24872 | echo "${ECHO_T}$ac_cv_broken_sem_getvalue" >&6; } |
| 24873 | if test $ac_cv_broken_sem_getvalue = yes |
| 24874 | then |
| 24875 | |
| 24876 | cat >>confdefs.h <<\_ACEOF |
| 24877 | #define HAVE_BROKEN_SEM_GETVALUE 1 |
| 24878 | _ACEOF |
| 24879 | |
| 24880 | fi |
| 24881 | |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 24882 | # determine what size digit to use for Python's longs |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24883 | { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5 |
| 24884 | 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] | 24885 | # Check whether --enable-big-digits was given. |
| 24886 | if test "${enable_big_digits+set}" = set; then |
| 24887 | enableval=$enable_big_digits; case $enable_big_digits in |
| 24888 | yes) |
| 24889 | enable_big_digits=30 ;; |
| 24890 | no) |
| 24891 | enable_big_digits=15 ;; |
| 24892 | 15|30) |
| 24893 | ;; |
| 24894 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24895 | { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5 |
| 24896 | 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] | 24897 | { (exit 1); exit 1; }; } ;; |
| 24898 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24899 | { echo "$as_me:$LINENO: result: $enable_big_digits" >&5 |
| 24900 | echo "${ECHO_T}$enable_big_digits" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 24901 | |
| 24902 | cat >>confdefs.h <<_ACEOF |
| 24903 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits |
| 24904 | _ACEOF |
| 24905 | |
| 24906 | |
| 24907 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24908 | { echo "$as_me:$LINENO: result: no value specified" >&5 |
| 24909 | echo "${ECHO_T}no value specified" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 24910 | fi |
| 24911 | |
| 24912 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24913 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24914 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24915 | { echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 24916 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24917 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24919 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24920 | { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 24921 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24922 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24923 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24924 | { echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 24925 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24926 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24927 | /* confdefs.h. */ |
| 24928 | _ACEOF |
| 24929 | cat confdefs.h >>conftest.$ac_ext |
| 24930 | cat >>conftest.$ac_ext <<_ACEOF |
| 24931 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24932 | $ac_includes_default |
| 24933 | #include <wchar.h> |
| 24934 | _ACEOF |
| 24935 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24936 | if { (ac_try="$ac_compile" |
| 24937 | case "(($ac_try" in |
| 24938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24939 | *) ac_try_echo=$ac_try;; |
| 24940 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24942 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24943 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24944 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24945 | rm -f conftest.er1 |
| 24946 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24948 | (exit $ac_status); } && { |
| 24949 | test -z "$ac_c_werror_flag" || |
| 24950 | test ! -s conftest.err |
| 24951 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24952 | ac_header_compiler=yes |
| 24953 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24954 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24956 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24957 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24958 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24959 | |
| 24960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24961 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 24962 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24963 | |
| 24964 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24965 | { echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 24966 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24967 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24968 | /* confdefs.h. */ |
| 24969 | _ACEOF |
| 24970 | cat confdefs.h >>conftest.$ac_ext |
| 24971 | cat >>conftest.$ac_ext <<_ACEOF |
| 24972 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24973 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24974 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24975 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 24976 | case "(($ac_try" in |
| 24977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24978 | *) ac_try_echo=$ac_try;; |
| 24979 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24981 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24982 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24983 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24984 | rm -f conftest.er1 |
| 24985 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24987 | (exit $ac_status); } >/dev/null && { |
| 24988 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 24989 | test ! -s conftest.err |
| 24990 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24991 | ac_header_preproc=yes |
| 24992 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24993 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24995 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24996 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24997 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24998 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24999 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25000 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 25001 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25002 | |
| 25003 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25004 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 25005 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25006 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 25007 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 25008 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 |
| 25009 | 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] | 25010 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25011 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25012 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25013 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 25014 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 25015 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 25016 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 25017 | { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 |
| 25018 | echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} |
| 25019 | { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 25020 | echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 25021 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 25022 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} |
| 25023 | { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 |
| 25024 | 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] | 25025 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 25026 | ## -------------------------------------- ## |
| 25027 | ## Report this to http://bugs.python.org/ ## |
| 25028 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25029 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25030 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25031 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25032 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25033 | { echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 25034 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25035 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25037 | else |
| 25038 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25039 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25040 | { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 25041 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25042 | |
| 25043 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25044 | if test $ac_cv_header_wchar_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25045 | |
| 25046 | |
| 25047 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25048 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25049 | _ACEOF |
| 25050 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 25051 | wchar_h="yes" |
| 25052 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25053 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25054 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25055 | |
| 25056 | fi |
| 25057 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25058 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25059 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25060 | # determine wchar_t size |
| 25061 | if test "$wchar_h" = yes |
| 25062 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25063 | { echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 25064 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } |
| 25065 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 25066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25067 | else |
| 25068 | cat >conftest.$ac_ext <<_ACEOF |
| 25069 | /* confdefs.h. */ |
| 25070 | _ACEOF |
| 25071 | cat confdefs.h >>conftest.$ac_ext |
| 25072 | cat >>conftest.$ac_ext <<_ACEOF |
| 25073 | /* end confdefs.h. */ |
| 25074 | #include <wchar.h> |
| 25075 | |
| 25076 | typedef wchar_t ac__type_new_; |
| 25077 | int |
| 25078 | main () |
| 25079 | { |
| 25080 | if ((ac__type_new_ *) 0) |
| 25081 | return 0; |
| 25082 | if (sizeof (ac__type_new_)) |
| 25083 | return 0; |
| 25084 | ; |
| 25085 | return 0; |
| 25086 | } |
| 25087 | _ACEOF |
| 25088 | rm -f conftest.$ac_objext |
| 25089 | if { (ac_try="$ac_compile" |
| 25090 | case "(($ac_try" in |
| 25091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25092 | *) ac_try_echo=$ac_try;; |
| 25093 | esac |
| 25094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25095 | (eval "$ac_compile") 2>conftest.er1 |
| 25096 | ac_status=$? |
| 25097 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25098 | rm -f conftest.er1 |
| 25099 | cat conftest.err >&5 |
| 25100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25101 | (exit $ac_status); } && { |
| 25102 | test -z "$ac_c_werror_flag" || |
| 25103 | test ! -s conftest.err |
| 25104 | } && test -s conftest.$ac_objext; then |
| 25105 | ac_cv_type_wchar_t=yes |
| 25106 | else |
| 25107 | echo "$as_me: failed program was:" >&5 |
| 25108 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25109 | |
| 25110 | ac_cv_type_wchar_t=no |
| 25111 | fi |
| 25112 | |
| 25113 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25114 | fi |
| 25115 | { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 25116 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; } |
| 25117 | |
| 25118 | # 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] | 25119 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 25120 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 25121 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25122 | { echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 25123 | 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] | 25124 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25126 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25127 | if test "$cross_compiling" = yes; then |
| 25128 | # Depending upon the size, compute the lo and hi bounds. |
| 25129 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25130 | /* confdefs.h. */ |
| 25131 | _ACEOF |
| 25132 | cat confdefs.h >>conftest.$ac_ext |
| 25133 | cat >>conftest.$ac_ext <<_ACEOF |
| 25134 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25135 | #include <wchar.h> |
| 25136 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25137 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25138 | int |
| 25139 | main () |
| 25140 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25141 | 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] | 25142 | test_array [0] = 0 |
| 25143 | |
| 25144 | ; |
| 25145 | return 0; |
| 25146 | } |
| 25147 | _ACEOF |
| 25148 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25149 | if { (ac_try="$ac_compile" |
| 25150 | case "(($ac_try" in |
| 25151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25152 | *) ac_try_echo=$ac_try;; |
| 25153 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25155 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25156 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25157 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25158 | rm -f conftest.er1 |
| 25159 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25161 | (exit $ac_status); } && { |
| 25162 | test -z "$ac_c_werror_flag" || |
| 25163 | test ! -s conftest.err |
| 25164 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25165 | ac_lo=0 ac_mid=0 |
| 25166 | while :; do |
| 25167 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25168 | /* confdefs.h. */ |
| 25169 | _ACEOF |
| 25170 | cat confdefs.h >>conftest.$ac_ext |
| 25171 | cat >>conftest.$ac_ext <<_ACEOF |
| 25172 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25173 | #include <wchar.h> |
| 25174 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25175 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25176 | int |
| 25177 | main () |
| 25178 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25179 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25180 | test_array [0] = 0 |
| 25181 | |
| 25182 | ; |
| 25183 | return 0; |
| 25184 | } |
| 25185 | _ACEOF |
| 25186 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25187 | if { (ac_try="$ac_compile" |
| 25188 | case "(($ac_try" in |
| 25189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25190 | *) ac_try_echo=$ac_try;; |
| 25191 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25192 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25193 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25194 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25195 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25196 | rm -f conftest.er1 |
| 25197 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25199 | (exit $ac_status); } && { |
| 25200 | test -z "$ac_c_werror_flag" || |
| 25201 | test ! -s conftest.err |
| 25202 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25203 | ac_hi=$ac_mid; break |
| 25204 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25205 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25206 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25207 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25208 | ac_lo=`expr $ac_mid + 1` |
| 25209 | if test $ac_lo -le $ac_mid; then |
| 25210 | ac_lo= ac_hi= |
| 25211 | break |
| 25212 | fi |
| 25213 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25214 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25215 | |
| 25216 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25217 | done |
| 25218 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25219 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25220 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25221 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25222 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25223 | /* confdefs.h. */ |
| 25224 | _ACEOF |
| 25225 | cat confdefs.h >>conftest.$ac_ext |
| 25226 | cat >>conftest.$ac_ext <<_ACEOF |
| 25227 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25228 | #include <wchar.h> |
| 25229 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25230 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25231 | int |
| 25232 | main () |
| 25233 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25234 | 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] | 25235 | test_array [0] = 0 |
| 25236 | |
| 25237 | ; |
| 25238 | return 0; |
| 25239 | } |
| 25240 | _ACEOF |
| 25241 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25242 | if { (ac_try="$ac_compile" |
| 25243 | case "(($ac_try" in |
| 25244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25245 | *) ac_try_echo=$ac_try;; |
| 25246 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25248 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25249 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25250 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25251 | rm -f conftest.er1 |
| 25252 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25254 | (exit $ac_status); } && { |
| 25255 | test -z "$ac_c_werror_flag" || |
| 25256 | test ! -s conftest.err |
| 25257 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25258 | ac_hi=-1 ac_mid=-1 |
| 25259 | while :; do |
| 25260 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25261 | /* confdefs.h. */ |
| 25262 | _ACEOF |
| 25263 | cat confdefs.h >>conftest.$ac_ext |
| 25264 | cat >>conftest.$ac_ext <<_ACEOF |
| 25265 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25266 | #include <wchar.h> |
| 25267 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25268 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25269 | int |
| 25270 | main () |
| 25271 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25272 | 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] | 25273 | test_array [0] = 0 |
| 25274 | |
| 25275 | ; |
| 25276 | return 0; |
| 25277 | } |
| 25278 | _ACEOF |
| 25279 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25280 | if { (ac_try="$ac_compile" |
| 25281 | case "(($ac_try" in |
| 25282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25283 | *) ac_try_echo=$ac_try;; |
| 25284 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25286 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25287 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25288 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25289 | rm -f conftest.er1 |
| 25290 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25292 | (exit $ac_status); } && { |
| 25293 | test -z "$ac_c_werror_flag" || |
| 25294 | test ! -s conftest.err |
| 25295 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25296 | ac_lo=$ac_mid; break |
| 25297 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25298 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25299 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25300 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25301 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 25302 | if test $ac_mid -le $ac_hi; then |
| 25303 | ac_lo= ac_hi= |
| 25304 | break |
| 25305 | fi |
| 25306 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25307 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25308 | |
| 25309 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25310 | done |
| 25311 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25312 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25313 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25314 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25315 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25316 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25317 | |
| 25318 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25319 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25320 | |
| 25321 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25322 | # Binary search between lo and hi bounds. |
| 25323 | while test "x$ac_lo" != "x$ac_hi"; do |
| 25324 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 25325 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25326 | /* confdefs.h. */ |
| 25327 | _ACEOF |
| 25328 | cat confdefs.h >>conftest.$ac_ext |
| 25329 | cat >>conftest.$ac_ext <<_ACEOF |
| 25330 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25331 | #include <wchar.h> |
| 25332 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25333 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25334 | int |
| 25335 | main () |
| 25336 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25337 | 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] | 25338 | test_array [0] = 0 |
| 25339 | |
| 25340 | ; |
| 25341 | return 0; |
| 25342 | } |
| 25343 | _ACEOF |
| 25344 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25345 | if { (ac_try="$ac_compile" |
| 25346 | case "(($ac_try" in |
| 25347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25348 | *) ac_try_echo=$ac_try;; |
| 25349 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25350 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25351 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25352 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25353 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25354 | rm -f conftest.er1 |
| 25355 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25357 | (exit $ac_status); } && { |
| 25358 | test -z "$ac_c_werror_flag" || |
| 25359 | test ! -s conftest.err |
| 25360 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25361 | ac_hi=$ac_mid |
| 25362 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25363 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25364 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25365 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25366 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25367 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25368 | |
| 25369 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25370 | done |
| 25371 | case $ac_lo in |
| 25372 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25373 | '') if test "$ac_cv_type_wchar_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25374 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25375 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25376 | echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25377 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25378 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25379 | else |
| 25380 | ac_cv_sizeof_wchar_t=0 |
| 25381 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25382 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25383 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25384 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25385 | /* confdefs.h. */ |
| 25386 | _ACEOF |
| 25387 | cat confdefs.h >>conftest.$ac_ext |
| 25388 | cat >>conftest.$ac_ext <<_ACEOF |
| 25389 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25390 | #include <wchar.h> |
| 25391 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25392 | typedef wchar_t ac__type_sizeof_; |
| 25393 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 25394 | 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] | 25395 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25396 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25397 | int |
| 25398 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25399 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25400 | |
| 25401 | FILE *f = fopen ("conftest.val", "w"); |
| 25402 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25403 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25404 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25405 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25406 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25407 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25408 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25409 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25410 | } |
| 25411 | else |
| 25412 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25413 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25414 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25415 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25416 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25417 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25418 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25419 | |
| 25420 | ; |
| 25421 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 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 |
| 25444 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 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 ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25451 | if test "$ac_cv_type_wchar_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25452 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25453 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25454 | echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25455 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25456 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25457 | else |
| 25458 | ac_cv_sizeof_wchar_t=0 |
| 25459 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25460 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25461 | 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] | 25462 | fi |
| 25463 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25464 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25465 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 25466 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25467 | |
| 25468 | |
| 25469 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25470 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25471 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25472 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25473 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25474 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25475 | fi |
| 25476 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25477 | { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5 |
| 25478 | 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] | 25479 | have_ucs4_tcl=no |
| 25480 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25481 | /* confdefs.h. */ |
| 25482 | _ACEOF |
| 25483 | cat confdefs.h >>conftest.$ac_ext |
| 25484 | cat >>conftest.$ac_ext <<_ACEOF |
| 25485 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25486 | |
| 25487 | #include <tcl.h> |
| 25488 | #if TCL_UTF_MAX != 6 |
| 25489 | # error "NOT UCS4_TCL" |
| 25490 | #endif |
| 25491 | int |
| 25492 | main () |
| 25493 | { |
| 25494 | |
| 25495 | ; |
| 25496 | return 0; |
| 25497 | } |
| 25498 | _ACEOF |
| 25499 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25500 | if { (ac_try="$ac_compile" |
| 25501 | case "(($ac_try" in |
| 25502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25503 | *) ac_try_echo=$ac_try;; |
| 25504 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25506 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25507 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25508 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25509 | rm -f conftest.er1 |
| 25510 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25512 | (exit $ac_status); } && { |
| 25513 | test -z "$ac_c_werror_flag" || |
| 25514 | test ! -s conftest.err |
| 25515 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25516 | |
| 25517 | |
| 25518 | cat >>confdefs.h <<\_ACEOF |
| 25519 | #define HAVE_UCS4_TCL 1 |
| 25520 | _ACEOF |
| 25521 | |
| 25522 | have_ucs4_tcl=yes |
| 25523 | |
| 25524 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25525 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25526 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25527 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25528 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25529 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25530 | |
| 25531 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25532 | { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5 |
| 25533 | echo "${ECHO_T}$have_ucs4_tcl" >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25534 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25535 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25536 | if test "$wchar_h" = yes |
| 25537 | then |
| 25538 | # check whether wchar_t is signed or not |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25539 | { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5 |
| 25540 | 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] | 25541 | if test "${ac_cv_wchar_t_signed+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25542 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25543 | else |
| 25544 | |
| 25545 | if test "$cross_compiling" = yes; then |
| 25546 | ac_cv_wchar_t_signed=yes |
| 25547 | else |
| 25548 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25549 | /* confdefs.h. */ |
| 25550 | _ACEOF |
| 25551 | cat confdefs.h >>conftest.$ac_ext |
| 25552 | cat >>conftest.$ac_ext <<_ACEOF |
| 25553 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25554 | |
| 25555 | #include <wchar.h> |
| 25556 | int main() |
| 25557 | { |
Martin v. Löwis | 44fe0e4 | 2006-04-11 07:15:30 +0000 | [diff] [blame] | 25558 | /* Success: exit code 0 */ |
| 25559 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25560 | } |
| 25561 | |
| 25562 | _ACEOF |
| 25563 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25564 | if { (ac_try="$ac_link" |
| 25565 | case "(($ac_try" in |
| 25566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25567 | *) ac_try_echo=$ac_try;; |
| 25568 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25570 | (eval "$ac_link") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25571 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25573 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25574 | { (case "(($ac_try" in |
| 25575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25576 | *) ac_try_echo=$ac_try;; |
| 25577 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25579 | (eval "$ac_try") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25580 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25582 | (exit $ac_status); }; }; then |
| 25583 | ac_cv_wchar_t_signed=yes |
| 25584 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25585 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25586 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25587 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25588 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25589 | ( exit $ac_status ) |
| 25590 | ac_cv_wchar_t_signed=no |
| 25591 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25592 | 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] | 25593 | fi |
| 25594 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25595 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25596 | fi |
| 25597 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25598 | { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5 |
| 25599 | echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25600 | fi |
| 25601 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25602 | { echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 25603 | 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] | 25604 | # Check whether --enable-unicode was given. |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25605 | if test "${enable_unicode+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25606 | enableval=$enable_unicode; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25607 | else |
| 25608 | enable_unicode=yes |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25609 | fi |
| 25610 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25611 | |
| 25612 | if test $enable_unicode = yes |
| 25613 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 25614 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25615 | case "$have_ucs4_tcl" in |
| 25616 | yes) enable_unicode="ucs4" |
| 25617 | ;; |
| 25618 | *) enable_unicode="ucs2" |
| 25619 | ;; |
| 25620 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25621 | fi |
| 25622 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 25623 | |
| 25624 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25625 | case "$enable_unicode" in |
| 25626 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25627 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25628 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25629 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25630 | |
| 25631 | ;; |
| 25632 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25633 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25634 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25635 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25636 | |
| 25637 | ;; |
Benjamin Peterson | 8b65054 | 2010-02-27 00:11:42 +0000 | [diff] [blame] | 25638 | *) { { echo "$as_me:$LINENO: error: invalid value for --enable-unicode. Use either ucs2 or ucs4 (lowercase)." >&5 |
| 25639 | echo "$as_me: error: invalid value for --enable-unicode. Use either ucs2 or ucs4 (lowercase)." >&2;} |
| 25640 | { (exit 1); exit 1; }; } ;; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25641 | esac |
| 25642 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25643 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25644 | |
| 25645 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 25646 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25647 | if test "$enable_unicode" = "no" |
| 25648 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 25649 | UNICODE_OBJS="" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25650 | { echo "$as_me:$LINENO: result: not used" >&5 |
| 25651 | echo "${ECHO_T}not used" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25652 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 25653 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25654 | |
| 25655 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25656 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25657 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25658 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25659 | |
| 25660 | # wchar_t is only usable if it maps to an unsigned type |
| 25661 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 25662 | -a "$ac_cv_wchar_t_signed" = "no" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25663 | then |
| 25664 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25665 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25666 | cat >>confdefs.h <<\_ACEOF |
| 25667 | #define HAVE_USABLE_WCHAR_T 1 |
| 25668 | _ACEOF |
| 25669 | |
| 25670 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25671 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25672 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25673 | |
| 25674 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 25675 | then |
| 25676 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25677 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25678 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25679 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25680 | |
| 25681 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 25682 | then |
| 25683 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25684 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25685 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25686 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25687 | |
| 25688 | else |
| 25689 | PY_UNICODE_TYPE="no type found" |
| 25690 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25691 | { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 25692 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25693 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25694 | |
| 25695 | # check for endianness |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25696 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 25697 | 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] | 25698 | if test "${ac_cv_c_bigendian+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25699 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25700 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25701 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 25702 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25703 | /* confdefs.h. */ |
| 25704 | _ACEOF |
| 25705 | cat confdefs.h >>conftest.$ac_ext |
| 25706 | cat >>conftest.$ac_ext <<_ACEOF |
| 25707 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25708 | #include <sys/types.h> |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25709 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25710 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25711 | int |
| 25712 | main () |
| 25713 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25714 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
| 25715 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
| 25716 | bogus endian macros |
| 25717 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25718 | |
| 25719 | ; |
| 25720 | return 0; |
| 25721 | } |
| 25722 | _ACEOF |
| 25723 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25724 | if { (ac_try="$ac_compile" |
| 25725 | case "(($ac_try" in |
| 25726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25727 | *) ac_try_echo=$ac_try;; |
| 25728 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25729 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25730 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25731 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25732 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25733 | rm -f conftest.er1 |
| 25734 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25736 | (exit $ac_status); } && { |
| 25737 | test -z "$ac_c_werror_flag" || |
| 25738 | test ! -s conftest.err |
| 25739 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25740 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25741 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25742 | /* confdefs.h. */ |
| 25743 | _ACEOF |
| 25744 | cat confdefs.h >>conftest.$ac_ext |
| 25745 | cat >>conftest.$ac_ext <<_ACEOF |
| 25746 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25747 | #include <sys/types.h> |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25748 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25749 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25750 | int |
| 25751 | main () |
| 25752 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25753 | #if BYTE_ORDER != BIG_ENDIAN |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25754 | not big endian |
| 25755 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25756 | |
| 25757 | ; |
| 25758 | return 0; |
| 25759 | } |
| 25760 | _ACEOF |
| 25761 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25762 | if { (ac_try="$ac_compile" |
| 25763 | case "(($ac_try" in |
| 25764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25765 | *) ac_try_echo=$ac_try;; |
| 25766 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25768 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25769 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25770 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25771 | rm -f conftest.er1 |
| 25772 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25774 | (exit $ac_status); } && { |
| 25775 | test -z "$ac_c_werror_flag" || |
| 25776 | test ! -s conftest.err |
| 25777 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25778 | ac_cv_c_bigendian=yes |
| 25779 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25780 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25781 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25782 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25783 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25784 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25785 | |
| 25786 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25787 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25788 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25789 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25790 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25791 | # It does not; compile a test program. |
| 25792 | if test "$cross_compiling" = yes; then |
| 25793 | # try to guess the endianness by grepping values into an object file |
| 25794 | ac_cv_c_bigendian=unknown |
| 25795 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25796 | /* confdefs.h. */ |
| 25797 | _ACEOF |
| 25798 | cat confdefs.h >>conftest.$ac_ext |
| 25799 | cat >>conftest.$ac_ext <<_ACEOF |
| 25800 | /* end confdefs.h. */ |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25801 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 25802 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 25803 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 25804 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 25805 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 25806 | 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] | 25807 | int |
| 25808 | main () |
| 25809 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25810 | _ascii (); _ebcdic (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25811 | ; |
| 25812 | return 0; |
| 25813 | } |
| 25814 | _ACEOF |
| 25815 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25816 | if { (ac_try="$ac_compile" |
| 25817 | case "(($ac_try" in |
| 25818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25819 | *) ac_try_echo=$ac_try;; |
| 25820 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25822 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25823 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25824 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25825 | rm -f conftest.er1 |
| 25826 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25828 | (exit $ac_status); } && { |
| 25829 | test -z "$ac_c_werror_flag" || |
| 25830 | test ! -s conftest.err |
| 25831 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25832 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25833 | ac_cv_c_bigendian=yes |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25834 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25835 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 25836 | if test "$ac_cv_c_bigendian" = unknown; then |
| 25837 | ac_cv_c_bigendian=no |
| 25838 | else |
| 25839 | # finding both strings is unlikely to happen, but who knows? |
| 25840 | ac_cv_c_bigendian=unknown |
| 25841 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25842 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25843 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25844 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25845 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25846 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25847 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25848 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25849 | |
| 25850 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25851 | else |
| 25852 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25853 | /* confdefs.h. */ |
| 25854 | _ACEOF |
| 25855 | cat confdefs.h >>conftest.$ac_ext |
| 25856 | cat >>conftest.$ac_ext <<_ACEOF |
| 25857 | /* end confdefs.h. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25858 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25859 | int |
| 25860 | main () |
| 25861 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25862 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25863 | /* Are we little or big endian? From Harbison&Steele. */ |
| 25864 | union |
| 25865 | { |
| 25866 | long int l; |
| 25867 | char c[sizeof (long int)]; |
| 25868 | } u; |
| 25869 | u.l = 1; |
| 25870 | return u.c[sizeof (long int) - 1] == 1; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25871 | |
| 25872 | ; |
| 25873 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25874 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25875 | _ACEOF |
| 25876 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25877 | if { (ac_try="$ac_link" |
| 25878 | case "(($ac_try" in |
| 25879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25880 | *) ac_try_echo=$ac_try;; |
| 25881 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25883 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25884 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25886 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25887 | { (case "(($ac_try" in |
| 25888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25889 | *) ac_try_echo=$ac_try;; |
| 25890 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25892 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25893 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25895 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25896 | ac_cv_c_bigendian=no |
| 25897 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25898 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25899 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25900 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25901 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25902 | ( exit $ac_status ) |
| 25903 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25904 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25905 | 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] | 25906 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25907 | |
| 25908 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25909 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25910 | |
| 25911 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25912 | fi |
| 25913 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 25914 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 25915 | case $ac_cv_c_bigendian in |
| 25916 | yes) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25917 | |
| 25918 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25919 | #define WORDS_BIGENDIAN 1 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25920 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25921 | ;; |
| 25922 | no) |
| 25923 | ;; |
| 25924 | *) |
| 25925 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 25926 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 25927 | echo "$as_me: error: unknown endianness |
| 25928 | 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] | 25929 | { (exit 1); exit 1; }; } ;; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25930 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25931 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25932 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25933 | # Check whether right shifting a negative integer extends the sign bit |
| 25934 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25935 | { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 25936 | 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] | 25937 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25939 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25940 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25941 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 25942 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25943 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25944 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25945 | /* confdefs.h. */ |
| 25946 | _ACEOF |
| 25947 | cat confdefs.h >>conftest.$ac_ext |
| 25948 | cat >>conftest.$ac_ext <<_ACEOF |
| 25949 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25950 | |
| 25951 | int main() |
| 25952 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25953 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25954 | } |
| 25955 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25956 | _ACEOF |
| 25957 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25958 | if { (ac_try="$ac_link" |
| 25959 | case "(($ac_try" in |
| 25960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25961 | *) ac_try_echo=$ac_try;; |
| 25962 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25964 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25965 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25967 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25968 | { (case "(($ac_try" in |
| 25969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25970 | *) ac_try_echo=$ac_try;; |
| 25971 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25973 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25974 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25976 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25977 | ac_cv_rshift_extends_sign=yes |
| 25978 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25979 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25980 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25982 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25983 | ( exit $ac_status ) |
| 25984 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25985 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25986 | 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] | 25987 | fi |
| 25988 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25989 | |
| 25990 | fi |
| 25991 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25992 | { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 25993 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; } |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25994 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25995 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25996 | |
| 25997 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25998 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25999 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 26000 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 26001 | fi |
| 26002 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 26003 | # check for getc_unlocked and related locking functions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26004 | { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 26005 | 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] | 26006 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 26008 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26009 | |
| 26010 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26011 | /* confdefs.h. */ |
| 26012 | _ACEOF |
| 26013 | cat confdefs.h >>conftest.$ac_ext |
| 26014 | cat >>conftest.$ac_ext <<_ACEOF |
| 26015 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 26016 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26017 | int |
| 26018 | main () |
| 26019 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 26020 | |
| 26021 | FILE *f = fopen("/dev/null", "r"); |
| 26022 | flockfile(f); |
| 26023 | getc_unlocked(f); |
| 26024 | funlockfile(f); |
| 26025 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26026 | ; |
| 26027 | return 0; |
| 26028 | } |
| 26029 | _ACEOF |
| 26030 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26031 | if { (ac_try="$ac_link" |
| 26032 | case "(($ac_try" in |
| 26033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26034 | *) ac_try_echo=$ac_try;; |
| 26035 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26037 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26038 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26039 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26040 | rm -f conftest.er1 |
| 26041 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26043 | (exit $ac_status); } && { |
| 26044 | test -z "$ac_c_werror_flag" || |
| 26045 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26046 | } && test -s conftest$ac_exeext && |
| 26047 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 26048 | ac_cv_have_getc_unlocked=yes |
| 26049 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26050 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26051 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26052 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26053 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 26054 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26055 | |
| 26056 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26057 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 26058 | fi |
| 26059 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26060 | { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 26061 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; } |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 26062 | if test "$ac_cv_have_getc_unlocked" = yes |
| 26063 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26064 | |
| 26065 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 26066 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26067 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 26068 | |
| 26069 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 26070 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26071 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 26072 | # save the value of LIBS so we don't actually link Python with readline |
| 26073 | LIBS_no_readline=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26074 | |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 26075 | # On some systems we need to link readline to a termcap compatible |
| 26076 | # library. NOTE: Keep the precedence of listed libraries synchronised |
| 26077 | # with setup.py. |
| 26078 | py_cv_lib_readline=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26079 | { echo "$as_me:$LINENO: checking how to link readline libs" >&5 |
| 26080 | 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] | 26081 | for py_libtermcap in "" ncursesw ncurses curses termcap; do |
| 26082 | if test -z "$py_libtermcap"; then |
| 26083 | READLINE_LIBS="-lreadline" |
| 26084 | else |
| 26085 | READLINE_LIBS="-lreadline -l$py_libtermcap" |
| 26086 | fi |
| 26087 | LIBS="$READLINE_LIBS $LIBS_no_readline" |
| 26088 | cat >conftest.$ac_ext <<_ACEOF |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26089 | /* confdefs.h. */ |
| 26090 | _ACEOF |
| 26091 | cat confdefs.h >>conftest.$ac_ext |
| 26092 | cat >>conftest.$ac_ext <<_ACEOF |
| 26093 | /* end confdefs.h. */ |
| 26094 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26095 | /* Override any GCC internal prototype to avoid an error. |
| 26096 | Use char because int might match the return type of a GCC |
| 26097 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26098 | #ifdef __cplusplus |
| 26099 | extern "C" |
| 26100 | #endif |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26101 | char readline (); |
| 26102 | int |
| 26103 | main () |
| 26104 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26105 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26106 | ; |
| 26107 | return 0; |
| 26108 | } |
| 26109 | _ACEOF |
| 26110 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26111 | if { (ac_try="$ac_link" |
| 26112 | case "(($ac_try" in |
| 26113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26114 | *) ac_try_echo=$ac_try;; |
| 26115 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26117 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26118 | ac_status=$? |
| 26119 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26120 | rm -f conftest.er1 |
| 26121 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26123 | (exit $ac_status); } && { |
| 26124 | test -z "$ac_c_werror_flag" || |
| 26125 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26126 | } && test -s conftest$ac_exeext && |
| 26127 | $as_test_x conftest$ac_exeext; then |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 26128 | py_cv_lib_readline=yes |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26129 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26130 | echo "$as_me: failed program was:" >&5 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26131 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26132 | |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 26133 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26134 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26135 | |
| 26136 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26137 | conftest$ac_exeext conftest.$ac_ext |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 26138 | if test $py_cv_lib_readline = yes; then |
| 26139 | break |
| 26140 | fi |
| 26141 | done |
| 26142 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts |
| 26143 | #AC_SUBST([READLINE_LIBS]) |
Gregory P. Smith | e080cdf | 2008-09-07 19:19:04 +0000 | [diff] [blame] | 26144 | if test $py_cv_lib_readline = no; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26145 | { echo "$as_me:$LINENO: result: none" >&5 |
| 26146 | echo "${ECHO_T}none" >&6; } |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 26147 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26148 | { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5 |
| 26149 | echo "${ECHO_T}$READLINE_LIBS" >&6; } |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 26150 | |
| 26151 | cat >>confdefs.h <<\_ACEOF |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26152 | #define HAVE_LIBREADLINE 1 |
| 26153 | _ACEOF |
| 26154 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26155 | fi |
| 26156 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26157 | # check for readline 2.1 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26158 | { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5 |
| 26159 | 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] | 26160 | 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] | 26161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26162 | else |
| 26163 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 26164 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26165 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26166 | /* confdefs.h. */ |
| 26167 | _ACEOF |
| 26168 | cat confdefs.h >>conftest.$ac_ext |
| 26169 | cat >>conftest.$ac_ext <<_ACEOF |
| 26170 | /* end confdefs.h. */ |
| 26171 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26172 | /* Override any GCC internal prototype to avoid an error. |
| 26173 | Use char because int might match the return type of a GCC |
| 26174 | builtin and then its argument prototype would still apply. */ |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26175 | #ifdef __cplusplus |
| 26176 | extern "C" |
| 26177 | #endif |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26178 | char rl_callback_handler_install (); |
| 26179 | int |
| 26180 | main () |
| 26181 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26182 | return rl_callback_handler_install (); |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26183 | ; |
| 26184 | return 0; |
| 26185 | } |
| 26186 | _ACEOF |
| 26187 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26188 | if { (ac_try="$ac_link" |
| 26189 | case "(($ac_try" in |
| 26190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26191 | *) ac_try_echo=$ac_try;; |
| 26192 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26194 | (eval "$ac_link") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26195 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26196 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26197 | rm -f conftest.er1 |
| 26198 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26200 | (exit $ac_status); } && { |
| 26201 | test -z "$ac_c_werror_flag" || |
| 26202 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26203 | } && test -s conftest$ac_exeext && |
| 26204 | $as_test_x conftest$ac_exeext; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26205 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 26206 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26207 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26208 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26209 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26210 | ac_cv_lib_readline_rl_callback_handler_install=no |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26211 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26212 | |
| 26213 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26214 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26215 | LIBS=$ac_check_lib_save_LIBS |
| 26216 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26217 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
| 26218 | echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; } |
| 26219 | 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] | 26220 | |
| 26221 | cat >>confdefs.h <<\_ACEOF |
| 26222 | #define HAVE_RL_CALLBACK 1 |
| 26223 | _ACEOF |
| 26224 | |
| 26225 | fi |
| 26226 | |
| 26227 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26228 | # check for readline 2.2 |
| 26229 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26230 | /* confdefs.h. */ |
| 26231 | _ACEOF |
| 26232 | cat confdefs.h >>conftest.$ac_ext |
| 26233 | cat >>conftest.$ac_ext <<_ACEOF |
| 26234 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26235 | #include <readline/readline.h> |
| 26236 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26237 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 26238 | case "(($ac_try" in |
| 26239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26240 | *) ac_try_echo=$ac_try;; |
| 26241 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26242 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26243 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26244 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26245 | grep -v '^ *+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26246 | rm -f conftest.er1 |
| 26247 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26249 | (exit $ac_status); } >/dev/null && { |
| 26250 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 26251 | test ! -s conftest.err |
| 26252 | }; then |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26253 | have_readline=yes |
| 26254 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26255 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26256 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26257 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26258 | have_readline=no |
| 26259 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26260 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26261 | rm -f conftest.err conftest.$ac_ext |
| 26262 | if test $have_readline = yes |
| 26263 | then |
| 26264 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26265 | /* confdefs.h. */ |
| 26266 | _ACEOF |
| 26267 | cat confdefs.h >>conftest.$ac_ext |
| 26268 | cat >>conftest.$ac_ext <<_ACEOF |
| 26269 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26270 | #include <readline/readline.h> |
| 26271 | |
| 26272 | _ACEOF |
| 26273 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26274 | $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] | 26275 | |
| 26276 | cat >>confdefs.h <<\_ACEOF |
| 26277 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 26278 | _ACEOF |
| 26279 | |
| 26280 | fi |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 26281 | rm -f -r conftest* |
Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 26282 | |
| 26283 | cat >conftest.$ac_ext <<_ACEOF |
| 26284 | /* confdefs.h. */ |
| 26285 | _ACEOF |
| 26286 | cat confdefs.h >>conftest.$ac_ext |
| 26287 | cat >>conftest.$ac_ext <<_ACEOF |
| 26288 | /* end confdefs.h. */ |
| 26289 | #include <readline/readline.h> |
| 26290 | |
| 26291 | _ACEOF |
| 26292 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 26293 | $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then |
| 26294 | |
| 26295 | cat >>confdefs.h <<\_ACEOF |
| 26296 | #define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1 |
| 26297 | _ACEOF |
| 26298 | |
| 26299 | fi |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 26300 | rm -f -r conftest* |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26301 | |
| 26302 | fi |
| 26303 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26304 | # check for readline 4.0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26305 | { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 26306 | 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] | 26307 | 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] | 26308 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26309 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26310 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 26311 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26312 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26313 | /* confdefs.h. */ |
| 26314 | _ACEOF |
| 26315 | cat confdefs.h >>conftest.$ac_ext |
| 26316 | cat >>conftest.$ac_ext <<_ACEOF |
| 26317 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26318 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26319 | /* Override any GCC internal prototype to avoid an error. |
| 26320 | Use char because int might match the return type of a GCC |
| 26321 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26322 | #ifdef __cplusplus |
| 26323 | extern "C" |
| 26324 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26325 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26326 | int |
| 26327 | main () |
| 26328 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26329 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26330 | ; |
| 26331 | return 0; |
| 26332 | } |
| 26333 | _ACEOF |
| 26334 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26335 | if { (ac_try="$ac_link" |
| 26336 | case "(($ac_try" in |
| 26337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26338 | *) ac_try_echo=$ac_try;; |
| 26339 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26341 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26342 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26343 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26344 | rm -f conftest.er1 |
| 26345 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26347 | (exit $ac_status); } && { |
| 26348 | test -z "$ac_c_werror_flag" || |
| 26349 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26350 | } && test -s conftest$ac_exeext && |
| 26351 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26352 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26353 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26354 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26355 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26356 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26357 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26358 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26359 | |
| 26360 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26361 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26362 | LIBS=$ac_check_lib_save_LIBS |
| 26363 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26364 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 26365 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; } |
| 26366 | 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] | 26367 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26368 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26369 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26370 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26371 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26372 | fi |
| 26373 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26374 | |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26375 | # also in 4.0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26376 | { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5 |
| 26377 | 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] | 26378 | 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] | 26379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26380 | else |
| 26381 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 26382 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26383 | cat >conftest.$ac_ext <<_ACEOF |
| 26384 | /* confdefs.h. */ |
| 26385 | _ACEOF |
| 26386 | cat confdefs.h >>conftest.$ac_ext |
| 26387 | cat >>conftest.$ac_ext <<_ACEOF |
| 26388 | /* end confdefs.h. */ |
| 26389 | |
| 26390 | /* Override any GCC internal prototype to avoid an error. |
| 26391 | Use char because int might match the return type of a GCC |
| 26392 | builtin and then its argument prototype would still apply. */ |
| 26393 | #ifdef __cplusplus |
| 26394 | extern "C" |
| 26395 | #endif |
| 26396 | char rl_completion_display_matches_hook (); |
| 26397 | int |
| 26398 | main () |
| 26399 | { |
| 26400 | return rl_completion_display_matches_hook (); |
| 26401 | ; |
| 26402 | return 0; |
| 26403 | } |
| 26404 | _ACEOF |
| 26405 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 26406 | if { (ac_try="$ac_link" |
| 26407 | case "(($ac_try" in |
| 26408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26409 | *) ac_try_echo=$ac_try;; |
| 26410 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26412 | (eval "$ac_link") 2>conftest.er1 |
| 26413 | ac_status=$? |
| 26414 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26415 | rm -f conftest.er1 |
| 26416 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26418 | (exit $ac_status); } && { |
| 26419 | test -z "$ac_c_werror_flag" || |
| 26420 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26421 | } && test -s conftest$ac_exeext && |
| 26422 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26423 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes |
| 26424 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26425 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26426 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26427 | |
| 26428 | ac_cv_lib_readline_rl_completion_display_matches_hook=no |
| 26429 | fi |
| 26430 | |
| 26431 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 26432 | conftest$ac_exeext conftest.$ac_ext |
| 26433 | LIBS=$ac_check_lib_save_LIBS |
| 26434 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26435 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 |
| 26436 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } |
| 26437 | 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] | 26438 | |
| 26439 | cat >>confdefs.h <<\_ACEOF |
| 26440 | #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1 |
| 26441 | _ACEOF |
| 26442 | |
| 26443 | fi |
| 26444 | |
| 26445 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26446 | # check for readline 4.2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26447 | { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 26448 | 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] | 26449 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26451 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26452 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 26453 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26454 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26455 | /* confdefs.h. */ |
| 26456 | _ACEOF |
| 26457 | cat confdefs.h >>conftest.$ac_ext |
| 26458 | cat >>conftest.$ac_ext <<_ACEOF |
| 26459 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26460 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26461 | /* Override any GCC internal prototype to avoid an error. |
| 26462 | Use char because int might match the return type of a GCC |
| 26463 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26464 | #ifdef __cplusplus |
| 26465 | extern "C" |
| 26466 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26467 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26468 | int |
| 26469 | main () |
| 26470 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26471 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26472 | ; |
| 26473 | return 0; |
| 26474 | } |
| 26475 | _ACEOF |
| 26476 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26477 | if { (ac_try="$ac_link" |
| 26478 | case "(($ac_try" in |
| 26479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26480 | *) ac_try_echo=$ac_try;; |
| 26481 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26482 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26483 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26484 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26485 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26486 | rm -f conftest.er1 |
| 26487 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26489 | (exit $ac_status); } && { |
| 26490 | test -z "$ac_c_werror_flag" || |
| 26491 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26492 | } && test -s conftest$ac_exeext && |
| 26493 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26494 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26495 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26496 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26497 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26498 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26499 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26500 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26501 | |
| 26502 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26503 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26504 | LIBS=$ac_check_lib_save_LIBS |
| 26505 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26506 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 26507 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; } |
| 26508 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26509 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26510 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26511 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26512 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26513 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26514 | fi |
| 26515 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 26516 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26517 | # also in readline 4.2 |
| 26518 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26519 | /* confdefs.h. */ |
| 26520 | _ACEOF |
| 26521 | cat confdefs.h >>conftest.$ac_ext |
| 26522 | cat >>conftest.$ac_ext <<_ACEOF |
| 26523 | /* end confdefs.h. */ |
| 26524 | #include <readline/readline.h> |
| 26525 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26526 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 26527 | case "(($ac_try" in |
| 26528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26529 | *) ac_try_echo=$ac_try;; |
| 26530 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26532 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26533 | ac_status=$? |
| 26534 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26535 | rm -f conftest.er1 |
| 26536 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26538 | (exit $ac_status); } >/dev/null && { |
| 26539 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 26540 | test ! -s conftest.err |
| 26541 | }; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26542 | have_readline=yes |
| 26543 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26544 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26545 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26546 | |
| 26547 | have_readline=no |
| 26548 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26549 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26550 | rm -f conftest.err conftest.$ac_ext |
| 26551 | if test $have_readline = yes |
| 26552 | then |
| 26553 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26554 | /* confdefs.h. */ |
| 26555 | _ACEOF |
| 26556 | cat confdefs.h >>conftest.$ac_ext |
| 26557 | cat >>conftest.$ac_ext <<_ACEOF |
| 26558 | /* end confdefs.h. */ |
| 26559 | #include <readline/readline.h> |
| 26560 | |
| 26561 | _ACEOF |
| 26562 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 26563 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then |
| 26564 | |
| 26565 | cat >>confdefs.h <<\_ACEOF |
| 26566 | #define HAVE_RL_CATCH_SIGNAL 1 |
| 26567 | _ACEOF |
| 26568 | |
| 26569 | fi |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 26570 | rm -f -r conftest* |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26571 | |
| 26572 | fi |
| 26573 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 26574 | # End of readline checks: restore LIBS |
| 26575 | LIBS=$LIBS_no_readline |
| 26576 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26577 | { echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 26578 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26579 | if test "${ac_cv_broken_nice+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26581 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26582 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26583 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 26584 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26585 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26586 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26587 | /* confdefs.h. */ |
| 26588 | _ACEOF |
| 26589 | cat confdefs.h >>conftest.$ac_ext |
| 26590 | cat >>conftest.$ac_ext <<_ACEOF |
| 26591 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26592 | |
| 26593 | int main() |
| 26594 | { |
| 26595 | int val1 = nice(1); |
| 26596 | if (val1 != -1 && val1 == nice(2)) |
| 26597 | exit(0); |
| 26598 | exit(1); |
| 26599 | } |
| 26600 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26601 | _ACEOF |
| 26602 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26603 | if { (ac_try="$ac_link" |
| 26604 | case "(($ac_try" in |
| 26605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26606 | *) ac_try_echo=$ac_try;; |
| 26607 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26608 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26609 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26610 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26612 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26613 | { (case "(($ac_try" in |
| 26614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26615 | *) ac_try_echo=$ac_try;; |
| 26616 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26617 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26618 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26619 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26621 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26622 | ac_cv_broken_nice=yes |
| 26623 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26624 | echo "$as_me: program exited with status $ac_status" >&5 |
| 26625 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26626 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26627 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26628 | ( exit $ac_status ) |
| 26629 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26630 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26631 | 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] | 26632 | fi |
| 26633 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26634 | |
| 26635 | fi |
| 26636 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26637 | { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 26638 | echo "${ECHO_T}$ac_cv_broken_nice" >&6; } |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26639 | if test "$ac_cv_broken_nice" = yes |
| 26640 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26641 | |
| 26642 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26643 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26644 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26645 | |
| 26646 | fi |
| 26647 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26648 | { echo "$as_me:$LINENO: checking for broken poll()" >&5 |
| 26649 | echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26650 | if test "${ac_cv_broken_poll+set}" = set; then |
| 26651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26652 | else |
| 26653 | if test "$cross_compiling" = yes; then |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26654 | ac_cv_broken_poll=no |
| 26655 | else |
| 26656 | cat >conftest.$ac_ext <<_ACEOF |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26657 | /* confdefs.h. */ |
| 26658 | _ACEOF |
| 26659 | cat confdefs.h >>conftest.$ac_ext |
| 26660 | cat >>conftest.$ac_ext <<_ACEOF |
| 26661 | /* end confdefs.h. */ |
| 26662 | |
| 26663 | #include <poll.h> |
| 26664 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26665 | int main() |
| 26666 | { |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26667 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26668 | int poll_test; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26669 | |
| 26670 | close (42); |
| 26671 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26672 | poll_test = poll(&poll_struct, 1, 0); |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26673 | if (poll_test < 0) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26674 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26675 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26676 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26677 | else |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26678 | return 1; |
| 26679 | } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26680 | |
| 26681 | _ACEOF |
| 26682 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26683 | if { (ac_try="$ac_link" |
| 26684 | case "(($ac_try" in |
| 26685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26686 | *) ac_try_echo=$ac_try;; |
| 26687 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26689 | (eval "$ac_link") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26690 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26692 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26693 | { (case "(($ac_try" in |
| 26694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26695 | *) ac_try_echo=$ac_try;; |
| 26696 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26698 | (eval "$ac_try") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26699 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26701 | (exit $ac_status); }; }; then |
| 26702 | ac_cv_broken_poll=yes |
| 26703 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26704 | echo "$as_me: program exited with status $ac_status" >&5 |
| 26705 | echo "$as_me: failed program was:" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26706 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26707 | |
| 26708 | ( exit $ac_status ) |
| 26709 | ac_cv_broken_poll=no |
| 26710 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26711 | 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] | 26712 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26713 | |
| 26714 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26715 | fi |
| 26716 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26717 | { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5 |
| 26718 | echo "${ECHO_T}$ac_cv_broken_poll" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26719 | if test "$ac_cv_broken_poll" = yes |
| 26720 | then |
| 26721 | |
| 26722 | cat >>confdefs.h <<\_ACEOF |
| 26723 | #define HAVE_BROKEN_POLL 1 |
| 26724 | _ACEOF |
| 26725 | |
| 26726 | fi |
| 26727 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26728 | # 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] | 26729 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 26730 | # tzname[] |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26731 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 26732 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26733 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26735 | else |
| 26736 | cat >conftest.$ac_ext <<_ACEOF |
| 26737 | /* confdefs.h. */ |
| 26738 | _ACEOF |
| 26739 | cat confdefs.h >>conftest.$ac_ext |
| 26740 | cat >>conftest.$ac_ext <<_ACEOF |
| 26741 | /* end confdefs.h. */ |
| 26742 | #include <sys/types.h> |
| 26743 | #include <$ac_cv_struct_tm> |
| 26744 | |
| 26745 | |
| 26746 | int |
| 26747 | main () |
| 26748 | { |
| 26749 | static struct tm ac_aggr; |
| 26750 | if (ac_aggr.tm_zone) |
| 26751 | return 0; |
| 26752 | ; |
| 26753 | return 0; |
| 26754 | } |
| 26755 | _ACEOF |
| 26756 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26757 | if { (ac_try="$ac_compile" |
| 26758 | case "(($ac_try" in |
| 26759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26760 | *) ac_try_echo=$ac_try;; |
| 26761 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26763 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26764 | ac_status=$? |
| 26765 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26766 | rm -f conftest.er1 |
| 26767 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26769 | (exit $ac_status); } && { |
| 26770 | test -z "$ac_c_werror_flag" || |
| 26771 | test ! -s conftest.err |
| 26772 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26773 | ac_cv_member_struct_tm_tm_zone=yes |
| 26774 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26775 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26776 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26777 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26778 | cat >conftest.$ac_ext <<_ACEOF |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26779 | /* confdefs.h. */ |
| 26780 | _ACEOF |
| 26781 | cat confdefs.h >>conftest.$ac_ext |
| 26782 | cat >>conftest.$ac_ext <<_ACEOF |
| 26783 | /* end confdefs.h. */ |
| 26784 | #include <sys/types.h> |
| 26785 | #include <$ac_cv_struct_tm> |
| 26786 | |
| 26787 | |
| 26788 | int |
| 26789 | main () |
| 26790 | { |
| 26791 | static struct tm ac_aggr; |
| 26792 | if (sizeof ac_aggr.tm_zone) |
| 26793 | return 0; |
| 26794 | ; |
| 26795 | return 0; |
| 26796 | } |
| 26797 | _ACEOF |
| 26798 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26799 | if { (ac_try="$ac_compile" |
| 26800 | case "(($ac_try" in |
| 26801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26802 | *) ac_try_echo=$ac_try;; |
| 26803 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26805 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26806 | ac_status=$? |
| 26807 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26808 | rm -f conftest.er1 |
| 26809 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26811 | (exit $ac_status); } && { |
| 26812 | test -z "$ac_c_werror_flag" || |
| 26813 | test ! -s conftest.err |
| 26814 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26815 | ac_cv_member_struct_tm_tm_zone=yes |
| 26816 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26817 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26818 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26819 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26820 | ac_cv_member_struct_tm_tm_zone=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26821 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26822 | |
| 26823 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26824 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26825 | |
| 26826 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26827 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26828 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 26829 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } |
| 26830 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26831 | |
| 26832 | cat >>confdefs.h <<_ACEOF |
| 26833 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 26834 | _ACEOF |
| 26835 | |
| 26836 | |
| 26837 | fi |
| 26838 | |
| 26839 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 26840 | |
| 26841 | cat >>confdefs.h <<\_ACEOF |
| 26842 | #define HAVE_TM_ZONE 1 |
| 26843 | _ACEOF |
| 26844 | |
| 26845 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26846 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 26847 | 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] | 26848 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26850 | else |
| 26851 | cat >conftest.$ac_ext <<_ACEOF |
| 26852 | /* confdefs.h. */ |
| 26853 | _ACEOF |
| 26854 | cat confdefs.h >>conftest.$ac_ext |
| 26855 | cat >>conftest.$ac_ext <<_ACEOF |
| 26856 | /* end confdefs.h. */ |
| 26857 | #include <time.h> |
| 26858 | |
| 26859 | int |
| 26860 | main () |
| 26861 | { |
| 26862 | #ifndef tzname |
| 26863 | (void) tzname; |
| 26864 | #endif |
| 26865 | |
| 26866 | ; |
| 26867 | return 0; |
| 26868 | } |
| 26869 | _ACEOF |
| 26870 | rm -f conftest.$ac_objext |
| 26871 | if { (ac_try="$ac_compile" |
| 26872 | case "(($ac_try" in |
| 26873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26874 | *) ac_try_echo=$ac_try;; |
| 26875 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26876 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26877 | (eval "$ac_compile") 2>conftest.er1 |
| 26878 | ac_status=$? |
| 26879 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26880 | rm -f conftest.er1 |
| 26881 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26883 | (exit $ac_status); } && { |
| 26884 | test -z "$ac_c_werror_flag" || |
| 26885 | test ! -s conftest.err |
| 26886 | } && test -s conftest.$ac_objext; then |
| 26887 | ac_cv_have_decl_tzname=yes |
| 26888 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26889 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26890 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26891 | |
| 26892 | ac_cv_have_decl_tzname=no |
| 26893 | fi |
| 26894 | |
| 26895 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26896 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26897 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 26898 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } |
| 26899 | if test $ac_cv_have_decl_tzname = yes; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26900 | |
| 26901 | cat >>confdefs.h <<_ACEOF |
| 26902 | #define HAVE_DECL_TZNAME 1 |
| 26903 | _ACEOF |
| 26904 | |
| 26905 | |
| 26906 | else |
| 26907 | cat >>confdefs.h <<_ACEOF |
| 26908 | #define HAVE_DECL_TZNAME 0 |
| 26909 | _ACEOF |
| 26910 | |
| 26911 | |
| 26912 | fi |
| 26913 | |
| 26914 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26915 | { echo "$as_me:$LINENO: checking for tzname" >&5 |
| 26916 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26917 | if test "${ac_cv_var_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26919 | else |
| 26920 | cat >conftest.$ac_ext <<_ACEOF |
| 26921 | /* confdefs.h. */ |
| 26922 | _ACEOF |
| 26923 | cat confdefs.h >>conftest.$ac_ext |
| 26924 | cat >>conftest.$ac_ext <<_ACEOF |
| 26925 | /* end confdefs.h. */ |
| 26926 | #include <time.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26927 | #if !HAVE_DECL_TZNAME |
| 26928 | extern char *tzname[]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26929 | #endif |
| 26930 | |
| 26931 | int |
| 26932 | main () |
| 26933 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26934 | return tzname[0][0]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26935 | ; |
| 26936 | return 0; |
| 26937 | } |
| 26938 | _ACEOF |
| 26939 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26940 | if { (ac_try="$ac_link" |
| 26941 | case "(($ac_try" in |
| 26942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26943 | *) ac_try_echo=$ac_try;; |
| 26944 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26946 | (eval "$ac_link") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26947 | ac_status=$? |
| 26948 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26949 | rm -f conftest.er1 |
| 26950 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26952 | (exit $ac_status); } && { |
| 26953 | test -z "$ac_c_werror_flag" || |
| 26954 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26955 | } && test -s conftest$ac_exeext && |
| 26956 | $as_test_x conftest$ac_exeext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26957 | ac_cv_var_tzname=yes |
| 26958 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26959 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26960 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26961 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26962 | ac_cv_var_tzname=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26963 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26964 | |
| 26965 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26966 | conftest$ac_exeext conftest.$ac_ext |
| 26967 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26968 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 26969 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26970 | if test $ac_cv_var_tzname = yes; then |
| 26971 | |
| 26972 | cat >>confdefs.h <<\_ACEOF |
| 26973 | #define HAVE_TZNAME 1 |
| 26974 | _ACEOF |
| 26975 | |
| 26976 | fi |
| 26977 | fi |
| 26978 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26979 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 26980 | # check tzset(3) exists and works like we expect it to |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26981 | { echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 26982 | echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26983 | if test "${ac_cv_working_tzset+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26985 | else |
| 26986 | |
| 26987 | if test "$cross_compiling" = yes; then |
| 26988 | ac_cv_working_tzset=no |
| 26989 | else |
| 26990 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26991 | /* confdefs.h. */ |
| 26992 | _ACEOF |
| 26993 | cat confdefs.h >>conftest.$ac_ext |
| 26994 | cat >>conftest.$ac_ext <<_ACEOF |
| 26995 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26996 | |
| 26997 | #include <stdlib.h> |
| 26998 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26999 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 27000 | |
| 27001 | #if HAVE_TZNAME |
| 27002 | extern char *tzname[]; |
| 27003 | #endif |
| 27004 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27005 | int main() |
| 27006 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 27007 | /* Note that we need to ensure that not only does tzset(3) |
| 27008 | do 'something' with localtime, but it works as documented |
| 27009 | 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] | 27010 | This includes making sure that tzname is set properly if |
| 27011 | tm->tm_zone does not exist since it is the alternative way |
| 27012 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 27013 | |
| 27014 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 27015 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 27016 | */ |
| 27017 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 27018 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 27019 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 27020 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 27021 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27022 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 27023 | if (localtime(&groundhogday)->tm_hour != 0) |
| 27024 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 27025 | #if HAVE_TZNAME |
| 27026 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 27027 | if (strcmp(tzname[0], "UTC") || |
| 27028 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 27029 | exit(1); |
| 27030 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 27031 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 27032 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27033 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 27034 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27035 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 27036 | #if HAVE_TZNAME |
| 27037 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 27038 | exit(1); |
| 27039 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 27040 | |
| 27041 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 27042 | tzset(); |
| 27043 | if (localtime(&groundhogday)->tm_hour != 11) |
| 27044 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 27045 | #if HAVE_TZNAME |
| 27046 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 27047 | exit(1); |
| 27048 | #endif |
| 27049 | |
| 27050 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 27051 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 27052 | exit(1); |
| 27053 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 27054 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 27055 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 27056 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27057 | exit(0); |
| 27058 | } |
| 27059 | |
| 27060 | _ACEOF |
| 27061 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27062 | if { (ac_try="$ac_link" |
| 27063 | case "(($ac_try" in |
| 27064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27065 | *) ac_try_echo=$ac_try;; |
| 27066 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27068 | (eval "$ac_link") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27069 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27071 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 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_try") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +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 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27080 | (exit $ac_status); }; }; then |
| 27081 | ac_cv_working_tzset=yes |
| 27082 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27083 | echo "$as_me: program exited with status $ac_status" >&5 |
| 27084 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27086 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27087 | ( exit $ac_status ) |
| 27088 | ac_cv_working_tzset=no |
| 27089 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27090 | 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] | 27091 | fi |
| 27092 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27093 | |
| 27094 | fi |
| 27095 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27096 | { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 27097 | echo "${ECHO_T}$ac_cv_working_tzset" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27098 | if test "$ac_cv_working_tzset" = yes |
| 27099 | then |
| 27100 | |
| 27101 | cat >>confdefs.h <<\_ACEOF |
| 27102 | #define HAVE_WORKING_TZSET 1 |
| 27103 | _ACEOF |
| 27104 | |
| 27105 | fi |
| 27106 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27107 | # Look for subsecond timestamps in struct stat |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27108 | { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 27109 | 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] | 27110 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27111 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27112 | else |
| 27113 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27114 | /* confdefs.h. */ |
| 27115 | _ACEOF |
| 27116 | cat confdefs.h >>conftest.$ac_ext |
| 27117 | cat >>conftest.$ac_ext <<_ACEOF |
| 27118 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27119 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27120 | int |
| 27121 | main () |
| 27122 | { |
| 27123 | |
| 27124 | struct stat st; |
| 27125 | st.st_mtim.tv_nsec = 1; |
| 27126 | |
| 27127 | ; |
| 27128 | return 0; |
| 27129 | } |
| 27130 | _ACEOF |
| 27131 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27132 | if { (ac_try="$ac_compile" |
| 27133 | case "(($ac_try" in |
| 27134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27135 | *) ac_try_echo=$ac_try;; |
| 27136 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27138 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27139 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27140 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27141 | rm -f conftest.er1 |
| 27142 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27144 | (exit $ac_status); } && { |
| 27145 | test -z "$ac_c_werror_flag" || |
| 27146 | test ! -s conftest.err |
| 27147 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 27148 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27149 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27150 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27151 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27152 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27153 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27154 | fi |
| 27155 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27157 | fi |
| 27158 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27159 | { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 27160 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; } |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27161 | if test "$ac_cv_stat_tv_nsec" = yes |
| 27162 | then |
| 27163 | |
| 27164 | cat >>confdefs.h <<\_ACEOF |
| 27165 | #define HAVE_STAT_TV_NSEC 1 |
| 27166 | _ACEOF |
| 27167 | |
| 27168 | fi |
| 27169 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27170 | # Look for BSD style subsecond timestamps in struct stat |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27171 | { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5 |
| 27172 | 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] | 27173 | if test "${ac_cv_stat_tv_nsec2+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27175 | else |
| 27176 | cat >conftest.$ac_ext <<_ACEOF |
| 27177 | /* confdefs.h. */ |
| 27178 | _ACEOF |
| 27179 | cat confdefs.h >>conftest.$ac_ext |
| 27180 | cat >>conftest.$ac_ext <<_ACEOF |
| 27181 | /* end confdefs.h. */ |
| 27182 | #include <sys/stat.h> |
| 27183 | int |
| 27184 | main () |
| 27185 | { |
| 27186 | |
| 27187 | struct stat st; |
| 27188 | st.st_mtimespec.tv_nsec = 1; |
| 27189 | |
| 27190 | ; |
| 27191 | return 0; |
| 27192 | } |
| 27193 | _ACEOF |
| 27194 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27195 | if { (ac_try="$ac_compile" |
| 27196 | case "(($ac_try" in |
| 27197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27198 | *) ac_try_echo=$ac_try;; |
| 27199 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27201 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27202 | ac_status=$? |
| 27203 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27204 | rm -f conftest.er1 |
| 27205 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27207 | (exit $ac_status); } && { |
| 27208 | test -z "$ac_c_werror_flag" || |
| 27209 | test ! -s conftest.err |
| 27210 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27211 | ac_cv_stat_tv_nsec2=yes |
| 27212 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27213 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27214 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27215 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27216 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27217 | fi |
| 27218 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27219 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27220 | fi |
| 27221 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27222 | { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5 |
| 27223 | echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27224 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 27225 | then |
| 27226 | |
| 27227 | cat >>confdefs.h <<\_ACEOF |
| 27228 | #define HAVE_STAT_TV_NSEC2 1 |
| 27229 | _ACEOF |
| 27230 | |
| 27231 | fi |
| 27232 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27233 | # 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] | 27234 | { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 27235 | 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] | 27236 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27238 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27239 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27240 | /* confdefs.h. */ |
| 27241 | _ACEOF |
| 27242 | cat confdefs.h >>conftest.$ac_ext |
| 27243 | cat >>conftest.$ac_ext <<_ACEOF |
| 27244 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27245 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27246 | int |
| 27247 | main () |
| 27248 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27249 | |
| 27250 | int rtn; |
| 27251 | rtn = mvwdelch(0,0,0); |
| 27252 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27253 | ; |
| 27254 | return 0; |
| 27255 | } |
| 27256 | _ACEOF |
| 27257 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27258 | if { (ac_try="$ac_compile" |
| 27259 | case "(($ac_try" in |
| 27260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27261 | *) ac_try_echo=$ac_try;; |
| 27262 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27264 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27265 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27266 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27267 | rm -f conftest.er1 |
| 27268 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27270 | (exit $ac_status); } && { |
| 27271 | test -z "$ac_c_werror_flag" || |
| 27272 | test ! -s conftest.err |
| 27273 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27274 | ac_cv_mvwdelch_is_expression=yes |
| 27275 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27276 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27277 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27278 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27279 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27280 | fi |
| 27281 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27282 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27283 | fi |
| 27284 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27285 | { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 27286 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; } |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27287 | |
| 27288 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 27289 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27290 | |
| 27291 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27292 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27293 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27294 | |
| 27295 | fi |
| 27296 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27297 | { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 27298 | 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] | 27299 | if test "${ac_cv_window_has_flags+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27301 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27302 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27303 | /* confdefs.h. */ |
| 27304 | _ACEOF |
| 27305 | cat confdefs.h >>conftest.$ac_ext |
| 27306 | cat >>conftest.$ac_ext <<_ACEOF |
| 27307 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27308 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27309 | int |
| 27310 | main () |
| 27311 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27312 | |
| 27313 | WINDOW *w; |
| 27314 | w->_flags = 0; |
| 27315 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27316 | ; |
| 27317 | return 0; |
| 27318 | } |
| 27319 | _ACEOF |
| 27320 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27321 | if { (ac_try="$ac_compile" |
| 27322 | case "(($ac_try" in |
| 27323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27324 | *) ac_try_echo=$ac_try;; |
| 27325 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27326 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27327 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27328 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27329 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27330 | rm -f conftest.er1 |
| 27331 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27333 | (exit $ac_status); } && { |
| 27334 | test -z "$ac_c_werror_flag" || |
| 27335 | test ! -s conftest.err |
| 27336 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27337 | ac_cv_window_has_flags=yes |
| 27338 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27339 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27340 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27341 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27342 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27343 | fi |
| 27344 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27345 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27346 | fi |
| 27347 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27348 | { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 27349 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27350 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27351 | |
| 27352 | if test "$ac_cv_window_has_flags" = yes |
| 27353 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27354 | |
| 27355 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27356 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27357 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27358 | |
| 27359 | fi |
| 27360 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27361 | { echo "$as_me:$LINENO: checking for is_term_resized" >&5 |
| 27362 | echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27363 | cat >conftest.$ac_ext <<_ACEOF |
| 27364 | /* confdefs.h. */ |
| 27365 | _ACEOF |
| 27366 | cat confdefs.h >>conftest.$ac_ext |
| 27367 | cat >>conftest.$ac_ext <<_ACEOF |
| 27368 | /* end confdefs.h. */ |
| 27369 | #include <curses.h> |
| 27370 | int |
| 27371 | main () |
| 27372 | { |
| 27373 | void *x=is_term_resized |
| 27374 | ; |
| 27375 | return 0; |
| 27376 | } |
| 27377 | _ACEOF |
| 27378 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27379 | if { (ac_try="$ac_compile" |
| 27380 | case "(($ac_try" in |
| 27381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27382 | *) ac_try_echo=$ac_try;; |
| 27383 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27385 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27386 | ac_status=$? |
| 27387 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27388 | rm -f conftest.er1 |
| 27389 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27391 | (exit $ac_status); } && { |
| 27392 | test -z "$ac_c_werror_flag" || |
| 27393 | test ! -s conftest.err |
| 27394 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27395 | |
| 27396 | cat >>confdefs.h <<\_ACEOF |
| 27397 | #define HAVE_CURSES_IS_TERM_RESIZED 1 |
| 27398 | _ACEOF |
| 27399 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27400 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 27401 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27402 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27403 | echo "$as_me: failed program was:" >&5 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27404 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27405 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27406 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27407 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27408 | |
| 27409 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27410 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27411 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27412 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27413 | { echo "$as_me:$LINENO: checking for resize_term" >&5 |
| 27414 | echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27415 | cat >conftest.$ac_ext <<_ACEOF |
| 27416 | /* confdefs.h. */ |
| 27417 | _ACEOF |
| 27418 | cat confdefs.h >>conftest.$ac_ext |
| 27419 | cat >>conftest.$ac_ext <<_ACEOF |
| 27420 | /* end confdefs.h. */ |
| 27421 | #include <curses.h> |
| 27422 | int |
| 27423 | main () |
| 27424 | { |
| 27425 | void *x=resize_term |
| 27426 | ; |
| 27427 | return 0; |
| 27428 | } |
| 27429 | _ACEOF |
| 27430 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27431 | if { (ac_try="$ac_compile" |
| 27432 | case "(($ac_try" in |
| 27433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27434 | *) ac_try_echo=$ac_try;; |
| 27435 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27437 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27438 | ac_status=$? |
| 27439 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27440 | rm -f conftest.er1 |
| 27441 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27443 | (exit $ac_status); } && { |
| 27444 | test -z "$ac_c_werror_flag" || |
| 27445 | test ! -s conftest.err |
| 27446 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27447 | |
| 27448 | cat >>confdefs.h <<\_ACEOF |
| 27449 | #define HAVE_CURSES_RESIZE_TERM 1 |
| 27450 | _ACEOF |
| 27451 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27452 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 27453 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27454 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27455 | echo "$as_me: failed program was:" >&5 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27456 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27457 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27458 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27459 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27460 | |
| 27461 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27462 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27463 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27464 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27465 | { echo "$as_me:$LINENO: checking for resizeterm" >&5 |
| 27466 | echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27467 | cat >conftest.$ac_ext <<_ACEOF |
| 27468 | /* confdefs.h. */ |
| 27469 | _ACEOF |
| 27470 | cat confdefs.h >>conftest.$ac_ext |
| 27471 | cat >>conftest.$ac_ext <<_ACEOF |
| 27472 | /* end confdefs.h. */ |
| 27473 | #include <curses.h> |
| 27474 | int |
| 27475 | main () |
| 27476 | { |
| 27477 | void *x=resizeterm |
| 27478 | ; |
| 27479 | return 0; |
| 27480 | } |
| 27481 | _ACEOF |
| 27482 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27483 | if { (ac_try="$ac_compile" |
| 27484 | case "(($ac_try" in |
| 27485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27486 | *) ac_try_echo=$ac_try;; |
| 27487 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27489 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27490 | ac_status=$? |
| 27491 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27492 | rm -f conftest.er1 |
| 27493 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27495 | (exit $ac_status); } && { |
| 27496 | test -z "$ac_c_werror_flag" || |
| 27497 | test ! -s conftest.err |
| 27498 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27499 | |
| 27500 | cat >>confdefs.h <<\_ACEOF |
| 27501 | #define HAVE_CURSES_RESIZETERM 1 |
| 27502 | _ACEOF |
| 27503 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27504 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 27505 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27506 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27507 | echo "$as_me: failed program was:" >&5 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27509 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27510 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27511 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27512 | |
| 27513 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27514 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27515 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27516 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27517 | { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 27518 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; } |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 27519 | |
| 27520 | if test -r /dev/ptmx |
| 27521 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27522 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 27523 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 27524 | |
| 27525 | cat >>confdefs.h <<\_ACEOF |
| 27526 | #define HAVE_DEV_PTMX 1 |
| 27527 | _ACEOF |
| 27528 | |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 27529 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27530 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27531 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 27532 | fi |
| 27533 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27534 | { echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 27535 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; } |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 27536 | |
| 27537 | if test -r /dev/ptc |
| 27538 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27539 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 27540 | echo "${ECHO_T}yes" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 27541 | |
| 27542 | cat >>confdefs.h <<\_ACEOF |
| 27543 | #define HAVE_DEV_PTC 1 |
| 27544 | _ACEOF |
| 27545 | |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 27546 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27547 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27548 | echo "${ECHO_T}no" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 27549 | fi |
| 27550 | |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 27551 | if test "$have_long_long" = yes |
| 27552 | then |
| 27553 | { echo "$as_me:$LINENO: checking for %lld and %llu printf() format support" >&5 |
| 27554 | echo $ECHO_N "checking for %lld and %llu printf() format support... $ECHO_C" >&6; } |
| 27555 | if test "${ac_cv_have_long_long_format+set}" = set; then |
| 27556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27557 | else |
| 27558 | if test "$cross_compiling" = yes; then |
| 27559 | ac_cv_have_long_long_format=no |
| 27560 | else |
| 27561 | cat >conftest.$ac_ext <<_ACEOF |
| 27562 | /* confdefs.h. */ |
| 27563 | _ACEOF |
| 27564 | cat confdefs.h >>conftest.$ac_ext |
| 27565 | cat >>conftest.$ac_ext <<_ACEOF |
| 27566 | /* end confdefs.h. */ |
| 27567 | |
| 27568 | #include <stdio.h> |
| 27569 | #include <stddef.h> |
| 27570 | #include <string.h> |
| 27571 | |
| 27572 | #ifdef HAVE_SYS_TYPES_H |
| 27573 | #include <sys/types.h> |
| 27574 | #endif |
| 27575 | |
| 27576 | int main() |
| 27577 | { |
| 27578 | char buffer[256]; |
| 27579 | |
| 27580 | if (sprintf(buffer, "%lld", (long long)123) < 0) |
| 27581 | return 1; |
| 27582 | if (strcmp(buffer, "123")) |
| 27583 | return 1; |
| 27584 | |
| 27585 | if (sprintf(buffer, "%lld", (long long)-123) < 0) |
| 27586 | return 1; |
| 27587 | if (strcmp(buffer, "-123")) |
| 27588 | return 1; |
| 27589 | |
| 27590 | if (sprintf(buffer, "%llu", (unsigned long long)123) < 0) |
| 27591 | return 1; |
| 27592 | if (strcmp(buffer, "123")) |
| 27593 | return 1; |
| 27594 | |
| 27595 | return 0; |
| 27596 | } |
| 27597 | |
| 27598 | _ACEOF |
| 27599 | rm -f conftest$ac_exeext |
| 27600 | if { (ac_try="$ac_link" |
| 27601 | case "(($ac_try" in |
| 27602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27603 | *) ac_try_echo=$ac_try;; |
| 27604 | esac |
| 27605 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27606 | (eval "$ac_link") 2>&5 |
| 27607 | ac_status=$? |
| 27608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27609 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 27610 | { (case "(($ac_try" in |
| 27611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27612 | *) ac_try_echo=$ac_try;; |
| 27613 | esac |
| 27614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27615 | (eval "$ac_try") 2>&5 |
| 27616 | ac_status=$? |
| 27617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27618 | (exit $ac_status); }; }; then |
| 27619 | ac_cv_have_long_long_format=yes |
| 27620 | else |
| 27621 | echo "$as_me: program exited with status $ac_status" >&5 |
| 27622 | echo "$as_me: failed program was:" >&5 |
| 27623 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27624 | |
| 27625 | ( exit $ac_status ) |
| 27626 | ac_cv_have_long_long_format=no |
| 27627 | fi |
| 27628 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 27629 | fi |
| 27630 | |
| 27631 | |
| 27632 | |
| 27633 | fi |
| 27634 | |
| 27635 | { echo "$as_me:$LINENO: result: $ac_cv_have_long_long_format" >&5 |
| 27636 | echo "${ECHO_T}$ac_cv_have_long_long_format" >&6; } |
| 27637 | fi |
| 27638 | |
Mark Dickinson | 5ce8474 | 2009-12-31 20:48:04 +0000 | [diff] [blame] | 27639 | if test "$ac_cv_have_long_long_format" = yes |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 27640 | then |
| 27641 | |
| 27642 | cat >>confdefs.h <<\_ACEOF |
| 27643 | #define PY_FORMAT_LONG_LONG "ll" |
| 27644 | _ACEOF |
| 27645 | |
| 27646 | fi |
| 27647 | |
Ronald Oussoren | 315cd0c | 2009-11-19 16:25:21 +0000 | [diff] [blame] | 27648 | if test $ac_sys_system = Darwin |
| 27649 | then |
| 27650 | LIBS="$LIBS -framework CoreFoundation" |
| 27651 | fi |
| 27652 | |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 27653 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27654 | { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5 |
| 27655 | echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27656 | if test "${ac_cv_have_size_t_format+set}" = set; then |
| 27657 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27658 | else |
| 27659 | if test "$cross_compiling" = yes; then |
Gregory P. Smith | c9ff3a7 | 2009-11-02 02:03:16 +0000 | [diff] [blame] | 27660 | ac_cv_have_size_t_format="cross -- assuming yes" |
| 27661 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27662 | else |
| 27663 | cat >conftest.$ac_ext <<_ACEOF |
| 27664 | /* confdefs.h. */ |
| 27665 | _ACEOF |
| 27666 | cat confdefs.h >>conftest.$ac_ext |
| 27667 | cat >>conftest.$ac_ext <<_ACEOF |
| 27668 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27669 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27670 | #include <stdio.h> |
| 27671 | #include <stddef.h> |
| 27672 | #include <string.h> |
| 27673 | |
Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 27674 | #ifdef HAVE_SYS_TYPES_H |
| 27675 | #include <sys/types.h> |
| 27676 | #endif |
Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 27677 | |
| 27678 | #ifdef HAVE_SSIZE_T |
| 27679 | typedef ssize_t Py_ssize_t; |
| 27680 | #elif SIZEOF_VOID_P == SIZEOF_LONG |
| 27681 | typedef long Py_ssize_t; |
| 27682 | #else |
| 27683 | typedef int Py_ssize_t; |
| 27684 | #endif |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27685 | |
Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 27686 | int main() |
| 27687 | { |
| 27688 | char buffer[256]; |
| 27689 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27690 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
| 27691 | return 1; |
| 27692 | |
Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 27693 | if (strcmp(buffer, "123")) |
| 27694 | return 1; |
| 27695 | |
| 27696 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) |
| 27697 | return 1; |
| 27698 | |
| 27699 | if (strcmp(buffer, "-123")) |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27700 | return 1; |
| 27701 | |
| 27702 | return 0; |
| 27703 | } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27704 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27705 | _ACEOF |
| 27706 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27707 | if { (ac_try="$ac_link" |
| 27708 | case "(($ac_try" in |
| 27709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27710 | *) ac_try_echo=$ac_try;; |
| 27711 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27713 | (eval "$ac_link") 2>&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27714 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27716 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27717 | { (case "(($ac_try" in |
| 27718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27719 | *) ac_try_echo=$ac_try;; |
| 27720 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27722 | (eval "$ac_try") 2>&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27723 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27725 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27726 | ac_cv_have_size_t_format=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27727 | else |
| 27728 | echo "$as_me: program exited with status $ac_status" >&5 |
| 27729 | echo "$as_me: failed program was:" >&5 |
| 27730 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27731 | |
| 27732 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27733 | ac_cv_have_size_t_format=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27734 | fi |
| 27735 | 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] | 27736 | fi |
| 27737 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27738 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27739 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27740 | { echo "$as_me:$LINENO: result: $ac_cv_have_size_t_format" >&5 |
| 27741 | echo "${ECHO_T}$ac_cv_have_size_t_format" >&6; } |
Gregory P. Smith | c9ff3a7 | 2009-11-02 02:03:16 +0000 | [diff] [blame] | 27742 | if test "$ac_cv_have_size_t_format" != no ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27743 | |
| 27744 | cat >>confdefs.h <<\_ACEOF |
| 27745 | #define PY_FORMAT_SIZE_T "z" |
| 27746 | _ACEOF |
| 27747 | |
| 27748 | fi |
| 27749 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27750 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 27751 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27752 | if test "${ac_cv_type_socklen_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27754 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27755 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27756 | /* confdefs.h. */ |
| 27757 | _ACEOF |
| 27758 | cat confdefs.h >>conftest.$ac_ext |
| 27759 | cat >>conftest.$ac_ext <<_ACEOF |
| 27760 | /* end confdefs.h. */ |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 27761 | |
| 27762 | #ifdef HAVE_SYS_TYPES_H |
| 27763 | #include <sys/types.h> |
| 27764 | #endif |
| 27765 | #ifdef HAVE_SYS_SOCKET_H |
| 27766 | #include <sys/socket.h> |
| 27767 | #endif |
| 27768 | |
| 27769 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27770 | typedef socklen_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27771 | int |
| 27772 | main () |
| 27773 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27774 | if ((ac__type_new_ *) 0) |
| 27775 | return 0; |
| 27776 | if (sizeof (ac__type_new_)) |
| 27777 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27778 | ; |
| 27779 | return 0; |
| 27780 | } |
| 27781 | _ACEOF |
| 27782 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27783 | if { (ac_try="$ac_compile" |
| 27784 | case "(($ac_try" in |
| 27785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27786 | *) ac_try_echo=$ac_try;; |
| 27787 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27788 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27789 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27790 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27791 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27792 | rm -f conftest.er1 |
| 27793 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27795 | (exit $ac_status); } && { |
| 27796 | test -z "$ac_c_werror_flag" || |
| 27797 | test ! -s conftest.err |
| 27798 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27799 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27800 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27801 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27802 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27803 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27804 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27805 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27806 | |
| 27807 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27808 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27809 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 27810 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } |
| 27811 | if test $ac_cv_type_socklen_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27812 | : |
| 27813 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27814 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 27815 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27816 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27817 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27818 | |
| 27819 | fi |
| 27820 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27821 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27822 | |
| 27823 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 27824 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 27825 | do |
| 27826 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 27827 | done |
| 27828 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27829 | |
Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 27830 | SRCDIRS="Parser Grammar Objects Python Modules Mac" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27831 | { echo "$as_me:$LINENO: checking for build directories" >&5 |
| 27832 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 27833 | for dir in $SRCDIRS; do |
| 27834 | if test ! -d $dir; then |
| 27835 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 27836 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 27837 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27838 | { echo "$as_me:$LINENO: result: done" >&5 |
| 27839 | echo "${ECHO_T}done" >&6; } |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 27840 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 27841 | # generate output files |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 27842 | 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] | 27843 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27844 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27845 | # This file is a shell script that caches the results of configure |
| 27846 | # 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] | 27847 | # scripts and configure runs, see configure's option --config-cache. |
| 27848 | # It is not useful on other systems. If it contains results you don't |
| 27849 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27850 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27851 | # config.status only pays attention to the cache file if you give it |
| 27852 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27853 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27854 | # `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] | 27855 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 27856 | # following values. |
| 27857 | |
| 27858 | _ACEOF |
| 27859 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 27860 | # The following way of writing the cache mishandles newlines in values, |
| 27861 | # 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] | 27862 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 27863 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 27864 | # 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] | 27865 | ( |
| 27866 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 27867 | eval ac_val=\$$ac_var |
| 27868 | case $ac_val in #( |
| 27869 | *${as_nl}*) |
| 27870 | case $ac_var in #( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27871 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 27872 | 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] | 27873 | esac |
| 27874 | case $ac_var in #( |
| 27875 | _ | IFS | as_nl) ;; #( |
| 27876 | *) $as_unset $ac_var ;; |
| 27877 | esac ;; |
| 27878 | esac |
| 27879 | done |
| 27880 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27881 | (set) 2>&1 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27882 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 27883 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27884 | # `set' does not quote correctly, so add quotes (double-quote |
| 27885 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 27886 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27887 | "s/'/'\\\\''/g; |
| 27888 | 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] | 27889 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27890 | *) |
| 27891 | # `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] | 27892 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27893 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27894 | esac | |
| 27895 | sort |
| 27896 | ) | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27897 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27898 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27899 | t clear |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27900 | :clear |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27901 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 27902 | t end |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27903 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 27904 | :end' >>confcache |
| 27905 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 27906 | if test -w "$cache_file"; then |
| 27907 | test "x$cache_file" != "x/dev/null" && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27908 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 27909 | echo "$as_me: updating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27910 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 27911 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27912 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 27913 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 27914 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27915 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 27916 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 27917 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27918 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 27919 | # Let make expand exec_prefix. |
| 27920 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 27921 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27922 | DEFS=-DHAVE_CONFIG_H |
| 27923 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27924 | ac_libobjs= |
| 27925 | ac_ltlibobjs= |
| 27926 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 27927 | # 1. Remove the extension, and $U if already installed. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27928 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27929 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27930 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 27931 | # will be set to the directory where LIBOBJS objects are built. |
| 27932 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 27933 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27934 | done |
| 27935 | LIBOBJS=$ac_libobjs |
| 27936 | |
| 27937 | LTLIBOBJS=$ac_ltlibobjs |
| 27938 | |
| 27939 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27940 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27941 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27942 | ac_clean_files_save=$ac_clean_files |
| 27943 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27944 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 27945 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 27946 | cat >$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27947 | #! $SHELL |
| 27948 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 27949 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27950 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27951 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 27952 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27953 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27954 | ac_cs_recheck=false |
| 27955 | ac_cs_silent=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27956 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 27957 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 27958 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27959 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27960 | ## --------------------- ## |
| 27961 | ## M4sh Initialization. ## |
| 27962 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 27963 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27964 | # Be more Bourne compatible |
| 27965 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27966 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 27967 | emulate sh |
| 27968 | NULLCMD=: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27969 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27970 | # is contrary to our usage. Disable this feature. |
| 27971 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27972 | setopt NO_GLOB_SUBST |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 27973 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27974 | case `(set -o) 2>/dev/null` in |
| 27975 | *posix*) set -o posix ;; |
| 27976 | esac |
| 27977 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27978 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27979 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27980 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27981 | |
| 27982 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27983 | # PATH needs CR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27984 | # Avoid depending upon Character Ranges. |
| 27985 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 27986 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 27987 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 27988 | as_cr_digits='0123456789' |
| 27989 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 27990 | |
| 27991 | # The user is always right. |
| 27992 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27993 | echo "#! /bin/sh" >conf$$.sh |
| 27994 | echo "exit 0" >>conf$$.sh |
| 27995 | chmod +x conf$$.sh |
| 27996 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 27997 | PATH_SEPARATOR=';' |
| 27998 | else |
| 27999 | PATH_SEPARATOR=: |
| 28000 | fi |
| 28001 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28002 | fi |
| 28003 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28004 | # Support unset when possible. |
| 28005 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 28006 | as_unset=unset |
| 28007 | else |
| 28008 | as_unset=false |
| 28009 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28010 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28011 | |
| 28012 | # IFS |
| 28013 | # We need space, tab and new line, in precisely that order. Quoting is |
| 28014 | # there to prevent editors from complaining about space-tab. |
| 28015 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 28016 | # splitting by setting IFS to empty value.) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28017 | as_nl=' |
| 28018 | ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28019 | IFS=" "" $as_nl" |
| 28020 | |
| 28021 | # Find who we are. Look in the path if we contain no directory separator. |
| 28022 | case $0 in |
| 28023 | *[\\/]* ) as_myself=$0 ;; |
| 28024 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28025 | for as_dir in $PATH |
| 28026 | do |
| 28027 | IFS=$as_save_IFS |
| 28028 | test -z "$as_dir" && as_dir=. |
| 28029 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 28030 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28031 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28032 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28033 | ;; |
| 28034 | esac |
| 28035 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 28036 | # in which case we are not to be found in the path. |
| 28037 | if test "x$as_myself" = x; then |
| 28038 | as_myself=$0 |
| 28039 | fi |
| 28040 | if test ! -f "$as_myself"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28041 | 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] | 28042 | { (exit 1); exit 1; } |
| 28043 | fi |
| 28044 | |
| 28045 | # Work around bugs in pre-3.0 UWIN ksh. |
| 28046 | for as_var in ENV MAIL MAILPATH |
| 28047 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 28048 | done |
| 28049 | PS1='$ ' |
| 28050 | PS2='> ' |
| 28051 | PS4='+ ' |
| 28052 | |
| 28053 | # NLS nuisances. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28054 | for as_var in \ |
| 28055 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 28056 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 28057 | LC_TELEPHONE LC_TIME |
| 28058 | do |
| 28059 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 28060 | eval $as_var=C; export $as_var |
| 28061 | else |
| 28062 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 28063 | fi |
| 28064 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28065 | |
| 28066 | # Required to use basename. |
| 28067 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 28068 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 28069 | as_expr=expr |
| 28070 | else |
| 28071 | as_expr=false |
| 28072 | fi |
| 28073 | |
| 28074 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 28075 | as_basename=basename |
| 28076 | else |
| 28077 | as_basename=false |
| 28078 | fi |
| 28079 | |
| 28080 | |
| 28081 | # Name of the executable. |
| 28082 | as_me=`$as_basename -- "$0" || |
| 28083 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 28084 | X"$0" : 'X\(//\)$' \| \ |
| 28085 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28086 | echo X/"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28087 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 28088 | s//\1/ |
| 28089 | q |
| 28090 | } |
| 28091 | /^X\/\(\/\/\)$/{ |
| 28092 | s//\1/ |
| 28093 | q |
| 28094 | } |
| 28095 | /^X\/\(\/\).*/{ |
| 28096 | s//\1/ |
| 28097 | q |
| 28098 | } |
| 28099 | s/.*/./; q'` |
| 28100 | |
| 28101 | # CDPATH. |
| 28102 | $as_unset CDPATH |
| 28103 | |
| 28104 | |
| 28105 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28106 | as_lineno_1=$LINENO |
| 28107 | as_lineno_2=$LINENO |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28108 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28109 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 28110 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28111 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 28112 | # 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] | 28113 | # line-number line after each line using $LINENO; the second 'sed' |
| 28114 | # does the real work. The second script uses 'N' to pair each |
| 28115 | # line-number line with the line containing $LINENO, and appends |
| 28116 | # trailing '-' during substitution so that $LINENO is not a special |
| 28117 | # case at line end. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28118 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28119 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 28120 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 28121 | sed -n ' |
| 28122 | p |
| 28123 | /[$]LINENO/= |
| 28124 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28125 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28126 | s/[$]LINENO.*/&-/ |
| 28127 | t lineno |
| 28128 | b |
| 28129 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28130 | N |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28131 | :loop |
| 28132 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28133 | t loop |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28134 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28135 | ' >$as_me.lineno && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28136 | chmod +x "$as_me.lineno" || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28137 | { 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] | 28138 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 28139 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28140 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 28141 | # (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] | 28142 | # original and so on. Autoconf is especially sensitive to this). |
| 28143 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28144 | # Exit status is that of the last command. |
| 28145 | exit |
| 28146 | } |
| 28147 | |
| 28148 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28149 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 28150 | as_dirname=dirname |
| 28151 | else |
| 28152 | as_dirname=false |
| 28153 | fi |
| 28154 | |
| 28155 | ECHO_C= ECHO_N= ECHO_T= |
| 28156 | case `echo -n x` in |
| 28157 | -n*) |
| 28158 | case `echo 'x\c'` in |
| 28159 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 28160 | *) ECHO_C='\c';; |
| 28161 | esac;; |
| 28162 | *) |
| 28163 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28164 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28165 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28166 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 28167 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28168 | as_expr=expr |
| 28169 | else |
| 28170 | as_expr=false |
| 28171 | fi |
| 28172 | |
| 28173 | rm -f conf$$ conf$$.exe conf$$.file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28174 | if test -d conf$$.dir; then |
| 28175 | rm -f conf$$.dir/conf$$.file |
| 28176 | else |
| 28177 | rm -f conf$$.dir |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28178 | mkdir conf$$.dir |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28179 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28180 | echo >conf$$.file |
| 28181 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 28182 | as_ln_s='ln -s' |
| 28183 | # ... but there are two gotchas: |
| 28184 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 28185 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 28186 | # In both cases, we have to default to `cp -p'. |
| 28187 | 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] | 28188 | as_ln_s='cp -p' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28189 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 28190 | as_ln_s=ln |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28191 | else |
| 28192 | as_ln_s='cp -p' |
| 28193 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28194 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 28195 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28196 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28197 | if mkdir -p . 2>/dev/null; then |
| 28198 | as_mkdir_p=: |
| 28199 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28200 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28201 | as_mkdir_p=false |
| 28202 | fi |
| 28203 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28204 | if test -x / >/dev/null 2>&1; then |
| 28205 | as_test_x='test -x' |
| 28206 | else |
| 28207 | if ls -dL / >/dev/null 2>&1; then |
| 28208 | as_ls_L_option=L |
| 28209 | else |
| 28210 | as_ls_L_option= |
| 28211 | fi |
| 28212 | as_test_x=' |
| 28213 | eval sh -c '\'' |
| 28214 | if test -d "$1"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28215 | test -d "$1/."; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28216 | else |
| 28217 | case $1 in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28218 | -*)set "./$1";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28219 | esac; |
| 28220 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 28221 | ???[sx]*):;;*)false;;esac;fi |
| 28222 | '\'' sh |
| 28223 | ' |
| 28224 | fi |
| 28225 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28226 | |
| 28227 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28228 | 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] | 28229 | |
| 28230 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28231 | 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] | 28232 | |
| 28233 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28234 | exec 6>&1 |
| 28235 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28236 | # 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] | 28237 | # 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] | 28238 | # values after options handling. |
| 28239 | ac_log=" |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 28240 | This file was extended by python $as_me 2.7, which was |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28241 | generated by GNU Autoconf 2.61. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28242 | |
| 28243 | CONFIG_FILES = $CONFIG_FILES |
| 28244 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 28245 | CONFIG_LINKS = $CONFIG_LINKS |
| 28246 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 28247 | $ $0 $@ |
| 28248 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28249 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 28250 | " |
| 28251 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28252 | _ACEOF |
| 28253 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28254 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28255 | # Files that config.status was made for. |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 28256 | config_files="$ac_config_files" |
| 28257 | config_headers="$ac_config_headers" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28258 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28259 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28260 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28261 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28262 | ac_cs_usage="\ |
| 28263 | \`$as_me' instantiates files from templates according to the |
| 28264 | current configuration. |
| 28265 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28266 | Usage: $0 [OPTIONS] [FILE]... |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28267 | |
| 28268 | -h, --help print this help, then exit |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28269 | -V, --version print version number and configuration settings, then exit |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28270 | -q, --quiet do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28271 | -d, --debug don't remove temporary files |
| 28272 | --recheck update $as_me by reconfiguring in the same conditions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28273 | --file=FILE[:TEMPLATE] |
| 28274 | instantiate the configuration file FILE |
| 28275 | --header=FILE[:TEMPLATE] |
| 28276 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28277 | |
| 28278 | Configuration files: |
| 28279 | $config_files |
| 28280 | |
| 28281 | Configuration headers: |
| 28282 | $config_headers |
| 28283 | |
| 28284 | Report bugs to <bug-autoconf@gnu.org>." |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 28285 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28286 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28287 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28288 | ac_cs_version="\\ |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 28289 | python config.status 2.7 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28290 | configured by $0, generated by GNU Autoconf 2.61, |
| 28291 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28292 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28293 | Copyright (C) 2006 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28294 | This config.status script is free software; the Free Software Foundation |
| 28295 | gives unlimited permission to copy, distribute and modify it." |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28296 | |
| 28297 | ac_pwd='$ac_pwd' |
| 28298 | srcdir='$srcdir' |
| 28299 | INSTALL='$INSTALL' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28300 | _ACEOF |
| 28301 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28302 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 28303 | # If no file are specified by the user, then we need to provide default |
| 28304 | # 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] | 28305 | ac_need_defaults=: |
| 28306 | while test $# != 0 |
| 28307 | do |
| 28308 | case $1 in |
| 28309 | --*=*) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28310 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 28311 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28312 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28313 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28314 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28315 | ac_option=$1 |
| 28316 | ac_optarg=$2 |
| 28317 | ac_shift=shift |
| 28318 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28319 | esac |
| 28320 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28321 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28322 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28323 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 28324 | ac_cs_recheck=: ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28325 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28326 | echo "$ac_cs_version"; exit ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28327 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28328 | debug=: ;; |
| 28329 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28330 | $ac_shift |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28331 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28332 | ac_need_defaults=false;; |
| 28333 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28334 | $ac_shift |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28335 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28336 | ac_need_defaults=false;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28337 | --he | --h) |
| 28338 | # Conflict between --help and --header |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28339 | { echo "$as_me: error: ambiguous option: $1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28340 | Try \`$0 --help' for more information." >&2 |
| 28341 | { (exit 1); exit 1; }; };; |
| 28342 | --help | --hel | -h ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28343 | echo "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28344 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 28345 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 28346 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28347 | |
| 28348 | # This is an error. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28349 | -*) { echo "$as_me: error: unrecognized option: $1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28350 | Try \`$0 --help' for more information." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28351 | { (exit 1); exit 1; }; } ;; |
| 28352 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28353 | *) ac_config_targets="$ac_config_targets $1" |
| 28354 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28355 | |
| 28356 | esac |
| 28357 | shift |
| 28358 | done |
| 28359 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28360 | ac_configure_extra_args= |
| 28361 | |
| 28362 | if $ac_cs_silent; then |
| 28363 | exec 6>/dev/null |
| 28364 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 28365 | fi |
| 28366 | |
| 28367 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28368 | cat >>$CONFIG_STATUS <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28369 | if \$ac_cs_recheck; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28370 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 28371 | CONFIG_SHELL=$SHELL |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28372 | export CONFIG_SHELL |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28373 | 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] | 28374 | fi |
| 28375 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28376 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28377 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28378 | exec 5>>config.log |
| 28379 | { |
| 28380 | echo |
| 28381 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 28382 | ## Running $as_me. ## |
| 28383 | _ASBOX |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28384 | echo "$ac_log" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28385 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28386 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28387 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28388 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28389 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28390 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28391 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28392 | |
| 28393 | # Handling of arguments. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28394 | for ac_config_target in $ac_config_targets |
| 28395 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28396 | case $ac_config_target in |
| 28397 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 28398 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; |
| 28399 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; |
| 28400 | "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;; |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 28401 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; |
| 28402 | "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] | 28403 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 28404 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 28405 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28406 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28407 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 28408 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28409 | { (exit 1); exit 1; }; };; |
| 28410 | esac |
| 28411 | done |
| 28412 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28413 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28414 | # If the user did not use the arguments to specify the items to instantiate, |
| 28415 | # then the envvar interface is used. Set only those that are not. |
| 28416 | # We use the long form for the default assignment because of an extremely |
| 28417 | # bizarre bug on SunOS 4.1.3. |
| 28418 | if $ac_need_defaults; then |
| 28419 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 28420 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 28421 | fi |
| 28422 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28423 | # 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] | 28424 | # 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] | 28425 | # creating and moving files from /tmp can sometimes cause problems. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28426 | # Hook for its removal unless debugging. |
| 28427 | # Note that there is a small window in which the directory will not be cleaned: |
| 28428 | # 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] | 28429 | $debug || |
| 28430 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28431 | tmp= |
| 28432 | trap 'exit_status=$? |
| 28433 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 28434 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28435 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 28436 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28437 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28438 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28439 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28440 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28441 | test -n "$tmp" && test -d "$tmp" |
| 28442 | } || |
| 28443 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28444 | tmp=./conf$$-$RANDOM |
| 28445 | (umask 077 && mkdir "$tmp") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28446 | } || |
| 28447 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28448 | echo "$me: cannot create a temporary directory in ." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28449 | { (exit 1); exit 1; } |
| 28450 | } |
| 28451 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28452 | # |
| 28453 | # Set up the sed scripts for CONFIG_FILES section. |
| 28454 | # |
| 28455 | |
| 28456 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 28457 | # This happens for instance when ./config.status config.h |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28458 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28459 | |
| 28460 | _ACEOF |
| 28461 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28462 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28463 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28464 | ac_delim='%!_!# ' |
| 28465 | for ac_last_try in false false false false false :; do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28466 | cat >conf$$subs.sed <<_ACEOF |
| 28467 | SHELL!$SHELL$ac_delim |
| 28468 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 28469 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 28470 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 28471 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 28472 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 28473 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 28474 | exec_prefix!$exec_prefix$ac_delim |
| 28475 | prefix!$prefix$ac_delim |
| 28476 | program_transform_name!$program_transform_name$ac_delim |
| 28477 | bindir!$bindir$ac_delim |
| 28478 | sbindir!$sbindir$ac_delim |
| 28479 | libexecdir!$libexecdir$ac_delim |
| 28480 | datarootdir!$datarootdir$ac_delim |
| 28481 | datadir!$datadir$ac_delim |
| 28482 | sysconfdir!$sysconfdir$ac_delim |
| 28483 | sharedstatedir!$sharedstatedir$ac_delim |
| 28484 | localstatedir!$localstatedir$ac_delim |
| 28485 | includedir!$includedir$ac_delim |
| 28486 | oldincludedir!$oldincludedir$ac_delim |
| 28487 | docdir!$docdir$ac_delim |
| 28488 | infodir!$infodir$ac_delim |
| 28489 | htmldir!$htmldir$ac_delim |
| 28490 | dvidir!$dvidir$ac_delim |
| 28491 | pdfdir!$pdfdir$ac_delim |
| 28492 | psdir!$psdir$ac_delim |
| 28493 | libdir!$libdir$ac_delim |
| 28494 | localedir!$localedir$ac_delim |
| 28495 | mandir!$mandir$ac_delim |
| 28496 | DEFS!$DEFS$ac_delim |
| 28497 | ECHO_C!$ECHO_C$ac_delim |
| 28498 | ECHO_N!$ECHO_N$ac_delim |
| 28499 | ECHO_T!$ECHO_T$ac_delim |
| 28500 | LIBS!$LIBS$ac_delim |
| 28501 | build_alias!$build_alias$ac_delim |
| 28502 | host_alias!$host_alias$ac_delim |
| 28503 | target_alias!$target_alias$ac_delim |
| 28504 | VERSION!$VERSION$ac_delim |
| 28505 | SOVERSION!$SOVERSION$ac_delim |
| 28506 | CONFIG_ARGS!$CONFIG_ARGS$ac_delim |
| 28507 | UNIVERSALSDK!$UNIVERSALSDK$ac_delim |
| 28508 | ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 28509 | LIPO_32BIT_FLAGS!$LIPO_32BIT_FLAGS$ac_delim |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28510 | PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim |
| 28511 | PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim |
| 28512 | PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim |
| 28513 | PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim |
| 28514 | PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim |
| 28515 | FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim |
| 28516 | FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim |
| 28517 | FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim |
| 28518 | FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim |
| 28519 | FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 28520 | FRAMEWORKINSTALLAPPSPREFIX!$FRAMEWORKINSTALLAPPSPREFIX$ac_delim |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28521 | MACHDEP!$MACHDEP$ac_delim |
| 28522 | SGI_ABI!$SGI_ABI$ac_delim |
| 28523 | EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim |
| 28524 | EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim |
| 28525 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim |
| 28526 | EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim |
| 28527 | CC!$CC$ac_delim |
| 28528 | CFLAGS!$CFLAGS$ac_delim |
| 28529 | LDFLAGS!$LDFLAGS$ac_delim |
| 28530 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 28531 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 28532 | EXEEXT!$EXEEXT$ac_delim |
| 28533 | OBJEXT!$OBJEXT$ac_delim |
| 28534 | CXX!$CXX$ac_delim |
| 28535 | MAINCC!$MAINCC$ac_delim |
| 28536 | CPP!$CPP$ac_delim |
| 28537 | GREP!$GREP$ac_delim |
| 28538 | EGREP!$EGREP$ac_delim |
| 28539 | BUILDEXEEXT!$BUILDEXEEXT$ac_delim |
| 28540 | LIBRARY!$LIBRARY$ac_delim |
| 28541 | LDLIBRARY!$LDLIBRARY$ac_delim |
| 28542 | DLLLIBRARY!$DLLLIBRARY$ac_delim |
| 28543 | BLDLIBRARY!$BLDLIBRARY$ac_delim |
| 28544 | LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim |
| 28545 | INSTSONAME!$INSTSONAME$ac_delim |
| 28546 | RUNSHARED!$RUNSHARED$ac_delim |
| 28547 | LINKCC!$LINKCC$ac_delim |
| 28548 | GNULD!$GNULD$ac_delim |
| 28549 | RANLIB!$RANLIB$ac_delim |
| 28550 | AR!$AR$ac_delim |
| 28551 | ARFLAGS!$ARFLAGS$ac_delim |
| 28552 | SVNVERSION!$SVNVERSION$ac_delim |
| 28553 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 28554 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 28555 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 28556 | LN!$LN$ac_delim |
| 28557 | OPT!$OPT$ac_delim |
| 28558 | BASECFLAGS!$BASECFLAGS$ac_delim |
| 28559 | UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim |
| 28560 | OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim |
| 28561 | LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim |
| 28562 | SO!$SO$ac_delim |
| 28563 | LDSHARED!$LDSHARED$ac_delim |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28564 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28565 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28566 | 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] | 28567 | break |
| 28568 | elif $ac_last_try; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28569 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 28570 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28571 | { (exit 1); exit 1; }; } |
| 28572 | else |
| 28573 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28574 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28575 | done |
| 28576 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28577 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 28578 | if test -n "$ac_eof"; then |
| 28579 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 28580 | ac_eof=`expr $ac_eof + 1` |
| 28581 | fi |
| 28582 | |
| 28583 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28584 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 28585 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28586 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28587 | sed ' |
| 28588 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 28589 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 28590 | :n |
| 28591 | t n |
| 28592 | s/'"$ac_delim"'$/,g/; t |
| 28593 | s/$/\\/; p |
| 28594 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 28595 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 28596 | rm -f conf$$subs.sed |
| 28597 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28598 | CEOF$ac_eof |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28599 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28600 | |
| 28601 | |
| 28602 | ac_delim='%!_!# ' |
| 28603 | for ac_last_try in false false false false false :; do |
| 28604 | cat >conf$$subs.sed <<_ACEOF |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 28605 | LDCXXSHARED!$LDCXXSHARED$ac_delim |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 28606 | BLDSHARED!$BLDSHARED$ac_delim |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 28607 | CCSHARED!$CCSHARED$ac_delim |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28608 | LINKFORSHARED!$LINKFORSHARED$ac_delim |
| 28609 | CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim |
| 28610 | SHLIBS!$SHLIBS$ac_delim |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 28611 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
| 28612 | LIBFFI_INCLUDEDIR!$LIBFFI_INCLUDEDIR$ac_delim |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28613 | USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim |
| 28614 | SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim |
| 28615 | USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim |
| 28616 | LDLAST!$LDLAST$ac_delim |
| 28617 | THREADOBJ!$THREADOBJ$ac_delim |
| 28618 | DLINCLDIR!$DLINCLDIR$ac_delim |
| 28619 | DYNLOADFILE!$DYNLOADFILE$ac_delim |
| 28620 | MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim |
| 28621 | TRUE!$TRUE$ac_delim |
| 28622 | LIBOBJS!$LIBOBJS$ac_delim |
| 28623 | HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim |
| 28624 | HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim |
| 28625 | HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim |
| 28626 | HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim |
| 28627 | HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim |
| 28628 | LIBM!$LIBM$ac_delim |
| 28629 | LIBC!$LIBC$ac_delim |
| 28630 | UNICODE_OBJS!$UNICODE_OBJS$ac_delim |
| 28631 | THREADHEADERS!$THREADHEADERS$ac_delim |
| 28632 | SRCDIRS!$SRCDIRS$ac_delim |
| 28633 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 28634 | _ACEOF |
| 28635 | |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 28636 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 29; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28637 | break |
| 28638 | elif $ac_last_try; then |
| 28639 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 28640 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28641 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28642 | else |
| 28643 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 28644 | fi |
| 28645 | done |
| 28646 | |
| 28647 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 28648 | if test -n "$ac_eof"; then |
| 28649 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 28650 | ac_eof=`expr $ac_eof + 1` |
| 28651 | fi |
| 28652 | |
| 28653 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28654 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 28655 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28656 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28657 | sed ' |
| 28658 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 28659 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 28660 | :n |
| 28661 | t n |
| 28662 | s/'"$ac_delim"'$/,g/; t |
| 28663 | s/$/\\/; p |
| 28664 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 28665 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 28666 | rm -f conf$$subs.sed |
| 28667 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28668 | :end |
| 28669 | s/|#_!!_#|//g |
| 28670 | CEOF$ac_eof |
| 28671 | _ACEOF |
| 28672 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28673 | |
| 28674 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 28675 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 28676 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 28677 | # (actually we leave an empty line to preserve line numbers). |
| 28678 | if test "x$srcdir" = x.; then |
| 28679 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 28680 | s/:*\$(srcdir):*/:/ |
| 28681 | s/:*\${srcdir}:*/:/ |
| 28682 | s/:*@srcdir@:*/:/ |
| 28683 | s/^\([^=]*=[ ]*\):*/\1/ |
| 28684 | s/:*$// |
| 28685 | s/^[^=]*=[ ]*$// |
| 28686 | }' |
| 28687 | fi |
| 28688 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28689 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28690 | fi # test -n "$CONFIG_FILES" |
| 28691 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28692 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28693 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28694 | do |
| 28695 | case $ac_tag in |
| 28696 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 28697 | esac |
| 28698 | case $ac_mode$ac_tag in |
| 28699 | :[FHL]*:*);; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28700 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 28701 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28702 | { (exit 1); exit 1; }; };; |
| 28703 | :[FH]-) ac_tag=-:-;; |
| 28704 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 28705 | esac |
| 28706 | ac_save_IFS=$IFS |
| 28707 | IFS=: |
| 28708 | set x $ac_tag |
| 28709 | IFS=$ac_save_IFS |
| 28710 | shift |
| 28711 | ac_file=$1 |
| 28712 | shift |
| 28713 | |
| 28714 | case $ac_mode in |
| 28715 | :L) ac_source=$1;; |
| 28716 | :[FH]) |
| 28717 | ac_file_inputs= |
| 28718 | for ac_f |
| 28719 | do |
| 28720 | case $ac_f in |
| 28721 | -) ac_f="$tmp/stdin";; |
| 28722 | *) # Look for the file first in the build tree, then in the source tree |
| 28723 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 28724 | # because $ac_f cannot contain `:'. |
| 28725 | test -f "$ac_f" || |
| 28726 | case $ac_f in |
| 28727 | [\\/$]*) false;; |
| 28728 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 28729 | esac || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28730 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 28731 | 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] | 28732 | { (exit 1); exit 1; }; };; |
| 28733 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28734 | ac_file_inputs="$ac_file_inputs $ac_f" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28735 | done |
| 28736 | |
| 28737 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 28738 | # use $as_me), people would be surprised to read: |
| 28739 | # /* config.h. Generated by config.status. */ |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28740 | configure_input="Generated from "`IFS=: |
| 28741 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28742 | if test x"$ac_file" != x-; then |
| 28743 | configure_input="$ac_file. $configure_input" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28744 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 28745 | echo "$as_me: creating $ac_file" >&6;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28746 | fi |
| 28747 | |
| 28748 | case $ac_tag in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28749 | *:-:* | *:-) cat >"$tmp/stdin";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28750 | esac |
| 28751 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28752 | esac |
| 28753 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28754 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28755 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28756 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 28757 | X"$ac_file" : 'X\(//\)$' \| \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28758 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28759 | echo X"$ac_file" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28760 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 28761 | s//\1/ |
| 28762 | q |
| 28763 | } |
| 28764 | /^X\(\/\/\)[^/].*/{ |
| 28765 | s//\1/ |
| 28766 | q |
| 28767 | } |
| 28768 | /^X\(\/\/\)$/{ |
| 28769 | s//\1/ |
| 28770 | q |
| 28771 | } |
| 28772 | /^X\(\/\).*/{ |
| 28773 | s//\1/ |
| 28774 | q |
| 28775 | } |
| 28776 | s/.*/./; q'` |
| 28777 | { as_dir="$ac_dir" |
| 28778 | case $as_dir in #( |
| 28779 | -*) as_dir=./$as_dir;; |
| 28780 | esac |
| 28781 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28782 | as_dirs= |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28783 | while :; do |
| 28784 | case $as_dir in #( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28785 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28786 | *) as_qdir=$as_dir;; |
| 28787 | esac |
| 28788 | as_dirs="'$as_qdir' $as_dirs" |
| 28789 | as_dir=`$as_dirname -- "$as_dir" || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28790 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28791 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 28792 | X"$as_dir" : 'X\(//\)$' \| \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28793 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28794 | echo X"$as_dir" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28795 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 28796 | s//\1/ |
| 28797 | q |
| 28798 | } |
| 28799 | /^X\(\/\/\)[^/].*/{ |
| 28800 | s//\1/ |
| 28801 | q |
| 28802 | } |
| 28803 | /^X\(\/\/\)$/{ |
| 28804 | s//\1/ |
| 28805 | q |
| 28806 | } |
| 28807 | /^X\(\/\).*/{ |
| 28808 | s//\1/ |
| 28809 | q |
| 28810 | } |
| 28811 | s/.*/./; q'` |
| 28812 | test -d "$as_dir" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28813 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28814 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28815 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 28816 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28817 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28818 | ac_builddir=. |
| 28819 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28820 | case "$ac_dir" in |
| 28821 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 28822 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28823 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28824 | # A ".." for each directory in $ac_dir_suffix. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28825 | 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] | 28826 | case $ac_top_builddir_sub in |
| 28827 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 28828 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 28829 | esac ;; |
| 28830 | esac |
| 28831 | ac_abs_top_builddir=$ac_pwd |
| 28832 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 28833 | # for backward compatibility: |
| 28834 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28835 | |
| 28836 | case $srcdir in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28837 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28838 | ac_srcdir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28839 | ac_top_srcdir=$ac_top_builddir_sub |
| 28840 | ac_abs_top_srcdir=$ac_pwd ;; |
| 28841 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28842 | ac_srcdir=$srcdir$ac_dir_suffix; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28843 | ac_top_srcdir=$srcdir |
| 28844 | ac_abs_top_srcdir=$srcdir ;; |
| 28845 | *) # Relative name. |
| 28846 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 28847 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 28848 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28849 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28850 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28851 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28852 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28853 | case $ac_mode in |
| 28854 | :F) |
| 28855 | # |
| 28856 | # CONFIG_FILE |
| 28857 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28858 | |
| 28859 | case $INSTALL in |
| 28860 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28861 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28862 | esac |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 28863 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28864 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28865 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28866 | # If the template does not know about datarootdir, expand it. |
| 28867 | # FIXME: This hack should be removed a few years after 2.60. |
| 28868 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 28869 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28870 | case `sed -n '/datarootdir/ { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28871 | p |
| 28872 | q |
| 28873 | } |
| 28874 | /@datadir@/p |
| 28875 | /@docdir@/p |
| 28876 | /@infodir@/p |
| 28877 | /@localedir@/p |
| 28878 | /@mandir@/p |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28879 | ' $ac_file_inputs` in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28880 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 28881 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28882 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 28883 | 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] | 28884 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28885 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28886 | ac_datarootdir_hack=' |
| 28887 | s&@datadir@&$datadir&g |
| 28888 | s&@docdir@&$docdir&g |
| 28889 | s&@infodir@&$infodir&g |
| 28890 | s&@localedir@&$localedir&g |
| 28891 | s&@mandir@&$mandir&g |
| 28892 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 28893 | esac |
| 28894 | _ACEOF |
| 28895 | |
| 28896 | # Neutralize VPATH when `$srcdir' = `.'. |
| 28897 | # Shell code in configure.ac might set extrasub. |
| 28898 | # FIXME: do we really want to maintain this feature? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28899 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28900 | sed "$ac_vpsub |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28901 | $extrasub |
| 28902 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28903 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28904 | :t |
| 28905 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28906 | s&@configure_input@&$configure_input&;t t |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28907 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 28908 | s&@srcdir@&$ac_srcdir&;t t |
| 28909 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 28910 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 28911 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 28912 | s&@builddir@&$ac_builddir&;t t |
| 28913 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 28914 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 28915 | s&@INSTALL@&$ac_INSTALL&;t t |
| 28916 | $ac_datarootdir_hack |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28917 | " $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] | 28918 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28919 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 28920 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 28921 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28922 | { 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] | 28923 | which seems to be undefined. Please make sure it is defined." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28924 | 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] | 28925 | 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] | 28926 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28927 | rm -f "$tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28928 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28929 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 28930 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 28931 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28932 | ;; |
| 28933 | :H) |
| 28934 | # |
| 28935 | # CONFIG_HEADER |
| 28936 | # |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28937 | _ACEOF |
| 28938 | |
| 28939 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 28940 | # substitutes the proper values into config.h.in to produce config.h. |
| 28941 | rm -f conftest.defines conftest.tail |
| 28942 | # First, append a space to every undef/define line, to ease matching. |
| 28943 | echo 's/$/ /' >conftest.defines |
| 28944 | # Then, protect against being on the right side of a sed subst, or in |
| 28945 | # an unquoted here document, in config.status. If some macros were |
| 28946 | # called several times there might be several #defines for the same |
| 28947 | # symbol, which is useless. But do not sort them, since the last |
| 28948 | # AC_DEFINE must be honored. |
| 28949 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 28950 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 28951 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 28952 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 28953 | # just an empty string. |
| 28954 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 28955 | ac_dB='\\)[ (].*,\\1define\\2' |
| 28956 | ac_dC=' ' |
| 28957 | ac_dD=' ,' |
| 28958 | |
| 28959 | uniq confdefs.h | |
| 28960 | sed -n ' |
| 28961 | t rset |
| 28962 | :rset |
| 28963 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 28964 | t ok |
| 28965 | d |
| 28966 | :ok |
| 28967 | s/[\\&,]/\\&/g |
| 28968 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 28969 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 28970 | ' >>conftest.defines |
| 28971 | |
| 28972 | # Remove the space that was appended to ease matching. |
| 28973 | # Then replace #undef with comments. This is necessary, for |
| 28974 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 28975 | # on some systems where configure will not decide to define it. |
| 28976 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 28977 | echo 's/ $// |
| 28978 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 28979 | |
| 28980 | # Break up conftest.defines: |
| 28981 | ac_max_sed_lines=50 |
| 28982 | |
| 28983 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 28984 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 28985 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 28986 | # et cetera. |
| 28987 | ac_in='$ac_file_inputs' |
| 28988 | ac_out='"$tmp/out1"' |
| 28989 | ac_nxt='"$tmp/out2"' |
| 28990 | |
| 28991 | while : |
| 28992 | do |
| 28993 | # Write a here document: |
| 28994 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28995 | # First, check the format of the line: |
| 28996 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 28997 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 28998 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 28999 | b |
| 29000 | :def |
| 29001 | _ACEOF |
| 29002 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 29003 | echo 'CEOF |
| 29004 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 29005 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 29006 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 29007 | grep . conftest.tail >/dev/null || break |
| 29008 | rm -f conftest.defines |
| 29009 | mv conftest.tail conftest.defines |
| 29010 | done |
| 29011 | rm -f conftest.defines conftest.tail |
| 29012 | |
| 29013 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 29014 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 29015 | if test x"$ac_file" != x-; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 29016 | echo "/* $configure_input */" >"$tmp/config.h" |
| 29017 | cat "$ac_result" >>"$tmp/config.h" |
| 29018 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 29019 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 29020 | echo "$as_me: $ac_file is unchanged" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 29021 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 29022 | rm -f $ac_file |
| 29023 | mv "$tmp/config.h" $ac_file |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 29024 | fi |
| 29025 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 29026 | echo "/* $configure_input */" |
| 29027 | cat "$ac_result" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 29028 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 29029 | rm -f "$tmp/out12" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 29030 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 29031 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 29032 | |
| 29033 | esac |
| 29034 | |
| 29035 | done # for ac_tag |
| 29036 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 29037 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 29038 | { (exit 0); exit 0; } |
| 29039 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 29040 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 29041 | ac_clean_files=$ac_clean_files_save |
| 29042 | |
| 29043 | |
| 29044 | # configure is writing to config.log, and then calls config.status. |
| 29045 | # config.status does its own redirection, appending to config.log. |
| 29046 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 29047 | # by configure, so config.status won't be able to write to it; its |
| 29048 | # output is simply discarded. So we exec the FD to /dev/null, |
| 29049 | # effectively closing config.log, so it can be properly (re)opened and |
| 29050 | # appended to by config.status. When coming back to configure, we |
| 29051 | # need to make the FD available again. |
| 29052 | if test "$no_create" != yes; then |
| 29053 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 29054 | ac_config_status_args= |
| 29055 | test "$silent" = yes && |
| 29056 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 29057 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 29058 | $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] | 29059 | exec 5>>config.log |
| 29060 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 29061 | # would make configure fail if this is the last instruction. |
| 29062 | $ac_cs_success || { (exit 1); exit 1; } |
| 29063 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 29064 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 29065 | |
Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 29066 | echo "creating Modules/Setup" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 29067 | if test ! -f Modules/Setup |
| 29068 | then |
| 29069 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 29070 | fi |
| 29071 | |
Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 29072 | echo "creating Modules/Setup.local" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 29073 | if test ! -f Modules/Setup.local |
| 29074 | then |
| 29075 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 29076 | fi |
| 29077 | |
| 29078 | echo "creating Makefile" |
| 29079 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 29080 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 29081 | Modules/Setup.local Modules/Setup |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 29082 | |
| 29083 | case $ac_sys_system in |
| 29084 | BeOS) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 29085 | { echo "$as_me:$LINENO: WARNING: |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 29086 | |
| 29087 | Support for BeOS is deprecated as of Python 2.6. |
| 29088 | See PEP 11 for the gory details. |
| 29089 | " >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 29090 | echo "$as_me: WARNING: |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 29091 | |
| 29092 | Support for BeOS is deprecated as of Python 2.6. |
| 29093 | See PEP 11 for the gory details. |
| 29094 | " >&2;} |
| 29095 | ;; |
| 29096 | *) ;; |
| 29097 | esac |
| 29098 | |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 29099 | mv config.c Modules |