Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame^] | 2 | # From configure.in Revision: 80647 . |
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 | |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame^] | 2410 | # If the user set CFLAGS, use this instead of the automatically |
| 2411 | # determined setting |
| 2412 | preset_cflags="$CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2413 | ac_ext=c |
| 2414 | ac_cpp='$CPP $CPPFLAGS' |
| 2415 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2416 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2417 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2418 | if test -n "$ac_tool_prefix"; then |
| 2419 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2420 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2421 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2422 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2423 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2425 | else |
| 2426 | if test -n "$CC"; then |
| 2427 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2428 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2429 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2430 | for as_dir in $PATH |
| 2431 | do |
| 2432 | IFS=$as_save_IFS |
| 2433 | test -z "$as_dir" && as_dir=. |
| 2434 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2435 | 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] | 2436 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2437 | 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] | 2438 | break 2 |
| 2439 | fi |
| 2440 | done |
| 2441 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2442 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2443 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2444 | fi |
| 2445 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2446 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2447 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2448 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2449 | echo "${ECHO_T}$CC" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2450 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2451 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2452 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2453 | fi |
| 2454 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2455 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2456 | fi |
| 2457 | if test -z "$ac_cv_prog_CC"; then |
| 2458 | ac_ct_CC=$CC |
| 2459 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2460 | set dummy gcc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2461 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2462 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2463 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2465 | else |
| 2466 | if test -n "$ac_ct_CC"; then |
| 2467 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2468 | else |
| 2469 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2470 | for as_dir in $PATH |
| 2471 | do |
| 2472 | IFS=$as_save_IFS |
| 2473 | test -z "$as_dir" && as_dir=. |
| 2474 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2475 | 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] | 2476 | ac_cv_prog_ac_ct_CC="gcc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2477 | 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] | 2478 | break 2 |
| 2479 | fi |
| 2480 | done |
| 2481 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2482 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2483 | |
| 2484 | fi |
| 2485 | fi |
| 2486 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2487 | if test -n "$ac_ct_CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2488 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2489 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2490 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2491 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2492 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2493 | fi |
| 2494 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2495 | if test "x$ac_ct_CC" = x; then |
| 2496 | CC="" |
| 2497 | else |
| 2498 | case $cross_compiling:$ac_tool_warned in |
| 2499 | yes:) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2500 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2501 | whose name does not start with the host triplet. If you think this |
| 2502 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2503 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2504 | whose name does not start with the host triplet. If you think this |
| 2505 | 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] | 2506 | ac_tool_warned=yes ;; |
| 2507 | esac |
| 2508 | CC=$ac_ct_CC |
| 2509 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2510 | else |
| 2511 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2512 | fi |
| 2513 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2514 | if test -z "$CC"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2515 | if test -n "$ac_tool_prefix"; then |
| 2516 | # 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] | 2517 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2518 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2519 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2520 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2522 | else |
| 2523 | if test -n "$CC"; then |
| 2524 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2525 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2527 | for as_dir in $PATH |
| 2528 | do |
| 2529 | IFS=$as_save_IFS |
| 2530 | test -z "$as_dir" && as_dir=. |
| 2531 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2532 | 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] | 2533 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2534 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2535 | break 2 |
| 2536 | fi |
| 2537 | done |
| 2538 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2539 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2540 | |
| 2541 | fi |
| 2542 | fi |
| 2543 | CC=$ac_cv_prog_CC |
| 2544 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2545 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2546 | echo "${ECHO_T}$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2547 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2548 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2549 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2550 | fi |
| 2551 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2552 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2553 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2554 | fi |
| 2555 | if test -z "$CC"; then |
| 2556 | # Extract the first word of "cc", so it can be a program name with args. |
| 2557 | set dummy cc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2558 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2559 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2560 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2561 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2562 | else |
| 2563 | if test -n "$CC"; then |
| 2564 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2565 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2566 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2568 | for as_dir in $PATH |
| 2569 | do |
| 2570 | IFS=$as_save_IFS |
| 2571 | test -z "$as_dir" && as_dir=. |
| 2572 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2573 | 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] | 2574 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2575 | ac_prog_rejected=yes |
| 2576 | continue |
| 2577 | fi |
| 2578 | ac_cv_prog_CC="cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2579 | 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] | 2580 | break 2 |
| 2581 | fi |
| 2582 | done |
| 2583 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2584 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2585 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2586 | if test $ac_prog_rejected = yes; then |
| 2587 | # We found a bogon in the path, so make sure we never use it. |
| 2588 | set dummy $ac_cv_prog_CC |
| 2589 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2590 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2591 | # We chose a different compiler from the bogus one. |
| 2592 | # However, it has the same basename, so the bogon will be chosen |
| 2593 | # first if we set CC to just the basename; use the full file name. |
| 2594 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2595 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2596 | fi |
| 2597 | fi |
| 2598 | fi |
| 2599 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2600 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2601 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2602 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2603 | echo "${ECHO_T}$CC" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2604 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2605 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2606 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2607 | fi |
| 2608 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2609 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2610 | fi |
| 2611 | if test -z "$CC"; then |
| 2612 | if test -n "$ac_tool_prefix"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2613 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2614 | do |
| 2615 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2616 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2617 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2618 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2619 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2621 | else |
| 2622 | if test -n "$CC"; then |
| 2623 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2624 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2626 | for as_dir in $PATH |
| 2627 | do |
| 2628 | IFS=$as_save_IFS |
| 2629 | test -z "$as_dir" && as_dir=. |
| 2630 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2631 | 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] | 2632 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2633 | 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] | 2634 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2635 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2636 | done |
| 2637 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2638 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2639 | |
| 2640 | fi |
| 2641 | fi |
| 2642 | CC=$ac_cv_prog_CC |
| 2643 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2644 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2645 | echo "${ECHO_T}$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2646 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2647 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2648 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2649 | fi |
| 2650 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2651 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2652 | test -n "$CC" && break |
| 2653 | done |
| 2654 | fi |
| 2655 | if test -z "$CC"; then |
| 2656 | ac_ct_CC=$CC |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2657 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2658 | do |
| 2659 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2660 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2661 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2662 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2663 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2665 | else |
| 2666 | if test -n "$ac_ct_CC"; then |
| 2667 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2668 | else |
| 2669 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2670 | for as_dir in $PATH |
| 2671 | do |
| 2672 | IFS=$as_save_IFS |
| 2673 | test -z "$as_dir" && as_dir=. |
| 2674 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2675 | 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] | 2676 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2677 | 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] | 2678 | break 2 |
| 2679 | fi |
| 2680 | done |
| 2681 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2682 | IFS=$as_save_IFS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2683 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2684 | fi |
| 2685 | fi |
| 2686 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2687 | if test -n "$ac_ct_CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2688 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2689 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2690 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2691 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2692 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2693 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2694 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2695 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2696 | test -n "$ac_ct_CC" && break |
| 2697 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2698 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2699 | if test "x$ac_ct_CC" = x; then |
| 2700 | CC="" |
| 2701 | else |
| 2702 | case $cross_compiling:$ac_tool_warned in |
| 2703 | yes:) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2704 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2705 | whose name does not start with the host triplet. If you think this |
| 2706 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2707 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2708 | whose name does not start with the host triplet. If you think this |
| 2709 | 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] | 2710 | ac_tool_warned=yes ;; |
| 2711 | esac |
| 2712 | CC=$ac_ct_CC |
| 2713 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2714 | fi |
| 2715 | |
| 2716 | fi |
| 2717 | |
| 2718 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2719 | 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] | 2720 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2721 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2722 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2723 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2724 | |
| 2725 | # Provide some information about the compiler. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2726 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2727 | ac_compiler=`set X $ac_compile; echo $2` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2728 | { (ac_try="$ac_compiler --version >&5" |
| 2729 | case "(($ac_try" in |
| 2730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2731 | *) ac_try_echo=$ac_try;; |
| 2732 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2734 | (eval "$ac_compiler --version >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2735 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2737 | (exit $ac_status); } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2738 | { (ac_try="$ac_compiler -v >&5" |
| 2739 | case "(($ac_try" in |
| 2740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2741 | *) ac_try_echo=$ac_try;; |
| 2742 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2744 | (eval "$ac_compiler -v >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2745 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2747 | (exit $ac_status); } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2748 | { (ac_try="$ac_compiler -V >&5" |
| 2749 | case "(($ac_try" in |
| 2750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2751 | *) ac_try_echo=$ac_try;; |
| 2752 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2754 | (eval "$ac_compiler -V >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2755 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2757 | (exit $ac_status); } |
| 2758 | |
| 2759 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2760 | /* confdefs.h. */ |
| 2761 | _ACEOF |
| 2762 | cat confdefs.h >>conftest.$ac_ext |
| 2763 | cat >>conftest.$ac_ext <<_ACEOF |
| 2764 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2765 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2766 | int |
| 2767 | main () |
| 2768 | { |
| 2769 | |
| 2770 | ; |
| 2771 | return 0; |
| 2772 | } |
| 2773 | _ACEOF |
| 2774 | ac_clean_files_save=$ac_clean_files |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2775 | 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] | 2776 | # Try to create an executable without -o first, disregard a.out. |
| 2777 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2778 | # of exeext. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2779 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2780 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2781 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2782 | # |
| 2783 | # List of possible output files, starting from the most likely. |
| 2784 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2785 | # only as a last resort. b.out is created by i960 compilers. |
| 2786 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2787 | # |
| 2788 | # The IRIX 6 linker writes into existing files which may not be |
| 2789 | # executable, retaining their permissions. Remove them first so a |
| 2790 | # subsequent execution test works. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2791 | ac_rmfiles= |
| 2792 | for ac_file in $ac_files |
| 2793 | do |
| 2794 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2795 | *.$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] | 2796 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2797 | esac |
| 2798 | done |
| 2799 | rm -f $ac_rmfiles |
| 2800 | |
| 2801 | if { (ac_try="$ac_link_default" |
| 2802 | case "(($ac_try" in |
| 2803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2804 | *) ac_try_echo=$ac_try;; |
| 2805 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2807 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2808 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2810 | (exit $ac_status); }; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2811 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2812 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2813 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2814 | # so that the user can short-circuit this test for compilers unknown to |
| 2815 | # Autoconf. |
| 2816 | for ac_file in $ac_files '' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2817 | do |
| 2818 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2819 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2820 | *.$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] | 2821 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2822 | [ab].out ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2823 | # We found the default executable, but exeext='' is most |
| 2824 | # certainly right. |
| 2825 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2826 | *.* ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2827 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2828 | then :; else |
| 2829 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2830 | fi |
| 2831 | # We set ac_cv_exeext here because the later test for it is not |
| 2832 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2833 | # argument, so we may need to know it at that point already. |
| 2834 | # Even if this section looks crufty: it has the advantage of |
| 2835 | # actually working. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2836 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2837 | * ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2838 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2839 | esac |
| 2840 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2841 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2842 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2843 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2844 | ac_file='' |
| 2845 | fi |
| 2846 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2847 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2848 | echo "${ECHO_T}$ac_file" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2849 | if test -z "$ac_file"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2850 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2851 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2852 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2853 | { { echo "$as_me:$LINENO: 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." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2855 | echo "$as_me: error: C compiler cannot create executables |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2856 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2857 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2858 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2859 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2860 | ac_exeext=$ac_cv_exeext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2861 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2862 | # 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] | 2863 | # the compiler is broken, or we cross compile. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2864 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2865 | 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] | 2866 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2867 | # If not cross compiling, check that we can run a simple program. |
| 2868 | if test "$cross_compiling" != yes; then |
| 2869 | if { ac_try='./$ac_file' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2870 | { (case "(($ac_try" in |
| 2871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2872 | *) ac_try_echo=$ac_try;; |
| 2873 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2875 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2876 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2878 | (exit $ac_status); }; }; then |
| 2879 | cross_compiling=no |
| 2880 | else |
| 2881 | if test "$cross_compiling" = maybe; then |
| 2882 | cross_compiling=yes |
| 2883 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2884 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2885 | If you meant to cross compile, use \`--host'. |
| 2886 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2887 | echo "$as_me: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2888 | If you meant to cross compile, use \`--host'. |
| 2889 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2890 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2891 | fi |
| 2892 | fi |
| 2893 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2894 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2895 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2896 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2897 | 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] | 2898 | ac_clean_files=$ac_clean_files_save |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2899 | # 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] | 2900 | # the compiler is broken, or we cross compile. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2901 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2902 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2903 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2904 | echo "${ECHO_T}$cross_compiling" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2905 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2906 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2907 | 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] | 2908 | if { (ac_try="$ac_link" |
| 2909 | case "(($ac_try" in |
| 2910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2911 | *) ac_try_echo=$ac_try;; |
| 2912 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2914 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2915 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2917 | (exit $ac_status); }; then |
| 2918 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2919 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2920 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2921 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2922 | for ac_file in conftest.exe conftest conftest.*; do |
| 2923 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2924 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2925 | *.$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] | 2926 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2927 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2928 | * ) break;; |
| 2929 | esac |
| 2930 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2931 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2932 | { { 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] | 2933 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2934 | 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] | 2935 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2936 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2937 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2938 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2939 | rm -f conftest$ac_cv_exeext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2940 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2941 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2942 | |
| 2943 | rm -f conftest.$ac_ext |
| 2944 | EXEEXT=$ac_cv_exeext |
| 2945 | ac_exeext=$EXEEXT |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2946 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2947 | 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] | 2948 | if test "${ac_cv_objext+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2949 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2950 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2951 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2952 | /* confdefs.h. */ |
| 2953 | _ACEOF |
| 2954 | cat confdefs.h >>conftest.$ac_ext |
| 2955 | cat >>conftest.$ac_ext <<_ACEOF |
| 2956 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2957 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2958 | int |
| 2959 | main () |
| 2960 | { |
| 2961 | |
| 2962 | ; |
| 2963 | return 0; |
| 2964 | } |
| 2965 | _ACEOF |
| 2966 | rm -f conftest.o conftest.obj |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2967 | if { (ac_try="$ac_compile" |
| 2968 | case "(($ac_try" in |
| 2969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2970 | *) ac_try_echo=$ac_try;; |
| 2971 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2973 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2974 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2976 | (exit $ac_status); }; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2977 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2978 | test -f "$ac_file" || continue; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2979 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2980 | *.$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] | 2981 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2982 | break;; |
| 2983 | esac |
| 2984 | done |
| 2985 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2986 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2987 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2988 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2989 | { { 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] | 2990 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2991 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2992 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2993 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2994 | fi |
| 2995 | |
| 2996 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2997 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2998 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2999 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3000 | OBJEXT=$ac_cv_objext |
| 3001 | ac_objext=$OBJEXT |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3002 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 3003 | 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] | 3004 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3006 | else |
| 3007 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3008 | /* confdefs.h. */ |
| 3009 | _ACEOF |
| 3010 | cat confdefs.h >>conftest.$ac_ext |
| 3011 | cat >>conftest.$ac_ext <<_ACEOF |
| 3012 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3013 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3014 | int |
| 3015 | main () |
| 3016 | { |
| 3017 | #ifndef __GNUC__ |
| 3018 | choke me |
| 3019 | #endif |
| 3020 | |
| 3021 | ; |
| 3022 | return 0; |
| 3023 | } |
| 3024 | _ACEOF |
| 3025 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3026 | if { (ac_try="$ac_compile" |
| 3027 | case "(($ac_try" in |
| 3028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3029 | *) ac_try_echo=$ac_try;; |
| 3030 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3031 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3032 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3033 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3034 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3035 | rm -f conftest.er1 |
| 3036 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3038 | (exit $ac_status); } && { |
| 3039 | test -z "$ac_c_werror_flag" || |
| 3040 | test ! -s conftest.err |
| 3041 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3042 | ac_compiler_gnu=yes |
| 3043 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3044 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3045 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3046 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3047 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3048 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3049 | |
| 3050 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3051 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3052 | |
| 3053 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3054 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3055 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 3056 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3057 | ac_test_CFLAGS=${CFLAGS+set} |
| 3058 | ac_save_CFLAGS=$CFLAGS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3059 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3060 | 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] | 3061 | if test "${ac_cv_prog_cc_g+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3063 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3064 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3065 | ac_c_werror_flag=yes |
| 3066 | ac_cv_prog_cc_g=no |
| 3067 | CFLAGS="-g" |
| 3068 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3069 | /* confdefs.h. */ |
| 3070 | _ACEOF |
| 3071 | cat confdefs.h >>conftest.$ac_ext |
| 3072 | cat >>conftest.$ac_ext <<_ACEOF |
| 3073 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3074 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3075 | int |
| 3076 | main () |
| 3077 | { |
| 3078 | |
| 3079 | ; |
| 3080 | return 0; |
| 3081 | } |
| 3082 | _ACEOF |
| 3083 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3084 | if { (ac_try="$ac_compile" |
| 3085 | case "(($ac_try" in |
| 3086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3087 | *) ac_try_echo=$ac_try;; |
| 3088 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3090 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3091 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3092 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3093 | rm -f conftest.er1 |
| 3094 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3096 | (exit $ac_status); } && { |
| 3097 | test -z "$ac_c_werror_flag" || |
| 3098 | test ! -s conftest.err |
| 3099 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3100 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3101 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3102 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3104 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3105 | CFLAGS="" |
| 3106 | cat >conftest.$ac_ext <<_ACEOF |
| 3107 | /* confdefs.h. */ |
| 3108 | _ACEOF |
| 3109 | cat confdefs.h >>conftest.$ac_ext |
| 3110 | cat >>conftest.$ac_ext <<_ACEOF |
| 3111 | /* end confdefs.h. */ |
| 3112 | |
| 3113 | int |
| 3114 | main () |
| 3115 | { |
| 3116 | |
| 3117 | ; |
| 3118 | return 0; |
| 3119 | } |
| 3120 | _ACEOF |
| 3121 | rm -f conftest.$ac_objext |
| 3122 | if { (ac_try="$ac_compile" |
| 3123 | case "(($ac_try" in |
| 3124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3125 | *) ac_try_echo=$ac_try;; |
| 3126 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3128 | (eval "$ac_compile") 2>conftest.er1 |
| 3129 | ac_status=$? |
| 3130 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3131 | rm -f conftest.er1 |
| 3132 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3134 | (exit $ac_status); } && { |
| 3135 | test -z "$ac_c_werror_flag" || |
| 3136 | test ! -s conftest.err |
| 3137 | } && test -s conftest.$ac_objext; then |
| 3138 | : |
| 3139 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3140 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3141 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3142 | |
| 3143 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3144 | CFLAGS="-g" |
| 3145 | cat >conftest.$ac_ext <<_ACEOF |
| 3146 | /* confdefs.h. */ |
| 3147 | _ACEOF |
| 3148 | cat confdefs.h >>conftest.$ac_ext |
| 3149 | cat >>conftest.$ac_ext <<_ACEOF |
| 3150 | /* end confdefs.h. */ |
| 3151 | |
| 3152 | int |
| 3153 | main () |
| 3154 | { |
| 3155 | |
| 3156 | ; |
| 3157 | return 0; |
| 3158 | } |
| 3159 | _ACEOF |
| 3160 | rm -f conftest.$ac_objext |
| 3161 | if { (ac_try="$ac_compile" |
| 3162 | case "(($ac_try" in |
| 3163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3164 | *) ac_try_echo=$ac_try;; |
| 3165 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3166 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3167 | (eval "$ac_compile") 2>conftest.er1 |
| 3168 | ac_status=$? |
| 3169 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3170 | rm -f conftest.er1 |
| 3171 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3173 | (exit $ac_status); } && { |
| 3174 | test -z "$ac_c_werror_flag" || |
| 3175 | test ! -s conftest.err |
| 3176 | } && test -s conftest.$ac_objext; then |
| 3177 | ac_cv_prog_cc_g=yes |
| 3178 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3179 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3180 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3181 | |
| 3182 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3183 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3184 | |
| 3185 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3186 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3187 | |
| 3188 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3189 | fi |
| 3190 | |
| 3191 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3192 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3193 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3194 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3195 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3196 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3197 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3198 | elif test $ac_cv_prog_cc_g = yes; then |
| 3199 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3200 | CFLAGS="-g -O2" |
| 3201 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3202 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3203 | fi |
| 3204 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3205 | if test "$GCC" = yes; then |
| 3206 | CFLAGS="-O2" |
| 3207 | else |
| 3208 | CFLAGS= |
| 3209 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3210 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3211 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3212 | 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] | 3213 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3214 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3215 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3216 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3217 | ac_save_CC=$CC |
| 3218 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3219 | /* confdefs.h. */ |
| 3220 | _ACEOF |
| 3221 | cat confdefs.h >>conftest.$ac_ext |
| 3222 | cat >>conftest.$ac_ext <<_ACEOF |
| 3223 | /* end confdefs.h. */ |
| 3224 | #include <stdarg.h> |
| 3225 | #include <stdio.h> |
| 3226 | #include <sys/types.h> |
| 3227 | #include <sys/stat.h> |
| 3228 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3229 | struct buf { int x; }; |
| 3230 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3231 | static char *e (p, i) |
| 3232 | char **p; |
| 3233 | int i; |
| 3234 | { |
| 3235 | return p[i]; |
| 3236 | } |
| 3237 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3238 | { |
| 3239 | char *s; |
| 3240 | va_list v; |
| 3241 | va_start (v,p); |
| 3242 | s = g (p, va_arg (v,int)); |
| 3243 | va_end (v); |
| 3244 | return s; |
| 3245 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3246 | |
| 3247 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3248 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3249 | 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] | 3250 | 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] | 3251 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3252 | 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] | 3253 | that's true only with -std. */ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3254 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3255 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3256 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3257 | inside strings and character constants. */ |
| 3258 | #define FOO(x) 'x' |
| 3259 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3260 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3261 | int test (int i, double x); |
| 3262 | struct s1 {int (*f) (int a);}; |
| 3263 | struct s2 {int (*f) (double a);}; |
| 3264 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3265 | int argc; |
| 3266 | char **argv; |
| 3267 | int |
| 3268 | main () |
| 3269 | { |
| 3270 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3271 | ; |
| 3272 | return 0; |
| 3273 | } |
| 3274 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3275 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3276 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3277 | do |
| 3278 | CC="$ac_save_CC $ac_arg" |
| 3279 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3280 | if { (ac_try="$ac_compile" |
| 3281 | case "(($ac_try" in |
| 3282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3283 | *) ac_try_echo=$ac_try;; |
| 3284 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3286 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3287 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3288 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3289 | rm -f conftest.er1 |
| 3290 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3292 | (exit $ac_status); } && { |
| 3293 | test -z "$ac_c_werror_flag" || |
| 3294 | test ! -s conftest.err |
| 3295 | } && test -s conftest.$ac_objext; then |
| 3296 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3297 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3298 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3299 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3300 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3301 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3302 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3303 | |
| 3304 | rm -f core conftest.err conftest.$ac_objext |
| 3305 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3306 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3307 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3308 | CC=$ac_save_CC |
| 3309 | |
| 3310 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3311 | # AC_CACHE_VAL |
| 3312 | case "x$ac_cv_prog_cc_c89" in |
| 3313 | x) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3314 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3315 | echo "${ECHO_T}none needed" >&6; } ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3316 | xno) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3317 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3318 | echo "${ECHO_T}unsupported" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3319 | *) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3320 | CC="$CC $ac_cv_prog_cc_c89" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3321 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3322 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3323 | esac |
| 3324 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3325 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3326 | ac_ext=c |
| 3327 | ac_cpp='$CPP $CPPFLAGS' |
| 3328 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3329 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3330 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3331 | |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame^] | 3332 | if test ! -z "$preset_cflags" |
| 3333 | then |
| 3334 | CFLAGS=$preset_cflags |
| 3335 | fi |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3336 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3337 | |
| 3338 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3339 | { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5 |
| 3340 | 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] | 3341 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3342 | # Check whether --with-cxx_main was given. |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3343 | if test "${with_cxx_main+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3344 | withval=$with_cxx_main; |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3345 | |
| 3346 | case $withval in |
| 3347 | no) with_cxx_main=no |
| 3348 | MAINCC='$(CC)';; |
| 3349 | yes) with_cxx_main=yes |
| 3350 | MAINCC='$(CXX)';; |
| 3351 | *) with_cxx_main=yes |
| 3352 | MAINCC=$withval |
| 3353 | if test -z "$CXX" |
| 3354 | then |
| 3355 | CXX=$withval |
| 3356 | fi;; |
| 3357 | esac |
| 3358 | else |
| 3359 | |
| 3360 | with_cxx_main=no |
| 3361 | MAINCC='$(CC)' |
| 3362 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3363 | fi |
| 3364 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3365 | { echo "$as_me:$LINENO: result: $with_cxx_main" >&5 |
| 3366 | echo "${ECHO_T}$with_cxx_main" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3367 | |
| 3368 | preset_cxx="$CXX" |
| 3369 | if test -z "$CXX" |
| 3370 | then |
| 3371 | case "$CC" in |
| 3372 | gcc) # Extract the first word of "g++", so it can be a program name with args. |
| 3373 | set dummy g++; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3374 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3375 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3376 | if test "${ac_cv_path_CXX+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3378 | else |
| 3379 | case $CXX in |
| 3380 | [\\/]* | ?:[\\/]*) |
| 3381 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3382 | ;; |
| 3383 | *) |
| 3384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3385 | for as_dir in notfound |
| 3386 | do |
| 3387 | IFS=$as_save_IFS |
| 3388 | test -z "$as_dir" && as_dir=. |
| 3389 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3390 | 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] | 3391 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3392 | 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] | 3393 | break 2 |
| 3394 | fi |
| 3395 | done |
| 3396 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3397 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3398 | |
| 3399 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++" |
| 3400 | ;; |
| 3401 | esac |
| 3402 | fi |
| 3403 | CXX=$ac_cv_path_CXX |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3404 | if test -n "$CXX"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3405 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3406 | echo "${ECHO_T}$CXX" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3407 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3408 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3409 | echo "${ECHO_T}no" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3410 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3411 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3412 | ;; |
| 3413 | cc) # Extract the first word of "c++", so it can be a program name with args. |
| 3414 | set dummy c++; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3415 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3416 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3417 | if test "${ac_cv_path_CXX+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3419 | else |
| 3420 | case $CXX in |
| 3421 | [\\/]* | ?:[\\/]*) |
| 3422 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3423 | ;; |
| 3424 | *) |
| 3425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3426 | for as_dir in notfound |
| 3427 | do |
| 3428 | IFS=$as_save_IFS |
| 3429 | test -z "$as_dir" && as_dir=. |
| 3430 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3431 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3432 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3433 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3434 | break 2 |
| 3435 | fi |
| 3436 | done |
| 3437 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3438 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3439 | |
| 3440 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++" |
| 3441 | ;; |
| 3442 | esac |
| 3443 | fi |
| 3444 | CXX=$ac_cv_path_CXX |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3445 | if test -n "$CXX"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3446 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3447 | echo "${ECHO_T}$CXX" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3448 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3449 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3450 | echo "${ECHO_T}no" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3451 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3452 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3453 | ;; |
| 3454 | esac |
| 3455 | if test "$CXX" = "notfound" |
| 3456 | then |
| 3457 | CXX="" |
| 3458 | fi |
| 3459 | fi |
| 3460 | if test -z "$CXX" |
| 3461 | then |
| 3462 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 3463 | do |
| 3464 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3465 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3466 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3467 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3468 | if test "${ac_cv_prog_CXX+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3470 | else |
| 3471 | if test -n "$CXX"; then |
| 3472 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3473 | else |
| 3474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3475 | for as_dir in $PATH |
| 3476 | do |
| 3477 | IFS=$as_save_IFS |
| 3478 | test -z "$as_dir" && as_dir=. |
| 3479 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3480 | 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] | 3481 | ac_cv_prog_CXX="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3482 | 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] | 3483 | break 2 |
| 3484 | fi |
| 3485 | done |
| 3486 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3487 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3488 | |
| 3489 | fi |
| 3490 | fi |
| 3491 | CXX=$ac_cv_prog_CXX |
| 3492 | if test -n "$CXX"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3493 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3494 | echo "${ECHO_T}$CXX" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3495 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3496 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3497 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3498 | fi |
| 3499 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3500 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3501 | test -n "$CXX" && break |
| 3502 | done |
| 3503 | test -n "$CXX" || CXX="notfound" |
| 3504 | |
| 3505 | if test "$CXX" = "notfound" |
| 3506 | then |
| 3507 | CXX="" |
| 3508 | fi |
| 3509 | fi |
| 3510 | if test "$preset_cxx" != "$CXX" |
| 3511 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3512 | { echo "$as_me:$LINENO: 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 | " >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3517 | echo "$as_me: WARNING: |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3518 | |
| 3519 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3520 | If this is not intended, then set CXX on the configure command line. |
| 3521 | " >&2;} |
| 3522 | fi |
| 3523 | |
| 3524 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3525 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3526 | |
| 3527 | ac_ext=c |
| 3528 | ac_cpp='$CPP $CPPFLAGS' |
| 3529 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3530 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3531 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3532 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3533 | 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] | 3534 | # On Suns, sometimes $CPP names a directory. |
| 3535 | if test -n "$CPP" && test -d "$CPP"; then |
| 3536 | CPP= |
| 3537 | fi |
| 3538 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3539 | if test "${ac_cv_prog_CPP+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3541 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3542 | # Double quotes because CPP needs to be expanded |
| 3543 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3544 | do |
| 3545 | ac_preproc_ok=false |
| 3546 | for ac_c_preproc_warn_flag in '' yes |
| 3547 | do |
| 3548 | # Use a header file that comes with gcc, so configuring glibc |
| 3549 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3550 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3551 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3552 | # 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] | 3553 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3554 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3555 | /* confdefs.h. */ |
| 3556 | _ACEOF |
| 3557 | cat confdefs.h >>conftest.$ac_ext |
| 3558 | cat >>conftest.$ac_ext <<_ACEOF |
| 3559 | /* end confdefs.h. */ |
| 3560 | #ifdef __STDC__ |
| 3561 | # include <limits.h> |
| 3562 | #else |
| 3563 | # include <assert.h> |
| 3564 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3565 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3566 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3567 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3568 | case "(($ac_try" in |
| 3569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3570 | *) ac_try_echo=$ac_try;; |
| 3571 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3572 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3573 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3574 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3575 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3576 | rm -f conftest.er1 |
| 3577 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3579 | (exit $ac_status); } >/dev/null && { |
| 3580 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3581 | test ! -s conftest.err |
| 3582 | }; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3583 | : |
| 3584 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3585 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3586 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3587 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3588 | # Broken: fails on valid input. |
| 3589 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3590 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3591 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3592 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3593 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3594 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3595 | # can be detected and how. |
| 3596 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3597 | /* confdefs.h. */ |
| 3598 | _ACEOF |
| 3599 | cat confdefs.h >>conftest.$ac_ext |
| 3600 | cat >>conftest.$ac_ext <<_ACEOF |
| 3601 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3602 | #include <ac_nonexistent.h> |
| 3603 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3604 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3605 | case "(($ac_try" in |
| 3606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3607 | *) ac_try_echo=$ac_try;; |
| 3608 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3610 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3611 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3612 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3613 | rm -f conftest.er1 |
| 3614 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3616 | (exit $ac_status); } >/dev/null && { |
| 3617 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3618 | test ! -s conftest.err |
| 3619 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3620 | # Broken: success on invalid input. |
| 3621 | continue |
| 3622 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3623 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3624 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3625 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3626 | # Passes both tests. |
| 3627 | ac_preproc_ok=: |
| 3628 | break |
| 3629 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3630 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3631 | rm -f conftest.err conftest.$ac_ext |
| 3632 | |
| 3633 | done |
| 3634 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3635 | rm -f conftest.err conftest.$ac_ext |
| 3636 | if $ac_preproc_ok; then |
| 3637 | break |
| 3638 | fi |
| 3639 | |
| 3640 | done |
| 3641 | ac_cv_prog_CPP=$CPP |
| 3642 | |
| 3643 | fi |
| 3644 | CPP=$ac_cv_prog_CPP |
| 3645 | else |
| 3646 | ac_cv_prog_CPP=$CPP |
| 3647 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3648 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3649 | echo "${ECHO_T}$CPP" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3650 | ac_preproc_ok=false |
| 3651 | for ac_c_preproc_warn_flag in '' yes |
| 3652 | do |
| 3653 | # Use a header file that comes with gcc, so configuring glibc |
| 3654 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3655 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3656 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3657 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3658 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3659 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3660 | /* confdefs.h. */ |
| 3661 | _ACEOF |
| 3662 | cat confdefs.h >>conftest.$ac_ext |
| 3663 | cat >>conftest.$ac_ext <<_ACEOF |
| 3664 | /* end confdefs.h. */ |
| 3665 | #ifdef __STDC__ |
| 3666 | # include <limits.h> |
| 3667 | #else |
| 3668 | # include <assert.h> |
| 3669 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3670 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3671 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3672 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3673 | case "(($ac_try" in |
| 3674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3675 | *) ac_try_echo=$ac_try;; |
| 3676 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3678 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3679 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3680 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3681 | rm -f conftest.er1 |
| 3682 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3684 | (exit $ac_status); } >/dev/null && { |
| 3685 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3686 | test ! -s conftest.err |
| 3687 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3688 | : |
| 3689 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3690 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3691 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3692 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3693 | # Broken: fails on valid input. |
| 3694 | continue |
| 3695 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3696 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3697 | rm -f conftest.err conftest.$ac_ext |
| 3698 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3699 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3700 | # can be detected and how. |
| 3701 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3702 | /* confdefs.h. */ |
| 3703 | _ACEOF |
| 3704 | cat confdefs.h >>conftest.$ac_ext |
| 3705 | cat >>conftest.$ac_ext <<_ACEOF |
| 3706 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3707 | #include <ac_nonexistent.h> |
| 3708 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3709 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3710 | case "(($ac_try" in |
| 3711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3712 | *) ac_try_echo=$ac_try;; |
| 3713 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3715 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3716 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3717 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3718 | rm -f conftest.er1 |
| 3719 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3721 | (exit $ac_status); } >/dev/null && { |
| 3722 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3723 | test ! -s conftest.err |
| 3724 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3725 | # Broken: success on invalid input. |
| 3726 | continue |
| 3727 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3728 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3729 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3730 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3731 | # Passes both tests. |
| 3732 | ac_preproc_ok=: |
| 3733 | break |
| 3734 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3735 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3736 | rm -f conftest.err conftest.$ac_ext |
| 3737 | |
| 3738 | done |
| 3739 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3740 | rm -f conftest.err conftest.$ac_ext |
| 3741 | if $ac_preproc_ok; then |
| 3742 | : |
| 3743 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3744 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3745 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3746 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3747 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3748 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3749 | fi |
| 3750 | |
| 3751 | ac_ext=c |
| 3752 | ac_cpp='$CPP $CPPFLAGS' |
| 3753 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3754 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3755 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3756 | |
| 3757 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3758 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3759 | 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] | 3760 | if test "${ac_cv_path_GREP+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3762 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3763 | # Extract the first word of "grep ggrep" to use in msg output |
| 3764 | if test -z "$GREP"; then |
| 3765 | set dummy grep ggrep; ac_prog_name=$2 |
| 3766 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3768 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3769 | ac_path_GREP_found=false |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3770 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3772 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3773 | do |
| 3774 | IFS=$as_save_IFS |
| 3775 | test -z "$as_dir" && as_dir=. |
| 3776 | for ac_prog in grep ggrep; do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3777 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3778 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3779 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 3780 | # 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] | 3781 | # Check for GNU $ac_path_GREP |
| 3782 | case `"$ac_path_GREP" --version 2>&1` in |
| 3783 | *GNU*) |
| 3784 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3785 | *) |
| 3786 | ac_count=0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3787 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3788 | while : |
| 3789 | do |
| 3790 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3791 | mv "conftest.tmp" "conftest.in" |
| 3792 | cp "conftest.in" "conftest.nl" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3793 | echo 'GREP' >> "conftest.nl" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3794 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3795 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3796 | ac_count=`expr $ac_count + 1` |
| 3797 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3798 | # Best one so far, save it but keep looking for a better one |
| 3799 | ac_cv_path_GREP="$ac_path_GREP" |
| 3800 | ac_path_GREP_max=$ac_count |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3801 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3802 | # 10*(2^10) chars as input seems more than enough |
| 3803 | test $ac_count -gt 10 && break |
| 3804 | done |
| 3805 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3806 | esac |
| 3807 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3808 | |
| 3809 | $ac_path_GREP_found && break 3 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3810 | done |
| 3811 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3812 | |
| 3813 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3814 | IFS=$as_save_IFS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3815 | |
| 3816 | |
| 3817 | fi |
| 3818 | |
| 3819 | GREP="$ac_cv_path_GREP" |
| 3820 | if test -z "$GREP"; then |
| 3821 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3822 | 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] | 3823 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3824 | fi |
| 3825 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3826 | else |
| 3827 | ac_cv_path_GREP=$GREP |
| 3828 | fi |
| 3829 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3830 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3831 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3832 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3833 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3834 | GREP="$ac_cv_path_GREP" |
| 3835 | |
| 3836 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3837 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3838 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3839 | if test "${ac_cv_path_EGREP+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3841 | else |
| 3842 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3843 | then ac_cv_path_EGREP="$GREP -E" |
| 3844 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3845 | # Extract the first word of "egrep" to use in msg output |
| 3846 | if test -z "$EGREP"; then |
| 3847 | set dummy egrep; ac_prog_name=$2 |
| 3848 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3850 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3851 | ac_path_EGREP_found=false |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3852 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3853 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3854 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3855 | do |
| 3856 | IFS=$as_save_IFS |
| 3857 | test -z "$as_dir" && as_dir=. |
| 3858 | for ac_prog in egrep; do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3859 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3860 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3861 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 3862 | # 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] | 3863 | # Check for GNU $ac_path_EGREP |
| 3864 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3865 | *GNU*) |
| 3866 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3867 | *) |
| 3868 | ac_count=0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3869 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3870 | while : |
| 3871 | do |
| 3872 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3873 | mv "conftest.tmp" "conftest.in" |
| 3874 | cp "conftest.in" "conftest.nl" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3875 | echo 'EGREP' >> "conftest.nl" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3876 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3877 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3878 | ac_count=`expr $ac_count + 1` |
| 3879 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3880 | # Best one so far, save it but keep looking for a better one |
| 3881 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3882 | ac_path_EGREP_max=$ac_count |
| 3883 | fi |
| 3884 | # 10*(2^10) chars as input seems more than enough |
| 3885 | test $ac_count -gt 10 && break |
| 3886 | done |
| 3887 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3888 | esac |
| 3889 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3890 | |
| 3891 | $ac_path_EGREP_found && break 3 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3892 | done |
| 3893 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3894 | |
| 3895 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3896 | IFS=$as_save_IFS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3897 | |
| 3898 | |
| 3899 | fi |
| 3900 | |
| 3901 | EGREP="$ac_cv_path_EGREP" |
| 3902 | if test -z "$EGREP"; then |
| 3903 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3904 | 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] | 3905 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3906 | fi |
| 3907 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3908 | else |
| 3909 | ac_cv_path_EGREP=$EGREP |
| 3910 | fi |
| 3911 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3912 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3913 | fi |
| 3914 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3915 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3916 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3917 | EGREP="$ac_cv_path_EGREP" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3918 | |
| 3919 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3920 | |
| 3921 | { echo "$as_me:$LINENO: checking for AIX" >&5 |
| 3922 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } |
| 3923 | cat >conftest.$ac_ext <<_ACEOF |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3924 | /* confdefs.h. */ |
| 3925 | _ACEOF |
| 3926 | cat confdefs.h >>conftest.$ac_ext |
| 3927 | cat >>conftest.$ac_ext <<_ACEOF |
| 3928 | /* end confdefs.h. */ |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3929 | #ifdef _AIX |
| 3930 | yes |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3931 | #endif |
| 3932 | |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3933 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3934 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3935 | $EGREP "yes" >/dev/null 2>&1; then |
| 3936 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3937 | echo "${ECHO_T}yes" >&6; } |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3938 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3939 | #define _ALL_SOURCE 1 |
| 3940 | _ACEOF |
| 3941 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3942 | else |
| 3943 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3944 | echo "${ECHO_T}no" >&6; } |
| 3945 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame^] | 3946 | rm -f conftest* |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3947 | |
| 3948 | |
| 3949 | |
| 3950 | # Check for unsupported systems |
| 3951 | case $ac_sys_system/$ac_sys_release in |
| 3952 | atheos*|Linux*/1*) |
| 3953 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3954 | echo See README for details. |
| 3955 | exit 1;; |
| 3956 | esac |
| 3957 | |
| 3958 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3959 | { echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3960 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3961 | |
| 3962 | # Check whether --with-suffix was given. |
| 3963 | if test "${with_suffix+set}" = set; then |
| 3964 | withval=$with_suffix; |
| 3965 | case $withval in |
| 3966 | no) EXEEXT=;; |
| 3967 | yes) EXEEXT=.exe;; |
| 3968 | *) EXEEXT=$withval;; |
| 3969 | esac |
| 3970 | fi |
| 3971 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3972 | { echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3973 | echo "${ECHO_T}$EXEEXT" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3974 | |
| 3975 | # Test whether we're running on a non-case-sensitive system, in which |
| 3976 | # case we give a warning if no ext is given |
| 3977 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3978 | { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3979 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3980 | if test ! -d CaseSensitiveTestDir; then |
| 3981 | mkdir CaseSensitiveTestDir |
| 3982 | fi |
| 3983 | |
| 3984 | if test -d casesensitivetestdir |
| 3985 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3986 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3987 | echo "${ECHO_T}yes" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3988 | BUILDEXEEXT=.exe |
| 3989 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3990 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3991 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3992 | BUILDEXEEXT=$EXEEXT |
| 3993 | fi |
| 3994 | rmdir CaseSensitiveTestDir |
| 3995 | |
| 3996 | case $MACHDEP in |
| 3997 | bsdos*) |
| 3998 | case $CC in |
| 3999 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 4000 | esac;; |
| 4001 | esac |
| 4002 | |
| 4003 | case $ac_sys_system in |
| 4004 | hp*|HP*) |
| 4005 | case $CC in |
| 4006 | cc|*/cc) CC="$CC -Ae";; |
| 4007 | esac;; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4008 | SunOS*) |
| 4009 | # Some functions have a prototype only with that define, e.g. confstr |
| 4010 | |
| 4011 | cat >>confdefs.h <<\_ACEOF |
| 4012 | #define __EXTENSIONS__ 1 |
| 4013 | _ACEOF |
| 4014 | |
| 4015 | ;; |
| 4016 | esac |
| 4017 | |
| 4018 | |
| 4019 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4020 | { echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 4021 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4022 | if test -z "$LIBRARY" |
| 4023 | then |
| 4024 | LIBRARY='libpython$(VERSION).a' |
| 4025 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4026 | { echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 4027 | echo "${ECHO_T}$LIBRARY" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4028 | |
| 4029 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 4030 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 4031 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 4032 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 4033 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 4034 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 4035 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 4036 | # DLLLIBRARY is the shared (i.e., DLL) library. |
| 4037 | # |
| 4038 | # RUNSHARED is used to run shared python without installed libraries |
| 4039 | # |
| 4040 | # INSTSONAME is the name of the shared library that will be use to install |
| 4041 | # on the system - some systems like version suffix, others don't |
| 4042 | |
| 4043 | |
| 4044 | |
| 4045 | |
| 4046 | |
| 4047 | |
| 4048 | LDLIBRARY="$LIBRARY" |
| 4049 | BLDLIBRARY='$(LDLIBRARY)' |
| 4050 | INSTSONAME='$(LDLIBRARY)' |
| 4051 | DLLLIBRARY='' |
| 4052 | LDLIBRARYDIR='' |
| 4053 | RUNSHARED='' |
| 4054 | |
| 4055 | # LINKCC is the command that links the python executable -- default is $(CC). |
| 4056 | # If CXX is set, and if it is needed to link a main function that was |
| 4057 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 4058 | # python might then depend on the C++ runtime |
| 4059 | # This is altered for AIX in order to build the export list before |
| 4060 | # linking. |
| 4061 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4062 | { echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 4063 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4064 | if test -z "$LINKCC" |
| 4065 | then |
| 4066 | LINKCC='$(PURIFY) $(MAINCC)' |
| 4067 | case $ac_sys_system in |
| 4068 | AIX*) |
| 4069 | exp_extra="\"\"" |
| 4070 | if test $ac_sys_release -ge 5 -o \ |
| 4071 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 4072 | exp_extra="." |
| 4073 | fi |
| 4074 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4075 | QNX*) |
| 4076 | # qcc must be used because the other compilers do not |
| 4077 | # support -N. |
| 4078 | LINKCC=qcc;; |
| 4079 | esac |
| 4080 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4081 | { echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 4082 | echo "${ECHO_T}$LINKCC" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4083 | |
| 4084 | # GNULD is set to "yes" if the GNU linker is used. If this goes wrong |
| 4085 | # make sure we default having it set to "no": this is used by |
| 4086 | # distutils.unixccompiler to know if it should add --enable-new-dtags |
| 4087 | # to linker command lines, and failing to detect GNU ld simply results |
| 4088 | # in the same bahaviour as before. |
| 4089 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4090 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 4091 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4092 | ac_prog=ld |
| 4093 | if test "$GCC" = yes; then |
| 4094 | ac_prog=`$CC -print-prog-name=ld` |
| 4095 | fi |
| 4096 | case `"$ac_prog" -V 2>&1 < /dev/null` in |
| 4097 | *GNU*) |
| 4098 | GNULD=yes;; |
| 4099 | *) |
| 4100 | GNULD=no;; |
| 4101 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4102 | { echo "$as_me:$LINENO: result: $GNULD" >&5 |
| 4103 | echo "${ECHO_T}$GNULD" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4104 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4105 | { echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 4106 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4107 | # Check whether --enable-shared was given. |
| 4108 | if test "${enable_shared+set}" = set; then |
| 4109 | enableval=$enable_shared; |
| 4110 | fi |
| 4111 | |
| 4112 | |
| 4113 | if test -z "$enable_shared" |
| 4114 | then |
| 4115 | case $ac_sys_system in |
| 4116 | CYGWIN* | atheos*) |
| 4117 | enable_shared="yes";; |
| 4118 | *) |
| 4119 | enable_shared="no";; |
| 4120 | esac |
| 4121 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4122 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 4123 | echo "${ECHO_T}$enable_shared" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4124 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4125 | { echo "$as_me:$LINENO: checking for --enable-profiling" >&5 |
| 4126 | echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4127 | # Check whether --enable-profiling was given. |
| 4128 | if test "${enable_profiling+set}" = set; then |
| 4129 | enableval=$enable_profiling; ac_save_cc="$CC" |
| 4130 | CC="$CC -pg" |
| 4131 | if test "$cross_compiling" = yes; then |
| 4132 | ac_enable_profiling="no" |
| 4133 | else |
| 4134 | cat >conftest.$ac_ext <<_ACEOF |
| 4135 | /* confdefs.h. */ |
| 4136 | _ACEOF |
| 4137 | cat confdefs.h >>conftest.$ac_ext |
| 4138 | cat >>conftest.$ac_ext <<_ACEOF |
| 4139 | /* end confdefs.h. */ |
| 4140 | int main() { return 0; } |
| 4141 | _ACEOF |
| 4142 | rm -f conftest$ac_exeext |
| 4143 | if { (ac_try="$ac_link" |
| 4144 | case "(($ac_try" in |
| 4145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4146 | *) ac_try_echo=$ac_try;; |
| 4147 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4149 | (eval "$ac_link") 2>&5 |
| 4150 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4152 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4153 | { (case "(($ac_try" in |
| 4154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4155 | *) ac_try_echo=$ac_try;; |
| 4156 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4158 | (eval "$ac_try") 2>&5 |
| 4159 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4161 | (exit $ac_status); }; }; then |
| 4162 | ac_enable_profiling="yes" |
| 4163 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4164 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4165 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4166 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4167 | |
| 4168 | ( exit $ac_status ) |
| 4169 | ac_enable_profiling="no" |
| 4170 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4171 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4172 | fi |
| 4173 | |
| 4174 | |
| 4175 | CC="$ac_save_cc" |
| 4176 | fi |
| 4177 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4178 | { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5 |
| 4179 | echo "${ECHO_T}$ac_enable_profiling" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4180 | |
| 4181 | case "$ac_enable_profiling" in |
| 4182 | "yes") |
| 4183 | BASECFLAGS="-pg $BASECFLAGS" |
| 4184 | LDFLAGS="-pg $LDFLAGS" |
| 4185 | ;; |
| 4186 | esac |
| 4187 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4188 | { echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 4189 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4190 | |
| 4191 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 4192 | # library that we build, but we do not want to link against it (we |
| 4193 | # will find it with a -framework option). For this reason there is an |
| 4194 | # extra variable BLDLIBRARY against which Python and the extension |
| 4195 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 4196 | # LDLIBRARY, but empty for MacOSX framework builds. |
| 4197 | if test "$enable_framework" |
| 4198 | then |
| 4199 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 4200 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
| 4201 | BLDLIBRARY='' |
| 4202 | else |
| 4203 | BLDLIBRARY='$(LDLIBRARY)' |
| 4204 | fi |
| 4205 | |
| 4206 | # Other platforms follow |
| 4207 | if test $enable_shared = "yes"; then |
| 4208 | |
| 4209 | cat >>confdefs.h <<\_ACEOF |
| 4210 | #define Py_ENABLE_SHARED 1 |
| 4211 | _ACEOF |
| 4212 | |
| 4213 | case $ac_sys_system in |
| 4214 | BeOS*) |
| 4215 | LDLIBRARY='libpython$(VERSION).so' |
| 4216 | ;; |
| 4217 | CYGWIN*) |
| 4218 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4219 | DLLLIBRARY='libpython$(VERSION).dll' |
| 4220 | ;; |
| 4221 | SunOS*) |
| 4222 | LDLIBRARY='libpython$(VERSION).so' |
| 4223 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4224 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4225 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4226 | ;; |
| 4227 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*) |
| 4228 | LDLIBRARY='libpython$(VERSION).so' |
| 4229 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4230 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4231 | case $ac_sys_system in |
| 4232 | FreeBSD*) |
| 4233 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
| 4234 | ;; |
| 4235 | esac |
| 4236 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4237 | ;; |
| 4238 | hp*|HP*) |
| 4239 | case `uname -m` in |
| 4240 | ia64) |
| 4241 | LDLIBRARY='libpython$(VERSION).so' |
| 4242 | ;; |
| 4243 | *) |
| 4244 | LDLIBRARY='libpython$(VERSION).sl' |
| 4245 | ;; |
| 4246 | esac |
| 4247 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4248 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
| 4249 | ;; |
| 4250 | OSF*) |
| 4251 | LDLIBRARY='libpython$(VERSION).so' |
| 4252 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 4253 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4254 | ;; |
| 4255 | atheos*) |
| 4256 | LDLIBRARY='libpython$(VERSION).so' |
| 4257 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4258 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 4259 | ;; |
| 4260 | Darwin*) |
| 4261 | LDLIBRARY='libpython$(VERSION).dylib' |
| 4262 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4263 | RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}' |
| 4264 | ;; |
| 4265 | |
| 4266 | esac |
| 4267 | else # shared is disabled |
| 4268 | case $ac_sys_system in |
| 4269 | CYGWIN*) |
| 4270 | BLDLIBRARY='$(LIBRARY)' |
| 4271 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4272 | ;; |
| 4273 | esac |
| 4274 | fi |
| 4275 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4276 | { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 4277 | echo "${ECHO_T}$LDLIBRARY" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4278 | |
| 4279 | if test -n "$ac_tool_prefix"; then |
| 4280 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4281 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4282 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4283 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4284 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4286 | else |
| 4287 | if test -n "$RANLIB"; then |
| 4288 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4289 | else |
| 4290 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4291 | for as_dir in $PATH |
| 4292 | do |
| 4293 | IFS=$as_save_IFS |
| 4294 | test -z "$as_dir" && as_dir=. |
| 4295 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4296 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4297 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4298 | 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] | 4299 | break 2 |
| 4300 | fi |
| 4301 | done |
| 4302 | done |
| 4303 | IFS=$as_save_IFS |
| 4304 | |
| 4305 | fi |
| 4306 | fi |
| 4307 | RANLIB=$ac_cv_prog_RANLIB |
| 4308 | if test -n "$RANLIB"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4309 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4310 | echo "${ECHO_T}$RANLIB" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4311 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4312 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4313 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4314 | fi |
| 4315 | |
| 4316 | |
| 4317 | fi |
| 4318 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4319 | ac_ct_RANLIB=$RANLIB |
| 4320 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4321 | set dummy ranlib; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4322 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4323 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4324 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4325 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4326 | else |
| 4327 | if test -n "$ac_ct_RANLIB"; then |
| 4328 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4329 | else |
| 4330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4331 | for as_dir in $PATH |
| 4332 | do |
| 4333 | IFS=$as_save_IFS |
| 4334 | test -z "$as_dir" && as_dir=. |
| 4335 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4336 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4337 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4338 | 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] | 4339 | break 2 |
| 4340 | fi |
| 4341 | done |
| 4342 | done |
| 4343 | IFS=$as_save_IFS |
| 4344 | |
| 4345 | fi |
| 4346 | fi |
| 4347 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4348 | if test -n "$ac_ct_RANLIB"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4349 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4350 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4351 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4352 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4353 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4354 | fi |
| 4355 | |
| 4356 | if test "x$ac_ct_RANLIB" = x; then |
| 4357 | RANLIB=":" |
| 4358 | else |
| 4359 | case $cross_compiling:$ac_tool_warned in |
| 4360 | yes:) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4361 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4362 | whose name does not start with the host triplet. If you think this |
| 4363 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4364 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4365 | whose name does not start with the host triplet. If you think this |
| 4366 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4367 | ac_tool_warned=yes ;; |
| 4368 | esac |
| 4369 | RANLIB=$ac_ct_RANLIB |
| 4370 | fi |
| 4371 | else |
| 4372 | RANLIB="$ac_cv_prog_RANLIB" |
| 4373 | fi |
| 4374 | |
| 4375 | |
| 4376 | for ac_prog in ar aal |
| 4377 | do |
| 4378 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4379 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4380 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4381 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4382 | if test "${ac_cv_prog_AR+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4384 | else |
| 4385 | if test -n "$AR"; then |
| 4386 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4387 | else |
| 4388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4389 | for as_dir in $PATH |
| 4390 | do |
| 4391 | IFS=$as_save_IFS |
| 4392 | test -z "$as_dir" && as_dir=. |
| 4393 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4394 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4395 | ac_cv_prog_AR="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4396 | 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] | 4397 | break 2 |
| 4398 | fi |
| 4399 | done |
| 4400 | done |
| 4401 | IFS=$as_save_IFS |
| 4402 | |
| 4403 | fi |
| 4404 | fi |
| 4405 | AR=$ac_cv_prog_AR |
| 4406 | if test -n "$AR"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4407 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 4408 | echo "${ECHO_T}$AR" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4409 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4410 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4411 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4412 | fi |
| 4413 | |
| 4414 | |
| 4415 | test -n "$AR" && break |
| 4416 | done |
| 4417 | test -n "$AR" || AR="ar" |
| 4418 | |
| 4419 | |
| 4420 | # tweak ARFLAGS only if the user didn't set it on the command line |
| 4421 | |
| 4422 | if test -z "$ARFLAGS" |
| 4423 | then |
| 4424 | ARFLAGS="rc" |
| 4425 | fi |
| 4426 | |
| 4427 | |
| 4428 | # Extract the first word of "svnversion", so it can be a program name with args. |
| 4429 | set dummy svnversion; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4430 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4431 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4432 | if test "${ac_cv_prog_SVNVERSION+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4434 | else |
| 4435 | if test -n "$SVNVERSION"; then |
| 4436 | ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. |
| 4437 | else |
| 4438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4439 | for as_dir in $PATH |
| 4440 | do |
| 4441 | IFS=$as_save_IFS |
| 4442 | test -z "$as_dir" && as_dir=. |
| 4443 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4444 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4445 | ac_cv_prog_SVNVERSION="found" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4446 | 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] | 4447 | break 2 |
| 4448 | fi |
| 4449 | done |
| 4450 | done |
| 4451 | IFS=$as_save_IFS |
| 4452 | |
| 4453 | test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found" |
| 4454 | fi |
| 4455 | fi |
| 4456 | SVNVERSION=$ac_cv_prog_SVNVERSION |
| 4457 | if test -n "$SVNVERSION"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4458 | { echo "$as_me:$LINENO: result: $SVNVERSION" >&5 |
| 4459 | echo "${ECHO_T}$SVNVERSION" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4460 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4461 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4462 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4463 | fi |
| 4464 | |
| 4465 | |
| 4466 | if test $SVNVERSION = found |
| 4467 | then |
| 4468 | SVNVERSION="svnversion \$(srcdir)" |
| 4469 | else |
| 4470 | SVNVERSION="echo Unversioned directory" |
| 4471 | fi |
| 4472 | |
| 4473 | case $MACHDEP in |
| 4474 | bsdos*|hp*|HP*) |
| 4475 | # install -d does not work on BSDI or HP-UX |
| 4476 | if test -z "$INSTALL" |
| 4477 | then |
| 4478 | INSTALL="${srcdir}/install-sh -c" |
| 4479 | fi |
| 4480 | esac |
| 4481 | ac_aux_dir= |
| 4482 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 4483 | if test -f "$ac_dir/install-sh"; then |
| 4484 | ac_aux_dir=$ac_dir |
| 4485 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 4486 | break |
| 4487 | elif test -f "$ac_dir/install.sh"; then |
| 4488 | ac_aux_dir=$ac_dir |
| 4489 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 4490 | break |
| 4491 | elif test -f "$ac_dir/shtool"; then |
| 4492 | ac_aux_dir=$ac_dir |
| 4493 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 4494 | break |
| 4495 | fi |
| 4496 | done |
| 4497 | if test -z "$ac_aux_dir"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4498 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
| 4499 | 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] | 4500 | { (exit 1); exit 1; }; } |
| 4501 | fi |
| 4502 | |
| 4503 | # These three variables are undocumented and unsupported, |
| 4504 | # and are intended to be withdrawn in a future Autoconf release. |
| 4505 | # They can cause serious problems if a builder's source tree is in a directory |
| 4506 | # whose full name contains unusual characters. |
| 4507 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 4508 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 4509 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 4510 | |
| 4511 | |
| 4512 | # Find a good install program. We prefer a C program (faster), |
| 4513 | # so one script is as good as another. But avoid the broken or |
| 4514 | # incompatible versions: |
| 4515 | # SysV /etc/install, /usr/sbin/install |
| 4516 | # SunOS /usr/etc/install |
| 4517 | # IRIX /sbin/install |
| 4518 | # AIX /bin/install |
| 4519 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 4520 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4521 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4522 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 4523 | # OS/2's system install, which has a completely different semantic |
| 4524 | # ./install, which can be erroneously created by make from ./install.sh. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4525 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4526 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4527 | if test -z "$INSTALL"; then |
| 4528 | if test "${ac_cv_path_install+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4530 | else |
| 4531 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4532 | for as_dir in $PATH |
| 4533 | do |
| 4534 | IFS=$as_save_IFS |
| 4535 | test -z "$as_dir" && as_dir=. |
| 4536 | # Account for people who put trailing slashes in PATH elements. |
| 4537 | case $as_dir/ in |
| 4538 | ./ | .// | /cC/* | \ |
| 4539 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4540 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 4541 | /usr/ucb/* ) ;; |
| 4542 | *) |
| 4543 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4544 | # Don't use installbsd from OSF since it installs stuff as root |
| 4545 | # by default. |
| 4546 | for ac_prog in ginstall scoinst install; do |
| 4547 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4548 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 4549 | if test $ac_prog = install && |
| 4550 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4551 | # AIX install. It has an incompatible calling convention. |
| 4552 | : |
| 4553 | elif test $ac_prog = install && |
| 4554 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4555 | # program-specific install script used by HP pwplus--don't use. |
| 4556 | : |
| 4557 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4558 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4559 | break 3 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4560 | fi |
| 4561 | fi |
| 4562 | done |
| 4563 | done |
| 4564 | ;; |
| 4565 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4566 | done |
| 4567 | IFS=$as_save_IFS |
| 4568 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4569 | |
| 4570 | fi |
| 4571 | if test "${ac_cv_path_install+set}" = set; then |
| 4572 | INSTALL=$ac_cv_path_install |
| 4573 | else |
| 4574 | # As a last resort, use the slow shell script. Don't cache a |
| 4575 | # value for INSTALL within a source directory, because that will |
| 4576 | # break other packages using the cache if that directory is |
| 4577 | # removed, or if the value is a relative name. |
| 4578 | INSTALL=$ac_install_sh |
| 4579 | fi |
| 4580 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4581 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4582 | echo "${ECHO_T}$INSTALL" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4583 | |
| 4584 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4585 | # It thinks the first close brace ends the variable substitution. |
| 4586 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4587 | |
| 4588 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 4589 | |
| 4590 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4591 | |
| 4592 | |
| 4593 | # Not every filesystem supports hard links |
| 4594 | |
| 4595 | if test -z "$LN" ; then |
| 4596 | case $ac_sys_system in |
| 4597 | BeOS*) LN="ln -s";; |
| 4598 | CYGWIN*) LN="ln -s";; |
| 4599 | atheos*) LN="ln -s";; |
| 4600 | *) LN=ln;; |
| 4601 | esac |
| 4602 | fi |
| 4603 | |
| 4604 | # Check for --with-pydebug |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4605 | { echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 4606 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4607 | |
| 4608 | # Check whether --with-pydebug was given. |
| 4609 | if test "${with_pydebug+set}" = set; then |
| 4610 | withval=$with_pydebug; |
| 4611 | if test "$withval" != no |
| 4612 | then |
| 4613 | |
| 4614 | cat >>confdefs.h <<\_ACEOF |
| 4615 | #define Py_DEBUG 1 |
| 4616 | _ACEOF |
| 4617 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4618 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4619 | echo "${ECHO_T}yes" >&6; }; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4620 | Py_DEBUG='true' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4621 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 4622 | echo "${ECHO_T}no" >&6; }; Py_DEBUG='false' |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4623 | fi |
| 4624 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4625 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4626 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4627 | fi |
| 4628 | |
| 4629 | |
| 4630 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 4631 | # merged with this chunk of code? |
| 4632 | |
| 4633 | # Optimizer/debugger flags |
| 4634 | # ------------------------ |
| 4635 | # (The following bit of code is complicated enough - please keep things |
| 4636 | # indented properly. Just pretend you're editing Python code. ;-) |
| 4637 | |
| 4638 | # There are two parallel sets of case statements below, one that checks to |
| 4639 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 4640 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 4641 | # user set OPT. |
| 4642 | |
| 4643 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 4644 | # it on the command line |
| 4645 | |
Benjamin Peterson | d4b721b | 2010-03-23 20:58:37 +0000 | [diff] [blame] | 4646 | if test "${OPT-unset}" = "unset" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4647 | then |
| 4648 | case $GCC in |
| 4649 | yes) |
| 4650 | if test "$CC" != 'g++' ; then |
| 4651 | STRICT_PROTO="-Wstrict-prototypes" |
| 4652 | fi |
| 4653 | # For gcc 4.x we need to use -fwrapv so lets check if its supported |
| 4654 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then |
| 4655 | WRAP="-fwrapv" |
| 4656 | fi |
| 4657 | case $ac_cv_prog_cc_g in |
| 4658 | yes) |
| 4659 | if test "$Py_DEBUG" = 'true' ; then |
| 4660 | # Optimization messes up debuggers, so turn it off for |
| 4661 | # debug builds. |
| 4662 | OPT="-g -Wall $STRICT_PROTO" |
| 4663 | else |
| 4664 | OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" |
| 4665 | fi |
| 4666 | ;; |
| 4667 | *) |
| 4668 | OPT="-O3 -Wall $STRICT_PROTO" |
| 4669 | ;; |
| 4670 | esac |
| 4671 | case $ac_sys_system in |
| 4672 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 4673 | ;; |
| 4674 | esac |
| 4675 | ;; |
| 4676 | |
| 4677 | *) |
| 4678 | OPT="-O" |
| 4679 | ;; |
| 4680 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4681 | fi |
| 4682 | |
| 4683 | |
| 4684 | |
| 4685 | # The -arch flags for universal builds on OSX |
| 4686 | UNIVERSAL_ARCH_FLAGS= |
| 4687 | |
| 4688 | |
| 4689 | # tweak BASECFLAGS based on compiler and platform |
| 4690 | case $GCC in |
| 4691 | yes) |
| 4692 | # Python violates C99 rules, by casting between incompatible |
| 4693 | # pointer types. GCC may generate bad code as a result of that, |
| 4694 | # so use -fno-strict-aliasing if supported. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4695 | { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 4696 | 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] | 4697 | ac_save_cc="$CC" |
| 4698 | CC="$CC -fno-strict-aliasing" |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 4699 | if test "${ac_cv_no_strict_aliasing_ok+set}" = set; then |
| 4700 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4701 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4702 | cat >conftest.$ac_ext <<_ACEOF |
| 4703 | /* confdefs.h. */ |
| 4704 | _ACEOF |
| 4705 | cat confdefs.h >>conftest.$ac_ext |
| 4706 | cat >>conftest.$ac_ext <<_ACEOF |
| 4707 | /* end confdefs.h. */ |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4708 | |
| 4709 | int |
| 4710 | main () |
| 4711 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4712 | int main() { return 0; } |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4713 | ; |
| 4714 | return 0; |
| 4715 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4716 | _ACEOF |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4717 | rm -f conftest.$ac_objext |
| 4718 | if { (ac_try="$ac_compile" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4719 | case "(($ac_try" in |
| 4720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4721 | *) ac_try_echo=$ac_try;; |
| 4722 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4724 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4725 | ac_status=$? |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4726 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4727 | rm -f conftest.er1 |
| 4728 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4730 | (exit $ac_status); } && { |
| 4731 | test -z "$ac_c_werror_flag" || |
| 4732 | test ! -s conftest.err |
| 4733 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4734 | ac_cv_no_strict_aliasing_ok=yes |
| 4735 | else |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4736 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4737 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4738 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4739 | ac_cv_no_strict_aliasing_ok=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4740 | fi |
| 4741 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4742 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 4743 | fi |
| 4744 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4745 | CC="$ac_save_cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4746 | { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 4747 | echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4748 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 4749 | then |
| 4750 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 4751 | fi |
| 4752 | |
| 4753 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 |
| 4754 | # support. Without this, treatment of subnormals doesn't follow |
| 4755 | # the standard. |
| 4756 | case $ac_sys_machine in |
| 4757 | alpha*) |
| 4758 | BASECFLAGS="$BASECFLAGS -mieee" |
| 4759 | ;; |
| 4760 | esac |
| 4761 | |
| 4762 | case $ac_sys_system in |
| 4763 | SCO_SV*) |
| 4764 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 4765 | ;; |
| 4766 | # is there any other compiler on Darwin besides gcc? |
| 4767 | Darwin*) |
| 4768 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd |
| 4769 | # used to be here, but non-Apple gcc doesn't accept them. |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 4770 | if test "${CC}" = gcc |
| 4771 | then |
| 4772 | { echo "$as_me:$LINENO: checking which compiler should be used" >&5 |
| 4773 | echo $ECHO_N "checking which compiler should be used... $ECHO_C" >&6; } |
| 4774 | case "${UNIVERSALSDK}" in |
| 4775 | */MacOSX10.4u.sdk) |
| 4776 | # Build using 10.4 SDK, force usage of gcc when the |
| 4777 | # compiler is gcc, otherwise the user will get very |
| 4778 | # confusing error messages when building on OSX 10.6 |
| 4779 | CC=gcc-4.0 |
| 4780 | CPP=cpp-4.0 |
| 4781 | ;; |
| 4782 | esac |
| 4783 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 4784 | echo "${ECHO_T}$CC" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4785 | fi |
| 4786 | |
| 4787 | # Calculate the right deployment target for this build. |
| 4788 | # |
| 4789 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
| 4790 | if test ${cur_target} '>' 10.2; then |
| 4791 | cur_target=10.3 |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 4792 | if test ${enable_universalsdk}; then |
| 4793 | if test "${UNIVERSAL_ARCHS}" = "all"; then |
| 4794 | # Ensure that the default platform for a |
| 4795 | # 4-way universal build is OSX 10.5, |
| 4796 | # that's the first OS release where |
| 4797 | # 4-way builds make sense. |
| 4798 | cur_target='10.5' |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 4799 | |
| 4800 | elif test "${UNIVERSAL_ARCHS}" = "3-way"; then |
| 4801 | cur_target='10.5' |
| 4802 | |
| 4803 | elif test "${UNIVERSAL_ARCHS}" = "intel"; then |
| 4804 | cur_target='10.5' |
| 4805 | |
| 4806 | elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then |
| 4807 | cur_target='10.5' |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 4808 | fi |
| 4809 | else |
Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 4810 | if test `/usr/bin/arch` = "i386"; then |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 4811 | # On Intel macs default to a deployment |
| 4812 | # target of 10.4, that's the first OSX |
| 4813 | # release with Intel support. |
| 4814 | cur_target="10.4" |
| 4815 | fi |
| 4816 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4817 | fi |
| 4818 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
| 4819 | |
| 4820 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
| 4821 | # environment with a value that is the same as what we'll use |
| 4822 | # in the Makefile to ensure that we'll get the same compiler |
| 4823 | # environment during configure and build time. |
| 4824 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" |
| 4825 | export MACOSX_DEPLOYMENT_TARGET |
| 4826 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' |
| 4827 | |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 4828 | if test "${enable_universalsdk}"; then |
| 4829 | UNIVERSAL_ARCH_FLAGS="" |
| 4830 | if test "$UNIVERSAL_ARCHS" = "32-bit" ; then |
| 4831 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" |
| 4832 | ARCH_RUN_32BIT="" |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 4833 | LIPO_32BIT_FLAGS="" |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 4834 | |
| 4835 | elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then |
| 4836 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" |
| 4837 | LIPO_32BIT_FLAGS="" |
| 4838 | ARCH_RUN_32BIT="true" |
| 4839 | |
| 4840 | elif test "$UNIVERSAL_ARCHS" = "all" ; then |
| 4841 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" |
| 4842 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
Ronald Oussoren | 92397ce | 2010-01-17 19:32:00 +0000 | [diff] [blame] | 4843 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 4844 | |
| 4845 | elif test "$UNIVERSAL_ARCHS" = "intel" ; then |
| 4846 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" |
| 4847 | LIPO_32BIT_FLAGS="-extract i386" |
Ronald Oussoren | 92397ce | 2010-01-17 19:32:00 +0000 | [diff] [blame] | 4848 | ARCH_RUN_32BIT="/usr/bin/arch -i386" |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 4849 | |
| 4850 | elif test "$UNIVERSAL_ARCHS" = "3-way" ; then |
| 4851 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" |
| 4852 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
Ronald Oussoren | 9922f17 | 2010-02-11 13:19:34 +0000 | [diff] [blame] | 4853 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 4854 | |
| 4855 | else |
| 4856 | { { echo "$as_me:$LINENO: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&5 |
| 4857 | echo "$as_me: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&2;} |
| 4858 | { (exit 1); exit 1; }; } |
| 4859 | |
| 4860 | fi |
| 4861 | |
| 4862 | |
Ronald Oussoren | 974eb5e | 2010-04-18 17:59:37 +0000 | [diff] [blame] | 4863 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}" |
| 4864 | if test "${UNIVERSALSDK}" != "/" |
| 4865 | then |
| 4866 | CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" |
| 4867 | LDFLAGS="-isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
| 4868 | CFLAGS="-isysroot ${UNIVERSALSDK} ${CFLAGS}" |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 4869 | fi |
| 4870 | |
| 4871 | fi |
| 4872 | |
| 4873 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4874 | ;; |
| 4875 | OSF*) |
| 4876 | BASECFLAGS="$BASECFLAGS -mieee" |
| 4877 | ;; |
| 4878 | esac |
| 4879 | ;; |
| 4880 | |
| 4881 | *) |
| 4882 | case $ac_sys_system in |
| 4883 | OpenUNIX*|UnixWare*) |
| 4884 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 4885 | ;; |
| 4886 | OSF*) |
| 4887 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 4888 | ;; |
| 4889 | SCO_SV*) |
| 4890 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 4891 | ;; |
| 4892 | esac |
| 4893 | ;; |
| 4894 | esac |
| 4895 | |
| 4896 | if test "$Py_DEBUG" = 'true'; then |
| 4897 | : |
| 4898 | else |
| 4899 | OPT="-DNDEBUG $OPT" |
| 4900 | fi |
| 4901 | |
| 4902 | if test "$ac_arch_flags" |
| 4903 | then |
| 4904 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
| 4905 | fi |
| 4906 | |
| 4907 | # disable check for icc since it seems to pass, but generates a warning |
| 4908 | if test "$CC" = icc |
| 4909 | then |
| 4910 | ac_cv_opt_olimit_ok=no |
| 4911 | fi |
| 4912 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4913 | { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 4914 | 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] | 4915 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4917 | else |
| 4918 | ac_save_cc="$CC" |
| 4919 | CC="$CC -OPT:Olimit=0" |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4920 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4921 | /* confdefs.h. */ |
| 4922 | _ACEOF |
| 4923 | cat confdefs.h >>conftest.$ac_ext |
| 4924 | cat >>conftest.$ac_ext <<_ACEOF |
| 4925 | /* end confdefs.h. */ |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4926 | |
| 4927 | int |
| 4928 | main () |
| 4929 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4930 | int main() { return 0; } |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4931 | ; |
| 4932 | return 0; |
| 4933 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4934 | _ACEOF |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4935 | rm -f conftest.$ac_objext |
| 4936 | if { (ac_try="$ac_compile" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4937 | case "(($ac_try" in |
| 4938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4939 | *) ac_try_echo=$ac_try;; |
| 4940 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4942 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4943 | ac_status=$? |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4944 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4945 | rm -f conftest.er1 |
| 4946 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4948 | (exit $ac_status); } && { |
| 4949 | test -z "$ac_c_werror_flag" || |
| 4950 | test ! -s conftest.err |
| 4951 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4952 | ac_cv_opt_olimit_ok=yes |
| 4953 | else |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4954 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4956 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4957 | ac_cv_opt_olimit_ok=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4958 | fi |
| 4959 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4961 | CC="$ac_save_cc" |
| 4962 | fi |
| 4963 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4964 | { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 4965 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4966 | if test $ac_cv_opt_olimit_ok = yes; then |
| 4967 | case $ac_sys_system in |
| 4968 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 4969 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 4970 | # environment? |
| 4971 | Darwin*) |
| 4972 | ;; |
| 4973 | *) |
| 4974 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 4975 | ;; |
| 4976 | esac |
| 4977 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4978 | { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 4979 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4980 | if test "${ac_cv_olimit_ok+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4982 | else |
| 4983 | ac_save_cc="$CC" |
| 4984 | CC="$CC -Olimit 1500" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4985 | cat >conftest.$ac_ext <<_ACEOF |
| 4986 | /* confdefs.h. */ |
| 4987 | _ACEOF |
| 4988 | cat confdefs.h >>conftest.$ac_ext |
| 4989 | cat >>conftest.$ac_ext <<_ACEOF |
| 4990 | /* end confdefs.h. */ |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4991 | |
| 4992 | int |
| 4993 | main () |
| 4994 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4995 | int main() { return 0; } |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4996 | ; |
| 4997 | return 0; |
| 4998 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4999 | _ACEOF |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5000 | rm -f conftest.$ac_objext |
| 5001 | if { (ac_try="$ac_compile" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5002 | case "(($ac_try" in |
| 5003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5004 | *) ac_try_echo=$ac_try;; |
| 5005 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5007 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5008 | ac_status=$? |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5009 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5010 | rm -f conftest.er1 |
| 5011 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5013 | (exit $ac_status); } && { |
| 5014 | test -z "$ac_c_werror_flag" || |
| 5015 | test ! -s conftest.err |
| 5016 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5017 | ac_cv_olimit_ok=yes |
| 5018 | else |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5019 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5020 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5021 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5022 | ac_cv_olimit_ok=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5023 | fi |
| 5024 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5026 | CC="$ac_save_cc" |
| 5027 | fi |
| 5028 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5029 | { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 5030 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5031 | if test $ac_cv_olimit_ok = yes; then |
| 5032 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
| 5033 | fi |
| 5034 | fi |
| 5035 | |
| 5036 | # Check whether GCC supports PyArg_ParseTuple format |
| 5037 | if test "$GCC" = "yes" |
| 5038 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5039 | { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5 |
| 5040 | echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5041 | save_CFLAGS=$CFLAGS |
| 5042 | CFLAGS="$CFLAGS -Werror" |
| 5043 | cat >conftest.$ac_ext <<_ACEOF |
| 5044 | /* confdefs.h. */ |
| 5045 | _ACEOF |
| 5046 | cat confdefs.h >>conftest.$ac_ext |
| 5047 | cat >>conftest.$ac_ext <<_ACEOF |
| 5048 | /* end confdefs.h. */ |
| 5049 | |
| 5050 | void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); |
| 5051 | |
| 5052 | int |
| 5053 | main () |
| 5054 | { |
| 5055 | |
| 5056 | ; |
| 5057 | return 0; |
| 5058 | } |
| 5059 | _ACEOF |
| 5060 | rm -f conftest.$ac_objext |
| 5061 | if { (ac_try="$ac_compile" |
| 5062 | case "(($ac_try" in |
| 5063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5064 | *) ac_try_echo=$ac_try;; |
| 5065 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5067 | (eval "$ac_compile") 2>conftest.er1 |
| 5068 | ac_status=$? |
| 5069 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5070 | rm -f conftest.er1 |
| 5071 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5073 | (exit $ac_status); } && { |
| 5074 | test -z "$ac_c_werror_flag" || |
| 5075 | test ! -s conftest.err |
| 5076 | } && test -s conftest.$ac_objext; then |
| 5077 | |
| 5078 | cat >>confdefs.h <<\_ACEOF |
| 5079 | #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1 |
| 5080 | _ACEOF |
| 5081 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5082 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 5083 | echo "${ECHO_T}yes" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5084 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5085 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5086 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5087 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5088 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5089 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5090 | |
| 5091 | fi |
| 5092 | |
| 5093 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5094 | CFLAGS=$save_CFLAGS |
| 5095 | fi |
| 5096 | |
| 5097 | # On some compilers, pthreads are available without further options |
| 5098 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 5099 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 5100 | # So we have to see first whether pthreads are available without |
| 5101 | # options before we can check whether -Kpthread improves anything. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5102 | { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 5103 | 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] | 5104 | if test "${ac_cv_pthread_is_default+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5106 | else |
| 5107 | if test "$cross_compiling" = yes; then |
| 5108 | ac_cv_pthread_is_default=no |
| 5109 | else |
| 5110 | cat >conftest.$ac_ext <<_ACEOF |
| 5111 | /* confdefs.h. */ |
| 5112 | _ACEOF |
| 5113 | cat confdefs.h >>conftest.$ac_ext |
| 5114 | cat >>conftest.$ac_ext <<_ACEOF |
| 5115 | /* end confdefs.h. */ |
| 5116 | |
| 5117 | #include <pthread.h> |
| 5118 | |
| 5119 | void* routine(void* p){return NULL;} |
| 5120 | |
| 5121 | int main(){ |
| 5122 | pthread_t p; |
| 5123 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5124 | return 1; |
| 5125 | (void)pthread_detach(p); |
| 5126 | return 0; |
| 5127 | } |
| 5128 | |
| 5129 | _ACEOF |
| 5130 | rm -f conftest$ac_exeext |
| 5131 | if { (ac_try="$ac_link" |
| 5132 | case "(($ac_try" in |
| 5133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5134 | *) ac_try_echo=$ac_try;; |
| 5135 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5137 | (eval "$ac_link") 2>&5 |
| 5138 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5140 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5141 | { (case "(($ac_try" in |
| 5142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5143 | *) ac_try_echo=$ac_try;; |
| 5144 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5146 | (eval "$ac_try") 2>&5 |
| 5147 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5149 | (exit $ac_status); }; }; then |
| 5150 | |
| 5151 | ac_cv_pthread_is_default=yes |
| 5152 | ac_cv_kthread=no |
| 5153 | ac_cv_pthread=no |
| 5154 | |
| 5155 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5156 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5157 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5158 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5159 | |
| 5160 | ( exit $ac_status ) |
| 5161 | ac_cv_pthread_is_default=no |
| 5162 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5163 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5164 | fi |
| 5165 | |
| 5166 | |
| 5167 | |
| 5168 | fi |
| 5169 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5170 | { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 5171 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5172 | |
| 5173 | |
| 5174 | if test $ac_cv_pthread_is_default = yes |
| 5175 | then |
| 5176 | ac_cv_kpthread=no |
| 5177 | else |
| 5178 | # -Kpthread, if available, provides the right #defines |
| 5179 | # and linker options to make pthread_create available |
| 5180 | # Some compilers won't report that they do not support -Kpthread, |
| 5181 | # so we need to run a program to see whether it really made the |
| 5182 | # function available. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5183 | { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 5184 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5185 | if test "${ac_cv_kpthread+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5187 | else |
| 5188 | ac_save_cc="$CC" |
| 5189 | CC="$CC -Kpthread" |
| 5190 | if test "$cross_compiling" = yes; then |
| 5191 | ac_cv_kpthread=no |
| 5192 | else |
| 5193 | cat >conftest.$ac_ext <<_ACEOF |
| 5194 | /* confdefs.h. */ |
| 5195 | _ACEOF |
| 5196 | cat confdefs.h >>conftest.$ac_ext |
| 5197 | cat >>conftest.$ac_ext <<_ACEOF |
| 5198 | /* end confdefs.h. */ |
| 5199 | |
| 5200 | #include <pthread.h> |
| 5201 | |
| 5202 | void* routine(void* p){return NULL;} |
| 5203 | |
| 5204 | int main(){ |
| 5205 | pthread_t p; |
| 5206 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5207 | return 1; |
| 5208 | (void)pthread_detach(p); |
| 5209 | return 0; |
| 5210 | } |
| 5211 | |
| 5212 | _ACEOF |
| 5213 | rm -f conftest$ac_exeext |
| 5214 | if { (ac_try="$ac_link" |
| 5215 | case "(($ac_try" in |
| 5216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5217 | *) ac_try_echo=$ac_try;; |
| 5218 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5220 | (eval "$ac_link") 2>&5 |
| 5221 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5223 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5224 | { (case "(($ac_try" in |
| 5225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5226 | *) ac_try_echo=$ac_try;; |
| 5227 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5229 | (eval "$ac_try") 2>&5 |
| 5230 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5232 | (exit $ac_status); }; }; then |
| 5233 | ac_cv_kpthread=yes |
| 5234 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5235 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5236 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5237 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5238 | |
| 5239 | ( exit $ac_status ) |
| 5240 | ac_cv_kpthread=no |
| 5241 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5242 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5243 | fi |
| 5244 | |
| 5245 | |
| 5246 | CC="$ac_save_cc" |
| 5247 | fi |
| 5248 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5249 | { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 5250 | echo "${ECHO_T}$ac_cv_kpthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5251 | fi |
| 5252 | |
| 5253 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no |
| 5254 | then |
| 5255 | # -Kthread, if available, provides the right #defines |
| 5256 | # and linker options to make pthread_create available |
| 5257 | # Some compilers won't report that they do not support -Kthread, |
| 5258 | # so we need to run a program to see whether it really made the |
| 5259 | # function available. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5260 | { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 5261 | echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5262 | if test "${ac_cv_kthread+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5264 | else |
| 5265 | ac_save_cc="$CC" |
| 5266 | CC="$CC -Kthread" |
| 5267 | if test "$cross_compiling" = yes; then |
| 5268 | ac_cv_kthread=no |
| 5269 | else |
| 5270 | cat >conftest.$ac_ext <<_ACEOF |
| 5271 | /* confdefs.h. */ |
| 5272 | _ACEOF |
| 5273 | cat confdefs.h >>conftest.$ac_ext |
| 5274 | cat >>conftest.$ac_ext <<_ACEOF |
| 5275 | /* end confdefs.h. */ |
| 5276 | |
| 5277 | #include <pthread.h> |
| 5278 | |
| 5279 | void* routine(void* p){return NULL;} |
| 5280 | |
| 5281 | int main(){ |
| 5282 | pthread_t p; |
| 5283 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5284 | return 1; |
| 5285 | (void)pthread_detach(p); |
| 5286 | return 0; |
| 5287 | } |
| 5288 | |
| 5289 | _ACEOF |
| 5290 | rm -f conftest$ac_exeext |
| 5291 | if { (ac_try="$ac_link" |
| 5292 | case "(($ac_try" in |
| 5293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5294 | *) ac_try_echo=$ac_try;; |
| 5295 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5297 | (eval "$ac_link") 2>&5 |
| 5298 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5300 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5301 | { (case "(($ac_try" in |
| 5302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5303 | *) ac_try_echo=$ac_try;; |
| 5304 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5306 | (eval "$ac_try") 2>&5 |
| 5307 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5309 | (exit $ac_status); }; }; then |
| 5310 | ac_cv_kthread=yes |
| 5311 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5312 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5313 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5314 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5315 | |
| 5316 | ( exit $ac_status ) |
| 5317 | ac_cv_kthread=no |
| 5318 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5319 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5320 | fi |
| 5321 | |
| 5322 | |
| 5323 | CC="$ac_save_cc" |
| 5324 | fi |
| 5325 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5326 | { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 5327 | echo "${ECHO_T}$ac_cv_kthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5328 | fi |
| 5329 | |
| 5330 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no |
| 5331 | then |
| 5332 | # -pthread, if available, provides the right #defines |
| 5333 | # and linker options to make pthread_create available |
| 5334 | # Some compilers won't report that they do not support -pthread, |
| 5335 | # so we need to run a program to see whether it really made the |
| 5336 | # function available. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5337 | { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 5338 | echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5339 | if test "${ac_cv_thread+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5341 | else |
| 5342 | ac_save_cc="$CC" |
| 5343 | CC="$CC -pthread" |
| 5344 | if test "$cross_compiling" = yes; then |
| 5345 | ac_cv_pthread=no |
| 5346 | else |
| 5347 | cat >conftest.$ac_ext <<_ACEOF |
| 5348 | /* confdefs.h. */ |
| 5349 | _ACEOF |
| 5350 | cat confdefs.h >>conftest.$ac_ext |
| 5351 | cat >>conftest.$ac_ext <<_ACEOF |
| 5352 | /* end confdefs.h. */ |
| 5353 | |
| 5354 | #include <pthread.h> |
| 5355 | |
| 5356 | void* routine(void* p){return NULL;} |
| 5357 | |
| 5358 | int main(){ |
| 5359 | pthread_t p; |
| 5360 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5361 | return 1; |
| 5362 | (void)pthread_detach(p); |
| 5363 | return 0; |
| 5364 | } |
| 5365 | |
| 5366 | _ACEOF |
| 5367 | rm -f conftest$ac_exeext |
| 5368 | if { (ac_try="$ac_link" |
| 5369 | case "(($ac_try" in |
| 5370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5371 | *) ac_try_echo=$ac_try;; |
| 5372 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5374 | (eval "$ac_link") 2>&5 |
| 5375 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5377 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5378 | { (case "(($ac_try" in |
| 5379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5380 | *) ac_try_echo=$ac_try;; |
| 5381 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5383 | (eval "$ac_try") 2>&5 |
| 5384 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5386 | (exit $ac_status); }; }; then |
| 5387 | ac_cv_pthread=yes |
| 5388 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5389 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5390 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5391 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5392 | |
| 5393 | ( exit $ac_status ) |
| 5394 | ac_cv_pthread=no |
| 5395 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5396 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5397 | fi |
| 5398 | |
| 5399 | |
| 5400 | CC="$ac_save_cc" |
| 5401 | fi |
| 5402 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5403 | { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 5404 | echo "${ECHO_T}$ac_cv_pthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5405 | fi |
| 5406 | |
| 5407 | # If we have set a CC compiler flag for thread support then |
| 5408 | # check if it works for CXX, too. |
| 5409 | ac_cv_cxx_thread=no |
| 5410 | if test ! -z "$CXX" |
| 5411 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5412 | { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| 5413 | 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] | 5414 | ac_save_cxx="$CXX" |
| 5415 | |
| 5416 | if test "$ac_cv_kpthread" = "yes" |
| 5417 | then |
| 5418 | CXX="$CXX -Kpthread" |
| 5419 | ac_cv_cxx_thread=yes |
| 5420 | elif test "$ac_cv_kthread" = "yes" |
| 5421 | then |
| 5422 | CXX="$CXX -Kthread" |
| 5423 | ac_cv_cxx_thread=yes |
| 5424 | elif test "$ac_cv_pthread" = "yes" |
| 5425 | then |
| 5426 | CXX="$CXX -pthread" |
| 5427 | ac_cv_cxx_thread=yes |
| 5428 | fi |
| 5429 | |
| 5430 | if test $ac_cv_cxx_thread = yes |
| 5431 | then |
| 5432 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 5433 | $CXX -c conftest.$ac_ext 2>&5 |
| 5434 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 5435 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 5436 | then |
| 5437 | ac_cv_cxx_thread=yes |
| 5438 | else |
| 5439 | ac_cv_cxx_thread=no |
| 5440 | fi |
| 5441 | rm -fr conftest* |
| 5442 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5443 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| 5444 | echo "${ECHO_T}$ac_cv_cxx_thread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5445 | fi |
| 5446 | CXX="$ac_save_cxx" |
| 5447 | |
| 5448 | |
| 5449 | # checks for header files |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5450 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5451 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5452 | if test "${ac_cv_header_stdc+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5453 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5454 | else |
| 5455 | cat >conftest.$ac_ext <<_ACEOF |
| 5456 | /* confdefs.h. */ |
| 5457 | _ACEOF |
| 5458 | cat confdefs.h >>conftest.$ac_ext |
| 5459 | cat >>conftest.$ac_ext <<_ACEOF |
| 5460 | /* end confdefs.h. */ |
| 5461 | #include <stdlib.h> |
| 5462 | #include <stdarg.h> |
| 5463 | #include <string.h> |
| 5464 | #include <float.h> |
| 5465 | |
| 5466 | int |
| 5467 | main () |
| 5468 | { |
| 5469 | |
| 5470 | ; |
| 5471 | return 0; |
| 5472 | } |
| 5473 | _ACEOF |
| 5474 | rm -f conftest.$ac_objext |
| 5475 | if { (ac_try="$ac_compile" |
| 5476 | case "(($ac_try" in |
| 5477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5478 | *) ac_try_echo=$ac_try;; |
| 5479 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5481 | (eval "$ac_compile") 2>conftest.er1 |
| 5482 | ac_status=$? |
| 5483 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5484 | rm -f conftest.er1 |
| 5485 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5487 | (exit $ac_status); } && { |
| 5488 | test -z "$ac_c_werror_flag" || |
| 5489 | test ! -s conftest.err |
| 5490 | } && test -s conftest.$ac_objext; then |
| 5491 | ac_cv_header_stdc=yes |
| 5492 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5493 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5494 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5495 | |
| 5496 | ac_cv_header_stdc=no |
| 5497 | fi |
| 5498 | |
| 5499 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5500 | |
| 5501 | if test $ac_cv_header_stdc = yes; then |
| 5502 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5503 | cat >conftest.$ac_ext <<_ACEOF |
| 5504 | /* confdefs.h. */ |
| 5505 | _ACEOF |
| 5506 | cat confdefs.h >>conftest.$ac_ext |
| 5507 | cat >>conftest.$ac_ext <<_ACEOF |
| 5508 | /* end confdefs.h. */ |
| 5509 | #include <string.h> |
| 5510 | |
| 5511 | _ACEOF |
| 5512 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5513 | $EGREP "memchr" >/dev/null 2>&1; then |
| 5514 | : |
| 5515 | else |
| 5516 | ac_cv_header_stdc=no |
| 5517 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame^] | 5518 | rm -f conftest* |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5519 | |
| 5520 | fi |
| 5521 | |
| 5522 | if test $ac_cv_header_stdc = yes; then |
| 5523 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5524 | cat >conftest.$ac_ext <<_ACEOF |
| 5525 | /* confdefs.h. */ |
| 5526 | _ACEOF |
| 5527 | cat confdefs.h >>conftest.$ac_ext |
| 5528 | cat >>conftest.$ac_ext <<_ACEOF |
| 5529 | /* end confdefs.h. */ |
| 5530 | #include <stdlib.h> |
| 5531 | |
| 5532 | _ACEOF |
| 5533 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5534 | $EGREP "free" >/dev/null 2>&1; then |
| 5535 | : |
| 5536 | else |
| 5537 | ac_cv_header_stdc=no |
| 5538 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame^] | 5539 | rm -f conftest* |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5540 | |
| 5541 | fi |
| 5542 | |
| 5543 | if test $ac_cv_header_stdc = yes; then |
| 5544 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5545 | if test "$cross_compiling" = yes; then |
| 5546 | : |
| 5547 | else |
| 5548 | cat >conftest.$ac_ext <<_ACEOF |
| 5549 | /* confdefs.h. */ |
| 5550 | _ACEOF |
| 5551 | cat confdefs.h >>conftest.$ac_ext |
| 5552 | cat >>conftest.$ac_ext <<_ACEOF |
| 5553 | /* end confdefs.h. */ |
| 5554 | #include <ctype.h> |
| 5555 | #include <stdlib.h> |
| 5556 | #if ((' ' & 0x0FF) == 0x020) |
| 5557 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5558 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5559 | #else |
| 5560 | # define ISLOWER(c) \ |
| 5561 | (('a' <= (c) && (c) <= 'i') \ |
| 5562 | || ('j' <= (c) && (c) <= 'r') \ |
| 5563 | || ('s' <= (c) && (c) <= 'z')) |
| 5564 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5565 | #endif |
| 5566 | |
| 5567 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5568 | int |
| 5569 | main () |
| 5570 | { |
| 5571 | int i; |
| 5572 | for (i = 0; i < 256; i++) |
| 5573 | if (XOR (islower (i), ISLOWER (i)) |
| 5574 | || toupper (i) != TOUPPER (i)) |
| 5575 | return 2; |
| 5576 | return 0; |
| 5577 | } |
| 5578 | _ACEOF |
| 5579 | rm -f conftest$ac_exeext |
| 5580 | if { (ac_try="$ac_link" |
| 5581 | case "(($ac_try" in |
| 5582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5583 | *) ac_try_echo=$ac_try;; |
| 5584 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5586 | (eval "$ac_link") 2>&5 |
| 5587 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5589 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5590 | { (case "(($ac_try" in |
| 5591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5592 | *) ac_try_echo=$ac_try;; |
| 5593 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5595 | (eval "$ac_try") 2>&5 |
| 5596 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5598 | (exit $ac_status); }; }; then |
| 5599 | : |
| 5600 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5601 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5602 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5603 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5604 | |
| 5605 | ( exit $ac_status ) |
| 5606 | ac_cv_header_stdc=no |
| 5607 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5608 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5609 | fi |
| 5610 | |
| 5611 | |
| 5612 | fi |
| 5613 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5614 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 5615 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5616 | if test $ac_cv_header_stdc = yes; then |
| 5617 | |
| 5618 | cat >>confdefs.h <<\_ACEOF |
| 5619 | #define STDC_HEADERS 1 |
| 5620 | _ACEOF |
| 5621 | |
| 5622 | fi |
| 5623 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5624 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5625 | |
| 5626 | |
| 5627 | |
| 5628 | |
| 5629 | |
| 5630 | |
| 5631 | |
| 5632 | |
| 5633 | |
| 5634 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 5635 | inttypes.h stdint.h unistd.h |
| 5636 | do |
| 5637 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5638 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5639 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5640 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 5641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5642 | else |
| 5643 | cat >conftest.$ac_ext <<_ACEOF |
| 5644 | /* confdefs.h. */ |
| 5645 | _ACEOF |
| 5646 | cat confdefs.h >>conftest.$ac_ext |
| 5647 | cat >>conftest.$ac_ext <<_ACEOF |
| 5648 | /* end confdefs.h. */ |
| 5649 | $ac_includes_default |
| 5650 | |
| 5651 | #include <$ac_header> |
| 5652 | _ACEOF |
| 5653 | rm -f conftest.$ac_objext |
| 5654 | if { (ac_try="$ac_compile" |
| 5655 | case "(($ac_try" in |
| 5656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5657 | *) ac_try_echo=$ac_try;; |
| 5658 | esac |
| 5659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5660 | (eval "$ac_compile") 2>conftest.er1 |
| 5661 | ac_status=$? |
| 5662 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5663 | rm -f conftest.er1 |
| 5664 | cat conftest.err >&5 |
| 5665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5666 | (exit $ac_status); } && { |
| 5667 | test -z "$ac_c_werror_flag" || |
| 5668 | test ! -s conftest.err |
| 5669 | } && test -s conftest.$ac_objext; then |
| 5670 | eval "$as_ac_Header=yes" |
| 5671 | else |
| 5672 | echo "$as_me: failed program was:" >&5 |
| 5673 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5674 | |
| 5675 | eval "$as_ac_Header=no" |
| 5676 | fi |
| 5677 | |
| 5678 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5679 | fi |
| 5680 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5681 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5682 | echo "${ECHO_T}$ac_res" >&6; } |
| 5683 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5684 | cat >>confdefs.h <<_ACEOF |
| 5685 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5686 | _ACEOF |
| 5687 | |
| 5688 | fi |
| 5689 | |
| 5690 | done |
| 5691 | |
| 5692 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5693 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | |
| 5724 | |
| 5725 | |
| 5726 | |
| 5727 | |
| 5728 | |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 5729 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 5730 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 5731 | |
Martin v. Löwis | 5f5d99c | 2006-05-16 07:05:37 +0000 | [diff] [blame] | 5732 | |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5733 | |
| 5734 | |
| 5735 | |
| 5736 | |
| 5737 | |
| 5738 | |
| 5739 | |
| 5740 | |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 5741 | |
Christian Heimes | fb2d25a | 2008-01-07 16:12:44 +0000 | [diff] [blame] | 5742 | |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 5743 | |
| 5744 | |
Neal Norwitz | 9fdfaaf | 2008-03-28 05:34:59 +0000 | [diff] [blame] | 5745 | |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 5746 | |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5747 | |
| 5748 | |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5749 | for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ |
| 5750 | fcntl.h grp.h \ |
Neal Norwitz | 9fdfaaf | 2008-03-28 05:34:59 +0000 | [diff] [blame] | 5751 | 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] | 5752 | 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] | 5753 | unistd.h utime.h \ |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 5754 | sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ |
| 5755 | sys/lock.h sys/mkdev.h sys/modem.h \ |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5756 | 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] | 5757 | sys/termio.h sys/time.h \ |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5758 | 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] | 5759 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5760 | bluetooth/bluetooth.h linux/tipc.h spawn.h util.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5761 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5762 | 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] | 5763 | 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] | 5764 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5765 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5766 | 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] | 5767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5768 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5769 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5770 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5771 | echo "${ECHO_T}$ac_res" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5772 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5773 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5774 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5775 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5776 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5777 | /* confdefs.h. */ |
| 5778 | _ACEOF |
| 5779 | cat confdefs.h >>conftest.$ac_ext |
| 5780 | cat >>conftest.$ac_ext <<_ACEOF |
| 5781 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5782 | $ac_includes_default |
| 5783 | #include <$ac_header> |
| 5784 | _ACEOF |
| 5785 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5786 | if { (ac_try="$ac_compile" |
| 5787 | case "(($ac_try" in |
| 5788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5789 | *) ac_try_echo=$ac_try;; |
| 5790 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5792 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5793 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5794 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5795 | rm -f conftest.er1 |
| 5796 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5798 | (exit $ac_status); } && { |
| 5799 | test -z "$ac_c_werror_flag" || |
| 5800 | test ! -s conftest.err |
| 5801 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5802 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5803 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5804 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5806 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5807 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5808 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5809 | |
| 5810 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5811 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5812 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5813 | |
| 5814 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5815 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5816 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5817 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5818 | /* confdefs.h. */ |
| 5819 | _ACEOF |
| 5820 | cat confdefs.h >>conftest.$ac_ext |
| 5821 | cat >>conftest.$ac_ext <<_ACEOF |
| 5822 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5823 | #include <$ac_header> |
| 5824 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5825 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5826 | case "(($ac_try" in |
| 5827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5828 | *) ac_try_echo=$ac_try;; |
| 5829 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5830 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5831 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5832 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5833 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5834 | rm -f conftest.er1 |
| 5835 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5837 | (exit $ac_status); } >/dev/null && { |
| 5838 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5839 | test ! -s conftest.err |
| 5840 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5841 | ac_header_preproc=yes |
| 5842 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5843 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5844 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5845 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5846 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5847 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5848 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5849 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5850 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5851 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5852 | |
| 5853 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5854 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5855 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5856 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5857 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5858 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 5859 | 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] | 5860 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5861 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5862 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5863 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5864 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5865 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5866 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5867 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 5868 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 5869 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 5870 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5871 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5872 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5873 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 5874 | 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] | 5875 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 5876 | ## -------------------------------------- ## |
| 5877 | ## Report this to http://bugs.python.org/ ## |
| 5878 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5879 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5880 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5881 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5882 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5883 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5884 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5885 | 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] | 5886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5887 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5888 | eval "$as_ac_Header=\$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5889 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5890 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5891 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5892 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5893 | |
| 5894 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5895 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5896 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5897 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5898 | _ACEOF |
| 5899 | |
| 5900 | fi |
| 5901 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5902 | done |
| 5903 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5904 | |
| 5905 | |
| 5906 | |
| 5907 | |
| 5908 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5909 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5910 | 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] | 5911 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 5912 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 5913 | 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] | 5914 | 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] | 5915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5916 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5917 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5918 | /* confdefs.h. */ |
| 5919 | _ACEOF |
| 5920 | cat confdefs.h >>conftest.$ac_ext |
| 5921 | cat >>conftest.$ac_ext <<_ACEOF |
| 5922 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5923 | #include <sys/types.h> |
| 5924 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5925 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5926 | int |
| 5927 | main () |
| 5928 | { |
| 5929 | if ((DIR *) 0) |
| 5930 | return 0; |
| 5931 | ; |
| 5932 | return 0; |
| 5933 | } |
| 5934 | _ACEOF |
| 5935 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5936 | if { (ac_try="$ac_compile" |
| 5937 | case "(($ac_try" in |
| 5938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5939 | *) ac_try_echo=$ac_try;; |
| 5940 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5942 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5943 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5944 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5945 | rm -f conftest.er1 |
| 5946 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5948 | (exit $ac_status); } && { |
| 5949 | test -z "$ac_c_werror_flag" || |
| 5950 | test ! -s conftest.err |
| 5951 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5952 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5953 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5954 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5956 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5957 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5958 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5959 | |
| 5960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5961 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5962 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5963 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5964 | echo "${ECHO_T}$ac_res" >&6; } |
| 5965 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5966 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5967 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5968 | _ACEOF |
| 5969 | |
| 5970 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5971 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5972 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5973 | done |
| 5974 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 5975 | if test $ac_header_dirent = dirent.h; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5976 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 5977 | 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] | 5978 | if test "${ac_cv_search_opendir+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5980 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5981 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5982 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5983 | /* confdefs.h. */ |
| 5984 | _ACEOF |
| 5985 | cat confdefs.h >>conftest.$ac_ext |
| 5986 | cat >>conftest.$ac_ext <<_ACEOF |
| 5987 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5988 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5989 | /* Override any GCC internal prototype to avoid an error. |
| 5990 | Use char because int might match the return type of a GCC |
| 5991 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5992 | #ifdef __cplusplus |
| 5993 | extern "C" |
| 5994 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5995 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5996 | int |
| 5997 | main () |
| 5998 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5999 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6000 | ; |
| 6001 | return 0; |
| 6002 | } |
| 6003 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6004 | for ac_lib in '' dir; do |
| 6005 | if test -z "$ac_lib"; then |
| 6006 | ac_res="none required" |
| 6007 | else |
| 6008 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6009 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6010 | fi |
| 6011 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6012 | if { (ac_try="$ac_link" |
| 6013 | case "(($ac_try" in |
| 6014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6015 | *) ac_try_echo=$ac_try;; |
| 6016 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6018 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6019 | ac_status=$? |
| 6020 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6021 | rm -f conftest.er1 |
| 6022 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6024 | (exit $ac_status); } && { |
| 6025 | test -z "$ac_c_werror_flag" || |
| 6026 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6027 | } && test -s conftest$ac_exeext && |
| 6028 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6029 | ac_cv_search_opendir=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6030 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6031 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6032 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6033 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6034 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6035 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6036 | |
| 6037 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 6038 | conftest$ac_exeext |
| 6039 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6040 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6041 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6042 | done |
| 6043 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6044 | : |
| 6045 | else |
| 6046 | ac_cv_search_opendir=no |
| 6047 | fi |
| 6048 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6049 | LIBS=$ac_func_search_save_LIBS |
| 6050 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6051 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 6052 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6053 | ac_res=$ac_cv_search_opendir |
| 6054 | if test "$ac_res" != no; then |
| 6055 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6056 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6057 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6058 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6059 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6060 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 6061 | 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] | 6062 | if test "${ac_cv_search_opendir+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6064 | else |
| 6065 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6066 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6067 | /* confdefs.h. */ |
| 6068 | _ACEOF |
| 6069 | cat confdefs.h >>conftest.$ac_ext |
| 6070 | cat >>conftest.$ac_ext <<_ACEOF |
| 6071 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6072 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6073 | /* Override any GCC internal prototype to avoid an error. |
| 6074 | Use char because int might match the return type of a GCC |
| 6075 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6076 | #ifdef __cplusplus |
| 6077 | extern "C" |
| 6078 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6079 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6080 | int |
| 6081 | main () |
| 6082 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6083 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6084 | ; |
| 6085 | return 0; |
| 6086 | } |
| 6087 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6088 | for ac_lib in '' x; do |
| 6089 | if test -z "$ac_lib"; then |
| 6090 | ac_res="none required" |
| 6091 | else |
| 6092 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6093 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6094 | fi |
| 6095 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6096 | if { (ac_try="$ac_link" |
| 6097 | case "(($ac_try" in |
| 6098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6099 | *) ac_try_echo=$ac_try;; |
| 6100 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6102 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6103 | ac_status=$? |
| 6104 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6105 | rm -f conftest.er1 |
| 6106 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6108 | (exit $ac_status); } && { |
| 6109 | test -z "$ac_c_werror_flag" || |
| 6110 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6111 | } && test -s conftest$ac_exeext && |
| 6112 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6113 | ac_cv_search_opendir=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6114 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6115 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6116 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6117 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6118 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6119 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6120 | |
| 6121 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 6122 | conftest$ac_exeext |
| 6123 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6124 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6125 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6126 | done |
| 6127 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6128 | : |
| 6129 | else |
| 6130 | ac_cv_search_opendir=no |
| 6131 | fi |
| 6132 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6133 | LIBS=$ac_func_search_save_LIBS |
| 6134 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6135 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 6136 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6137 | ac_res=$ac_cv_search_opendir |
| 6138 | if test "$ac_res" != no; then |
| 6139 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6140 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6141 | fi |
| 6142 | |
| 6143 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6144 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6145 | { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 6146 | 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] | 6147 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6148 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6149 | else |
| 6150 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6151 | /* confdefs.h. */ |
| 6152 | _ACEOF |
| 6153 | cat confdefs.h >>conftest.$ac_ext |
| 6154 | cat >>conftest.$ac_ext <<_ACEOF |
| 6155 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6156 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6157 | int |
| 6158 | main () |
| 6159 | { |
| 6160 | return makedev(0, 0); |
| 6161 | ; |
| 6162 | return 0; |
| 6163 | } |
| 6164 | _ACEOF |
| 6165 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6166 | if { (ac_try="$ac_link" |
| 6167 | case "(($ac_try" in |
| 6168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6169 | *) ac_try_echo=$ac_try;; |
| 6170 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6172 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6173 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6174 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6175 | rm -f conftest.er1 |
| 6176 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6178 | (exit $ac_status); } && { |
| 6179 | test -z "$ac_c_werror_flag" || |
| 6180 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6181 | } && test -s conftest$ac_exeext && |
| 6182 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6183 | ac_cv_header_sys_types_h_makedev=yes |
| 6184 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6185 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6186 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6187 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6188 | ac_cv_header_sys_types_h_makedev=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6189 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6190 | |
| 6191 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6192 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6193 | |
| 6194 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6195 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 6196 | 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] | 6197 | |
| 6198 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 6199 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6200 | { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 6201 | 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] | 6202 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6204 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6205 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 6206 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6207 | else |
| 6208 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6209 | { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 6210 | 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] | 6211 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6212 | /* confdefs.h. */ |
| 6213 | _ACEOF |
| 6214 | cat confdefs.h >>conftest.$ac_ext |
| 6215 | cat >>conftest.$ac_ext <<_ACEOF |
| 6216 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6217 | $ac_includes_default |
| 6218 | #include <sys/mkdev.h> |
| 6219 | _ACEOF |
| 6220 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6221 | if { (ac_try="$ac_compile" |
| 6222 | case "(($ac_try" in |
| 6223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6224 | *) ac_try_echo=$ac_try;; |
| 6225 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6226 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6227 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6228 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6229 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6230 | rm -f conftest.er1 |
| 6231 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6233 | (exit $ac_status); } && { |
| 6234 | test -z "$ac_c_werror_flag" || |
| 6235 | test ! -s conftest.err |
| 6236 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6237 | ac_header_compiler=yes |
| 6238 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6239 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6240 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6241 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6242 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6243 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6244 | |
| 6245 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6246 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6247 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6248 | |
| 6249 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6250 | { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 6251 | 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] | 6252 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6253 | /* confdefs.h. */ |
| 6254 | _ACEOF |
| 6255 | cat confdefs.h >>conftest.$ac_ext |
| 6256 | cat >>conftest.$ac_ext <<_ACEOF |
| 6257 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6258 | #include <sys/mkdev.h> |
| 6259 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6260 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6261 | case "(($ac_try" in |
| 6262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6263 | *) ac_try_echo=$ac_try;; |
| 6264 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6265 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6266 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6267 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6268 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6269 | rm -f conftest.er1 |
| 6270 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6272 | (exit $ac_status); } >/dev/null && { |
| 6273 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6274 | test ! -s conftest.err |
| 6275 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6276 | ac_header_preproc=yes |
| 6277 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6278 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6279 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6280 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6281 | ac_header_preproc=no |
| 6282 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6283 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6284 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6285 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6286 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6287 | |
| 6288 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6289 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6290 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6291 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6292 | echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6293 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 |
| 6294 | 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] | 6295 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6296 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6297 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6298 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 6299 | echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
| 6300 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 6301 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 6302 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 |
| 6303 | echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} |
| 6304 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6305 | echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6306 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 6307 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} |
| 6308 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 |
| 6309 | 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] | 6310 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6311 | ## -------------------------------------- ## |
| 6312 | ## Report this to http://bugs.python.org/ ## |
| 6313 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6314 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6315 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6316 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6317 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6318 | { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 6319 | 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] | 6320 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6322 | else |
| 6323 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 6324 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6325 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 6326 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6327 | |
| 6328 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6329 | if test $ac_cv_header_sys_mkdev_h = yes; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6330 | |
| 6331 | cat >>confdefs.h <<\_ACEOF |
| 6332 | #define MAJOR_IN_MKDEV 1 |
| 6333 | _ACEOF |
| 6334 | |
| 6335 | fi |
| 6336 | |
| 6337 | |
| 6338 | |
| 6339 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 6340 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6341 | { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6342 | 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] | 6343 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6345 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6346 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6347 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6348 | else |
| 6349 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6350 | { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 6351 | 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] | 6352 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6353 | /* confdefs.h. */ |
| 6354 | _ACEOF |
| 6355 | cat confdefs.h >>conftest.$ac_ext |
| 6356 | cat >>conftest.$ac_ext <<_ACEOF |
| 6357 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6358 | $ac_includes_default |
| 6359 | #include <sys/sysmacros.h> |
| 6360 | _ACEOF |
| 6361 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6362 | if { (ac_try="$ac_compile" |
| 6363 | case "(($ac_try" in |
| 6364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6365 | *) ac_try_echo=$ac_try;; |
| 6366 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6368 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6369 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6370 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6371 | rm -f conftest.er1 |
| 6372 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6374 | (exit $ac_status); } && { |
| 6375 | test -z "$ac_c_werror_flag" || |
| 6376 | test ! -s conftest.err |
| 6377 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6378 | ac_header_compiler=yes |
| 6379 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6380 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6382 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6383 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6384 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6385 | |
| 6386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6387 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6388 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6389 | |
| 6390 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6391 | { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 6392 | 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] | 6393 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6394 | /* confdefs.h. */ |
| 6395 | _ACEOF |
| 6396 | cat confdefs.h >>conftest.$ac_ext |
| 6397 | cat >>conftest.$ac_ext <<_ACEOF |
| 6398 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6399 | #include <sys/sysmacros.h> |
| 6400 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6401 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6402 | case "(($ac_try" in |
| 6403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6404 | *) ac_try_echo=$ac_try;; |
| 6405 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6407 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6408 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6409 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6410 | rm -f conftest.er1 |
| 6411 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6413 | (exit $ac_status); } >/dev/null && { |
| 6414 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6415 | test ! -s conftest.err |
| 6416 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6417 | ac_header_preproc=yes |
| 6418 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6419 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6420 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6421 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6422 | ac_header_preproc=no |
| 6423 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6424 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6425 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6426 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6427 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6428 | |
| 6429 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6430 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6431 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6432 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6433 | echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6434 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 |
| 6435 | 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] | 6436 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6437 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6438 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6439 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 6440 | echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
| 6441 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 6442 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 6443 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 |
| 6444 | echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} |
| 6445 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6446 | echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6447 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 6448 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} |
| 6449 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 |
| 6450 | 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] | 6451 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6452 | ## -------------------------------------- ## |
| 6453 | ## Report this to http://bugs.python.org/ ## |
| 6454 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6455 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6456 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6457 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6458 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6459 | { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6460 | 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] | 6461 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6463 | else |
| 6464 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 6465 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6466 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6467 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6468 | |
| 6469 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6470 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6471 | |
| 6472 | cat >>confdefs.h <<\_ACEOF |
| 6473 | #define MAJOR_IN_SYSMACROS 1 |
| 6474 | _ACEOF |
| 6475 | |
| 6476 | fi |
| 6477 | |
| 6478 | |
| 6479 | fi |
| 6480 | fi |
| 6481 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6482 | |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6483 | # On Solaris, term.h requires curses.h |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6484 | |
| 6485 | for ac_header in term.h |
| 6486 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6487 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6488 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6489 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6490 | 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] | 6491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6492 | else |
| 6493 | cat >conftest.$ac_ext <<_ACEOF |
| 6494 | /* confdefs.h. */ |
| 6495 | _ACEOF |
| 6496 | cat confdefs.h >>conftest.$ac_ext |
| 6497 | cat >>conftest.$ac_ext <<_ACEOF |
| 6498 | /* end confdefs.h. */ |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6499 | |
Martin v. Löwis | 5d52e78 | 2004-09-18 10:07:03 +0000 | [diff] [blame] | 6500 | #ifdef HAVE_CURSES_H |
| 6501 | #include <curses.h> |
| 6502 | #endif |
| 6503 | |
| 6504 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6505 | #include <$ac_header> |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6506 | _ACEOF |
| 6507 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6508 | if { (ac_try="$ac_compile" |
| 6509 | case "(($ac_try" in |
| 6510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6511 | *) ac_try_echo=$ac_try;; |
| 6512 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6513 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6514 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6515 | ac_status=$? |
| 6516 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6517 | rm -f conftest.er1 |
| 6518 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6520 | (exit $ac_status); } && { |
| 6521 | test -z "$ac_c_werror_flag" || |
| 6522 | test ! -s conftest.err |
| 6523 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6524 | eval "$as_ac_Header=yes" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6525 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6526 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6527 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6528 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6529 | eval "$as_ac_Header=no" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6530 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6531 | |
| 6532 | 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] | 6533 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6534 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6535 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6536 | echo "${ECHO_T}$ac_res" >&6; } |
| 6537 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6538 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6539 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6540 | _ACEOF |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6541 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6542 | fi |
| 6543 | |
| 6544 | done |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6545 | |
| 6546 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6547 | # On Linux, netlink.h requires asm/types.h |
| 6548 | |
| 6549 | for ac_header in linux/netlink.h |
| 6550 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6551 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6552 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6553 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6554 | 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] | 6555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6556 | else |
| 6557 | cat >conftest.$ac_ext <<_ACEOF |
| 6558 | /* confdefs.h. */ |
| 6559 | _ACEOF |
| 6560 | cat confdefs.h >>conftest.$ac_ext |
| 6561 | cat >>conftest.$ac_ext <<_ACEOF |
| 6562 | /* end confdefs.h. */ |
| 6563 | |
| 6564 | #ifdef HAVE_ASM_TYPES_H |
| 6565 | #include <asm/types.h> |
| 6566 | #endif |
| 6567 | #ifdef HAVE_SYS_SOCKET_H |
| 6568 | #include <sys/socket.h> |
| 6569 | #endif |
| 6570 | |
| 6571 | |
| 6572 | #include <$ac_header> |
| 6573 | _ACEOF |
| 6574 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6575 | if { (ac_try="$ac_compile" |
| 6576 | case "(($ac_try" in |
| 6577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6578 | *) ac_try_echo=$ac_try;; |
| 6579 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6580 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6581 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6582 | ac_status=$? |
| 6583 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6584 | rm -f conftest.er1 |
| 6585 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6587 | (exit $ac_status); } && { |
| 6588 | test -z "$ac_c_werror_flag" || |
| 6589 | test ! -s conftest.err |
| 6590 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6591 | eval "$as_ac_Header=yes" |
| 6592 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6593 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6594 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6595 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6596 | eval "$as_ac_Header=no" |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6597 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6598 | |
| 6599 | 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] | 6600 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6601 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6602 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6603 | echo "${ECHO_T}$ac_res" >&6; } |
| 6604 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6605 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6606 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6607 | _ACEOF |
| 6608 | |
| 6609 | fi |
| 6610 | |
| 6611 | done |
| 6612 | |
| 6613 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6614 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6615 | was_it_defined=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6616 | { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 6617 | 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] | 6618 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6619 | /* confdefs.h. */ |
| 6620 | _ACEOF |
| 6621 | cat confdefs.h >>conftest.$ac_ext |
| 6622 | cat >>conftest.$ac_ext <<_ACEOF |
| 6623 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6624 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6625 | |
| 6626 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6627 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6628 | $EGREP "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6629 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6630 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6631 | |
| 6632 | |
| 6633 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6634 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6635 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6636 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6637 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6638 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame^] | 6639 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6640 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6641 | { echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 6642 | echo "${ECHO_T}$was_it_defined" >&6; } |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6643 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6644 | # Check whether using makedev requires defining _OSF_SOURCE |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6645 | { echo "$as_me:$LINENO: checking for makedev" >&5 |
| 6646 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6647 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6648 | /* confdefs.h. */ |
| 6649 | _ACEOF |
| 6650 | cat confdefs.h >>conftest.$ac_ext |
| 6651 | cat >>conftest.$ac_ext <<_ACEOF |
| 6652 | /* end confdefs.h. */ |
Jesus Cea | 616de77 | 2010-04-28 10:32:30 +0000 | [diff] [blame] | 6653 | |
| 6654 | #if defined(MAJOR_IN_MKDEV) |
| 6655 | #include <sys/mkdev.h> |
| 6656 | #elif defined(MAJOR_IN_SYSMACROS) |
| 6657 | #include <sys/sysmacros.h> |
| 6658 | #else |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6659 | #include <sys/types.h> |
Jesus Cea | 616de77 | 2010-04-28 10:32:30 +0000 | [diff] [blame] | 6660 | #endif |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6661 | int |
| 6662 | main () |
| 6663 | { |
| 6664 | makedev(0, 0) |
| 6665 | ; |
| 6666 | return 0; |
| 6667 | } |
| 6668 | _ACEOF |
| 6669 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6670 | if { (ac_try="$ac_link" |
| 6671 | case "(($ac_try" in |
| 6672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6673 | *) ac_try_echo=$ac_try;; |
| 6674 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6675 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6676 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6677 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6678 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6679 | rm -f conftest.er1 |
| 6680 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6682 | (exit $ac_status); } && { |
| 6683 | test -z "$ac_c_werror_flag" || |
| 6684 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6685 | } && test -s conftest$ac_exeext && |
| 6686 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6687 | ac_cv_has_makedev=yes |
| 6688 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6689 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6690 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6691 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6692 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6693 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6694 | |
| 6695 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6696 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6697 | if test "$ac_cv_has_makedev" = "no"; then |
| 6698 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 6699 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6700 | /* confdefs.h. */ |
| 6701 | _ACEOF |
| 6702 | cat confdefs.h >>conftest.$ac_ext |
| 6703 | cat >>conftest.$ac_ext <<_ACEOF |
| 6704 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6705 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6706 | #define _OSF_SOURCE 1 |
| 6707 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6708 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6709 | int |
| 6710 | main () |
| 6711 | { |
| 6712 | makedev(0, 0) |
| 6713 | ; |
| 6714 | return 0; |
| 6715 | } |
| 6716 | _ACEOF |
| 6717 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6718 | if { (ac_try="$ac_link" |
| 6719 | case "(($ac_try" in |
| 6720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6721 | *) ac_try_echo=$ac_try;; |
| 6722 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6724 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6725 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6726 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6727 | rm -f conftest.er1 |
| 6728 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6730 | (exit $ac_status); } && { |
| 6731 | test -z "$ac_c_werror_flag" || |
| 6732 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6733 | } && test -s conftest$ac_exeext && |
| 6734 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6735 | ac_cv_has_makedev=yes |
| 6736 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6737 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6738 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6739 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6740 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6741 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6742 | |
| 6743 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6744 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6745 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6746 | |
| 6747 | cat >>confdefs.h <<\_ACEOF |
| 6748 | #define _OSF_SOURCE 1 |
| 6749 | _ACEOF |
| 6750 | |
| 6751 | fi |
| 6752 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6753 | { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 6754 | echo "${ECHO_T}$ac_cv_has_makedev" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6755 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6756 | |
| 6757 | cat >>confdefs.h <<\_ACEOF |
| 6758 | #define HAVE_MAKEDEV 1 |
| 6759 | _ACEOF |
| 6760 | |
| 6761 | fi |
| 6762 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6763 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 6764 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 6765 | # defined, but the compiler does not support pragma redefine_extname, |
| 6766 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 6767 | # structures (such as rlimit64) without declaring them. As a |
| 6768 | # work-around, disable LFS on such configurations |
| 6769 | |
| 6770 | use_lfs=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6771 | { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 6772 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6773 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6774 | /* confdefs.h. */ |
| 6775 | _ACEOF |
| 6776 | cat confdefs.h >>conftest.$ac_ext |
| 6777 | cat >>conftest.$ac_ext <<_ACEOF |
| 6778 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6779 | |
| 6780 | #define _LARGEFILE_SOURCE 1 |
| 6781 | #define _FILE_OFFSET_BITS 64 |
| 6782 | #include <sys/resource.h> |
| 6783 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6784 | int |
| 6785 | main () |
| 6786 | { |
| 6787 | struct rlimit foo; |
| 6788 | ; |
| 6789 | return 0; |
| 6790 | } |
| 6791 | _ACEOF |
| 6792 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6793 | if { (ac_try="$ac_compile" |
| 6794 | case "(($ac_try" in |
| 6795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6796 | *) ac_try_echo=$ac_try;; |
| 6797 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6799 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6800 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6801 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6802 | rm -f conftest.er1 |
| 6803 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6805 | (exit $ac_status); } && { |
| 6806 | test -z "$ac_c_werror_flag" || |
| 6807 | test ! -s conftest.err |
| 6808 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6809 | sol_lfs_bug=no |
| 6810 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6811 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6812 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6813 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6814 | sol_lfs_bug=yes |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6815 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6816 | |
| 6817 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6818 | { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 6819 | echo "${ECHO_T}$sol_lfs_bug" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6820 | if test "$sol_lfs_bug" = "yes"; then |
| 6821 | use_lfs=no |
| 6822 | fi |
| 6823 | |
| 6824 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6825 | # Two defines needed to enable largefile support on various platforms |
| 6826 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6827 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6828 | cat >>confdefs.h <<\_ACEOF |
| 6829 | #define _LARGEFILE_SOURCE 1 |
| 6830 | _ACEOF |
| 6831 | |
| 6832 | |
| 6833 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6834 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6835 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6836 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6837 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6838 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 6839 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 6840 | cat >> confdefs.h <<\EOF |
| 6841 | #if defined(SCO_DS) |
| 6842 | #undef _OFF_T |
| 6843 | #endif |
| 6844 | EOF |
| 6845 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6846 | # Type availability checks |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6847 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 6848 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6849 | if test "${ac_cv_type_mode_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6851 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6852 | cat >conftest.$ac_ext <<_ACEOF |
| 6853 | /* confdefs.h. */ |
| 6854 | _ACEOF |
| 6855 | cat confdefs.h >>conftest.$ac_ext |
| 6856 | cat >>conftest.$ac_ext <<_ACEOF |
| 6857 | /* end confdefs.h. */ |
| 6858 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6859 | typedef mode_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6860 | int |
| 6861 | main () |
| 6862 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6863 | if ((ac__type_new_ *) 0) |
| 6864 | return 0; |
| 6865 | if (sizeof (ac__type_new_)) |
| 6866 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6867 | ; |
| 6868 | return 0; |
| 6869 | } |
| 6870 | _ACEOF |
| 6871 | rm -f conftest.$ac_objext |
| 6872 | if { (ac_try="$ac_compile" |
| 6873 | case "(($ac_try" in |
| 6874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6875 | *) ac_try_echo=$ac_try;; |
| 6876 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6878 | (eval "$ac_compile") 2>conftest.er1 |
| 6879 | ac_status=$? |
| 6880 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6881 | rm -f conftest.er1 |
| 6882 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6884 | (exit $ac_status); } && { |
| 6885 | test -z "$ac_c_werror_flag" || |
| 6886 | test ! -s conftest.err |
| 6887 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6888 | ac_cv_type_mode_t=yes |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6889 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6890 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6891 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6892 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6893 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6894 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6895 | |
| 6896 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6897 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6898 | { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 6899 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } |
| 6900 | if test $ac_cv_type_mode_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6901 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6902 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6903 | |
| 6904 | cat >>confdefs.h <<_ACEOF |
| 6905 | #define mode_t int |
| 6906 | _ACEOF |
| 6907 | |
| 6908 | fi |
| 6909 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6910 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 6911 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6912 | if test "${ac_cv_type_off_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6914 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6915 | cat >conftest.$ac_ext <<_ACEOF |
| 6916 | /* confdefs.h. */ |
| 6917 | _ACEOF |
| 6918 | cat confdefs.h >>conftest.$ac_ext |
| 6919 | cat >>conftest.$ac_ext <<_ACEOF |
| 6920 | /* end confdefs.h. */ |
| 6921 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6922 | typedef off_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6923 | int |
| 6924 | main () |
| 6925 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6926 | if ((ac__type_new_ *) 0) |
| 6927 | return 0; |
| 6928 | if (sizeof (ac__type_new_)) |
| 6929 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6930 | ; |
| 6931 | return 0; |
| 6932 | } |
| 6933 | _ACEOF |
| 6934 | rm -f conftest.$ac_objext |
| 6935 | if { (ac_try="$ac_compile" |
| 6936 | case "(($ac_try" in |
| 6937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6938 | *) ac_try_echo=$ac_try;; |
| 6939 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6941 | (eval "$ac_compile") 2>conftest.er1 |
| 6942 | ac_status=$? |
| 6943 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6944 | rm -f conftest.er1 |
| 6945 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6947 | (exit $ac_status); } && { |
| 6948 | test -z "$ac_c_werror_flag" || |
| 6949 | test ! -s conftest.err |
| 6950 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6951 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6952 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6953 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6954 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6955 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6956 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6957 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6958 | |
| 6959 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6960 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6961 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 6962 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
| 6963 | if test $ac_cv_type_off_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6964 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6965 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6966 | |
| 6967 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6968 | #define off_t long int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6969 | _ACEOF |
| 6970 | |
| 6971 | fi |
| 6972 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6973 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 6974 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6975 | if test "${ac_cv_type_pid_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6977 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6978 | cat >conftest.$ac_ext <<_ACEOF |
| 6979 | /* confdefs.h. */ |
| 6980 | _ACEOF |
| 6981 | cat confdefs.h >>conftest.$ac_ext |
| 6982 | cat >>conftest.$ac_ext <<_ACEOF |
| 6983 | /* end confdefs.h. */ |
| 6984 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6985 | typedef pid_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6986 | int |
| 6987 | main () |
| 6988 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6989 | if ((ac__type_new_ *) 0) |
| 6990 | return 0; |
| 6991 | if (sizeof (ac__type_new_)) |
| 6992 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6993 | ; |
| 6994 | return 0; |
| 6995 | } |
| 6996 | _ACEOF |
| 6997 | rm -f conftest.$ac_objext |
| 6998 | if { (ac_try="$ac_compile" |
| 6999 | case "(($ac_try" in |
| 7000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7001 | *) ac_try_echo=$ac_try;; |
| 7002 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7003 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7004 | (eval "$ac_compile") 2>conftest.er1 |
| 7005 | ac_status=$? |
| 7006 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7007 | rm -f conftest.er1 |
| 7008 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7010 | (exit $ac_status); } && { |
| 7011 | test -z "$ac_c_werror_flag" || |
| 7012 | test ! -s conftest.err |
| 7013 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7014 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7015 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7016 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7017 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7018 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7019 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7020 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7021 | |
| 7022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7023 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7024 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 7025 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 7026 | if test $ac_cv_type_pid_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7027 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7028 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7029 | |
| 7030 | cat >>confdefs.h <<_ACEOF |
| 7031 | #define pid_t int |
| 7032 | _ACEOF |
| 7033 | |
| 7034 | fi |
| 7035 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7036 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 7037 | 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] | 7038 | if test "${ac_cv_type_signal+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7040 | else |
| 7041 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7042 | /* confdefs.h. */ |
| 7043 | _ACEOF |
| 7044 | cat confdefs.h >>conftest.$ac_ext |
| 7045 | cat >>conftest.$ac_ext <<_ACEOF |
| 7046 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7047 | #include <sys/types.h> |
| 7048 | #include <signal.h> |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7049 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7050 | int |
| 7051 | main () |
| 7052 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7053 | return *(signal (0, 0)) (0) == 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7054 | ; |
| 7055 | return 0; |
| 7056 | } |
| 7057 | _ACEOF |
| 7058 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7059 | if { (ac_try="$ac_compile" |
| 7060 | case "(($ac_try" in |
| 7061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7062 | *) ac_try_echo=$ac_try;; |
| 7063 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7065 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7066 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7067 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7068 | rm -f conftest.er1 |
| 7069 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7071 | (exit $ac_status); } && { |
| 7072 | test -z "$ac_c_werror_flag" || |
| 7073 | test ! -s conftest.err |
| 7074 | } && test -s conftest.$ac_objext; then |
| 7075 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7076 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7077 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7078 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7079 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7080 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7081 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7082 | |
| 7083 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7084 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7085 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 7086 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7087 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7088 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7089 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7090 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7091 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7092 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7093 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 7094 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7095 | if test "${ac_cv_type_size_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7097 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7098 | cat >conftest.$ac_ext <<_ACEOF |
| 7099 | /* confdefs.h. */ |
| 7100 | _ACEOF |
| 7101 | cat confdefs.h >>conftest.$ac_ext |
| 7102 | cat >>conftest.$ac_ext <<_ACEOF |
| 7103 | /* end confdefs.h. */ |
| 7104 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7105 | typedef size_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7106 | int |
| 7107 | main () |
| 7108 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7109 | if ((ac__type_new_ *) 0) |
| 7110 | return 0; |
| 7111 | if (sizeof (ac__type_new_)) |
| 7112 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7113 | ; |
| 7114 | return 0; |
| 7115 | } |
| 7116 | _ACEOF |
| 7117 | rm -f conftest.$ac_objext |
| 7118 | if { (ac_try="$ac_compile" |
| 7119 | case "(($ac_try" in |
| 7120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7121 | *) ac_try_echo=$ac_try;; |
| 7122 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7124 | (eval "$ac_compile") 2>conftest.er1 |
| 7125 | ac_status=$? |
| 7126 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7127 | rm -f conftest.er1 |
| 7128 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7130 | (exit $ac_status); } && { |
| 7131 | test -z "$ac_c_werror_flag" || |
| 7132 | test ! -s conftest.err |
| 7133 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7134 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7135 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7136 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7137 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7138 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7139 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7140 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7141 | |
| 7142 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7143 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7144 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 7145 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 7146 | if test $ac_cv_type_size_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7147 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7148 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7149 | |
| 7150 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7151 | #define size_t unsigned int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7152 | _ACEOF |
| 7153 | |
| 7154 | fi |
| 7155 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7156 | { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 7157 | 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] | 7158 | if test "${ac_cv_type_uid_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7160 | else |
| 7161 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7162 | /* confdefs.h. */ |
| 7163 | _ACEOF |
| 7164 | cat confdefs.h >>conftest.$ac_ext |
| 7165 | cat >>conftest.$ac_ext <<_ACEOF |
| 7166 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7167 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7168 | |
| 7169 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7170 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7171 | $EGREP "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7172 | ac_cv_type_uid_t=yes |
| 7173 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7174 | ac_cv_type_uid_t=no |
| 7175 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame^] | 7176 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7177 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7178 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7179 | { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 7180 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7181 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7182 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7183 | cat >>confdefs.h <<\_ACEOF |
| 7184 | #define uid_t int |
| 7185 | _ACEOF |
| 7186 | |
| 7187 | |
| 7188 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7189 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7190 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7191 | |
| 7192 | fi |
| 7193 | |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7194 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7195 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
| 7196 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7197 | if test "${ac_cv_c_uint32_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7199 | else |
| 7200 | ac_cv_c_uint32_t=no |
| 7201 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ |
| 7202 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 7203 | cat >conftest.$ac_ext <<_ACEOF |
| 7204 | /* confdefs.h. */ |
| 7205 | _ACEOF |
| 7206 | cat confdefs.h >>conftest.$ac_ext |
| 7207 | cat >>conftest.$ac_ext <<_ACEOF |
| 7208 | /* end confdefs.h. */ |
| 7209 | $ac_includes_default |
| 7210 | int |
| 7211 | main () |
| 7212 | { |
| 7213 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
| 7214 | test_array [0] = 0 |
| 7215 | |
| 7216 | ; |
| 7217 | return 0; |
| 7218 | } |
| 7219 | _ACEOF |
| 7220 | rm -f conftest.$ac_objext |
| 7221 | if { (ac_try="$ac_compile" |
| 7222 | case "(($ac_try" in |
| 7223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7224 | *) ac_try_echo=$ac_try;; |
| 7225 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7226 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7227 | (eval "$ac_compile") 2>conftest.er1 |
| 7228 | ac_status=$? |
| 7229 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7230 | rm -f conftest.er1 |
| 7231 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7233 | (exit $ac_status); } && { |
| 7234 | test -z "$ac_c_werror_flag" || |
| 7235 | test ! -s conftest.err |
| 7236 | } && test -s conftest.$ac_objext; then |
| 7237 | case $ac_type in |
| 7238 | uint32_t) ac_cv_c_uint32_t=yes ;; |
| 7239 | *) ac_cv_c_uint32_t=$ac_type ;; |
| 7240 | esac |
| 7241 | |
| 7242 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7243 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7244 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7245 | |
| 7246 | |
| 7247 | fi |
| 7248 | |
| 7249 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7250 | test "$ac_cv_c_uint32_t" != no && break |
| 7251 | done |
| 7252 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7253 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 |
| 7254 | echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7255 | case $ac_cv_c_uint32_t in #( |
| 7256 | no|yes) ;; #( |
| 7257 | *) |
| 7258 | |
| 7259 | cat >>confdefs.h <<\_ACEOF |
| 7260 | #define _UINT32_T 1 |
| 7261 | _ACEOF |
| 7262 | |
| 7263 | |
| 7264 | cat >>confdefs.h <<_ACEOF |
| 7265 | #define uint32_t $ac_cv_c_uint32_t |
| 7266 | _ACEOF |
| 7267 | ;; |
| 7268 | esac |
| 7269 | |
| 7270 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7271 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 7272 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7273 | if test "${ac_cv_c_uint64_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7274 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7275 | else |
| 7276 | ac_cv_c_uint64_t=no |
| 7277 | for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \ |
| 7278 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 7279 | cat >conftest.$ac_ext <<_ACEOF |
| 7280 | /* confdefs.h. */ |
| 7281 | _ACEOF |
| 7282 | cat confdefs.h >>conftest.$ac_ext |
| 7283 | cat >>conftest.$ac_ext <<_ACEOF |
| 7284 | /* end confdefs.h. */ |
| 7285 | $ac_includes_default |
| 7286 | int |
| 7287 | main () |
| 7288 | { |
| 7289 | static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)]; |
| 7290 | test_array [0] = 0 |
| 7291 | |
| 7292 | ; |
| 7293 | return 0; |
| 7294 | } |
| 7295 | _ACEOF |
| 7296 | rm -f conftest.$ac_objext |
| 7297 | if { (ac_try="$ac_compile" |
| 7298 | case "(($ac_try" in |
| 7299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7300 | *) ac_try_echo=$ac_try;; |
| 7301 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7303 | (eval "$ac_compile") 2>conftest.er1 |
| 7304 | ac_status=$? |
| 7305 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7306 | rm -f conftest.er1 |
| 7307 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7309 | (exit $ac_status); } && { |
| 7310 | test -z "$ac_c_werror_flag" || |
| 7311 | test ! -s conftest.err |
| 7312 | } && test -s conftest.$ac_objext; then |
| 7313 | case $ac_type in |
| 7314 | uint64_t) ac_cv_c_uint64_t=yes ;; |
| 7315 | *) ac_cv_c_uint64_t=$ac_type ;; |
| 7316 | esac |
| 7317 | |
| 7318 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7319 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7320 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7321 | |
| 7322 | |
| 7323 | fi |
| 7324 | |
| 7325 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7326 | test "$ac_cv_c_uint64_t" != no && break |
| 7327 | done |
| 7328 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7329 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5 |
| 7330 | echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7331 | case $ac_cv_c_uint64_t in #( |
| 7332 | no|yes) ;; #( |
| 7333 | *) |
| 7334 | |
| 7335 | cat >>confdefs.h <<\_ACEOF |
| 7336 | #define _UINT64_T 1 |
| 7337 | _ACEOF |
| 7338 | |
| 7339 | |
| 7340 | cat >>confdefs.h <<_ACEOF |
| 7341 | #define uint64_t $ac_cv_c_uint64_t |
| 7342 | _ACEOF |
| 7343 | ;; |
| 7344 | esac |
| 7345 | |
| 7346 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7347 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
| 7348 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7349 | if test "${ac_cv_c_int32_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7351 | else |
| 7352 | ac_cv_c_int32_t=no |
| 7353 | for ac_type in 'int32_t' 'int' 'long int' \ |
| 7354 | 'long long int' 'short int' 'signed char'; do |
| 7355 | cat >conftest.$ac_ext <<_ACEOF |
| 7356 | /* confdefs.h. */ |
| 7357 | _ACEOF |
| 7358 | cat confdefs.h >>conftest.$ac_ext |
| 7359 | cat >>conftest.$ac_ext <<_ACEOF |
| 7360 | /* end confdefs.h. */ |
| 7361 | $ac_includes_default |
| 7362 | int |
| 7363 | main () |
| 7364 | { |
| 7365 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
| 7366 | test_array [0] = 0 |
| 7367 | |
| 7368 | ; |
| 7369 | return 0; |
| 7370 | } |
| 7371 | _ACEOF |
| 7372 | rm -f conftest.$ac_objext |
| 7373 | if { (ac_try="$ac_compile" |
| 7374 | case "(($ac_try" in |
| 7375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7376 | *) ac_try_echo=$ac_try;; |
| 7377 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7379 | (eval "$ac_compile") 2>conftest.er1 |
| 7380 | ac_status=$? |
| 7381 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7382 | rm -f conftest.er1 |
| 7383 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7385 | (exit $ac_status); } && { |
| 7386 | test -z "$ac_c_werror_flag" || |
| 7387 | test ! -s conftest.err |
| 7388 | } && test -s conftest.$ac_objext; then |
| 7389 | cat >conftest.$ac_ext <<_ACEOF |
| 7390 | /* confdefs.h. */ |
| 7391 | _ACEOF |
| 7392 | cat confdefs.h >>conftest.$ac_ext |
| 7393 | cat >>conftest.$ac_ext <<_ACEOF |
| 7394 | /* end confdefs.h. */ |
| 7395 | $ac_includes_default |
| 7396 | int |
| 7397 | main () |
| 7398 | { |
| 7399 | 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] | 7400 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7401 | test_array [0] = 0 |
| 7402 | |
| 7403 | ; |
| 7404 | return 0; |
| 7405 | } |
| 7406 | _ACEOF |
| 7407 | rm -f conftest.$ac_objext |
| 7408 | if { (ac_try="$ac_compile" |
| 7409 | case "(($ac_try" in |
| 7410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7411 | *) ac_try_echo=$ac_try;; |
| 7412 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7414 | (eval "$ac_compile") 2>conftest.er1 |
| 7415 | ac_status=$? |
| 7416 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7417 | rm -f conftest.er1 |
| 7418 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7420 | (exit $ac_status); } && { |
| 7421 | test -z "$ac_c_werror_flag" || |
| 7422 | test ! -s conftest.err |
| 7423 | } && test -s conftest.$ac_objext; then |
| 7424 | : |
| 7425 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7426 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7427 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7428 | |
| 7429 | case $ac_type in |
| 7430 | int32_t) ac_cv_c_int32_t=yes ;; |
| 7431 | *) ac_cv_c_int32_t=$ac_type ;; |
| 7432 | esac |
| 7433 | |
| 7434 | fi |
| 7435 | |
| 7436 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7437 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7438 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7439 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7440 | |
| 7441 | |
| 7442 | fi |
| 7443 | |
| 7444 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7445 | test "$ac_cv_c_int32_t" != no && break |
| 7446 | done |
| 7447 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7448 | { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
| 7449 | echo "${ECHO_T}$ac_cv_c_int32_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7450 | case $ac_cv_c_int32_t in #( |
| 7451 | no|yes) ;; #( |
| 7452 | *) |
| 7453 | |
| 7454 | cat >>confdefs.h <<_ACEOF |
| 7455 | #define int32_t $ac_cv_c_int32_t |
| 7456 | _ACEOF |
| 7457 | ;; |
| 7458 | esac |
| 7459 | |
| 7460 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7461 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 7462 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7463 | if test "${ac_cv_c_int64_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7465 | else |
| 7466 | ac_cv_c_int64_t=no |
| 7467 | for ac_type in 'int64_t' 'int' 'long int' \ |
| 7468 | 'long long int' 'short int' 'signed char'; do |
| 7469 | cat >conftest.$ac_ext <<_ACEOF |
| 7470 | /* confdefs.h. */ |
| 7471 | _ACEOF |
| 7472 | cat confdefs.h >>conftest.$ac_ext |
| 7473 | cat >>conftest.$ac_ext <<_ACEOF |
| 7474 | /* end confdefs.h. */ |
| 7475 | $ac_includes_default |
| 7476 | int |
| 7477 | main () |
| 7478 | { |
| 7479 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))]; |
| 7480 | test_array [0] = 0 |
| 7481 | |
| 7482 | ; |
| 7483 | return 0; |
| 7484 | } |
| 7485 | _ACEOF |
| 7486 | rm -f conftest.$ac_objext |
| 7487 | if { (ac_try="$ac_compile" |
| 7488 | case "(($ac_try" in |
| 7489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7490 | *) ac_try_echo=$ac_try;; |
| 7491 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7493 | (eval "$ac_compile") 2>conftest.er1 |
| 7494 | ac_status=$? |
| 7495 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7496 | rm -f conftest.er1 |
| 7497 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7499 | (exit $ac_status); } && { |
| 7500 | test -z "$ac_c_werror_flag" || |
| 7501 | test ! -s conftest.err |
| 7502 | } && test -s conftest.$ac_objext; then |
| 7503 | cat >conftest.$ac_ext <<_ACEOF |
| 7504 | /* confdefs.h. */ |
| 7505 | _ACEOF |
| 7506 | cat confdefs.h >>conftest.$ac_ext |
| 7507 | cat >>conftest.$ac_ext <<_ACEOF |
| 7508 | /* end confdefs.h. */ |
| 7509 | $ac_includes_default |
| 7510 | int |
| 7511 | main () |
| 7512 | { |
| 7513 | 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] | 7514 | < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))]; |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7515 | test_array [0] = 0 |
| 7516 | |
| 7517 | ; |
| 7518 | return 0; |
| 7519 | } |
| 7520 | _ACEOF |
| 7521 | rm -f conftest.$ac_objext |
| 7522 | if { (ac_try="$ac_compile" |
| 7523 | case "(($ac_try" in |
| 7524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7525 | *) ac_try_echo=$ac_try;; |
| 7526 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7527 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7528 | (eval "$ac_compile") 2>conftest.er1 |
| 7529 | ac_status=$? |
| 7530 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7531 | rm -f conftest.er1 |
| 7532 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7534 | (exit $ac_status); } && { |
| 7535 | test -z "$ac_c_werror_flag" || |
| 7536 | test ! -s conftest.err |
| 7537 | } && test -s conftest.$ac_objext; then |
| 7538 | : |
| 7539 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7540 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7541 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7542 | |
| 7543 | case $ac_type in |
| 7544 | int64_t) ac_cv_c_int64_t=yes ;; |
| 7545 | *) ac_cv_c_int64_t=$ac_type ;; |
| 7546 | esac |
| 7547 | |
| 7548 | fi |
| 7549 | |
| 7550 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7551 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7552 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7553 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7554 | |
| 7555 | |
| 7556 | fi |
| 7557 | |
| 7558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7559 | test "$ac_cv_c_int64_t" != no && break |
| 7560 | done |
| 7561 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7562 | { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5 |
| 7563 | echo "${ECHO_T}$ac_cv_c_int64_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7564 | case $ac_cv_c_int64_t in #( |
| 7565 | no|yes) ;; #( |
| 7566 | *) |
| 7567 | |
| 7568 | cat >>confdefs.h <<_ACEOF |
| 7569 | #define int64_t $ac_cv_c_int64_t |
| 7570 | _ACEOF |
| 7571 | ;; |
| 7572 | esac |
| 7573 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7574 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 7575 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7576 | if test "${ac_cv_type_ssize_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7578 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7579 | cat >conftest.$ac_ext <<_ACEOF |
| 7580 | /* confdefs.h. */ |
| 7581 | _ACEOF |
| 7582 | cat confdefs.h >>conftest.$ac_ext |
| 7583 | cat >>conftest.$ac_ext <<_ACEOF |
| 7584 | /* end confdefs.h. */ |
| 7585 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7586 | typedef ssize_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7587 | int |
| 7588 | main () |
| 7589 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7590 | if ((ac__type_new_ *) 0) |
| 7591 | return 0; |
| 7592 | if (sizeof (ac__type_new_)) |
| 7593 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7594 | ; |
| 7595 | return 0; |
| 7596 | } |
| 7597 | _ACEOF |
| 7598 | rm -f conftest.$ac_objext |
| 7599 | if { (ac_try="$ac_compile" |
| 7600 | case "(($ac_try" in |
| 7601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7602 | *) ac_try_echo=$ac_try;; |
| 7603 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7605 | (eval "$ac_compile") 2>conftest.er1 |
| 7606 | ac_status=$? |
| 7607 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7608 | rm -f conftest.er1 |
| 7609 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7611 | (exit $ac_status); } && { |
| 7612 | test -z "$ac_c_werror_flag" || |
| 7613 | test ! -s conftest.err |
| 7614 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7615 | ac_cv_type_ssize_t=yes |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7616 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7617 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7618 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7619 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7620 | ac_cv_type_ssize_t=no |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7621 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7622 | |
| 7623 | 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] | 7624 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7625 | { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 7626 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } |
| 7627 | if test $ac_cv_type_ssize_t = yes; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7628 | |
| 7629 | cat >>confdefs.h <<\_ACEOF |
| 7630 | #define HAVE_SSIZE_T 1 |
| 7631 | _ACEOF |
| 7632 | |
| 7633 | fi |
| 7634 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7635 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7636 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 7637 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7638 | { echo "$as_me:$LINENO: checking for int" >&5 |
| 7639 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
| 7640 | if test "${ac_cv_type_int+set}" = set; then |
| 7641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7642 | else |
| 7643 | cat >conftest.$ac_ext <<_ACEOF |
| 7644 | /* confdefs.h. */ |
| 7645 | _ACEOF |
| 7646 | cat confdefs.h >>conftest.$ac_ext |
| 7647 | cat >>conftest.$ac_ext <<_ACEOF |
| 7648 | /* end confdefs.h. */ |
| 7649 | $ac_includes_default |
| 7650 | typedef int ac__type_new_; |
| 7651 | int |
| 7652 | main () |
| 7653 | { |
| 7654 | if ((ac__type_new_ *) 0) |
| 7655 | return 0; |
| 7656 | if (sizeof (ac__type_new_)) |
| 7657 | return 0; |
| 7658 | ; |
| 7659 | return 0; |
| 7660 | } |
| 7661 | _ACEOF |
| 7662 | rm -f conftest.$ac_objext |
| 7663 | if { (ac_try="$ac_compile" |
| 7664 | case "(($ac_try" in |
| 7665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7666 | *) ac_try_echo=$ac_try;; |
| 7667 | esac |
| 7668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7669 | (eval "$ac_compile") 2>conftest.er1 |
| 7670 | ac_status=$? |
| 7671 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7672 | rm -f conftest.er1 |
| 7673 | cat conftest.err >&5 |
| 7674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7675 | (exit $ac_status); } && { |
| 7676 | test -z "$ac_c_werror_flag" || |
| 7677 | test ! -s conftest.err |
| 7678 | } && test -s conftest.$ac_objext; then |
| 7679 | ac_cv_type_int=yes |
| 7680 | else |
| 7681 | echo "$as_me: failed program was:" >&5 |
| 7682 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7683 | |
| 7684 | ac_cv_type_int=no |
| 7685 | fi |
| 7686 | |
| 7687 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7688 | fi |
| 7689 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 7690 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
| 7691 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7692 | # The cast to long int works around a bug in the HP C Compiler |
| 7693 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7694 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7695 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7696 | { echo "$as_me:$LINENO: checking size of int" >&5 |
| 7697 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7698 | if test "${ac_cv_sizeof_int+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7699 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7700 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7701 | if test "$cross_compiling" = yes; then |
| 7702 | # Depending upon the size, compute the lo and hi bounds. |
| 7703 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7704 | /* confdefs.h. */ |
| 7705 | _ACEOF |
| 7706 | cat confdefs.h >>conftest.$ac_ext |
| 7707 | cat >>conftest.$ac_ext <<_ACEOF |
| 7708 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7709 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7710 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7711 | int |
| 7712 | main () |
| 7713 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7714 | 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] | 7715 | test_array [0] = 0 |
| 7716 | |
| 7717 | ; |
| 7718 | return 0; |
| 7719 | } |
| 7720 | _ACEOF |
| 7721 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7722 | if { (ac_try="$ac_compile" |
| 7723 | case "(($ac_try" in |
| 7724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7725 | *) ac_try_echo=$ac_try;; |
| 7726 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7728 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7729 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7730 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7731 | rm -f conftest.er1 |
| 7732 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7734 | (exit $ac_status); } && { |
| 7735 | test -z "$ac_c_werror_flag" || |
| 7736 | test ! -s conftest.err |
| 7737 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7738 | ac_lo=0 ac_mid=0 |
| 7739 | while :; do |
| 7740 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7741 | /* confdefs.h. */ |
| 7742 | _ACEOF |
| 7743 | cat confdefs.h >>conftest.$ac_ext |
| 7744 | cat >>conftest.$ac_ext <<_ACEOF |
| 7745 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7746 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7747 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7748 | int |
| 7749 | main () |
| 7750 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7751 | 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] | 7752 | test_array [0] = 0 |
| 7753 | |
| 7754 | ; |
| 7755 | return 0; |
| 7756 | } |
| 7757 | _ACEOF |
| 7758 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7759 | if { (ac_try="$ac_compile" |
| 7760 | case "(($ac_try" in |
| 7761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7762 | *) ac_try_echo=$ac_try;; |
| 7763 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7765 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7766 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7767 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7768 | rm -f conftest.er1 |
| 7769 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7771 | (exit $ac_status); } && { |
| 7772 | test -z "$ac_c_werror_flag" || |
| 7773 | test ! -s conftest.err |
| 7774 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7775 | ac_hi=$ac_mid; break |
| 7776 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7777 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7778 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7779 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7780 | ac_lo=`expr $ac_mid + 1` |
| 7781 | if test $ac_lo -le $ac_mid; then |
| 7782 | ac_lo= ac_hi= |
| 7783 | break |
| 7784 | fi |
| 7785 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7786 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7787 | |
| 7788 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7789 | done |
| 7790 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7791 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7792 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7793 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7794 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7795 | /* confdefs.h. */ |
| 7796 | _ACEOF |
| 7797 | cat confdefs.h >>conftest.$ac_ext |
| 7798 | cat >>conftest.$ac_ext <<_ACEOF |
| 7799 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7800 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7801 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7802 | int |
| 7803 | main () |
| 7804 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7805 | 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] | 7806 | test_array [0] = 0 |
| 7807 | |
| 7808 | ; |
| 7809 | return 0; |
| 7810 | } |
| 7811 | _ACEOF |
| 7812 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7813 | if { (ac_try="$ac_compile" |
| 7814 | case "(($ac_try" in |
| 7815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7816 | *) ac_try_echo=$ac_try;; |
| 7817 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7819 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7820 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7821 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7822 | rm -f conftest.er1 |
| 7823 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7825 | (exit $ac_status); } && { |
| 7826 | test -z "$ac_c_werror_flag" || |
| 7827 | test ! -s conftest.err |
| 7828 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7829 | ac_hi=-1 ac_mid=-1 |
| 7830 | while :; do |
| 7831 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7832 | /* confdefs.h. */ |
| 7833 | _ACEOF |
| 7834 | cat confdefs.h >>conftest.$ac_ext |
| 7835 | cat >>conftest.$ac_ext <<_ACEOF |
| 7836 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7837 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7838 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7839 | int |
| 7840 | main () |
| 7841 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7842 | 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] | 7843 | test_array [0] = 0 |
| 7844 | |
| 7845 | ; |
| 7846 | return 0; |
| 7847 | } |
| 7848 | _ACEOF |
| 7849 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7850 | if { (ac_try="$ac_compile" |
| 7851 | case "(($ac_try" in |
| 7852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7853 | *) ac_try_echo=$ac_try;; |
| 7854 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7856 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7857 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7858 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7859 | rm -f conftest.er1 |
| 7860 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7862 | (exit $ac_status); } && { |
| 7863 | test -z "$ac_c_werror_flag" || |
| 7864 | test ! -s conftest.err |
| 7865 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7866 | ac_lo=$ac_mid; break |
| 7867 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7868 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7869 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7870 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7871 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7872 | if test $ac_mid -le $ac_hi; then |
| 7873 | ac_lo= ac_hi= |
| 7874 | break |
| 7875 | fi |
| 7876 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7877 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7878 | |
| 7879 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7880 | done |
| 7881 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7882 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7883 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7884 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7885 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7886 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7887 | |
| 7888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7889 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7890 | |
| 7891 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7892 | # Binary search between lo and hi bounds. |
| 7893 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7894 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7895 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7896 | /* confdefs.h. */ |
| 7897 | _ACEOF |
| 7898 | cat confdefs.h >>conftest.$ac_ext |
| 7899 | cat >>conftest.$ac_ext <<_ACEOF |
| 7900 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7901 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7902 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7903 | int |
| 7904 | main () |
| 7905 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7906 | 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] | 7907 | test_array [0] = 0 |
| 7908 | |
| 7909 | ; |
| 7910 | return 0; |
| 7911 | } |
| 7912 | _ACEOF |
| 7913 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7914 | if { (ac_try="$ac_compile" |
| 7915 | case "(($ac_try" in |
| 7916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7917 | *) ac_try_echo=$ac_try;; |
| 7918 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7920 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7921 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7922 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7923 | rm -f conftest.er1 |
| 7924 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7926 | (exit $ac_status); } && { |
| 7927 | test -z "$ac_c_werror_flag" || |
| 7928 | test ! -s conftest.err |
| 7929 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7930 | ac_hi=$ac_mid |
| 7931 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7932 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7933 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7934 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7935 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7936 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7937 | |
| 7938 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7939 | done |
| 7940 | case $ac_lo in |
| 7941 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7942 | '') if test "$ac_cv_type_int" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7943 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7944 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7945 | echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7946 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7947 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7948 | else |
| 7949 | ac_cv_sizeof_int=0 |
| 7950 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7951 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7952 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7953 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7954 | /* confdefs.h. */ |
| 7955 | _ACEOF |
| 7956 | cat confdefs.h >>conftest.$ac_ext |
| 7957 | cat >>conftest.$ac_ext <<_ACEOF |
| 7958 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7959 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7960 | typedef int ac__type_sizeof_; |
| 7961 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 7962 | 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] | 7963 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7964 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7965 | int |
| 7966 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7967 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7968 | |
| 7969 | FILE *f = fopen ("conftest.val", "w"); |
| 7970 | if (! f) |
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 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7973 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7974 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7975 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7976 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7977 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7978 | } |
| 7979 | else |
| 7980 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7981 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7982 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7983 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7984 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7985 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7986 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7987 | |
| 7988 | ; |
| 7989 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7990 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7991 | _ACEOF |
| 7992 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7993 | if { (ac_try="$ac_link" |
| 7994 | case "(($ac_try" in |
| 7995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7996 | *) ac_try_echo=$ac_try;; |
| 7997 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7999 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8000 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8002 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8003 | { (case "(($ac_try" in |
| 8004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8005 | *) ac_try_echo=$ac_try;; |
| 8006 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8008 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8009 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8011 | (exit $ac_status); }; }; then |
| 8012 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8013 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8014 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8015 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8016 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8017 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8018 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8019 | if test "$ac_cv_type_int" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8020 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8021 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8022 | echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8023 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8024 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8025 | else |
| 8026 | ac_cv_sizeof_int=0 |
| 8027 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8028 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8029 | 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] | 8030 | fi |
| 8031 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8032 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8033 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 8034 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8035 | |
| 8036 | |
| 8037 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8038 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8039 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8040 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8041 | |
| 8042 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8043 | { echo "$as_me:$LINENO: checking for long" >&5 |
| 8044 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } |
| 8045 | if test "${ac_cv_type_long+set}" = set; then |
| 8046 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8047 | else |
| 8048 | cat >conftest.$ac_ext <<_ACEOF |
| 8049 | /* confdefs.h. */ |
| 8050 | _ACEOF |
| 8051 | cat confdefs.h >>conftest.$ac_ext |
| 8052 | cat >>conftest.$ac_ext <<_ACEOF |
| 8053 | /* end confdefs.h. */ |
| 8054 | $ac_includes_default |
| 8055 | typedef long ac__type_new_; |
| 8056 | int |
| 8057 | main () |
| 8058 | { |
| 8059 | if ((ac__type_new_ *) 0) |
| 8060 | return 0; |
| 8061 | if (sizeof (ac__type_new_)) |
| 8062 | return 0; |
| 8063 | ; |
| 8064 | return 0; |
| 8065 | } |
| 8066 | _ACEOF |
| 8067 | rm -f conftest.$ac_objext |
| 8068 | if { (ac_try="$ac_compile" |
| 8069 | case "(($ac_try" in |
| 8070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8071 | *) ac_try_echo=$ac_try;; |
| 8072 | esac |
| 8073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8074 | (eval "$ac_compile") 2>conftest.er1 |
| 8075 | ac_status=$? |
| 8076 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8077 | rm -f conftest.er1 |
| 8078 | cat conftest.err >&5 |
| 8079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8080 | (exit $ac_status); } && { |
| 8081 | test -z "$ac_c_werror_flag" || |
| 8082 | test ! -s conftest.err |
| 8083 | } && test -s conftest.$ac_objext; then |
| 8084 | ac_cv_type_long=yes |
| 8085 | else |
| 8086 | echo "$as_me: failed program was:" >&5 |
| 8087 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8088 | |
| 8089 | ac_cv_type_long=no |
| 8090 | fi |
| 8091 | |
| 8092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8093 | fi |
| 8094 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 8095 | echo "${ECHO_T}$ac_cv_type_long" >&6; } |
| 8096 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8097 | # The cast to long int works around a bug in the HP C Compiler |
| 8098 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8099 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8100 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8101 | { echo "$as_me:$LINENO: checking size of long" >&5 |
| 8102 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8103 | if test "${ac_cv_sizeof_long+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8105 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8106 | if test "$cross_compiling" = yes; then |
| 8107 | # Depending upon the size, compute the lo and hi bounds. |
| 8108 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8109 | /* confdefs.h. */ |
| 8110 | _ACEOF |
| 8111 | cat confdefs.h >>conftest.$ac_ext |
| 8112 | cat >>conftest.$ac_ext <<_ACEOF |
| 8113 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8114 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8115 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8116 | int |
| 8117 | main () |
| 8118 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8119 | 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] | 8120 | test_array [0] = 0 |
| 8121 | |
| 8122 | ; |
| 8123 | return 0; |
| 8124 | } |
| 8125 | _ACEOF |
| 8126 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8127 | if { (ac_try="$ac_compile" |
| 8128 | case "(($ac_try" in |
| 8129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8130 | *) ac_try_echo=$ac_try;; |
| 8131 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8133 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8134 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8135 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8136 | rm -f conftest.er1 |
| 8137 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8139 | (exit $ac_status); } && { |
| 8140 | test -z "$ac_c_werror_flag" || |
| 8141 | test ! -s conftest.err |
| 8142 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8143 | ac_lo=0 ac_mid=0 |
| 8144 | while :; do |
| 8145 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8146 | /* confdefs.h. */ |
| 8147 | _ACEOF |
| 8148 | cat confdefs.h >>conftest.$ac_ext |
| 8149 | cat >>conftest.$ac_ext <<_ACEOF |
| 8150 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8151 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8152 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8153 | int |
| 8154 | main () |
| 8155 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8156 | 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] | 8157 | test_array [0] = 0 |
| 8158 | |
| 8159 | ; |
| 8160 | return 0; |
| 8161 | } |
| 8162 | _ACEOF |
| 8163 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8164 | if { (ac_try="$ac_compile" |
| 8165 | case "(($ac_try" in |
| 8166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8167 | *) ac_try_echo=$ac_try;; |
| 8168 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8170 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8171 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8172 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8173 | rm -f conftest.er1 |
| 8174 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8176 | (exit $ac_status); } && { |
| 8177 | test -z "$ac_c_werror_flag" || |
| 8178 | test ! -s conftest.err |
| 8179 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8180 | ac_hi=$ac_mid; break |
| 8181 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8182 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8184 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8185 | ac_lo=`expr $ac_mid + 1` |
| 8186 | if test $ac_lo -le $ac_mid; then |
| 8187 | ac_lo= ac_hi= |
| 8188 | break |
| 8189 | fi |
| 8190 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8191 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8192 | |
| 8193 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8194 | done |
| 8195 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8196 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8197 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8198 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8199 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8200 | /* confdefs.h. */ |
| 8201 | _ACEOF |
| 8202 | cat confdefs.h >>conftest.$ac_ext |
| 8203 | cat >>conftest.$ac_ext <<_ACEOF |
| 8204 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8205 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8206 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8207 | int |
| 8208 | main () |
| 8209 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8210 | 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] | 8211 | test_array [0] = 0 |
| 8212 | |
| 8213 | ; |
| 8214 | return 0; |
| 8215 | } |
| 8216 | _ACEOF |
| 8217 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8218 | if { (ac_try="$ac_compile" |
| 8219 | case "(($ac_try" in |
| 8220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8221 | *) ac_try_echo=$ac_try;; |
| 8222 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8224 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8225 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8226 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8227 | rm -f conftest.er1 |
| 8228 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8230 | (exit $ac_status); } && { |
| 8231 | test -z "$ac_c_werror_flag" || |
| 8232 | test ! -s conftest.err |
| 8233 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8234 | ac_hi=-1 ac_mid=-1 |
| 8235 | while :; do |
| 8236 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8237 | /* confdefs.h. */ |
| 8238 | _ACEOF |
| 8239 | cat confdefs.h >>conftest.$ac_ext |
| 8240 | cat >>conftest.$ac_ext <<_ACEOF |
| 8241 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8242 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8243 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8244 | int |
| 8245 | main () |
| 8246 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8247 | 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] | 8248 | test_array [0] = 0 |
| 8249 | |
| 8250 | ; |
| 8251 | return 0; |
| 8252 | } |
| 8253 | _ACEOF |
| 8254 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8255 | if { (ac_try="$ac_compile" |
| 8256 | case "(($ac_try" in |
| 8257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8258 | *) ac_try_echo=$ac_try;; |
| 8259 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8261 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8262 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8263 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8264 | rm -f conftest.er1 |
| 8265 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8267 | (exit $ac_status); } && { |
| 8268 | test -z "$ac_c_werror_flag" || |
| 8269 | test ! -s conftest.err |
| 8270 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8271 | ac_lo=$ac_mid; break |
| 8272 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8273 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8274 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8275 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8276 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8277 | if test $ac_mid -le $ac_hi; then |
| 8278 | ac_lo= ac_hi= |
| 8279 | break |
| 8280 | fi |
| 8281 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8282 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8283 | |
| 8284 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8285 | done |
| 8286 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8287 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8288 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8289 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8290 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8291 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8292 | |
| 8293 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8294 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8295 | |
| 8296 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8297 | # Binary search between lo and hi bounds. |
| 8298 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8299 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8300 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8301 | /* confdefs.h. */ |
| 8302 | _ACEOF |
| 8303 | cat confdefs.h >>conftest.$ac_ext |
| 8304 | cat >>conftest.$ac_ext <<_ACEOF |
| 8305 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8306 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8307 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8308 | int |
| 8309 | main () |
| 8310 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8311 | 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] | 8312 | test_array [0] = 0 |
| 8313 | |
| 8314 | ; |
| 8315 | return 0; |
| 8316 | } |
| 8317 | _ACEOF |
| 8318 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8319 | if { (ac_try="$ac_compile" |
| 8320 | case "(($ac_try" in |
| 8321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8322 | *) ac_try_echo=$ac_try;; |
| 8323 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8325 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8326 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8327 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8328 | rm -f conftest.er1 |
| 8329 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8331 | (exit $ac_status); } && { |
| 8332 | test -z "$ac_c_werror_flag" || |
| 8333 | test ! -s conftest.err |
| 8334 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8335 | ac_hi=$ac_mid |
| 8336 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8337 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8339 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8340 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8341 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8342 | |
| 8343 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8344 | done |
| 8345 | case $ac_lo in |
| 8346 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8347 | '') if test "$ac_cv_type_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8348 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8349 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8350 | echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8351 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8352 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8353 | else |
| 8354 | ac_cv_sizeof_long=0 |
| 8355 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8356 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8357 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8358 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8359 | /* confdefs.h. */ |
| 8360 | _ACEOF |
| 8361 | cat confdefs.h >>conftest.$ac_ext |
| 8362 | cat >>conftest.$ac_ext <<_ACEOF |
| 8363 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8364 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8365 | typedef long ac__type_sizeof_; |
| 8366 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8367 | 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] | 8368 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8369 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8370 | int |
| 8371 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8372 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8373 | |
| 8374 | FILE *f = fopen ("conftest.val", "w"); |
| 8375 | if (! f) |
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 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8378 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8379 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8380 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8381 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8382 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8383 | } |
| 8384 | else |
| 8385 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8386 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8387 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8388 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8389 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8390 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8391 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8392 | |
| 8393 | ; |
| 8394 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8395 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8396 | _ACEOF |
| 8397 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8398 | if { (ac_try="$ac_link" |
| 8399 | case "(($ac_try" in |
| 8400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8401 | *) ac_try_echo=$ac_try;; |
| 8402 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8403 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8404 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8405 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8407 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8408 | { (case "(($ac_try" in |
| 8409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8410 | *) ac_try_echo=$ac_try;; |
| 8411 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8412 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8413 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8414 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8416 | (exit $ac_status); }; }; then |
| 8417 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8418 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8419 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8420 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8421 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8422 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8423 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8424 | if test "$ac_cv_type_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8425 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8426 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8427 | echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8428 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8429 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8430 | else |
| 8431 | ac_cv_sizeof_long=0 |
| 8432 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8433 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8434 | 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] | 8435 | fi |
| 8436 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8437 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8438 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 8439 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8440 | |
| 8441 | |
| 8442 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8443 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8444 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8445 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8446 | |
| 8447 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8448 | { echo "$as_me:$LINENO: checking for void *" >&5 |
| 8449 | echo $ECHO_N "checking for void *... $ECHO_C" >&6; } |
| 8450 | if test "${ac_cv_type_void_p+set}" = set; then |
| 8451 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8452 | else |
| 8453 | cat >conftest.$ac_ext <<_ACEOF |
| 8454 | /* confdefs.h. */ |
| 8455 | _ACEOF |
| 8456 | cat confdefs.h >>conftest.$ac_ext |
| 8457 | cat >>conftest.$ac_ext <<_ACEOF |
| 8458 | /* end confdefs.h. */ |
| 8459 | $ac_includes_default |
| 8460 | typedef void * ac__type_new_; |
| 8461 | int |
| 8462 | main () |
| 8463 | { |
| 8464 | if ((ac__type_new_ *) 0) |
| 8465 | return 0; |
| 8466 | if (sizeof (ac__type_new_)) |
| 8467 | return 0; |
| 8468 | ; |
| 8469 | return 0; |
| 8470 | } |
| 8471 | _ACEOF |
| 8472 | rm -f conftest.$ac_objext |
| 8473 | if { (ac_try="$ac_compile" |
| 8474 | case "(($ac_try" in |
| 8475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8476 | *) ac_try_echo=$ac_try;; |
| 8477 | esac |
| 8478 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8479 | (eval "$ac_compile") 2>conftest.er1 |
| 8480 | ac_status=$? |
| 8481 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8482 | rm -f conftest.er1 |
| 8483 | cat conftest.err >&5 |
| 8484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8485 | (exit $ac_status); } && { |
| 8486 | test -z "$ac_c_werror_flag" || |
| 8487 | test ! -s conftest.err |
| 8488 | } && test -s conftest.$ac_objext; then |
| 8489 | ac_cv_type_void_p=yes |
| 8490 | else |
| 8491 | echo "$as_me: failed program was:" >&5 |
| 8492 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8493 | |
| 8494 | ac_cv_type_void_p=no |
| 8495 | fi |
| 8496 | |
| 8497 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8498 | fi |
| 8499 | { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 8500 | echo "${ECHO_T}$ac_cv_type_void_p" >&6; } |
| 8501 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8502 | # The cast to long int works around a bug in the HP C Compiler |
| 8503 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8504 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8505 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8506 | { echo "$as_me:$LINENO: checking size of void *" >&5 |
| 8507 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8508 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8510 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8511 | if test "$cross_compiling" = yes; then |
| 8512 | # Depending upon the size, compute the lo and hi bounds. |
| 8513 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8514 | /* confdefs.h. */ |
| 8515 | _ACEOF |
| 8516 | cat confdefs.h >>conftest.$ac_ext |
| 8517 | cat >>conftest.$ac_ext <<_ACEOF |
| 8518 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8519 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8520 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8521 | int |
| 8522 | main () |
| 8523 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8524 | 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] | 8525 | test_array [0] = 0 |
| 8526 | |
| 8527 | ; |
| 8528 | return 0; |
| 8529 | } |
| 8530 | _ACEOF |
| 8531 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8532 | if { (ac_try="$ac_compile" |
| 8533 | case "(($ac_try" in |
| 8534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8535 | *) ac_try_echo=$ac_try;; |
| 8536 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8538 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8539 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8540 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8541 | rm -f conftest.er1 |
| 8542 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8544 | (exit $ac_status); } && { |
| 8545 | test -z "$ac_c_werror_flag" || |
| 8546 | test ! -s conftest.err |
| 8547 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8548 | ac_lo=0 ac_mid=0 |
| 8549 | while :; do |
| 8550 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8551 | /* confdefs.h. */ |
| 8552 | _ACEOF |
| 8553 | cat confdefs.h >>conftest.$ac_ext |
| 8554 | cat >>conftest.$ac_ext <<_ACEOF |
| 8555 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8556 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8557 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8558 | int |
| 8559 | main () |
| 8560 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8561 | 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] | 8562 | test_array [0] = 0 |
| 8563 | |
| 8564 | ; |
| 8565 | return 0; |
| 8566 | } |
| 8567 | _ACEOF |
| 8568 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8569 | if { (ac_try="$ac_compile" |
| 8570 | case "(($ac_try" in |
| 8571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8572 | *) ac_try_echo=$ac_try;; |
| 8573 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8575 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8576 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8577 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8578 | rm -f conftest.er1 |
| 8579 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8581 | (exit $ac_status); } && { |
| 8582 | test -z "$ac_c_werror_flag" || |
| 8583 | test ! -s conftest.err |
| 8584 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8585 | ac_hi=$ac_mid; break |
| 8586 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8587 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8588 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8589 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8590 | ac_lo=`expr $ac_mid + 1` |
| 8591 | if test $ac_lo -le $ac_mid; then |
| 8592 | ac_lo= ac_hi= |
| 8593 | break |
| 8594 | fi |
| 8595 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8596 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8597 | |
| 8598 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8599 | done |
| 8600 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8601 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8602 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8603 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8604 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8605 | /* confdefs.h. */ |
| 8606 | _ACEOF |
| 8607 | cat confdefs.h >>conftest.$ac_ext |
| 8608 | cat >>conftest.$ac_ext <<_ACEOF |
| 8609 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8610 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8611 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8612 | int |
| 8613 | main () |
| 8614 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8615 | 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] | 8616 | test_array [0] = 0 |
| 8617 | |
| 8618 | ; |
| 8619 | return 0; |
| 8620 | } |
| 8621 | _ACEOF |
| 8622 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8623 | if { (ac_try="$ac_compile" |
| 8624 | case "(($ac_try" in |
| 8625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8626 | *) ac_try_echo=$ac_try;; |
| 8627 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8628 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8629 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8630 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8631 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8632 | rm -f conftest.er1 |
| 8633 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8635 | (exit $ac_status); } && { |
| 8636 | test -z "$ac_c_werror_flag" || |
| 8637 | test ! -s conftest.err |
| 8638 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8639 | ac_hi=-1 ac_mid=-1 |
| 8640 | while :; do |
| 8641 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8642 | /* confdefs.h. */ |
| 8643 | _ACEOF |
| 8644 | cat confdefs.h >>conftest.$ac_ext |
| 8645 | cat >>conftest.$ac_ext <<_ACEOF |
| 8646 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8647 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8648 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8649 | int |
| 8650 | main () |
| 8651 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8652 | 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] | 8653 | test_array [0] = 0 |
| 8654 | |
| 8655 | ; |
| 8656 | return 0; |
| 8657 | } |
| 8658 | _ACEOF |
| 8659 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8660 | if { (ac_try="$ac_compile" |
| 8661 | case "(($ac_try" in |
| 8662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8663 | *) ac_try_echo=$ac_try;; |
| 8664 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8666 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8667 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8668 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8669 | rm -f conftest.er1 |
| 8670 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8672 | (exit $ac_status); } && { |
| 8673 | test -z "$ac_c_werror_flag" || |
| 8674 | test ! -s conftest.err |
| 8675 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8676 | ac_lo=$ac_mid; break |
| 8677 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8678 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8679 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8680 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8681 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8682 | if test $ac_mid -le $ac_hi; then |
| 8683 | ac_lo= ac_hi= |
| 8684 | break |
| 8685 | fi |
| 8686 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8687 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8688 | |
| 8689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8690 | done |
| 8691 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8692 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8693 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8694 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8695 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8696 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8697 | |
| 8698 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8699 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8700 | |
| 8701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8702 | # Binary search between lo and hi bounds. |
| 8703 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8704 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8705 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8706 | /* confdefs.h. */ |
| 8707 | _ACEOF |
| 8708 | cat confdefs.h >>conftest.$ac_ext |
| 8709 | cat >>conftest.$ac_ext <<_ACEOF |
| 8710 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8711 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8712 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8713 | int |
| 8714 | main () |
| 8715 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8716 | 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] | 8717 | test_array [0] = 0 |
| 8718 | |
| 8719 | ; |
| 8720 | return 0; |
| 8721 | } |
| 8722 | _ACEOF |
| 8723 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8724 | if { (ac_try="$ac_compile" |
| 8725 | case "(($ac_try" in |
| 8726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8727 | *) ac_try_echo=$ac_try;; |
| 8728 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8729 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8730 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8731 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8732 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8733 | rm -f conftest.er1 |
| 8734 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8736 | (exit $ac_status); } && { |
| 8737 | test -z "$ac_c_werror_flag" || |
| 8738 | test ! -s conftest.err |
| 8739 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8740 | ac_hi=$ac_mid |
| 8741 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8742 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8743 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8744 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8745 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8746 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8747 | |
| 8748 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8749 | done |
| 8750 | case $ac_lo in |
| 8751 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8752 | '') if test "$ac_cv_type_void_p" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8753 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8754 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8755 | echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8756 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8757 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8758 | else |
| 8759 | ac_cv_sizeof_void_p=0 |
| 8760 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8761 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8762 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8763 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8764 | /* confdefs.h. */ |
| 8765 | _ACEOF |
| 8766 | cat confdefs.h >>conftest.$ac_ext |
| 8767 | cat >>conftest.$ac_ext <<_ACEOF |
| 8768 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8769 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8770 | typedef void * ac__type_sizeof_; |
| 8771 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8772 | 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] | 8773 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8774 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8775 | int |
| 8776 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8777 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8778 | |
| 8779 | FILE *f = fopen ("conftest.val", "w"); |
| 8780 | if (! f) |
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 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8783 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8784 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8785 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8786 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8787 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8788 | } |
| 8789 | else |
| 8790 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8791 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8792 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8793 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8794 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8795 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8796 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8797 | |
| 8798 | ; |
| 8799 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8800 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8801 | _ACEOF |
| 8802 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8803 | if { (ac_try="$ac_link" |
| 8804 | case "(($ac_try" in |
| 8805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8806 | *) ac_try_echo=$ac_try;; |
| 8807 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8809 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8810 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8812 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8813 | { (case "(($ac_try" in |
| 8814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8815 | *) ac_try_echo=$ac_try;; |
| 8816 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8818 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8819 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8821 | (exit $ac_status); }; }; then |
| 8822 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8823 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8824 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8825 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8826 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8827 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8828 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8829 | if test "$ac_cv_type_void_p" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8830 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8831 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8832 | echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8833 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8834 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8835 | else |
| 8836 | ac_cv_sizeof_void_p=0 |
| 8837 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8838 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8839 | 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] | 8840 | fi |
| 8841 | rm -f conftest.val |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8842 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8843 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 8844 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8845 | |
| 8846 | |
| 8847 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8848 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8849 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8850 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8851 | |
| 8852 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8853 | { echo "$as_me:$LINENO: checking for short" >&5 |
| 8854 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
| 8855 | if test "${ac_cv_type_short+set}" = set; then |
| 8856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8857 | else |
| 8858 | cat >conftest.$ac_ext <<_ACEOF |
| 8859 | /* confdefs.h. */ |
| 8860 | _ACEOF |
| 8861 | cat confdefs.h >>conftest.$ac_ext |
| 8862 | cat >>conftest.$ac_ext <<_ACEOF |
| 8863 | /* end confdefs.h. */ |
| 8864 | $ac_includes_default |
| 8865 | typedef short ac__type_new_; |
| 8866 | int |
| 8867 | main () |
| 8868 | { |
| 8869 | if ((ac__type_new_ *) 0) |
| 8870 | return 0; |
| 8871 | if (sizeof (ac__type_new_)) |
| 8872 | return 0; |
| 8873 | ; |
| 8874 | return 0; |
| 8875 | } |
| 8876 | _ACEOF |
| 8877 | rm -f conftest.$ac_objext |
| 8878 | if { (ac_try="$ac_compile" |
| 8879 | case "(($ac_try" in |
| 8880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8881 | *) ac_try_echo=$ac_try;; |
| 8882 | esac |
| 8883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8884 | (eval "$ac_compile") 2>conftest.er1 |
| 8885 | ac_status=$? |
| 8886 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8887 | rm -f conftest.er1 |
| 8888 | cat conftest.err >&5 |
| 8889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8890 | (exit $ac_status); } && { |
| 8891 | test -z "$ac_c_werror_flag" || |
| 8892 | test ! -s conftest.err |
| 8893 | } && test -s conftest.$ac_objext; then |
| 8894 | ac_cv_type_short=yes |
| 8895 | else |
| 8896 | echo "$as_me: failed program was:" >&5 |
| 8897 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8898 | |
| 8899 | ac_cv_type_short=no |
| 8900 | fi |
| 8901 | |
| 8902 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8903 | fi |
| 8904 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 8905 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
| 8906 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8907 | # The cast to long int works around a bug in the HP C Compiler |
| 8908 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8909 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8910 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8911 | { echo "$as_me:$LINENO: checking size of short" >&5 |
| 8912 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8913 | if test "${ac_cv_sizeof_short+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8914 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8915 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8916 | if test "$cross_compiling" = yes; then |
| 8917 | # Depending upon the size, compute the lo and hi bounds. |
| 8918 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8919 | /* confdefs.h. */ |
| 8920 | _ACEOF |
| 8921 | cat confdefs.h >>conftest.$ac_ext |
| 8922 | cat >>conftest.$ac_ext <<_ACEOF |
| 8923 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8924 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8925 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8926 | int |
| 8927 | main () |
| 8928 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8929 | 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] | 8930 | test_array [0] = 0 |
| 8931 | |
| 8932 | ; |
| 8933 | return 0; |
| 8934 | } |
| 8935 | _ACEOF |
| 8936 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8937 | if { (ac_try="$ac_compile" |
| 8938 | case "(($ac_try" in |
| 8939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8940 | *) ac_try_echo=$ac_try;; |
| 8941 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8943 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8944 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8945 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8946 | rm -f conftest.er1 |
| 8947 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8949 | (exit $ac_status); } && { |
| 8950 | test -z "$ac_c_werror_flag" || |
| 8951 | test ! -s conftest.err |
| 8952 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8953 | ac_lo=0 ac_mid=0 |
| 8954 | while :; do |
| 8955 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8956 | /* confdefs.h. */ |
| 8957 | _ACEOF |
| 8958 | cat confdefs.h >>conftest.$ac_ext |
| 8959 | cat >>conftest.$ac_ext <<_ACEOF |
| 8960 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8961 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8962 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8963 | int |
| 8964 | main () |
| 8965 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8966 | 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] | 8967 | test_array [0] = 0 |
| 8968 | |
| 8969 | ; |
| 8970 | return 0; |
| 8971 | } |
| 8972 | _ACEOF |
| 8973 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8974 | if { (ac_try="$ac_compile" |
| 8975 | case "(($ac_try" in |
| 8976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8977 | *) ac_try_echo=$ac_try;; |
| 8978 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8980 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8981 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8982 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8983 | rm -f conftest.er1 |
| 8984 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8986 | (exit $ac_status); } && { |
| 8987 | test -z "$ac_c_werror_flag" || |
| 8988 | test ! -s conftest.err |
| 8989 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8990 | ac_hi=$ac_mid; break |
| 8991 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8992 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8993 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8994 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8995 | ac_lo=`expr $ac_mid + 1` |
| 8996 | if test $ac_lo -le $ac_mid; then |
| 8997 | ac_lo= ac_hi= |
| 8998 | break |
| 8999 | fi |
| 9000 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9001 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9002 | |
| 9003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9004 | done |
| 9005 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9006 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9007 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9008 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9009 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9010 | /* confdefs.h. */ |
| 9011 | _ACEOF |
| 9012 | cat confdefs.h >>conftest.$ac_ext |
| 9013 | cat >>conftest.$ac_ext <<_ACEOF |
| 9014 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9015 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9016 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9017 | int |
| 9018 | main () |
| 9019 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9020 | 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] | 9021 | test_array [0] = 0 |
| 9022 | |
| 9023 | ; |
| 9024 | return 0; |
| 9025 | } |
| 9026 | _ACEOF |
| 9027 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9028 | if { (ac_try="$ac_compile" |
| 9029 | case "(($ac_try" in |
| 9030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9031 | *) ac_try_echo=$ac_try;; |
| 9032 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9034 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9035 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9036 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9037 | rm -f conftest.er1 |
| 9038 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9040 | (exit $ac_status); } && { |
| 9041 | test -z "$ac_c_werror_flag" || |
| 9042 | test ! -s conftest.err |
| 9043 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9044 | ac_hi=-1 ac_mid=-1 |
| 9045 | while :; do |
| 9046 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9047 | /* confdefs.h. */ |
| 9048 | _ACEOF |
| 9049 | cat confdefs.h >>conftest.$ac_ext |
| 9050 | cat >>conftest.$ac_ext <<_ACEOF |
| 9051 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9052 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9053 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9054 | int |
| 9055 | main () |
| 9056 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9057 | 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] | 9058 | test_array [0] = 0 |
| 9059 | |
| 9060 | ; |
| 9061 | return 0; |
| 9062 | } |
| 9063 | _ACEOF |
| 9064 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9065 | if { (ac_try="$ac_compile" |
| 9066 | case "(($ac_try" in |
| 9067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9068 | *) ac_try_echo=$ac_try;; |
| 9069 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9071 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9072 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9073 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9074 | rm -f conftest.er1 |
| 9075 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9077 | (exit $ac_status); } && { |
| 9078 | test -z "$ac_c_werror_flag" || |
| 9079 | test ! -s conftest.err |
| 9080 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9081 | ac_lo=$ac_mid; break |
| 9082 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9083 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9084 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9085 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9086 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9087 | if test $ac_mid -le $ac_hi; then |
| 9088 | ac_lo= ac_hi= |
| 9089 | break |
| 9090 | fi |
| 9091 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9092 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9093 | |
| 9094 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9095 | done |
| 9096 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9097 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9098 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9099 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9100 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9101 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9102 | |
| 9103 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9104 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9105 | |
| 9106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9107 | # Binary search between lo and hi bounds. |
| 9108 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9109 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9110 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9111 | /* confdefs.h. */ |
| 9112 | _ACEOF |
| 9113 | cat confdefs.h >>conftest.$ac_ext |
| 9114 | cat >>conftest.$ac_ext <<_ACEOF |
| 9115 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9116 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9117 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9118 | int |
| 9119 | main () |
| 9120 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9121 | 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] | 9122 | test_array [0] = 0 |
| 9123 | |
| 9124 | ; |
| 9125 | return 0; |
| 9126 | } |
| 9127 | _ACEOF |
| 9128 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9129 | if { (ac_try="$ac_compile" |
| 9130 | case "(($ac_try" in |
| 9131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9132 | *) ac_try_echo=$ac_try;; |
| 9133 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9135 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9136 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9137 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9138 | rm -f conftest.er1 |
| 9139 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9141 | (exit $ac_status); } && { |
| 9142 | test -z "$ac_c_werror_flag" || |
| 9143 | test ! -s conftest.err |
| 9144 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9145 | ac_hi=$ac_mid |
| 9146 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9147 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9148 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9149 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9150 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9151 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9152 | |
| 9153 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9154 | done |
| 9155 | case $ac_lo in |
| 9156 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9157 | '') if test "$ac_cv_type_short" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9158 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9159 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9160 | echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9161 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9162 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9163 | else |
| 9164 | ac_cv_sizeof_short=0 |
| 9165 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9166 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9167 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9168 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9169 | /* confdefs.h. */ |
| 9170 | _ACEOF |
| 9171 | cat confdefs.h >>conftest.$ac_ext |
| 9172 | cat >>conftest.$ac_ext <<_ACEOF |
| 9173 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9174 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9175 | typedef short ac__type_sizeof_; |
| 9176 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9177 | 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] | 9178 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9179 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9180 | int |
| 9181 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9182 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9183 | |
| 9184 | FILE *f = fopen ("conftest.val", "w"); |
| 9185 | if (! f) |
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 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9188 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9189 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9190 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9191 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9192 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9193 | } |
| 9194 | else |
| 9195 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9196 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9197 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9198 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9199 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9200 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9201 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9202 | |
| 9203 | ; |
| 9204 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9205 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9206 | _ACEOF |
| 9207 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9208 | if { (ac_try="$ac_link" |
| 9209 | case "(($ac_try" in |
| 9210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9211 | *) ac_try_echo=$ac_try;; |
| 9212 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9214 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9215 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9217 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9218 | { (case "(($ac_try" in |
| 9219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9220 | *) ac_try_echo=$ac_try;; |
| 9221 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9223 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9224 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9226 | (exit $ac_status); }; }; then |
| 9227 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9228 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9229 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9230 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9231 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9232 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9233 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9234 | if test "$ac_cv_type_short" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9235 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9236 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9237 | echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9238 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9239 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9240 | else |
| 9241 | ac_cv_sizeof_short=0 |
| 9242 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9243 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9244 | 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] | 9245 | fi |
| 9246 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9247 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9248 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 9249 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9250 | |
| 9251 | |
| 9252 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9253 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9254 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9255 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9256 | |
| 9257 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9258 | { echo "$as_me:$LINENO: checking for float" >&5 |
| 9259 | echo $ECHO_N "checking for float... $ECHO_C" >&6; } |
| 9260 | if test "${ac_cv_type_float+set}" = set; then |
| 9261 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9262 | else |
| 9263 | cat >conftest.$ac_ext <<_ACEOF |
| 9264 | /* confdefs.h. */ |
| 9265 | _ACEOF |
| 9266 | cat confdefs.h >>conftest.$ac_ext |
| 9267 | cat >>conftest.$ac_ext <<_ACEOF |
| 9268 | /* end confdefs.h. */ |
| 9269 | $ac_includes_default |
| 9270 | typedef float ac__type_new_; |
| 9271 | int |
| 9272 | main () |
| 9273 | { |
| 9274 | if ((ac__type_new_ *) 0) |
| 9275 | return 0; |
| 9276 | if (sizeof (ac__type_new_)) |
| 9277 | return 0; |
| 9278 | ; |
| 9279 | return 0; |
| 9280 | } |
| 9281 | _ACEOF |
| 9282 | rm -f conftest.$ac_objext |
| 9283 | if { (ac_try="$ac_compile" |
| 9284 | case "(($ac_try" in |
| 9285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9286 | *) ac_try_echo=$ac_try;; |
| 9287 | esac |
| 9288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9289 | (eval "$ac_compile") 2>conftest.er1 |
| 9290 | ac_status=$? |
| 9291 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9292 | rm -f conftest.er1 |
| 9293 | cat conftest.err >&5 |
| 9294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9295 | (exit $ac_status); } && { |
| 9296 | test -z "$ac_c_werror_flag" || |
| 9297 | test ! -s conftest.err |
| 9298 | } && test -s conftest.$ac_objext; then |
| 9299 | ac_cv_type_float=yes |
| 9300 | else |
| 9301 | echo "$as_me: failed program was:" >&5 |
| 9302 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9303 | |
| 9304 | ac_cv_type_float=no |
| 9305 | fi |
| 9306 | |
| 9307 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9308 | fi |
| 9309 | { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 9310 | echo "${ECHO_T}$ac_cv_type_float" >&6; } |
| 9311 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9312 | # The cast to long int works around a bug in the HP C Compiler |
| 9313 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9314 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9315 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9316 | { echo "$as_me:$LINENO: checking size of float" >&5 |
| 9317 | echo $ECHO_N "checking size of float... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9318 | if test "${ac_cv_sizeof_float+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9320 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9321 | if test "$cross_compiling" = yes; then |
| 9322 | # Depending upon the size, compute the lo and hi bounds. |
| 9323 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9324 | /* confdefs.h. */ |
| 9325 | _ACEOF |
| 9326 | cat confdefs.h >>conftest.$ac_ext |
| 9327 | cat >>conftest.$ac_ext <<_ACEOF |
| 9328 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9329 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9330 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9331 | int |
| 9332 | main () |
| 9333 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9334 | 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] | 9335 | test_array [0] = 0 |
| 9336 | |
| 9337 | ; |
| 9338 | return 0; |
| 9339 | } |
| 9340 | _ACEOF |
| 9341 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9342 | if { (ac_try="$ac_compile" |
| 9343 | case "(($ac_try" in |
| 9344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9345 | *) ac_try_echo=$ac_try;; |
| 9346 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9348 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9349 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9350 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9351 | rm -f conftest.er1 |
| 9352 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9354 | (exit $ac_status); } && { |
| 9355 | test -z "$ac_c_werror_flag" || |
| 9356 | test ! -s conftest.err |
| 9357 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9358 | ac_lo=0 ac_mid=0 |
| 9359 | while :; do |
| 9360 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9361 | /* confdefs.h. */ |
| 9362 | _ACEOF |
| 9363 | cat confdefs.h >>conftest.$ac_ext |
| 9364 | cat >>conftest.$ac_ext <<_ACEOF |
| 9365 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9366 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9367 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9368 | int |
| 9369 | main () |
| 9370 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9371 | 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] | 9372 | test_array [0] = 0 |
| 9373 | |
| 9374 | ; |
| 9375 | return 0; |
| 9376 | } |
| 9377 | _ACEOF |
| 9378 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9379 | if { (ac_try="$ac_compile" |
| 9380 | case "(($ac_try" in |
| 9381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9382 | *) ac_try_echo=$ac_try;; |
| 9383 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9385 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9386 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9387 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9388 | rm -f conftest.er1 |
| 9389 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9391 | (exit $ac_status); } && { |
| 9392 | test -z "$ac_c_werror_flag" || |
| 9393 | test ! -s conftest.err |
| 9394 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9395 | ac_hi=$ac_mid; break |
| 9396 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9397 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9398 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9399 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9400 | ac_lo=`expr $ac_mid + 1` |
| 9401 | if test $ac_lo -le $ac_mid; then |
| 9402 | ac_lo= ac_hi= |
| 9403 | break |
| 9404 | fi |
| 9405 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9406 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9407 | |
| 9408 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9409 | done |
| 9410 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9411 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9412 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9413 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9414 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9415 | /* confdefs.h. */ |
| 9416 | _ACEOF |
| 9417 | cat confdefs.h >>conftest.$ac_ext |
| 9418 | cat >>conftest.$ac_ext <<_ACEOF |
| 9419 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9420 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9421 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9422 | int |
| 9423 | main () |
| 9424 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9425 | 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] | 9426 | test_array [0] = 0 |
| 9427 | |
| 9428 | ; |
| 9429 | return 0; |
| 9430 | } |
| 9431 | _ACEOF |
| 9432 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9433 | if { (ac_try="$ac_compile" |
| 9434 | case "(($ac_try" in |
| 9435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9436 | *) ac_try_echo=$ac_try;; |
| 9437 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9438 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9439 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9440 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9441 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9442 | rm -f conftest.er1 |
| 9443 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9445 | (exit $ac_status); } && { |
| 9446 | test -z "$ac_c_werror_flag" || |
| 9447 | test ! -s conftest.err |
| 9448 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9449 | ac_hi=-1 ac_mid=-1 |
| 9450 | while :; do |
| 9451 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9452 | /* confdefs.h. */ |
| 9453 | _ACEOF |
| 9454 | cat confdefs.h >>conftest.$ac_ext |
| 9455 | cat >>conftest.$ac_ext <<_ACEOF |
| 9456 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9457 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9458 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9459 | int |
| 9460 | main () |
| 9461 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9462 | 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] | 9463 | test_array [0] = 0 |
| 9464 | |
| 9465 | ; |
| 9466 | return 0; |
| 9467 | } |
| 9468 | _ACEOF |
| 9469 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9470 | if { (ac_try="$ac_compile" |
| 9471 | case "(($ac_try" in |
| 9472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9473 | *) ac_try_echo=$ac_try;; |
| 9474 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9476 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9477 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9478 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9479 | rm -f conftest.er1 |
| 9480 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9482 | (exit $ac_status); } && { |
| 9483 | test -z "$ac_c_werror_flag" || |
| 9484 | test ! -s conftest.err |
| 9485 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9486 | ac_lo=$ac_mid; break |
| 9487 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9488 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9489 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9490 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9491 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9492 | if test $ac_mid -le $ac_hi; then |
| 9493 | ac_lo= ac_hi= |
| 9494 | break |
| 9495 | fi |
| 9496 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9497 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9498 | |
| 9499 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9500 | done |
| 9501 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9502 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9503 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9504 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9505 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9506 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9507 | |
| 9508 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9509 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9510 | |
| 9511 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9512 | # Binary search between lo and hi bounds. |
| 9513 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9514 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9515 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9516 | /* confdefs.h. */ |
| 9517 | _ACEOF |
| 9518 | cat confdefs.h >>conftest.$ac_ext |
| 9519 | cat >>conftest.$ac_ext <<_ACEOF |
| 9520 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9521 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9522 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9523 | int |
| 9524 | main () |
| 9525 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9526 | 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] | 9527 | test_array [0] = 0 |
| 9528 | |
| 9529 | ; |
| 9530 | return 0; |
| 9531 | } |
| 9532 | _ACEOF |
| 9533 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9534 | if { (ac_try="$ac_compile" |
| 9535 | case "(($ac_try" in |
| 9536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9537 | *) ac_try_echo=$ac_try;; |
| 9538 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9540 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9541 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9542 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9543 | rm -f conftest.er1 |
| 9544 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9546 | (exit $ac_status); } && { |
| 9547 | test -z "$ac_c_werror_flag" || |
| 9548 | test ! -s conftest.err |
| 9549 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9550 | ac_hi=$ac_mid |
| 9551 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9552 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9553 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9554 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9555 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9556 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9557 | |
| 9558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9559 | done |
| 9560 | case $ac_lo in |
| 9561 | ?*) ac_cv_sizeof_float=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9562 | '') if test "$ac_cv_type_float" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9563 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9564 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9565 | echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9566 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9567 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9568 | else |
| 9569 | ac_cv_sizeof_float=0 |
| 9570 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9571 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9572 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9573 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9574 | /* confdefs.h. */ |
| 9575 | _ACEOF |
| 9576 | cat confdefs.h >>conftest.$ac_ext |
| 9577 | cat >>conftest.$ac_ext <<_ACEOF |
| 9578 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9579 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9580 | typedef float ac__type_sizeof_; |
| 9581 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9582 | 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] | 9583 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9584 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9585 | int |
| 9586 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9587 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9588 | |
| 9589 | FILE *f = fopen ("conftest.val", "w"); |
| 9590 | if (! f) |
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 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9593 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9594 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9595 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9596 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9597 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9598 | } |
| 9599 | else |
| 9600 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9601 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9602 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9603 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9604 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9605 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9606 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9607 | |
| 9608 | ; |
| 9609 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9610 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9611 | _ACEOF |
| 9612 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9613 | if { (ac_try="$ac_link" |
| 9614 | case "(($ac_try" in |
| 9615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9616 | *) ac_try_echo=$ac_try;; |
| 9617 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9619 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9620 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9622 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9623 | { (case "(($ac_try" in |
| 9624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9625 | *) ac_try_echo=$ac_try;; |
| 9626 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9628 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9629 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9631 | (exit $ac_status); }; }; then |
| 9632 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9633 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9634 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9635 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9636 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9637 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9638 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9639 | if test "$ac_cv_type_float" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9640 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9641 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9642 | echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9643 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9644 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9645 | else |
| 9646 | ac_cv_sizeof_float=0 |
| 9647 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9648 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9649 | 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] | 9650 | fi |
| 9651 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9652 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9653 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 9654 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9655 | |
| 9656 | |
| 9657 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9658 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9659 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9660 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9661 | |
| 9662 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9663 | { echo "$as_me:$LINENO: checking for double" >&5 |
| 9664 | echo $ECHO_N "checking for double... $ECHO_C" >&6; } |
| 9665 | if test "${ac_cv_type_double+set}" = set; then |
| 9666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9667 | else |
| 9668 | cat >conftest.$ac_ext <<_ACEOF |
| 9669 | /* confdefs.h. */ |
| 9670 | _ACEOF |
| 9671 | cat confdefs.h >>conftest.$ac_ext |
| 9672 | cat >>conftest.$ac_ext <<_ACEOF |
| 9673 | /* end confdefs.h. */ |
| 9674 | $ac_includes_default |
| 9675 | typedef double ac__type_new_; |
| 9676 | int |
| 9677 | main () |
| 9678 | { |
| 9679 | if ((ac__type_new_ *) 0) |
| 9680 | return 0; |
| 9681 | if (sizeof (ac__type_new_)) |
| 9682 | return 0; |
| 9683 | ; |
| 9684 | return 0; |
| 9685 | } |
| 9686 | _ACEOF |
| 9687 | rm -f conftest.$ac_objext |
| 9688 | if { (ac_try="$ac_compile" |
| 9689 | case "(($ac_try" in |
| 9690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9691 | *) ac_try_echo=$ac_try;; |
| 9692 | esac |
| 9693 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9694 | (eval "$ac_compile") 2>conftest.er1 |
| 9695 | ac_status=$? |
| 9696 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9697 | rm -f conftest.er1 |
| 9698 | cat conftest.err >&5 |
| 9699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9700 | (exit $ac_status); } && { |
| 9701 | test -z "$ac_c_werror_flag" || |
| 9702 | test ! -s conftest.err |
| 9703 | } && test -s conftest.$ac_objext; then |
| 9704 | ac_cv_type_double=yes |
| 9705 | else |
| 9706 | echo "$as_me: failed program was:" >&5 |
| 9707 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9708 | |
| 9709 | ac_cv_type_double=no |
| 9710 | fi |
| 9711 | |
| 9712 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9713 | fi |
| 9714 | { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 9715 | echo "${ECHO_T}$ac_cv_type_double" >&6; } |
| 9716 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9717 | # The cast to long int works around a bug in the HP C Compiler |
| 9718 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9719 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9720 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9721 | { echo "$as_me:$LINENO: checking size of double" >&5 |
| 9722 | echo $ECHO_N "checking size of double... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9723 | if test "${ac_cv_sizeof_double+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9725 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9726 | if test "$cross_compiling" = yes; then |
| 9727 | # Depending upon the size, compute the lo and hi bounds. |
| 9728 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9729 | /* confdefs.h. */ |
| 9730 | _ACEOF |
| 9731 | cat confdefs.h >>conftest.$ac_ext |
| 9732 | cat >>conftest.$ac_ext <<_ACEOF |
| 9733 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9734 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9735 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9736 | int |
| 9737 | main () |
| 9738 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9739 | 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] | 9740 | test_array [0] = 0 |
| 9741 | |
| 9742 | ; |
| 9743 | return 0; |
| 9744 | } |
| 9745 | _ACEOF |
| 9746 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9747 | if { (ac_try="$ac_compile" |
| 9748 | case "(($ac_try" in |
| 9749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9750 | *) ac_try_echo=$ac_try;; |
| 9751 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9753 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9754 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9755 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9756 | rm -f conftest.er1 |
| 9757 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9759 | (exit $ac_status); } && { |
| 9760 | test -z "$ac_c_werror_flag" || |
| 9761 | test ! -s conftest.err |
| 9762 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9763 | ac_lo=0 ac_mid=0 |
| 9764 | while :; do |
| 9765 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9766 | /* confdefs.h. */ |
| 9767 | _ACEOF |
| 9768 | cat confdefs.h >>conftest.$ac_ext |
| 9769 | cat >>conftest.$ac_ext <<_ACEOF |
| 9770 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9771 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9772 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9773 | int |
| 9774 | main () |
| 9775 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9776 | 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] | 9777 | test_array [0] = 0 |
| 9778 | |
| 9779 | ; |
| 9780 | return 0; |
| 9781 | } |
| 9782 | _ACEOF |
| 9783 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9784 | if { (ac_try="$ac_compile" |
| 9785 | case "(($ac_try" in |
| 9786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9787 | *) ac_try_echo=$ac_try;; |
| 9788 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9790 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9791 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9792 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9793 | rm -f conftest.er1 |
| 9794 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9796 | (exit $ac_status); } && { |
| 9797 | test -z "$ac_c_werror_flag" || |
| 9798 | test ! -s conftest.err |
| 9799 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9800 | ac_hi=$ac_mid; break |
| 9801 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9802 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9803 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9804 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9805 | ac_lo=`expr $ac_mid + 1` |
| 9806 | if test $ac_lo -le $ac_mid; then |
| 9807 | ac_lo= ac_hi= |
| 9808 | break |
| 9809 | fi |
| 9810 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9811 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9812 | |
| 9813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9814 | done |
| 9815 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9816 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9817 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9818 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9819 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9820 | /* confdefs.h. */ |
| 9821 | _ACEOF |
| 9822 | cat confdefs.h >>conftest.$ac_ext |
| 9823 | cat >>conftest.$ac_ext <<_ACEOF |
| 9824 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9825 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9826 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9827 | int |
| 9828 | main () |
| 9829 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9830 | 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] | 9831 | test_array [0] = 0 |
| 9832 | |
| 9833 | ; |
| 9834 | return 0; |
| 9835 | } |
| 9836 | _ACEOF |
| 9837 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9838 | if { (ac_try="$ac_compile" |
| 9839 | case "(($ac_try" in |
| 9840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9841 | *) ac_try_echo=$ac_try;; |
| 9842 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9844 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9845 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9846 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9847 | rm -f conftest.er1 |
| 9848 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9850 | (exit $ac_status); } && { |
| 9851 | test -z "$ac_c_werror_flag" || |
| 9852 | test ! -s conftest.err |
| 9853 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9854 | ac_hi=-1 ac_mid=-1 |
| 9855 | while :; do |
| 9856 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9857 | /* confdefs.h. */ |
| 9858 | _ACEOF |
| 9859 | cat confdefs.h >>conftest.$ac_ext |
| 9860 | cat >>conftest.$ac_ext <<_ACEOF |
| 9861 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9862 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9863 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9864 | int |
| 9865 | main () |
| 9866 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9867 | 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] | 9868 | test_array [0] = 0 |
| 9869 | |
| 9870 | ; |
| 9871 | return 0; |
| 9872 | } |
| 9873 | _ACEOF |
| 9874 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9875 | if { (ac_try="$ac_compile" |
| 9876 | case "(($ac_try" in |
| 9877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9878 | *) ac_try_echo=$ac_try;; |
| 9879 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9881 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9882 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9883 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9884 | rm -f conftest.er1 |
| 9885 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9887 | (exit $ac_status); } && { |
| 9888 | test -z "$ac_c_werror_flag" || |
| 9889 | test ! -s conftest.err |
| 9890 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9891 | ac_lo=$ac_mid; break |
| 9892 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9893 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9894 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9895 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9896 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9897 | if test $ac_mid -le $ac_hi; then |
| 9898 | ac_lo= ac_hi= |
| 9899 | break |
| 9900 | fi |
| 9901 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9902 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9903 | |
| 9904 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9905 | done |
| 9906 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9907 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9908 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9909 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9910 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9911 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9912 | |
| 9913 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9914 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9915 | |
| 9916 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9917 | # Binary search between lo and hi bounds. |
| 9918 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9919 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9920 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9921 | /* confdefs.h. */ |
| 9922 | _ACEOF |
| 9923 | cat confdefs.h >>conftest.$ac_ext |
| 9924 | cat >>conftest.$ac_ext <<_ACEOF |
| 9925 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9926 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9927 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9928 | int |
| 9929 | main () |
| 9930 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9931 | 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] | 9932 | test_array [0] = 0 |
| 9933 | |
| 9934 | ; |
| 9935 | return 0; |
| 9936 | } |
| 9937 | _ACEOF |
| 9938 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9939 | if { (ac_try="$ac_compile" |
| 9940 | case "(($ac_try" in |
| 9941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9942 | *) ac_try_echo=$ac_try;; |
| 9943 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9944 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9945 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9946 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9947 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9948 | rm -f conftest.er1 |
| 9949 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9951 | (exit $ac_status); } && { |
| 9952 | test -z "$ac_c_werror_flag" || |
| 9953 | test ! -s conftest.err |
| 9954 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9955 | ac_hi=$ac_mid |
| 9956 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9957 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9958 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9959 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9960 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9961 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9962 | |
| 9963 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9964 | done |
| 9965 | case $ac_lo in |
| 9966 | ?*) ac_cv_sizeof_double=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9967 | '') if test "$ac_cv_type_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9968 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9969 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9970 | echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9971 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9972 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9973 | else |
| 9974 | ac_cv_sizeof_double=0 |
| 9975 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9976 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9977 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9978 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9979 | /* confdefs.h. */ |
| 9980 | _ACEOF |
| 9981 | cat confdefs.h >>conftest.$ac_ext |
| 9982 | cat >>conftest.$ac_ext <<_ACEOF |
| 9983 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9984 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9985 | typedef double ac__type_sizeof_; |
| 9986 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9987 | 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] | 9988 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9989 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9990 | int |
| 9991 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9992 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9993 | |
| 9994 | FILE *f = fopen ("conftest.val", "w"); |
| 9995 | if (! f) |
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 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9998 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9999 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10000 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10001 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10002 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10003 | } |
| 10004 | else |
| 10005 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10006 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10007 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10008 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10009 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10010 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10011 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10012 | |
| 10013 | ; |
| 10014 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10015 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10016 | _ACEOF |
| 10017 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10018 | if { (ac_try="$ac_link" |
| 10019 | case "(($ac_try" in |
| 10020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10021 | *) ac_try_echo=$ac_try;; |
| 10022 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10024 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10025 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10027 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10028 | { (case "(($ac_try" in |
| 10029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10030 | *) ac_try_echo=$ac_try;; |
| 10031 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10032 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10033 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10034 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10036 | (exit $ac_status); }; }; then |
| 10037 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10038 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10039 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10040 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10041 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10042 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10043 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10044 | if test "$ac_cv_type_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10045 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10046 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10047 | echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10048 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10049 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10050 | else |
| 10051 | ac_cv_sizeof_double=0 |
| 10052 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10053 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10054 | 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] | 10055 | fi |
| 10056 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10057 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10058 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 10059 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10060 | |
| 10061 | |
| 10062 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10063 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10064 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10065 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10066 | |
| 10067 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10068 | { echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 10069 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; } |
| 10070 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 10071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10072 | else |
| 10073 | cat >conftest.$ac_ext <<_ACEOF |
| 10074 | /* confdefs.h. */ |
| 10075 | _ACEOF |
| 10076 | cat confdefs.h >>conftest.$ac_ext |
| 10077 | cat >>conftest.$ac_ext <<_ACEOF |
| 10078 | /* end confdefs.h. */ |
| 10079 | $ac_includes_default |
| 10080 | typedef fpos_t ac__type_new_; |
| 10081 | int |
| 10082 | main () |
| 10083 | { |
| 10084 | if ((ac__type_new_ *) 0) |
| 10085 | return 0; |
| 10086 | if (sizeof (ac__type_new_)) |
| 10087 | return 0; |
| 10088 | ; |
| 10089 | return 0; |
| 10090 | } |
| 10091 | _ACEOF |
| 10092 | rm -f conftest.$ac_objext |
| 10093 | if { (ac_try="$ac_compile" |
| 10094 | case "(($ac_try" in |
| 10095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10096 | *) ac_try_echo=$ac_try;; |
| 10097 | esac |
| 10098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10099 | (eval "$ac_compile") 2>conftest.er1 |
| 10100 | ac_status=$? |
| 10101 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10102 | rm -f conftest.er1 |
| 10103 | cat conftest.err >&5 |
| 10104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10105 | (exit $ac_status); } && { |
| 10106 | test -z "$ac_c_werror_flag" || |
| 10107 | test ! -s conftest.err |
| 10108 | } && test -s conftest.$ac_objext; then |
| 10109 | ac_cv_type_fpos_t=yes |
| 10110 | else |
| 10111 | echo "$as_me: failed program was:" >&5 |
| 10112 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10113 | |
| 10114 | ac_cv_type_fpos_t=no |
| 10115 | fi |
| 10116 | |
| 10117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10118 | fi |
| 10119 | { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 10120 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; } |
| 10121 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10122 | # The cast to long int works around a bug in the HP C Compiler |
| 10123 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10124 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10125 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10126 | { echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 10127 | 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] | 10128 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10130 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10131 | if test "$cross_compiling" = yes; then |
| 10132 | # Depending upon the size, compute the lo and hi bounds. |
| 10133 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10134 | /* confdefs.h. */ |
| 10135 | _ACEOF |
| 10136 | cat confdefs.h >>conftest.$ac_ext |
| 10137 | cat >>conftest.$ac_ext <<_ACEOF |
| 10138 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10139 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10140 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10141 | int |
| 10142 | main () |
| 10143 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10144 | 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] | 10145 | test_array [0] = 0 |
| 10146 | |
| 10147 | ; |
| 10148 | return 0; |
| 10149 | } |
| 10150 | _ACEOF |
| 10151 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10152 | if { (ac_try="$ac_compile" |
| 10153 | case "(($ac_try" in |
| 10154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10155 | *) ac_try_echo=$ac_try;; |
| 10156 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10158 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10159 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10160 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10161 | rm -f conftest.er1 |
| 10162 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10164 | (exit $ac_status); } && { |
| 10165 | test -z "$ac_c_werror_flag" || |
| 10166 | test ! -s conftest.err |
| 10167 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10168 | ac_lo=0 ac_mid=0 |
| 10169 | while :; do |
| 10170 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10171 | /* confdefs.h. */ |
| 10172 | _ACEOF |
| 10173 | cat confdefs.h >>conftest.$ac_ext |
| 10174 | cat >>conftest.$ac_ext <<_ACEOF |
| 10175 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10176 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10177 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10178 | int |
| 10179 | main () |
| 10180 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10181 | 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] | 10182 | test_array [0] = 0 |
| 10183 | |
| 10184 | ; |
| 10185 | return 0; |
| 10186 | } |
| 10187 | _ACEOF |
| 10188 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10189 | if { (ac_try="$ac_compile" |
| 10190 | case "(($ac_try" in |
| 10191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10192 | *) ac_try_echo=$ac_try;; |
| 10193 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10195 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10196 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10197 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10198 | rm -f conftest.er1 |
| 10199 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10201 | (exit $ac_status); } && { |
| 10202 | test -z "$ac_c_werror_flag" || |
| 10203 | test ! -s conftest.err |
| 10204 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10205 | ac_hi=$ac_mid; break |
| 10206 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10207 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10208 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10209 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10210 | ac_lo=`expr $ac_mid + 1` |
| 10211 | if test $ac_lo -le $ac_mid; then |
| 10212 | ac_lo= ac_hi= |
| 10213 | break |
| 10214 | fi |
| 10215 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10216 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10217 | |
| 10218 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10219 | done |
| 10220 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10221 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10222 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10223 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10224 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10225 | /* confdefs.h. */ |
| 10226 | _ACEOF |
| 10227 | cat confdefs.h >>conftest.$ac_ext |
| 10228 | cat >>conftest.$ac_ext <<_ACEOF |
| 10229 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10230 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10231 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10232 | int |
| 10233 | main () |
| 10234 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10235 | 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] | 10236 | test_array [0] = 0 |
| 10237 | |
| 10238 | ; |
| 10239 | return 0; |
| 10240 | } |
| 10241 | _ACEOF |
| 10242 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10243 | if { (ac_try="$ac_compile" |
| 10244 | case "(($ac_try" in |
| 10245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10246 | *) ac_try_echo=$ac_try;; |
| 10247 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10249 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10250 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10251 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10252 | rm -f conftest.er1 |
| 10253 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10255 | (exit $ac_status); } && { |
| 10256 | test -z "$ac_c_werror_flag" || |
| 10257 | test ! -s conftest.err |
| 10258 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10259 | ac_hi=-1 ac_mid=-1 |
| 10260 | while :; do |
| 10261 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10262 | /* confdefs.h. */ |
| 10263 | _ACEOF |
| 10264 | cat confdefs.h >>conftest.$ac_ext |
| 10265 | cat >>conftest.$ac_ext <<_ACEOF |
| 10266 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10267 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10268 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10269 | int |
| 10270 | main () |
| 10271 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10272 | 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] | 10273 | test_array [0] = 0 |
| 10274 | |
| 10275 | ; |
| 10276 | return 0; |
| 10277 | } |
| 10278 | _ACEOF |
| 10279 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10280 | if { (ac_try="$ac_compile" |
| 10281 | case "(($ac_try" in |
| 10282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10283 | *) ac_try_echo=$ac_try;; |
| 10284 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10286 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10287 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10288 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10289 | rm -f conftest.er1 |
| 10290 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10292 | (exit $ac_status); } && { |
| 10293 | test -z "$ac_c_werror_flag" || |
| 10294 | test ! -s conftest.err |
| 10295 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10296 | ac_lo=$ac_mid; break |
| 10297 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10298 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10299 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10300 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10301 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10302 | if test $ac_mid -le $ac_hi; then |
| 10303 | ac_lo= ac_hi= |
| 10304 | break |
| 10305 | fi |
| 10306 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10307 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10308 | |
| 10309 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10310 | done |
| 10311 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10312 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10313 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10314 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10315 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10316 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10317 | |
| 10318 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10319 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10320 | |
| 10321 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10322 | # Binary search between lo and hi bounds. |
| 10323 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10324 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10325 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10326 | /* confdefs.h. */ |
| 10327 | _ACEOF |
| 10328 | cat confdefs.h >>conftest.$ac_ext |
| 10329 | cat >>conftest.$ac_ext <<_ACEOF |
| 10330 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10331 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10332 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10333 | int |
| 10334 | main () |
| 10335 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10336 | 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] | 10337 | test_array [0] = 0 |
| 10338 | |
| 10339 | ; |
| 10340 | return 0; |
| 10341 | } |
| 10342 | _ACEOF |
| 10343 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10344 | if { (ac_try="$ac_compile" |
| 10345 | case "(($ac_try" in |
| 10346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10347 | *) ac_try_echo=$ac_try;; |
| 10348 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10350 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10351 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10352 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10353 | rm -f conftest.er1 |
| 10354 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10356 | (exit $ac_status); } && { |
| 10357 | test -z "$ac_c_werror_flag" || |
| 10358 | test ! -s conftest.err |
| 10359 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10360 | ac_hi=$ac_mid |
| 10361 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10362 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10363 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10364 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10365 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10366 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10367 | |
| 10368 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10369 | done |
| 10370 | case $ac_lo in |
| 10371 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10372 | '') if test "$ac_cv_type_fpos_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10373 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10374 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10375 | echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10376 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10377 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10378 | else |
| 10379 | ac_cv_sizeof_fpos_t=0 |
| 10380 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10381 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10382 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10383 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10384 | /* confdefs.h. */ |
| 10385 | _ACEOF |
| 10386 | cat confdefs.h >>conftest.$ac_ext |
| 10387 | cat >>conftest.$ac_ext <<_ACEOF |
| 10388 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10389 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10390 | typedef fpos_t ac__type_sizeof_; |
| 10391 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10392 | 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] | 10393 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10394 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10395 | int |
| 10396 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10397 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10398 | |
| 10399 | FILE *f = fopen ("conftest.val", "w"); |
| 10400 | if (! f) |
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 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10403 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10404 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10405 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10406 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10407 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10408 | } |
| 10409 | else |
| 10410 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10411 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10412 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10413 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10414 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10415 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10416 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10417 | |
| 10418 | ; |
| 10419 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10420 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10421 | _ACEOF |
| 10422 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10423 | if { (ac_try="$ac_link" |
| 10424 | case "(($ac_try" in |
| 10425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10426 | *) ac_try_echo=$ac_try;; |
| 10427 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10428 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10429 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10430 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10432 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10433 | { (case "(($ac_try" in |
| 10434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10435 | *) ac_try_echo=$ac_try;; |
| 10436 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10438 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10439 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10441 | (exit $ac_status); }; }; then |
| 10442 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10443 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10444 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10445 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10446 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10447 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10448 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10449 | if test "$ac_cv_type_fpos_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10450 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10451 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10452 | echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10453 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10454 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10455 | else |
| 10456 | ac_cv_sizeof_fpos_t=0 |
| 10457 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10458 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10459 | 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] | 10460 | fi |
| 10461 | rm -f conftest.val |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10462 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10463 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 10464 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10465 | |
| 10466 | |
| 10467 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10468 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10469 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10470 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10471 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10472 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10473 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 10474 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
| 10475 | if test "${ac_cv_type_size_t+set}" = set; then |
| 10476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10477 | else |
| 10478 | cat >conftest.$ac_ext <<_ACEOF |
| 10479 | /* confdefs.h. */ |
| 10480 | _ACEOF |
| 10481 | cat confdefs.h >>conftest.$ac_ext |
| 10482 | cat >>conftest.$ac_ext <<_ACEOF |
| 10483 | /* end confdefs.h. */ |
| 10484 | $ac_includes_default |
| 10485 | typedef size_t ac__type_new_; |
| 10486 | int |
| 10487 | main () |
| 10488 | { |
| 10489 | if ((ac__type_new_ *) 0) |
| 10490 | return 0; |
| 10491 | if (sizeof (ac__type_new_)) |
| 10492 | return 0; |
| 10493 | ; |
| 10494 | return 0; |
| 10495 | } |
| 10496 | _ACEOF |
| 10497 | rm -f conftest.$ac_objext |
| 10498 | if { (ac_try="$ac_compile" |
| 10499 | case "(($ac_try" in |
| 10500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10501 | *) ac_try_echo=$ac_try;; |
| 10502 | esac |
| 10503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10504 | (eval "$ac_compile") 2>conftest.er1 |
| 10505 | ac_status=$? |
| 10506 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10507 | rm -f conftest.er1 |
| 10508 | cat conftest.err >&5 |
| 10509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10510 | (exit $ac_status); } && { |
| 10511 | test -z "$ac_c_werror_flag" || |
| 10512 | test ! -s conftest.err |
| 10513 | } && test -s conftest.$ac_objext; then |
| 10514 | ac_cv_type_size_t=yes |
| 10515 | else |
| 10516 | echo "$as_me: failed program was:" >&5 |
| 10517 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10518 | |
| 10519 | ac_cv_type_size_t=no |
| 10520 | fi |
| 10521 | |
| 10522 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10523 | fi |
| 10524 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 10525 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 10526 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10527 | # The cast to long int works around a bug in the HP C Compiler |
| 10528 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10529 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10530 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10531 | { echo "$as_me:$LINENO: checking size of size_t" >&5 |
| 10532 | 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] | 10533 | if test "${ac_cv_sizeof_size_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10535 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10536 | if test "$cross_compiling" = yes; then |
| 10537 | # Depending upon the size, compute the lo and hi bounds. |
| 10538 | cat >conftest.$ac_ext <<_ACEOF |
| 10539 | /* confdefs.h. */ |
| 10540 | _ACEOF |
| 10541 | cat confdefs.h >>conftest.$ac_ext |
| 10542 | cat >>conftest.$ac_ext <<_ACEOF |
| 10543 | /* end confdefs.h. */ |
| 10544 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10545 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10546 | int |
| 10547 | main () |
| 10548 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10549 | 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] | 10550 | test_array [0] = 0 |
| 10551 | |
| 10552 | ; |
| 10553 | return 0; |
| 10554 | } |
| 10555 | _ACEOF |
| 10556 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10557 | if { (ac_try="$ac_compile" |
| 10558 | case "(($ac_try" in |
| 10559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10560 | *) ac_try_echo=$ac_try;; |
| 10561 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10563 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10564 | ac_status=$? |
| 10565 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10566 | rm -f conftest.er1 |
| 10567 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10569 | (exit $ac_status); } && { |
| 10570 | test -z "$ac_c_werror_flag" || |
| 10571 | test ! -s conftest.err |
| 10572 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10573 | ac_lo=0 ac_mid=0 |
| 10574 | while :; do |
| 10575 | cat >conftest.$ac_ext <<_ACEOF |
| 10576 | /* confdefs.h. */ |
| 10577 | _ACEOF |
| 10578 | cat confdefs.h >>conftest.$ac_ext |
| 10579 | cat >>conftest.$ac_ext <<_ACEOF |
| 10580 | /* end confdefs.h. */ |
| 10581 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10582 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10583 | int |
| 10584 | main () |
| 10585 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10586 | 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] | 10587 | test_array [0] = 0 |
| 10588 | |
| 10589 | ; |
| 10590 | return 0; |
| 10591 | } |
| 10592 | _ACEOF |
| 10593 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10594 | if { (ac_try="$ac_compile" |
| 10595 | case "(($ac_try" in |
| 10596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10597 | *) ac_try_echo=$ac_try;; |
| 10598 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10600 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10601 | ac_status=$? |
| 10602 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10603 | rm -f conftest.er1 |
| 10604 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10606 | (exit $ac_status); } && { |
| 10607 | test -z "$ac_c_werror_flag" || |
| 10608 | test ! -s conftest.err |
| 10609 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10610 | ac_hi=$ac_mid; break |
| 10611 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10612 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10613 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10614 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10615 | ac_lo=`expr $ac_mid + 1` |
| 10616 | if test $ac_lo -le $ac_mid; then |
| 10617 | ac_lo= ac_hi= |
| 10618 | break |
| 10619 | fi |
| 10620 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10621 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10622 | |
| 10623 | 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] | 10624 | done |
| 10625 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10626 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10627 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10628 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10629 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10630 | /* confdefs.h. */ |
| 10631 | _ACEOF |
| 10632 | cat confdefs.h >>conftest.$ac_ext |
| 10633 | cat >>conftest.$ac_ext <<_ACEOF |
| 10634 | /* end confdefs.h. */ |
| 10635 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10636 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10637 | int |
| 10638 | main () |
| 10639 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10640 | 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] | 10641 | test_array [0] = 0 |
| 10642 | |
| 10643 | ; |
| 10644 | return 0; |
| 10645 | } |
| 10646 | _ACEOF |
| 10647 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10648 | if { (ac_try="$ac_compile" |
| 10649 | case "(($ac_try" in |
| 10650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10651 | *) ac_try_echo=$ac_try;; |
| 10652 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10654 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10655 | ac_status=$? |
| 10656 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10657 | rm -f conftest.er1 |
| 10658 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10660 | (exit $ac_status); } && { |
| 10661 | test -z "$ac_c_werror_flag" || |
| 10662 | test ! -s conftest.err |
| 10663 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10664 | ac_hi=-1 ac_mid=-1 |
| 10665 | while :; do |
| 10666 | cat >conftest.$ac_ext <<_ACEOF |
| 10667 | /* confdefs.h. */ |
| 10668 | _ACEOF |
| 10669 | cat confdefs.h >>conftest.$ac_ext |
| 10670 | cat >>conftest.$ac_ext <<_ACEOF |
| 10671 | /* end confdefs.h. */ |
| 10672 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10673 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10674 | int |
| 10675 | main () |
| 10676 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10677 | 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] | 10678 | test_array [0] = 0 |
| 10679 | |
| 10680 | ; |
| 10681 | return 0; |
| 10682 | } |
| 10683 | _ACEOF |
| 10684 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10685 | if { (ac_try="$ac_compile" |
| 10686 | case "(($ac_try" in |
| 10687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10688 | *) ac_try_echo=$ac_try;; |
| 10689 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10691 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10692 | ac_status=$? |
| 10693 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10694 | rm -f conftest.er1 |
| 10695 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10697 | (exit $ac_status); } && { |
| 10698 | test -z "$ac_c_werror_flag" || |
| 10699 | test ! -s conftest.err |
| 10700 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10701 | ac_lo=$ac_mid; break |
| 10702 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10703 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10704 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10705 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10706 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10707 | if test $ac_mid -le $ac_hi; then |
| 10708 | ac_lo= ac_hi= |
| 10709 | break |
| 10710 | fi |
| 10711 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10712 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10713 | |
| 10714 | 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] | 10715 | done |
| 10716 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10717 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10718 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10719 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10720 | ac_lo= ac_hi= |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10721 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10722 | |
| 10723 | 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] | 10724 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10725 | |
| 10726 | 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] | 10727 | # Binary search between lo and hi bounds. |
| 10728 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10729 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10730 | cat >conftest.$ac_ext <<_ACEOF |
| 10731 | /* confdefs.h. */ |
| 10732 | _ACEOF |
| 10733 | cat confdefs.h >>conftest.$ac_ext |
| 10734 | cat >>conftest.$ac_ext <<_ACEOF |
| 10735 | /* end confdefs.h. */ |
| 10736 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10737 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10738 | int |
| 10739 | main () |
| 10740 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10741 | 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] | 10742 | test_array [0] = 0 |
| 10743 | |
| 10744 | ; |
| 10745 | return 0; |
| 10746 | } |
| 10747 | _ACEOF |
| 10748 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10749 | if { (ac_try="$ac_compile" |
| 10750 | case "(($ac_try" in |
| 10751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10752 | *) ac_try_echo=$ac_try;; |
| 10753 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10755 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10756 | ac_status=$? |
| 10757 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10758 | rm -f conftest.er1 |
| 10759 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10761 | (exit $ac_status); } && { |
| 10762 | test -z "$ac_c_werror_flag" || |
| 10763 | test ! -s conftest.err |
| 10764 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10765 | ac_hi=$ac_mid |
| 10766 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10767 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10768 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10769 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10770 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10771 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10772 | |
| 10773 | 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] | 10774 | done |
| 10775 | case $ac_lo in |
| 10776 | ?*) ac_cv_sizeof_size_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10777 | '') if test "$ac_cv_type_size_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10778 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10779 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10780 | echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10781 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10782 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10783 | else |
| 10784 | ac_cv_sizeof_size_t=0 |
| 10785 | fi ;; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10786 | esac |
| 10787 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10788 | cat >conftest.$ac_ext <<_ACEOF |
| 10789 | /* confdefs.h. */ |
| 10790 | _ACEOF |
| 10791 | cat confdefs.h >>conftest.$ac_ext |
| 10792 | cat >>conftest.$ac_ext <<_ACEOF |
| 10793 | /* end confdefs.h. */ |
| 10794 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10795 | typedef size_t ac__type_sizeof_; |
| 10796 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10797 | 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] | 10798 | #include <stdio.h> |
| 10799 | #include <stdlib.h> |
| 10800 | int |
| 10801 | main () |
| 10802 | { |
| 10803 | |
| 10804 | FILE *f = fopen ("conftest.val", "w"); |
| 10805 | if (! f) |
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 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10808 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10809 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10810 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10811 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10812 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10813 | } |
| 10814 | else |
| 10815 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10816 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10817 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10818 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10819 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10820 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10821 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10822 | |
| 10823 | ; |
| 10824 | return 0; |
| 10825 | } |
| 10826 | _ACEOF |
| 10827 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10828 | if { (ac_try="$ac_link" |
| 10829 | case "(($ac_try" in |
| 10830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10831 | *) ac_try_echo=$ac_try;; |
| 10832 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10834 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10835 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10837 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10838 | { (case "(($ac_try" in |
| 10839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10840 | *) ac_try_echo=$ac_try;; |
| 10841 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10843 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10844 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10846 | (exit $ac_status); }; }; then |
| 10847 | ac_cv_sizeof_size_t=`cat conftest.val` |
| 10848 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10849 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10850 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10851 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10852 | |
| 10853 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10854 | if test "$ac_cv_type_size_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10855 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10856 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10857 | echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10858 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10859 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10860 | else |
| 10861 | ac_cv_sizeof_size_t=0 |
| 10862 | fi |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10863 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10864 | 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] | 10865 | fi |
| 10866 | rm -f conftest.val |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10867 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10868 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 |
| 10869 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10870 | |
| 10871 | |
| 10872 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10873 | cat >>confdefs.h <<_ACEOF |
| 10874 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 10875 | _ACEOF |
| 10876 | |
| 10877 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10878 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 10879 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
| 10880 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 10881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10882 | else |
| 10883 | cat >conftest.$ac_ext <<_ACEOF |
| 10884 | /* confdefs.h. */ |
| 10885 | _ACEOF |
| 10886 | cat confdefs.h >>conftest.$ac_ext |
| 10887 | cat >>conftest.$ac_ext <<_ACEOF |
| 10888 | /* end confdefs.h. */ |
| 10889 | $ac_includes_default |
| 10890 | typedef pid_t ac__type_new_; |
| 10891 | int |
| 10892 | main () |
| 10893 | { |
| 10894 | if ((ac__type_new_ *) 0) |
| 10895 | return 0; |
| 10896 | if (sizeof (ac__type_new_)) |
| 10897 | return 0; |
| 10898 | ; |
| 10899 | return 0; |
| 10900 | } |
| 10901 | _ACEOF |
| 10902 | rm -f conftest.$ac_objext |
| 10903 | if { (ac_try="$ac_compile" |
| 10904 | case "(($ac_try" in |
| 10905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10906 | *) ac_try_echo=$ac_try;; |
| 10907 | esac |
| 10908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10909 | (eval "$ac_compile") 2>conftest.er1 |
| 10910 | ac_status=$? |
| 10911 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10912 | rm -f conftest.er1 |
| 10913 | cat conftest.err >&5 |
| 10914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10915 | (exit $ac_status); } && { |
| 10916 | test -z "$ac_c_werror_flag" || |
| 10917 | test ! -s conftest.err |
| 10918 | } && test -s conftest.$ac_objext; then |
| 10919 | ac_cv_type_pid_t=yes |
| 10920 | else |
| 10921 | echo "$as_me: failed program was:" >&5 |
| 10922 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10923 | |
| 10924 | ac_cv_type_pid_t=no |
| 10925 | fi |
| 10926 | |
| 10927 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10928 | fi |
| 10929 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 10930 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 10931 | |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10932 | # The cast to long int works around a bug in the HP C Compiler |
| 10933 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10934 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10935 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10936 | { echo "$as_me:$LINENO: checking size of pid_t" >&5 |
| 10937 | echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10938 | if test "${ac_cv_sizeof_pid_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10940 | else |
| 10941 | if test "$cross_compiling" = yes; then |
| 10942 | # Depending upon the size, compute the lo and hi bounds. |
| 10943 | cat >conftest.$ac_ext <<_ACEOF |
| 10944 | /* confdefs.h. */ |
| 10945 | _ACEOF |
| 10946 | cat confdefs.h >>conftest.$ac_ext |
| 10947 | cat >>conftest.$ac_ext <<_ACEOF |
| 10948 | /* end confdefs.h. */ |
| 10949 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10950 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10951 | int |
| 10952 | main () |
| 10953 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10954 | 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] | 10955 | test_array [0] = 0 |
| 10956 | |
| 10957 | ; |
| 10958 | return 0; |
| 10959 | } |
| 10960 | _ACEOF |
| 10961 | rm -f conftest.$ac_objext |
| 10962 | if { (ac_try="$ac_compile" |
| 10963 | case "(($ac_try" in |
| 10964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10965 | *) ac_try_echo=$ac_try;; |
| 10966 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10967 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10968 | (eval "$ac_compile") 2>conftest.er1 |
| 10969 | ac_status=$? |
| 10970 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10971 | rm -f conftest.er1 |
| 10972 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10974 | (exit $ac_status); } && { |
| 10975 | test -z "$ac_c_werror_flag" || |
| 10976 | test ! -s conftest.err |
| 10977 | } && test -s conftest.$ac_objext; then |
| 10978 | ac_lo=0 ac_mid=0 |
| 10979 | while :; do |
| 10980 | cat >conftest.$ac_ext <<_ACEOF |
| 10981 | /* confdefs.h. */ |
| 10982 | _ACEOF |
| 10983 | cat confdefs.h >>conftest.$ac_ext |
| 10984 | cat >>conftest.$ac_ext <<_ACEOF |
| 10985 | /* end confdefs.h. */ |
| 10986 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10987 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10988 | int |
| 10989 | main () |
| 10990 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10991 | 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] | 10992 | test_array [0] = 0 |
| 10993 | |
| 10994 | ; |
| 10995 | return 0; |
| 10996 | } |
| 10997 | _ACEOF |
| 10998 | rm -f conftest.$ac_objext |
| 10999 | if { (ac_try="$ac_compile" |
| 11000 | case "(($ac_try" in |
| 11001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11002 | *) ac_try_echo=$ac_try;; |
| 11003 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11005 | (eval "$ac_compile") 2>conftest.er1 |
| 11006 | ac_status=$? |
| 11007 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11008 | rm -f conftest.er1 |
| 11009 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11011 | (exit $ac_status); } && { |
| 11012 | test -z "$ac_c_werror_flag" || |
| 11013 | test ! -s conftest.err |
| 11014 | } && test -s conftest.$ac_objext; then |
| 11015 | ac_hi=$ac_mid; break |
| 11016 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11017 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11018 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11019 | |
| 11020 | ac_lo=`expr $ac_mid + 1` |
| 11021 | if test $ac_lo -le $ac_mid; then |
| 11022 | ac_lo= ac_hi= |
| 11023 | break |
| 11024 | fi |
| 11025 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 11026 | fi |
| 11027 | |
| 11028 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11029 | done |
| 11030 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11031 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11032 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11033 | |
| 11034 | cat >conftest.$ac_ext <<_ACEOF |
| 11035 | /* confdefs.h. */ |
| 11036 | _ACEOF |
| 11037 | cat confdefs.h >>conftest.$ac_ext |
| 11038 | cat >>conftest.$ac_ext <<_ACEOF |
| 11039 | /* end confdefs.h. */ |
| 11040 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11041 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11042 | int |
| 11043 | main () |
| 11044 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11045 | 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] | 11046 | test_array [0] = 0 |
| 11047 | |
| 11048 | ; |
| 11049 | return 0; |
| 11050 | } |
| 11051 | _ACEOF |
| 11052 | rm -f conftest.$ac_objext |
| 11053 | if { (ac_try="$ac_compile" |
| 11054 | case "(($ac_try" in |
| 11055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11056 | *) ac_try_echo=$ac_try;; |
| 11057 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11059 | (eval "$ac_compile") 2>conftest.er1 |
| 11060 | ac_status=$? |
| 11061 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11062 | rm -f conftest.er1 |
| 11063 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11065 | (exit $ac_status); } && { |
| 11066 | test -z "$ac_c_werror_flag" || |
| 11067 | test ! -s conftest.err |
| 11068 | } && test -s conftest.$ac_objext; then |
| 11069 | ac_hi=-1 ac_mid=-1 |
| 11070 | while :; do |
| 11071 | cat >conftest.$ac_ext <<_ACEOF |
| 11072 | /* confdefs.h. */ |
| 11073 | _ACEOF |
| 11074 | cat confdefs.h >>conftest.$ac_ext |
| 11075 | cat >>conftest.$ac_ext <<_ACEOF |
| 11076 | /* end confdefs.h. */ |
| 11077 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11078 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11079 | int |
| 11080 | main () |
| 11081 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11082 | 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] | 11083 | test_array [0] = 0 |
| 11084 | |
| 11085 | ; |
| 11086 | return 0; |
| 11087 | } |
| 11088 | _ACEOF |
| 11089 | rm -f conftest.$ac_objext |
| 11090 | if { (ac_try="$ac_compile" |
| 11091 | case "(($ac_try" in |
| 11092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11093 | *) ac_try_echo=$ac_try;; |
| 11094 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11096 | (eval "$ac_compile") 2>conftest.er1 |
| 11097 | ac_status=$? |
| 11098 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11099 | rm -f conftest.er1 |
| 11100 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11102 | (exit $ac_status); } && { |
| 11103 | test -z "$ac_c_werror_flag" || |
| 11104 | test ! -s conftest.err |
| 11105 | } && test -s conftest.$ac_objext; then |
| 11106 | ac_lo=$ac_mid; break |
| 11107 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11108 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11109 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11110 | |
| 11111 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11112 | if test $ac_mid -le $ac_hi; then |
| 11113 | ac_lo= ac_hi= |
| 11114 | break |
| 11115 | fi |
| 11116 | ac_mid=`expr 2 '*' $ac_mid` |
| 11117 | fi |
| 11118 | |
| 11119 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11120 | done |
| 11121 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11122 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11123 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11124 | |
| 11125 | ac_lo= ac_hi= |
| 11126 | fi |
| 11127 | |
| 11128 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11129 | fi |
| 11130 | |
| 11131 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11132 | # Binary search between lo and hi bounds. |
| 11133 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11134 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11135 | cat >conftest.$ac_ext <<_ACEOF |
| 11136 | /* confdefs.h. */ |
| 11137 | _ACEOF |
| 11138 | cat confdefs.h >>conftest.$ac_ext |
| 11139 | cat >>conftest.$ac_ext <<_ACEOF |
| 11140 | /* end confdefs.h. */ |
| 11141 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11142 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11143 | int |
| 11144 | main () |
| 11145 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11146 | 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] | 11147 | test_array [0] = 0 |
| 11148 | |
| 11149 | ; |
| 11150 | return 0; |
| 11151 | } |
| 11152 | _ACEOF |
| 11153 | rm -f conftest.$ac_objext |
| 11154 | if { (ac_try="$ac_compile" |
| 11155 | case "(($ac_try" in |
| 11156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11157 | *) ac_try_echo=$ac_try;; |
| 11158 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11160 | (eval "$ac_compile") 2>conftest.er1 |
| 11161 | ac_status=$? |
| 11162 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11163 | rm -f conftest.er1 |
| 11164 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11166 | (exit $ac_status); } && { |
| 11167 | test -z "$ac_c_werror_flag" || |
| 11168 | test ! -s conftest.err |
| 11169 | } && test -s conftest.$ac_objext; then |
| 11170 | ac_hi=$ac_mid |
| 11171 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11172 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11173 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11174 | |
| 11175 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 11176 | fi |
| 11177 | |
| 11178 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11179 | done |
| 11180 | case $ac_lo in |
| 11181 | ?*) ac_cv_sizeof_pid_t=$ac_lo;; |
| 11182 | '') if test "$ac_cv_type_pid_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11183 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11184 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11185 | echo "$as_me: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11186 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11187 | { (exit 77); exit 77; }; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11188 | else |
| 11189 | ac_cv_sizeof_pid_t=0 |
| 11190 | fi ;; |
| 11191 | esac |
| 11192 | else |
| 11193 | cat >conftest.$ac_ext <<_ACEOF |
| 11194 | /* confdefs.h. */ |
| 11195 | _ACEOF |
| 11196 | cat confdefs.h >>conftest.$ac_ext |
| 11197 | cat >>conftest.$ac_ext <<_ACEOF |
| 11198 | /* end confdefs.h. */ |
| 11199 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11200 | typedef pid_t ac__type_sizeof_; |
| 11201 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11202 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11203 | #include <stdio.h> |
| 11204 | #include <stdlib.h> |
| 11205 | int |
| 11206 | main () |
| 11207 | { |
| 11208 | |
| 11209 | FILE *f = fopen ("conftest.val", "w"); |
| 11210 | if (! f) |
| 11211 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11212 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11213 | { |
| 11214 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11215 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11216 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11217 | fprintf (f, "%ld\n", i); |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11218 | } |
| 11219 | else |
| 11220 | { |
| 11221 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11222 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11223 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11224 | fprintf (f, "%lu\n", i); |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11225 | } |
| 11226 | return ferror (f) || fclose (f) != 0; |
| 11227 | |
| 11228 | ; |
| 11229 | return 0; |
| 11230 | } |
| 11231 | _ACEOF |
| 11232 | rm -f conftest$ac_exeext |
| 11233 | if { (ac_try="$ac_link" |
| 11234 | case "(($ac_try" in |
| 11235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11236 | *) ac_try_echo=$ac_try;; |
| 11237 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11239 | (eval "$ac_link") 2>&5 |
| 11240 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11242 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11243 | { (case "(($ac_try" in |
| 11244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11245 | *) ac_try_echo=$ac_try;; |
| 11246 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11248 | (eval "$ac_try") 2>&5 |
| 11249 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11251 | (exit $ac_status); }; }; then |
| 11252 | ac_cv_sizeof_pid_t=`cat conftest.val` |
| 11253 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11254 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11255 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11256 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11257 | |
| 11258 | ( exit $ac_status ) |
| 11259 | if test "$ac_cv_type_pid_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11260 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11261 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11262 | echo "$as_me: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11263 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11264 | { (exit 77); exit 77; }; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11265 | else |
| 11266 | ac_cv_sizeof_pid_t=0 |
| 11267 | fi |
| 11268 | fi |
| 11269 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11270 | fi |
| 11271 | rm -f conftest.val |
| 11272 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11273 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5 |
| 11274 | echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11275 | |
| 11276 | |
| 11277 | |
| 11278 | cat >>confdefs.h <<_ACEOF |
| 11279 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t |
| 11280 | _ACEOF |
| 11281 | |
| 11282 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11283 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11284 | { echo "$as_me:$LINENO: checking for long long support" >&5 |
| 11285 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11286 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11287 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11288 | /* confdefs.h. */ |
| 11289 | _ACEOF |
| 11290 | cat confdefs.h >>conftest.$ac_ext |
| 11291 | cat >>conftest.$ac_ext <<_ACEOF |
| 11292 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11293 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11294 | int |
| 11295 | main () |
| 11296 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11297 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11298 | ; |
| 11299 | return 0; |
| 11300 | } |
| 11301 | _ACEOF |
| 11302 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11303 | if { (ac_try="$ac_compile" |
| 11304 | case "(($ac_try" in |
| 11305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11306 | *) ac_try_echo=$ac_try;; |
| 11307 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11309 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11310 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11311 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11312 | rm -f conftest.er1 |
| 11313 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11315 | (exit $ac_status); } && { |
| 11316 | test -z "$ac_c_werror_flag" || |
| 11317 | test ! -s conftest.err |
| 11318 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11319 | |
| 11320 | |
| 11321 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11322 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11323 | _ACEOF |
| 11324 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11325 | have_long_long=yes |
| 11326 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11327 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11328 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11329 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11330 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11331 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11332 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11333 | |
| 11334 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11335 | { echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 11336 | echo "${ECHO_T}$have_long_long" >&6; } |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 11337 | if test "$have_long_long" = yes ; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11338 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 11339 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
| 11340 | if test "${ac_cv_type_long_long+set}" = set; then |
| 11341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11342 | else |
| 11343 | cat >conftest.$ac_ext <<_ACEOF |
| 11344 | /* confdefs.h. */ |
| 11345 | _ACEOF |
| 11346 | cat confdefs.h >>conftest.$ac_ext |
| 11347 | cat >>conftest.$ac_ext <<_ACEOF |
| 11348 | /* end confdefs.h. */ |
| 11349 | $ac_includes_default |
| 11350 | typedef long long ac__type_new_; |
| 11351 | int |
| 11352 | main () |
| 11353 | { |
| 11354 | if ((ac__type_new_ *) 0) |
| 11355 | return 0; |
| 11356 | if (sizeof (ac__type_new_)) |
| 11357 | return 0; |
| 11358 | ; |
| 11359 | return 0; |
| 11360 | } |
| 11361 | _ACEOF |
| 11362 | rm -f conftest.$ac_objext |
| 11363 | if { (ac_try="$ac_compile" |
| 11364 | case "(($ac_try" in |
| 11365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11366 | *) ac_try_echo=$ac_try;; |
| 11367 | esac |
| 11368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11369 | (eval "$ac_compile") 2>conftest.er1 |
| 11370 | ac_status=$? |
| 11371 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11372 | rm -f conftest.er1 |
| 11373 | cat conftest.err >&5 |
| 11374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11375 | (exit $ac_status); } && { |
| 11376 | test -z "$ac_c_werror_flag" || |
| 11377 | test ! -s conftest.err |
| 11378 | } && test -s conftest.$ac_objext; then |
| 11379 | ac_cv_type_long_long=yes |
| 11380 | else |
| 11381 | echo "$as_me: failed program was:" >&5 |
| 11382 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11383 | |
| 11384 | ac_cv_type_long_long=no |
| 11385 | fi |
| 11386 | |
| 11387 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11388 | fi |
| 11389 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 11390 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
| 11391 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11392 | # The cast to long int works around a bug in the HP C Compiler |
| 11393 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11394 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11395 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11396 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
| 11397 | 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] | 11398 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11400 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11401 | if test "$cross_compiling" = yes; then |
| 11402 | # Depending upon the size, compute the lo and hi bounds. |
| 11403 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11404 | /* confdefs.h. */ |
| 11405 | _ACEOF |
| 11406 | cat confdefs.h >>conftest.$ac_ext |
| 11407 | cat >>conftest.$ac_ext <<_ACEOF |
| 11408 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11409 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11410 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11411 | int |
| 11412 | main () |
| 11413 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11414 | 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] | 11415 | test_array [0] = 0 |
| 11416 | |
| 11417 | ; |
| 11418 | return 0; |
| 11419 | } |
| 11420 | _ACEOF |
| 11421 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11422 | if { (ac_try="$ac_compile" |
| 11423 | case "(($ac_try" in |
| 11424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11425 | *) ac_try_echo=$ac_try;; |
| 11426 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11428 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11429 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11430 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11431 | rm -f conftest.er1 |
| 11432 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11434 | (exit $ac_status); } && { |
| 11435 | test -z "$ac_c_werror_flag" || |
| 11436 | test ! -s conftest.err |
| 11437 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11438 | ac_lo=0 ac_mid=0 |
| 11439 | while :; do |
| 11440 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11441 | /* confdefs.h. */ |
| 11442 | _ACEOF |
| 11443 | cat confdefs.h >>conftest.$ac_ext |
| 11444 | cat >>conftest.$ac_ext <<_ACEOF |
| 11445 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11446 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11447 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11448 | int |
| 11449 | main () |
| 11450 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11451 | 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] | 11452 | test_array [0] = 0 |
| 11453 | |
| 11454 | ; |
| 11455 | return 0; |
| 11456 | } |
| 11457 | _ACEOF |
| 11458 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11459 | if { (ac_try="$ac_compile" |
| 11460 | case "(($ac_try" in |
| 11461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11462 | *) ac_try_echo=$ac_try;; |
| 11463 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11465 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11466 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11467 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11468 | rm -f conftest.er1 |
| 11469 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11471 | (exit $ac_status); } && { |
| 11472 | test -z "$ac_c_werror_flag" || |
| 11473 | test ! -s conftest.err |
| 11474 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11475 | ac_hi=$ac_mid; break |
| 11476 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11477 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11478 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11479 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11480 | ac_lo=`expr $ac_mid + 1` |
| 11481 | if test $ac_lo -le $ac_mid; then |
| 11482 | ac_lo= ac_hi= |
| 11483 | break |
| 11484 | fi |
| 11485 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11486 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11487 | |
| 11488 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11489 | done |
| 11490 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11491 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11492 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11493 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11494 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11495 | /* confdefs.h. */ |
| 11496 | _ACEOF |
| 11497 | cat confdefs.h >>conftest.$ac_ext |
| 11498 | cat >>conftest.$ac_ext <<_ACEOF |
| 11499 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11500 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11501 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11502 | int |
| 11503 | main () |
| 11504 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11505 | 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] | 11506 | test_array [0] = 0 |
| 11507 | |
| 11508 | ; |
| 11509 | return 0; |
| 11510 | } |
| 11511 | _ACEOF |
| 11512 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11513 | if { (ac_try="$ac_compile" |
| 11514 | case "(($ac_try" in |
| 11515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11516 | *) ac_try_echo=$ac_try;; |
| 11517 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11519 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11520 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11521 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11522 | rm -f conftest.er1 |
| 11523 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11525 | (exit $ac_status); } && { |
| 11526 | test -z "$ac_c_werror_flag" || |
| 11527 | test ! -s conftest.err |
| 11528 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11529 | ac_hi=-1 ac_mid=-1 |
| 11530 | while :; do |
| 11531 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11532 | /* confdefs.h. */ |
| 11533 | _ACEOF |
| 11534 | cat confdefs.h >>conftest.$ac_ext |
| 11535 | cat >>conftest.$ac_ext <<_ACEOF |
| 11536 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11537 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11538 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11539 | int |
| 11540 | main () |
| 11541 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11542 | 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] | 11543 | test_array [0] = 0 |
| 11544 | |
| 11545 | ; |
| 11546 | return 0; |
| 11547 | } |
| 11548 | _ACEOF |
| 11549 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11550 | if { (ac_try="$ac_compile" |
| 11551 | case "(($ac_try" in |
| 11552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11553 | *) ac_try_echo=$ac_try;; |
| 11554 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11556 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11557 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11558 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11559 | rm -f conftest.er1 |
| 11560 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11562 | (exit $ac_status); } && { |
| 11563 | test -z "$ac_c_werror_flag" || |
| 11564 | test ! -s conftest.err |
| 11565 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11566 | ac_lo=$ac_mid; break |
| 11567 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11568 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11569 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11570 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11571 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11572 | if test $ac_mid -le $ac_hi; then |
| 11573 | ac_lo= ac_hi= |
| 11574 | break |
| 11575 | fi |
| 11576 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11577 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11578 | |
| 11579 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11580 | done |
| 11581 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11582 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11583 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11584 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11585 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11586 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11587 | |
| 11588 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11589 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11590 | |
| 11591 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11592 | # Binary search between lo and hi bounds. |
| 11593 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11594 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11595 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11596 | /* confdefs.h. */ |
| 11597 | _ACEOF |
| 11598 | cat confdefs.h >>conftest.$ac_ext |
| 11599 | cat >>conftest.$ac_ext <<_ACEOF |
| 11600 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11601 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11602 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11603 | int |
| 11604 | main () |
| 11605 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11606 | 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] | 11607 | test_array [0] = 0 |
| 11608 | |
| 11609 | ; |
| 11610 | return 0; |
| 11611 | } |
| 11612 | _ACEOF |
| 11613 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11614 | if { (ac_try="$ac_compile" |
| 11615 | case "(($ac_try" in |
| 11616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11617 | *) ac_try_echo=$ac_try;; |
| 11618 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11619 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11620 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11621 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11622 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11623 | rm -f conftest.er1 |
| 11624 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11626 | (exit $ac_status); } && { |
| 11627 | test -z "$ac_c_werror_flag" || |
| 11628 | test ! -s conftest.err |
| 11629 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11630 | ac_hi=$ac_mid |
| 11631 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11632 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11633 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11634 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11635 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11636 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11637 | |
| 11638 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11639 | done |
| 11640 | case $ac_lo in |
| 11641 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11642 | '') if test "$ac_cv_type_long_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11643 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11644 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11645 | echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11646 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11647 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11648 | else |
| 11649 | ac_cv_sizeof_long_long=0 |
| 11650 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11651 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11652 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11653 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11654 | /* confdefs.h. */ |
| 11655 | _ACEOF |
| 11656 | cat confdefs.h >>conftest.$ac_ext |
| 11657 | cat >>conftest.$ac_ext <<_ACEOF |
| 11658 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11659 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11660 | typedef long long ac__type_sizeof_; |
| 11661 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11662 | 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] | 11663 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11664 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11665 | int |
| 11666 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11667 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11668 | |
| 11669 | FILE *f = fopen ("conftest.val", "w"); |
| 11670 | if (! f) |
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 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11673 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11674 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11675 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11676 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11677 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11678 | } |
| 11679 | else |
| 11680 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11681 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11682 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11683 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11684 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11685 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11686 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11687 | |
| 11688 | ; |
| 11689 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11690 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11691 | _ACEOF |
| 11692 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11693 | if { (ac_try="$ac_link" |
| 11694 | case "(($ac_try" in |
| 11695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11696 | *) ac_try_echo=$ac_try;; |
| 11697 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11699 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11700 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11702 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11703 | { (case "(($ac_try" in |
| 11704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11705 | *) ac_try_echo=$ac_try;; |
| 11706 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11708 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11709 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11711 | (exit $ac_status); }; }; then |
| 11712 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11713 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11714 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11715 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11716 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11717 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11718 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11719 | if test "$ac_cv_type_long_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11720 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11721 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11722 | echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11723 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11724 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11725 | else |
| 11726 | ac_cv_sizeof_long_long=0 |
| 11727 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11728 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11729 | 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] | 11730 | fi |
| 11731 | rm -f conftest.val |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11732 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11733 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 11734 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11735 | |
| 11736 | |
| 11737 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11738 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11739 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11740 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11741 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11742 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11743 | fi |
| 11744 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11745 | { echo "$as_me:$LINENO: checking for long double support" >&5 |
| 11746 | echo $ECHO_N "checking for long double support... $ECHO_C" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11747 | have_long_double=no |
| 11748 | cat >conftest.$ac_ext <<_ACEOF |
| 11749 | /* confdefs.h. */ |
| 11750 | _ACEOF |
| 11751 | cat confdefs.h >>conftest.$ac_ext |
| 11752 | cat >>conftest.$ac_ext <<_ACEOF |
| 11753 | /* end confdefs.h. */ |
| 11754 | |
| 11755 | int |
| 11756 | main () |
| 11757 | { |
| 11758 | long double x; x = (long double)0.; |
| 11759 | ; |
| 11760 | return 0; |
| 11761 | } |
| 11762 | _ACEOF |
| 11763 | rm -f conftest.$ac_objext |
| 11764 | if { (ac_try="$ac_compile" |
| 11765 | case "(($ac_try" in |
| 11766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11767 | *) ac_try_echo=$ac_try;; |
| 11768 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11770 | (eval "$ac_compile") 2>conftest.er1 |
| 11771 | ac_status=$? |
| 11772 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11773 | rm -f conftest.er1 |
| 11774 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11776 | (exit $ac_status); } && { |
| 11777 | test -z "$ac_c_werror_flag" || |
| 11778 | test ! -s conftest.err |
| 11779 | } && test -s conftest.$ac_objext; then |
| 11780 | |
| 11781 | |
| 11782 | cat >>confdefs.h <<\_ACEOF |
| 11783 | #define HAVE_LONG_DOUBLE 1 |
| 11784 | _ACEOF |
| 11785 | |
| 11786 | have_long_double=yes |
| 11787 | |
| 11788 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11789 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11790 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11791 | |
| 11792 | |
| 11793 | fi |
| 11794 | |
| 11795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11796 | { echo "$as_me:$LINENO: result: $have_long_double" >&5 |
| 11797 | echo "${ECHO_T}$have_long_double" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11798 | if test "$have_long_double" = yes ; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11799 | { echo "$as_me:$LINENO: checking for long double" >&5 |
| 11800 | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } |
| 11801 | if test "${ac_cv_type_long_double+set}" = set; then |
| 11802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11803 | else |
| 11804 | cat >conftest.$ac_ext <<_ACEOF |
| 11805 | /* confdefs.h. */ |
| 11806 | _ACEOF |
| 11807 | cat confdefs.h >>conftest.$ac_ext |
| 11808 | cat >>conftest.$ac_ext <<_ACEOF |
| 11809 | /* end confdefs.h. */ |
| 11810 | $ac_includes_default |
| 11811 | typedef long double ac__type_new_; |
| 11812 | int |
| 11813 | main () |
| 11814 | { |
| 11815 | if ((ac__type_new_ *) 0) |
| 11816 | return 0; |
| 11817 | if (sizeof (ac__type_new_)) |
| 11818 | return 0; |
| 11819 | ; |
| 11820 | return 0; |
| 11821 | } |
| 11822 | _ACEOF |
| 11823 | rm -f conftest.$ac_objext |
| 11824 | if { (ac_try="$ac_compile" |
| 11825 | case "(($ac_try" in |
| 11826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11827 | *) ac_try_echo=$ac_try;; |
| 11828 | esac |
| 11829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11830 | (eval "$ac_compile") 2>conftest.er1 |
| 11831 | ac_status=$? |
| 11832 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11833 | rm -f conftest.er1 |
| 11834 | cat conftest.err >&5 |
| 11835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11836 | (exit $ac_status); } && { |
| 11837 | test -z "$ac_c_werror_flag" || |
| 11838 | test ! -s conftest.err |
| 11839 | } && test -s conftest.$ac_objext; then |
| 11840 | ac_cv_type_long_double=yes |
| 11841 | else |
| 11842 | echo "$as_me: failed program was:" >&5 |
| 11843 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11844 | |
| 11845 | ac_cv_type_long_double=no |
| 11846 | fi |
| 11847 | |
| 11848 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11849 | fi |
| 11850 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 |
| 11851 | echo "${ECHO_T}$ac_cv_type_long_double" >&6; } |
| 11852 | |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11853 | # The cast to long int works around a bug in the HP C Compiler |
| 11854 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11855 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11856 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11857 | { echo "$as_me:$LINENO: checking size of long double" >&5 |
| 11858 | echo $ECHO_N "checking size of long double... $ECHO_C" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11859 | if test "${ac_cv_sizeof_long_double+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11861 | else |
| 11862 | if test "$cross_compiling" = yes; then |
| 11863 | # Depending upon the size, compute the lo and hi bounds. |
| 11864 | cat >conftest.$ac_ext <<_ACEOF |
| 11865 | /* confdefs.h. */ |
| 11866 | _ACEOF |
| 11867 | cat confdefs.h >>conftest.$ac_ext |
| 11868 | cat >>conftest.$ac_ext <<_ACEOF |
| 11869 | /* end confdefs.h. */ |
| 11870 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11871 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11872 | int |
| 11873 | main () |
| 11874 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11875 | 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] | 11876 | test_array [0] = 0 |
| 11877 | |
| 11878 | ; |
| 11879 | return 0; |
| 11880 | } |
| 11881 | _ACEOF |
| 11882 | rm -f conftest.$ac_objext |
| 11883 | if { (ac_try="$ac_compile" |
| 11884 | case "(($ac_try" in |
| 11885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11886 | *) ac_try_echo=$ac_try;; |
| 11887 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11889 | (eval "$ac_compile") 2>conftest.er1 |
| 11890 | ac_status=$? |
| 11891 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11892 | rm -f conftest.er1 |
| 11893 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11895 | (exit $ac_status); } && { |
| 11896 | test -z "$ac_c_werror_flag" || |
| 11897 | test ! -s conftest.err |
| 11898 | } && test -s conftest.$ac_objext; then |
| 11899 | ac_lo=0 ac_mid=0 |
| 11900 | while :; do |
| 11901 | cat >conftest.$ac_ext <<_ACEOF |
| 11902 | /* confdefs.h. */ |
| 11903 | _ACEOF |
| 11904 | cat confdefs.h >>conftest.$ac_ext |
| 11905 | cat >>conftest.$ac_ext <<_ACEOF |
| 11906 | /* end confdefs.h. */ |
| 11907 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11908 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11909 | int |
| 11910 | main () |
| 11911 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11912 | 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] | 11913 | test_array [0] = 0 |
| 11914 | |
| 11915 | ; |
| 11916 | return 0; |
| 11917 | } |
| 11918 | _ACEOF |
| 11919 | rm -f conftest.$ac_objext |
| 11920 | if { (ac_try="$ac_compile" |
| 11921 | case "(($ac_try" in |
| 11922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11923 | *) ac_try_echo=$ac_try;; |
| 11924 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11926 | (eval "$ac_compile") 2>conftest.er1 |
| 11927 | ac_status=$? |
| 11928 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11929 | rm -f conftest.er1 |
| 11930 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11932 | (exit $ac_status); } && { |
| 11933 | test -z "$ac_c_werror_flag" || |
| 11934 | test ! -s conftest.err |
| 11935 | } && test -s conftest.$ac_objext; then |
| 11936 | ac_hi=$ac_mid; break |
| 11937 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11938 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11939 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11940 | |
| 11941 | ac_lo=`expr $ac_mid + 1` |
| 11942 | if test $ac_lo -le $ac_mid; then |
| 11943 | ac_lo= ac_hi= |
| 11944 | break |
| 11945 | fi |
| 11946 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 11947 | fi |
| 11948 | |
| 11949 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11950 | done |
| 11951 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11952 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11953 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11954 | |
| 11955 | cat >conftest.$ac_ext <<_ACEOF |
| 11956 | /* confdefs.h. */ |
| 11957 | _ACEOF |
| 11958 | cat confdefs.h >>conftest.$ac_ext |
| 11959 | cat >>conftest.$ac_ext <<_ACEOF |
| 11960 | /* end confdefs.h. */ |
| 11961 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11962 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11963 | int |
| 11964 | main () |
| 11965 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11966 | 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] | 11967 | test_array [0] = 0 |
| 11968 | |
| 11969 | ; |
| 11970 | return 0; |
| 11971 | } |
| 11972 | _ACEOF |
| 11973 | rm -f conftest.$ac_objext |
| 11974 | if { (ac_try="$ac_compile" |
| 11975 | case "(($ac_try" in |
| 11976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11977 | *) ac_try_echo=$ac_try;; |
| 11978 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11980 | (eval "$ac_compile") 2>conftest.er1 |
| 11981 | ac_status=$? |
| 11982 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11983 | rm -f conftest.er1 |
| 11984 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11986 | (exit $ac_status); } && { |
| 11987 | test -z "$ac_c_werror_flag" || |
| 11988 | test ! -s conftest.err |
| 11989 | } && test -s conftest.$ac_objext; then |
| 11990 | ac_hi=-1 ac_mid=-1 |
| 11991 | while :; do |
| 11992 | cat >conftest.$ac_ext <<_ACEOF |
| 11993 | /* confdefs.h. */ |
| 11994 | _ACEOF |
| 11995 | cat confdefs.h >>conftest.$ac_ext |
| 11996 | cat >>conftest.$ac_ext <<_ACEOF |
| 11997 | /* end confdefs.h. */ |
| 11998 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11999 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12000 | int |
| 12001 | main () |
| 12002 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12003 | 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] | 12004 | test_array [0] = 0 |
| 12005 | |
| 12006 | ; |
| 12007 | return 0; |
| 12008 | } |
| 12009 | _ACEOF |
| 12010 | rm -f conftest.$ac_objext |
| 12011 | if { (ac_try="$ac_compile" |
| 12012 | case "(($ac_try" in |
| 12013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12014 | *) ac_try_echo=$ac_try;; |
| 12015 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12017 | (eval "$ac_compile") 2>conftest.er1 |
| 12018 | ac_status=$? |
| 12019 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12020 | rm -f conftest.er1 |
| 12021 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12023 | (exit $ac_status); } && { |
| 12024 | test -z "$ac_c_werror_flag" || |
| 12025 | test ! -s conftest.err |
| 12026 | } && test -s conftest.$ac_objext; then |
| 12027 | ac_lo=$ac_mid; break |
| 12028 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12029 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12030 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12031 | |
| 12032 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12033 | if test $ac_mid -le $ac_hi; then |
| 12034 | ac_lo= ac_hi= |
| 12035 | break |
| 12036 | fi |
| 12037 | ac_mid=`expr 2 '*' $ac_mid` |
| 12038 | fi |
| 12039 | |
| 12040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12041 | done |
| 12042 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12043 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12044 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12045 | |
| 12046 | ac_lo= ac_hi= |
| 12047 | fi |
| 12048 | |
| 12049 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12050 | fi |
| 12051 | |
| 12052 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12053 | # Binary search between lo and hi bounds. |
| 12054 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12055 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12056 | cat >conftest.$ac_ext <<_ACEOF |
| 12057 | /* confdefs.h. */ |
| 12058 | _ACEOF |
| 12059 | cat confdefs.h >>conftest.$ac_ext |
| 12060 | cat >>conftest.$ac_ext <<_ACEOF |
| 12061 | /* end confdefs.h. */ |
| 12062 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12063 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12064 | int |
| 12065 | main () |
| 12066 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12067 | 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] | 12068 | test_array [0] = 0 |
| 12069 | |
| 12070 | ; |
| 12071 | return 0; |
| 12072 | } |
| 12073 | _ACEOF |
| 12074 | rm -f conftest.$ac_objext |
| 12075 | if { (ac_try="$ac_compile" |
| 12076 | case "(($ac_try" in |
| 12077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12078 | *) ac_try_echo=$ac_try;; |
| 12079 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12080 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12081 | (eval "$ac_compile") 2>conftest.er1 |
| 12082 | ac_status=$? |
| 12083 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12084 | rm -f conftest.er1 |
| 12085 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12087 | (exit $ac_status); } && { |
| 12088 | test -z "$ac_c_werror_flag" || |
| 12089 | test ! -s conftest.err |
| 12090 | } && test -s conftest.$ac_objext; then |
| 12091 | ac_hi=$ac_mid |
| 12092 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12093 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12094 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12095 | |
| 12096 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 12097 | fi |
| 12098 | |
| 12099 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12100 | done |
| 12101 | case $ac_lo in |
| 12102 | ?*) ac_cv_sizeof_long_double=$ac_lo;; |
| 12103 | '') if test "$ac_cv_type_long_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12104 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12105 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12106 | echo "$as_me: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12107 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12108 | { (exit 77); exit 77; }; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12109 | else |
| 12110 | ac_cv_sizeof_long_double=0 |
| 12111 | fi ;; |
| 12112 | esac |
| 12113 | else |
| 12114 | cat >conftest.$ac_ext <<_ACEOF |
| 12115 | /* confdefs.h. */ |
| 12116 | _ACEOF |
| 12117 | cat confdefs.h >>conftest.$ac_ext |
| 12118 | cat >>conftest.$ac_ext <<_ACEOF |
| 12119 | /* end confdefs.h. */ |
| 12120 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12121 | typedef long double ac__type_sizeof_; |
| 12122 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12123 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12124 | #include <stdio.h> |
| 12125 | #include <stdlib.h> |
| 12126 | int |
| 12127 | main () |
| 12128 | { |
| 12129 | |
| 12130 | FILE *f = fopen ("conftest.val", "w"); |
| 12131 | if (! f) |
| 12132 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12133 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12134 | { |
| 12135 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12136 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12137 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12138 | fprintf (f, "%ld\n", i); |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12139 | } |
| 12140 | else |
| 12141 | { |
| 12142 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12143 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12144 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12145 | fprintf (f, "%lu\n", i); |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12146 | } |
| 12147 | return ferror (f) || fclose (f) != 0; |
| 12148 | |
| 12149 | ; |
| 12150 | return 0; |
| 12151 | } |
| 12152 | _ACEOF |
| 12153 | rm -f conftest$ac_exeext |
| 12154 | if { (ac_try="$ac_link" |
| 12155 | case "(($ac_try" in |
| 12156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12157 | *) ac_try_echo=$ac_try;; |
| 12158 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12160 | (eval "$ac_link") 2>&5 |
| 12161 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12163 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12164 | { (case "(($ac_try" in |
| 12165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12166 | *) ac_try_echo=$ac_try;; |
| 12167 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12168 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12169 | (eval "$ac_try") 2>&5 |
| 12170 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12172 | (exit $ac_status); }; }; then |
| 12173 | ac_cv_sizeof_long_double=`cat conftest.val` |
| 12174 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12175 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12176 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12177 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12178 | |
| 12179 | ( exit $ac_status ) |
| 12180 | if test "$ac_cv_type_long_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12181 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12182 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12183 | echo "$as_me: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12184 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12185 | { (exit 77); exit 77; }; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12186 | else |
| 12187 | ac_cv_sizeof_long_double=0 |
| 12188 | fi |
| 12189 | fi |
| 12190 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 12191 | fi |
| 12192 | rm -f conftest.val |
| 12193 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12194 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5 |
| 12195 | echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12196 | |
| 12197 | |
| 12198 | |
| 12199 | cat >>confdefs.h <<_ACEOF |
| 12200 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double |
| 12201 | _ACEOF |
| 12202 | |
| 12203 | |
| 12204 | fi |
| 12205 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12206 | { echo "$as_me:$LINENO: checking for _Bool support" >&5 |
| 12207 | echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12208 | have_c99_bool=no |
| 12209 | cat >conftest.$ac_ext <<_ACEOF |
| 12210 | /* confdefs.h. */ |
| 12211 | _ACEOF |
| 12212 | cat confdefs.h >>conftest.$ac_ext |
| 12213 | cat >>conftest.$ac_ext <<_ACEOF |
| 12214 | /* end confdefs.h. */ |
| 12215 | |
| 12216 | int |
| 12217 | main () |
| 12218 | { |
| 12219 | _Bool x; x = (_Bool)0; |
| 12220 | ; |
| 12221 | return 0; |
| 12222 | } |
| 12223 | _ACEOF |
| 12224 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12225 | if { (ac_try="$ac_compile" |
| 12226 | case "(($ac_try" in |
| 12227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12228 | *) ac_try_echo=$ac_try;; |
| 12229 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12231 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12232 | ac_status=$? |
| 12233 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12234 | rm -f conftest.er1 |
| 12235 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12237 | (exit $ac_status); } && { |
| 12238 | test -z "$ac_c_werror_flag" || |
| 12239 | test ! -s conftest.err |
| 12240 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12241 | |
| 12242 | |
| 12243 | cat >>confdefs.h <<\_ACEOF |
| 12244 | #define HAVE_C99_BOOL 1 |
| 12245 | _ACEOF |
| 12246 | |
| 12247 | have_c99_bool=yes |
| 12248 | |
| 12249 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12250 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12251 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12252 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12253 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12254 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12255 | |
| 12256 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12257 | { echo "$as_me:$LINENO: result: $have_c99_bool" >&5 |
| 12258 | echo "${ECHO_T}$have_c99_bool" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12259 | if test "$have_c99_bool" = yes ; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12260 | { echo "$as_me:$LINENO: checking for _Bool" >&5 |
| 12261 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; } |
| 12262 | if test "${ac_cv_type__Bool+set}" = set; then |
| 12263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12264 | else |
| 12265 | cat >conftest.$ac_ext <<_ACEOF |
| 12266 | /* confdefs.h. */ |
| 12267 | _ACEOF |
| 12268 | cat confdefs.h >>conftest.$ac_ext |
| 12269 | cat >>conftest.$ac_ext <<_ACEOF |
| 12270 | /* end confdefs.h. */ |
| 12271 | $ac_includes_default |
| 12272 | typedef _Bool ac__type_new_; |
| 12273 | int |
| 12274 | main () |
| 12275 | { |
| 12276 | if ((ac__type_new_ *) 0) |
| 12277 | return 0; |
| 12278 | if (sizeof (ac__type_new_)) |
| 12279 | return 0; |
| 12280 | ; |
| 12281 | return 0; |
| 12282 | } |
| 12283 | _ACEOF |
| 12284 | rm -f conftest.$ac_objext |
| 12285 | if { (ac_try="$ac_compile" |
| 12286 | case "(($ac_try" in |
| 12287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12288 | *) ac_try_echo=$ac_try;; |
| 12289 | esac |
| 12290 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12291 | (eval "$ac_compile") 2>conftest.er1 |
| 12292 | ac_status=$? |
| 12293 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12294 | rm -f conftest.er1 |
| 12295 | cat conftest.err >&5 |
| 12296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12297 | (exit $ac_status); } && { |
| 12298 | test -z "$ac_c_werror_flag" || |
| 12299 | test ! -s conftest.err |
| 12300 | } && test -s conftest.$ac_objext; then |
| 12301 | ac_cv_type__Bool=yes |
| 12302 | else |
| 12303 | echo "$as_me: failed program was:" >&5 |
| 12304 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12305 | |
| 12306 | ac_cv_type__Bool=no |
| 12307 | fi |
| 12308 | |
| 12309 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12310 | fi |
| 12311 | { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
| 12312 | echo "${ECHO_T}$ac_cv_type__Bool" >&6; } |
| 12313 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12314 | # The cast to long int works around a bug in the HP C Compiler |
| 12315 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12316 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12317 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12318 | { echo "$as_me:$LINENO: checking size of _Bool" >&5 |
| 12319 | echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12320 | if test "${ac_cv_sizeof__Bool+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12322 | else |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12323 | if test "$cross_compiling" = yes; then |
| 12324 | # Depending upon the size, compute the lo and hi bounds. |
| 12325 | cat >conftest.$ac_ext <<_ACEOF |
| 12326 | /* confdefs.h. */ |
| 12327 | _ACEOF |
| 12328 | cat confdefs.h >>conftest.$ac_ext |
| 12329 | cat >>conftest.$ac_ext <<_ACEOF |
| 12330 | /* end confdefs.h. */ |
| 12331 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12332 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12333 | int |
| 12334 | main () |
| 12335 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12336 | 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] | 12337 | test_array [0] = 0 |
| 12338 | |
| 12339 | ; |
| 12340 | return 0; |
| 12341 | } |
| 12342 | _ACEOF |
| 12343 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12344 | if { (ac_try="$ac_compile" |
| 12345 | case "(($ac_try" in |
| 12346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12347 | *) ac_try_echo=$ac_try;; |
| 12348 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12350 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12351 | ac_status=$? |
| 12352 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12353 | rm -f conftest.er1 |
| 12354 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12356 | (exit $ac_status); } && { |
| 12357 | test -z "$ac_c_werror_flag" || |
| 12358 | test ! -s conftest.err |
| 12359 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12360 | ac_lo=0 ac_mid=0 |
| 12361 | while :; do |
| 12362 | cat >conftest.$ac_ext <<_ACEOF |
| 12363 | /* confdefs.h. */ |
| 12364 | _ACEOF |
| 12365 | cat confdefs.h >>conftest.$ac_ext |
| 12366 | cat >>conftest.$ac_ext <<_ACEOF |
| 12367 | /* end confdefs.h. */ |
| 12368 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12369 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12370 | int |
| 12371 | main () |
| 12372 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12373 | 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] | 12374 | test_array [0] = 0 |
| 12375 | |
| 12376 | ; |
| 12377 | return 0; |
| 12378 | } |
| 12379 | _ACEOF |
| 12380 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12381 | if { (ac_try="$ac_compile" |
| 12382 | case "(($ac_try" in |
| 12383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12384 | *) ac_try_echo=$ac_try;; |
| 12385 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12387 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12388 | ac_status=$? |
| 12389 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12390 | rm -f conftest.er1 |
| 12391 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12393 | (exit $ac_status); } && { |
| 12394 | test -z "$ac_c_werror_flag" || |
| 12395 | test ! -s conftest.err |
| 12396 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12397 | ac_hi=$ac_mid; break |
| 12398 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12399 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12400 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12401 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12402 | ac_lo=`expr $ac_mid + 1` |
| 12403 | if test $ac_lo -le $ac_mid; then |
| 12404 | ac_lo= ac_hi= |
| 12405 | break |
| 12406 | fi |
| 12407 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12408 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12409 | |
| 12410 | 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] | 12411 | done |
| 12412 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12413 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12414 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12415 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12416 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12417 | /* confdefs.h. */ |
| 12418 | _ACEOF |
| 12419 | cat confdefs.h >>conftest.$ac_ext |
| 12420 | cat >>conftest.$ac_ext <<_ACEOF |
| 12421 | /* end confdefs.h. */ |
| 12422 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12423 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12424 | int |
| 12425 | main () |
| 12426 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12427 | 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] | 12428 | test_array [0] = 0 |
| 12429 | |
| 12430 | ; |
| 12431 | return 0; |
| 12432 | } |
| 12433 | _ACEOF |
| 12434 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12435 | if { (ac_try="$ac_compile" |
| 12436 | case "(($ac_try" in |
| 12437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12438 | *) ac_try_echo=$ac_try;; |
| 12439 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12441 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12442 | ac_status=$? |
| 12443 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12444 | rm -f conftest.er1 |
| 12445 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12447 | (exit $ac_status); } && { |
| 12448 | test -z "$ac_c_werror_flag" || |
| 12449 | test ! -s conftest.err |
| 12450 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12451 | ac_hi=-1 ac_mid=-1 |
| 12452 | while :; do |
| 12453 | cat >conftest.$ac_ext <<_ACEOF |
| 12454 | /* confdefs.h. */ |
| 12455 | _ACEOF |
| 12456 | cat confdefs.h >>conftest.$ac_ext |
| 12457 | cat >>conftest.$ac_ext <<_ACEOF |
| 12458 | /* end confdefs.h. */ |
| 12459 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12460 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12461 | int |
| 12462 | main () |
| 12463 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12464 | 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] | 12465 | test_array [0] = 0 |
| 12466 | |
| 12467 | ; |
| 12468 | return 0; |
| 12469 | } |
| 12470 | _ACEOF |
| 12471 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12472 | if { (ac_try="$ac_compile" |
| 12473 | case "(($ac_try" in |
| 12474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12475 | *) ac_try_echo=$ac_try;; |
| 12476 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12478 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12479 | ac_status=$? |
| 12480 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12481 | rm -f conftest.er1 |
| 12482 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12484 | (exit $ac_status); } && { |
| 12485 | test -z "$ac_c_werror_flag" || |
| 12486 | test ! -s conftest.err |
| 12487 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12488 | ac_lo=$ac_mid; break |
| 12489 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12490 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12491 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12492 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12493 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12494 | if test $ac_mid -le $ac_hi; then |
| 12495 | ac_lo= ac_hi= |
| 12496 | break |
| 12497 | fi |
| 12498 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12499 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12500 | |
| 12501 | 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] | 12502 | done |
| 12503 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12504 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12505 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12506 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12507 | ac_lo= ac_hi= |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12508 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12509 | |
| 12510 | 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] | 12511 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12512 | |
| 12513 | 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] | 12514 | # Binary search between lo and hi bounds. |
| 12515 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12516 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12517 | cat >conftest.$ac_ext <<_ACEOF |
| 12518 | /* confdefs.h. */ |
| 12519 | _ACEOF |
| 12520 | cat confdefs.h >>conftest.$ac_ext |
| 12521 | cat >>conftest.$ac_ext <<_ACEOF |
| 12522 | /* end confdefs.h. */ |
| 12523 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12524 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12525 | int |
| 12526 | main () |
| 12527 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12528 | 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] | 12529 | test_array [0] = 0 |
| 12530 | |
| 12531 | ; |
| 12532 | return 0; |
| 12533 | } |
| 12534 | _ACEOF |
| 12535 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12536 | if { (ac_try="$ac_compile" |
| 12537 | case "(($ac_try" in |
| 12538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12539 | *) ac_try_echo=$ac_try;; |
| 12540 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12542 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12543 | ac_status=$? |
| 12544 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12545 | rm -f conftest.er1 |
| 12546 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12548 | (exit $ac_status); } && { |
| 12549 | test -z "$ac_c_werror_flag" || |
| 12550 | test ! -s conftest.err |
| 12551 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12552 | ac_hi=$ac_mid |
| 12553 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12554 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12555 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12556 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12557 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12558 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12559 | |
| 12560 | 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] | 12561 | done |
| 12562 | case $ac_lo in |
| 12563 | ?*) ac_cv_sizeof__Bool=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12564 | '') if test "$ac_cv_type__Bool" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12565 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12566 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12567 | echo "$as_me: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12568 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12569 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12570 | else |
| 12571 | ac_cv_sizeof__Bool=0 |
| 12572 | fi ;; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12573 | esac |
| 12574 | else |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12575 | cat >conftest.$ac_ext <<_ACEOF |
| 12576 | /* confdefs.h. */ |
| 12577 | _ACEOF |
| 12578 | cat confdefs.h >>conftest.$ac_ext |
| 12579 | cat >>conftest.$ac_ext <<_ACEOF |
| 12580 | /* end confdefs.h. */ |
| 12581 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12582 | typedef _Bool ac__type_sizeof_; |
| 12583 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12584 | 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] | 12585 | #include <stdio.h> |
| 12586 | #include <stdlib.h> |
| 12587 | int |
| 12588 | main () |
| 12589 | { |
| 12590 | |
| 12591 | FILE *f = fopen ("conftest.val", "w"); |
| 12592 | if (! f) |
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 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12595 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12596 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12597 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12598 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12599 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12600 | } |
| 12601 | else |
| 12602 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12603 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12604 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12605 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12606 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12607 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12608 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12609 | |
| 12610 | ; |
| 12611 | return 0; |
| 12612 | } |
| 12613 | _ACEOF |
| 12614 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12615 | if { (ac_try="$ac_link" |
| 12616 | case "(($ac_try" in |
| 12617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12618 | *) ac_try_echo=$ac_try;; |
| 12619 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12620 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12621 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12622 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12624 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12625 | { (case "(($ac_try" in |
| 12626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12627 | *) ac_try_echo=$ac_try;; |
| 12628 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12630 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12631 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12633 | (exit $ac_status); }; }; then |
| 12634 | ac_cv_sizeof__Bool=`cat conftest.val` |
| 12635 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12636 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12637 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12638 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12639 | |
| 12640 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12641 | if test "$ac_cv_type__Bool" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12642 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12643 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12644 | echo "$as_me: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12645 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12646 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12647 | else |
| 12648 | ac_cv_sizeof__Bool=0 |
| 12649 | fi |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12650 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12651 | 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] | 12652 | fi |
| 12653 | rm -f conftest.val |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12654 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12655 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5 |
| 12656 | echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12657 | |
| 12658 | |
| 12659 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12660 | cat >>confdefs.h <<_ACEOF |
| 12661 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool |
| 12662 | _ACEOF |
| 12663 | |
| 12664 | |
| 12665 | fi |
| 12666 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12667 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 12668 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12669 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12671 | else |
| 12672 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12673 | /* confdefs.h. */ |
| 12674 | _ACEOF |
| 12675 | cat confdefs.h >>conftest.$ac_ext |
| 12676 | cat >>conftest.$ac_ext <<_ACEOF |
| 12677 | /* end confdefs.h. */ |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 12678 | #ifdef HAVE_STDINT_H |
| 12679 | #include <stdint.h> |
| 12680 | #endif |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12681 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12682 | typedef uintptr_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12683 | int |
| 12684 | main () |
| 12685 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12686 | if ((ac__type_new_ *) 0) |
| 12687 | return 0; |
| 12688 | if (sizeof (ac__type_new_)) |
| 12689 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12690 | ; |
| 12691 | return 0; |
| 12692 | } |
| 12693 | _ACEOF |
| 12694 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12695 | if { (ac_try="$ac_compile" |
| 12696 | case "(($ac_try" in |
| 12697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12698 | *) ac_try_echo=$ac_try;; |
| 12699 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12701 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12702 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12703 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12704 | rm -f conftest.er1 |
| 12705 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12707 | (exit $ac_status); } && { |
| 12708 | test -z "$ac_c_werror_flag" || |
| 12709 | test ! -s conftest.err |
| 12710 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12711 | ac_cv_type_uintptr_t=yes |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12712 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12713 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12714 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12715 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12716 | ac_cv_type_uintptr_t=no |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12717 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12718 | |
| 12719 | 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] | 12720 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12721 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 12722 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } |
| 12723 | if test $ac_cv_type_uintptr_t = yes; then |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12724 | |
| 12725 | cat >>confdefs.h <<_ACEOF |
| 12726 | #define HAVE_UINTPTR_T 1 |
| 12727 | _ACEOF |
| 12728 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12729 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 12730 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } |
| 12731 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 12732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12733 | else |
| 12734 | cat >conftest.$ac_ext <<_ACEOF |
| 12735 | /* confdefs.h. */ |
| 12736 | _ACEOF |
| 12737 | cat confdefs.h >>conftest.$ac_ext |
| 12738 | cat >>conftest.$ac_ext <<_ACEOF |
| 12739 | /* end confdefs.h. */ |
| 12740 | $ac_includes_default |
| 12741 | typedef uintptr_t ac__type_new_; |
| 12742 | int |
| 12743 | main () |
| 12744 | { |
| 12745 | if ((ac__type_new_ *) 0) |
| 12746 | return 0; |
| 12747 | if (sizeof (ac__type_new_)) |
| 12748 | return 0; |
| 12749 | ; |
| 12750 | return 0; |
| 12751 | } |
| 12752 | _ACEOF |
| 12753 | rm -f conftest.$ac_objext |
| 12754 | if { (ac_try="$ac_compile" |
| 12755 | case "(($ac_try" in |
| 12756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12757 | *) ac_try_echo=$ac_try;; |
| 12758 | esac |
| 12759 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12760 | (eval "$ac_compile") 2>conftest.er1 |
| 12761 | ac_status=$? |
| 12762 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12763 | rm -f conftest.er1 |
| 12764 | cat conftest.err >&5 |
| 12765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12766 | (exit $ac_status); } && { |
| 12767 | test -z "$ac_c_werror_flag" || |
| 12768 | test ! -s conftest.err |
| 12769 | } && test -s conftest.$ac_objext; then |
| 12770 | ac_cv_type_uintptr_t=yes |
| 12771 | else |
| 12772 | echo "$as_me: failed program was:" >&5 |
| 12773 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12774 | |
| 12775 | ac_cv_type_uintptr_t=no |
| 12776 | fi |
| 12777 | |
| 12778 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12779 | fi |
| 12780 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 12781 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } |
| 12782 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12783 | # The cast to long int works around a bug in the HP C Compiler |
| 12784 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12785 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12786 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12787 | { echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 12788 | 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] | 12789 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12791 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12792 | if test "$cross_compiling" = yes; then |
| 12793 | # Depending upon the size, compute the lo and hi bounds. |
| 12794 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12795 | /* confdefs.h. */ |
| 12796 | _ACEOF |
| 12797 | cat confdefs.h >>conftest.$ac_ext |
| 12798 | cat >>conftest.$ac_ext <<_ACEOF |
| 12799 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12800 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12801 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12802 | int |
| 12803 | main () |
| 12804 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12805 | 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] | 12806 | test_array [0] = 0 |
| 12807 | |
| 12808 | ; |
| 12809 | return 0; |
| 12810 | } |
| 12811 | _ACEOF |
| 12812 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12813 | if { (ac_try="$ac_compile" |
| 12814 | case "(($ac_try" in |
| 12815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12816 | *) ac_try_echo=$ac_try;; |
| 12817 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12819 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12820 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12821 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12822 | rm -f conftest.er1 |
| 12823 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12825 | (exit $ac_status); } && { |
| 12826 | test -z "$ac_c_werror_flag" || |
| 12827 | test ! -s conftest.err |
| 12828 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12829 | ac_lo=0 ac_mid=0 |
| 12830 | while :; do |
| 12831 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12832 | /* confdefs.h. */ |
| 12833 | _ACEOF |
| 12834 | cat confdefs.h >>conftest.$ac_ext |
| 12835 | cat >>conftest.$ac_ext <<_ACEOF |
| 12836 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12837 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12838 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12839 | int |
| 12840 | main () |
| 12841 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12842 | 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] | 12843 | test_array [0] = 0 |
| 12844 | |
| 12845 | ; |
| 12846 | return 0; |
| 12847 | } |
| 12848 | _ACEOF |
| 12849 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12850 | if { (ac_try="$ac_compile" |
| 12851 | case "(($ac_try" in |
| 12852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12853 | *) ac_try_echo=$ac_try;; |
| 12854 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12856 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12857 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12858 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12859 | rm -f conftest.er1 |
| 12860 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12862 | (exit $ac_status); } && { |
| 12863 | test -z "$ac_c_werror_flag" || |
| 12864 | test ! -s conftest.err |
| 12865 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12866 | ac_hi=$ac_mid; break |
| 12867 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12868 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12869 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12870 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12871 | ac_lo=`expr $ac_mid + 1` |
| 12872 | if test $ac_lo -le $ac_mid; then |
| 12873 | ac_lo= ac_hi= |
| 12874 | break |
| 12875 | fi |
| 12876 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12877 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12878 | |
| 12879 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12880 | done |
| 12881 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12882 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12883 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12884 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12885 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12886 | /* confdefs.h. */ |
| 12887 | _ACEOF |
| 12888 | cat confdefs.h >>conftest.$ac_ext |
| 12889 | cat >>conftest.$ac_ext <<_ACEOF |
| 12890 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12891 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12892 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12893 | int |
| 12894 | main () |
| 12895 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12896 | 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] | 12897 | test_array [0] = 0 |
| 12898 | |
| 12899 | ; |
| 12900 | return 0; |
| 12901 | } |
| 12902 | _ACEOF |
| 12903 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12904 | if { (ac_try="$ac_compile" |
| 12905 | case "(($ac_try" in |
| 12906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12907 | *) ac_try_echo=$ac_try;; |
| 12908 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12910 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12911 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12912 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12913 | rm -f conftest.er1 |
| 12914 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12916 | (exit $ac_status); } && { |
| 12917 | test -z "$ac_c_werror_flag" || |
| 12918 | test ! -s conftest.err |
| 12919 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12920 | ac_hi=-1 ac_mid=-1 |
| 12921 | while :; do |
| 12922 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12923 | /* confdefs.h. */ |
| 12924 | _ACEOF |
| 12925 | cat confdefs.h >>conftest.$ac_ext |
| 12926 | cat >>conftest.$ac_ext <<_ACEOF |
| 12927 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12928 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12929 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12930 | int |
| 12931 | main () |
| 12932 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12933 | 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] | 12934 | test_array [0] = 0 |
| 12935 | |
| 12936 | ; |
| 12937 | return 0; |
| 12938 | } |
| 12939 | _ACEOF |
| 12940 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12941 | if { (ac_try="$ac_compile" |
| 12942 | case "(($ac_try" in |
| 12943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12944 | *) ac_try_echo=$ac_try;; |
| 12945 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12947 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12948 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12949 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12950 | rm -f conftest.er1 |
| 12951 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12953 | (exit $ac_status); } && { |
| 12954 | test -z "$ac_c_werror_flag" || |
| 12955 | test ! -s conftest.err |
| 12956 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12957 | ac_lo=$ac_mid; break |
| 12958 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12959 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12960 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12961 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12962 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12963 | if test $ac_mid -le $ac_hi; then |
| 12964 | ac_lo= ac_hi= |
| 12965 | break |
| 12966 | fi |
| 12967 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12968 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12969 | |
| 12970 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12971 | done |
| 12972 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12973 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12974 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12975 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12976 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12977 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12978 | |
| 12979 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12980 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12981 | |
| 12982 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12983 | # Binary search between lo and hi bounds. |
| 12984 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12985 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12986 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12987 | /* confdefs.h. */ |
| 12988 | _ACEOF |
| 12989 | cat confdefs.h >>conftest.$ac_ext |
| 12990 | cat >>conftest.$ac_ext <<_ACEOF |
| 12991 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12992 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12993 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12994 | int |
| 12995 | main () |
| 12996 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12997 | 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] | 12998 | test_array [0] = 0 |
| 12999 | |
| 13000 | ; |
| 13001 | return 0; |
| 13002 | } |
| 13003 | _ACEOF |
| 13004 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13005 | if { (ac_try="$ac_compile" |
| 13006 | case "(($ac_try" in |
| 13007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13008 | *) ac_try_echo=$ac_try;; |
| 13009 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13011 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13012 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13013 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13014 | rm -f conftest.er1 |
| 13015 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13017 | (exit $ac_status); } && { |
| 13018 | test -z "$ac_c_werror_flag" || |
| 13019 | test ! -s conftest.err |
| 13020 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13021 | ac_hi=$ac_mid |
| 13022 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13023 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13024 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13025 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13026 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13027 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13028 | |
| 13029 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13030 | done |
| 13031 | case $ac_lo in |
| 13032 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13033 | '') if test "$ac_cv_type_uintptr_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13034 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13035 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13036 | echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13037 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13038 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13039 | else |
| 13040 | ac_cv_sizeof_uintptr_t=0 |
| 13041 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13042 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13043 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13044 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13045 | /* confdefs.h. */ |
| 13046 | _ACEOF |
| 13047 | cat confdefs.h >>conftest.$ac_ext |
| 13048 | cat >>conftest.$ac_ext <<_ACEOF |
| 13049 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13050 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13051 | typedef uintptr_t ac__type_sizeof_; |
| 13052 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13053 | 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] | 13054 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13055 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13056 | int |
| 13057 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13058 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13059 | |
| 13060 | FILE *f = fopen ("conftest.val", "w"); |
| 13061 | if (! f) |
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 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13064 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13065 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13066 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13067 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13068 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13069 | } |
| 13070 | else |
| 13071 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13072 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13073 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13074 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13075 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13076 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13077 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13078 | |
| 13079 | ; |
| 13080 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13081 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13082 | _ACEOF |
| 13083 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13084 | if { (ac_try="$ac_link" |
| 13085 | case "(($ac_try" in |
| 13086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13087 | *) ac_try_echo=$ac_try;; |
| 13088 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13090 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13091 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13093 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13094 | { (case "(($ac_try" in |
| 13095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13096 | *) ac_try_echo=$ac_try;; |
| 13097 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13099 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13100 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13102 | (exit $ac_status); }; }; then |
| 13103 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13104 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13105 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13106 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13107 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13108 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13109 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13110 | if test "$ac_cv_type_uintptr_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13111 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13112 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13113 | echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13114 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13115 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13116 | else |
| 13117 | ac_cv_sizeof_uintptr_t=0 |
| 13118 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13119 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13120 | 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] | 13121 | fi |
| 13122 | rm -f conftest.val |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13123 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13124 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 13125 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13126 | |
| 13127 | |
| 13128 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13129 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13130 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13131 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13132 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13133 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13134 | fi |
| 13135 | |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 13136 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13137 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 13138 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
| 13139 | if test "${ac_cv_type_off_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13141 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13142 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13143 | /* confdefs.h. */ |
| 13144 | _ACEOF |
| 13145 | cat confdefs.h >>conftest.$ac_ext |
| 13146 | cat >>conftest.$ac_ext <<_ACEOF |
| 13147 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13148 | |
| 13149 | #ifdef HAVE_SYS_TYPES_H |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13150 | #include <sys/types.h> |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13151 | #endif |
| 13152 | |
| 13153 | |
| 13154 | typedef off_t ac__type_new_; |
| 13155 | int |
| 13156 | main () |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13157 | { |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13158 | if ((ac__type_new_ *) 0) |
| 13159 | return 0; |
| 13160 | if (sizeof (ac__type_new_)) |
| 13161 | return 0; |
| 13162 | ; |
| 13163 | return 0; |
| 13164 | } |
| 13165 | _ACEOF |
| 13166 | rm -f conftest.$ac_objext |
| 13167 | if { (ac_try="$ac_compile" |
| 13168 | case "(($ac_try" in |
| 13169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13170 | *) ac_try_echo=$ac_try;; |
| 13171 | esac |
| 13172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13173 | (eval "$ac_compile") 2>conftest.er1 |
| 13174 | ac_status=$? |
| 13175 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13176 | rm -f conftest.er1 |
| 13177 | cat conftest.err >&5 |
| 13178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13179 | (exit $ac_status); } && { |
| 13180 | test -z "$ac_c_werror_flag" || |
| 13181 | test ! -s conftest.err |
| 13182 | } && test -s conftest.$ac_objext; then |
| 13183 | ac_cv_type_off_t=yes |
| 13184 | else |
| 13185 | echo "$as_me: failed program was:" >&5 |
| 13186 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13187 | |
| 13188 | ac_cv_type_off_t=no |
| 13189 | fi |
| 13190 | |
| 13191 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13192 | fi |
| 13193 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 13194 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
| 13195 | |
| 13196 | # The cast to long int works around a bug in the HP C Compiler |
| 13197 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13198 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13199 | # This bug is HP SR number 8606223364. |
| 13200 | { echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 13201 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; } |
| 13202 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 13203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13204 | else |
| 13205 | if test "$cross_compiling" = yes; then |
| 13206 | # Depending upon the size, compute the lo and hi bounds. |
| 13207 | cat >conftest.$ac_ext <<_ACEOF |
| 13208 | /* confdefs.h. */ |
| 13209 | _ACEOF |
| 13210 | cat confdefs.h >>conftest.$ac_ext |
| 13211 | cat >>conftest.$ac_ext <<_ACEOF |
| 13212 | /* end confdefs.h. */ |
| 13213 | |
| 13214 | #ifdef HAVE_SYS_TYPES_H |
| 13215 | #include <sys/types.h> |
| 13216 | #endif |
| 13217 | |
| 13218 | |
| 13219 | typedef off_t ac__type_sizeof_; |
| 13220 | int |
| 13221 | main () |
| 13222 | { |
| 13223 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 13224 | test_array [0] = 0 |
| 13225 | |
| 13226 | ; |
| 13227 | return 0; |
| 13228 | } |
| 13229 | _ACEOF |
| 13230 | rm -f conftest.$ac_objext |
| 13231 | if { (ac_try="$ac_compile" |
| 13232 | case "(($ac_try" in |
| 13233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13234 | *) ac_try_echo=$ac_try;; |
| 13235 | esac |
| 13236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13237 | (eval "$ac_compile") 2>conftest.er1 |
| 13238 | ac_status=$? |
| 13239 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13240 | rm -f conftest.er1 |
| 13241 | cat conftest.err >&5 |
| 13242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13243 | (exit $ac_status); } && { |
| 13244 | test -z "$ac_c_werror_flag" || |
| 13245 | test ! -s conftest.err |
| 13246 | } && test -s conftest.$ac_objext; then |
| 13247 | ac_lo=0 ac_mid=0 |
| 13248 | while :; do |
| 13249 | cat >conftest.$ac_ext <<_ACEOF |
| 13250 | /* confdefs.h. */ |
| 13251 | _ACEOF |
| 13252 | cat confdefs.h >>conftest.$ac_ext |
| 13253 | cat >>conftest.$ac_ext <<_ACEOF |
| 13254 | /* end confdefs.h. */ |
| 13255 | |
| 13256 | #ifdef HAVE_SYS_TYPES_H |
| 13257 | #include <sys/types.h> |
| 13258 | #endif |
| 13259 | |
| 13260 | |
| 13261 | typedef off_t ac__type_sizeof_; |
| 13262 | int |
| 13263 | main () |
| 13264 | { |
| 13265 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13266 | test_array [0] = 0 |
| 13267 | |
| 13268 | ; |
| 13269 | return 0; |
| 13270 | } |
| 13271 | _ACEOF |
| 13272 | rm -f conftest.$ac_objext |
| 13273 | if { (ac_try="$ac_compile" |
| 13274 | case "(($ac_try" in |
| 13275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13276 | *) ac_try_echo=$ac_try;; |
| 13277 | esac |
| 13278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13279 | (eval "$ac_compile") 2>conftest.er1 |
| 13280 | ac_status=$? |
| 13281 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13282 | rm -f conftest.er1 |
| 13283 | cat conftest.err >&5 |
| 13284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13285 | (exit $ac_status); } && { |
| 13286 | test -z "$ac_c_werror_flag" || |
| 13287 | test ! -s conftest.err |
| 13288 | } && test -s conftest.$ac_objext; then |
| 13289 | ac_hi=$ac_mid; break |
| 13290 | else |
| 13291 | echo "$as_me: failed program was:" >&5 |
| 13292 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13293 | |
| 13294 | ac_lo=`expr $ac_mid + 1` |
| 13295 | if test $ac_lo -le $ac_mid; then |
| 13296 | ac_lo= ac_hi= |
| 13297 | break |
| 13298 | fi |
| 13299 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 13300 | fi |
| 13301 | |
| 13302 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13303 | done |
| 13304 | else |
| 13305 | echo "$as_me: failed program was:" >&5 |
| 13306 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13307 | |
| 13308 | cat >conftest.$ac_ext <<_ACEOF |
| 13309 | /* confdefs.h. */ |
| 13310 | _ACEOF |
| 13311 | cat confdefs.h >>conftest.$ac_ext |
| 13312 | cat >>conftest.$ac_ext <<_ACEOF |
| 13313 | /* end confdefs.h. */ |
| 13314 | |
| 13315 | #ifdef HAVE_SYS_TYPES_H |
| 13316 | #include <sys/types.h> |
| 13317 | #endif |
| 13318 | |
| 13319 | |
| 13320 | typedef off_t ac__type_sizeof_; |
| 13321 | int |
| 13322 | main () |
| 13323 | { |
| 13324 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
| 13325 | test_array [0] = 0 |
| 13326 | |
| 13327 | ; |
| 13328 | return 0; |
| 13329 | } |
| 13330 | _ACEOF |
| 13331 | rm -f conftest.$ac_objext |
| 13332 | if { (ac_try="$ac_compile" |
| 13333 | case "(($ac_try" in |
| 13334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13335 | *) ac_try_echo=$ac_try;; |
| 13336 | esac |
| 13337 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13338 | (eval "$ac_compile") 2>conftest.er1 |
| 13339 | ac_status=$? |
| 13340 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13341 | rm -f conftest.er1 |
| 13342 | cat conftest.err >&5 |
| 13343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13344 | (exit $ac_status); } && { |
| 13345 | test -z "$ac_c_werror_flag" || |
| 13346 | test ! -s conftest.err |
| 13347 | } && test -s conftest.$ac_objext; then |
| 13348 | ac_hi=-1 ac_mid=-1 |
| 13349 | while :; do |
| 13350 | cat >conftest.$ac_ext <<_ACEOF |
| 13351 | /* confdefs.h. */ |
| 13352 | _ACEOF |
| 13353 | cat confdefs.h >>conftest.$ac_ext |
| 13354 | cat >>conftest.$ac_ext <<_ACEOF |
| 13355 | /* end confdefs.h. */ |
| 13356 | |
| 13357 | #ifdef HAVE_SYS_TYPES_H |
| 13358 | #include <sys/types.h> |
| 13359 | #endif |
| 13360 | |
| 13361 | |
| 13362 | typedef off_t ac__type_sizeof_; |
| 13363 | int |
| 13364 | main () |
| 13365 | { |
| 13366 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 13367 | test_array [0] = 0 |
| 13368 | |
| 13369 | ; |
| 13370 | return 0; |
| 13371 | } |
| 13372 | _ACEOF |
| 13373 | rm -f conftest.$ac_objext |
| 13374 | if { (ac_try="$ac_compile" |
| 13375 | case "(($ac_try" in |
| 13376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13377 | *) ac_try_echo=$ac_try;; |
| 13378 | esac |
| 13379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13380 | (eval "$ac_compile") 2>conftest.er1 |
| 13381 | ac_status=$? |
| 13382 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13383 | rm -f conftest.er1 |
| 13384 | cat conftest.err >&5 |
| 13385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13386 | (exit $ac_status); } && { |
| 13387 | test -z "$ac_c_werror_flag" || |
| 13388 | test ! -s conftest.err |
| 13389 | } && test -s conftest.$ac_objext; then |
| 13390 | ac_lo=$ac_mid; break |
| 13391 | else |
| 13392 | echo "$as_me: failed program was:" >&5 |
| 13393 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13394 | |
| 13395 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13396 | if test $ac_mid -le $ac_hi; then |
| 13397 | ac_lo= ac_hi= |
| 13398 | break |
| 13399 | fi |
| 13400 | ac_mid=`expr 2 '*' $ac_mid` |
| 13401 | fi |
| 13402 | |
| 13403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13404 | done |
| 13405 | else |
| 13406 | echo "$as_me: failed program was:" >&5 |
| 13407 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13408 | |
| 13409 | ac_lo= ac_hi= |
| 13410 | fi |
| 13411 | |
| 13412 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13413 | fi |
| 13414 | |
| 13415 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13416 | # Binary search between lo and hi bounds. |
| 13417 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13418 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13419 | cat >conftest.$ac_ext <<_ACEOF |
| 13420 | /* confdefs.h. */ |
| 13421 | _ACEOF |
| 13422 | cat confdefs.h >>conftest.$ac_ext |
| 13423 | cat >>conftest.$ac_ext <<_ACEOF |
| 13424 | /* end confdefs.h. */ |
| 13425 | |
| 13426 | #ifdef HAVE_SYS_TYPES_H |
| 13427 | #include <sys/types.h> |
| 13428 | #endif |
| 13429 | |
| 13430 | |
| 13431 | typedef off_t ac__type_sizeof_; |
| 13432 | int |
| 13433 | main () |
| 13434 | { |
| 13435 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13436 | test_array [0] = 0 |
| 13437 | |
| 13438 | ; |
| 13439 | return 0; |
| 13440 | } |
| 13441 | _ACEOF |
| 13442 | rm -f conftest.$ac_objext |
| 13443 | if { (ac_try="$ac_compile" |
| 13444 | case "(($ac_try" in |
| 13445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13446 | *) ac_try_echo=$ac_try;; |
| 13447 | esac |
| 13448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13449 | (eval "$ac_compile") 2>conftest.er1 |
| 13450 | ac_status=$? |
| 13451 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13452 | rm -f conftest.er1 |
| 13453 | cat conftest.err >&5 |
| 13454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13455 | (exit $ac_status); } && { |
| 13456 | test -z "$ac_c_werror_flag" || |
| 13457 | test ! -s conftest.err |
| 13458 | } && test -s conftest.$ac_objext; then |
| 13459 | ac_hi=$ac_mid |
| 13460 | else |
| 13461 | echo "$as_me: failed program was:" >&5 |
| 13462 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13463 | |
| 13464 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 13465 | fi |
| 13466 | |
| 13467 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13468 | done |
| 13469 | case $ac_lo in |
| 13470 | ?*) ac_cv_sizeof_off_t=$ac_lo;; |
| 13471 | '') if test "$ac_cv_type_off_t" = yes; then |
| 13472 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t) |
| 13473 | See \`config.log' for more details." >&5 |
| 13474 | echo "$as_me: error: cannot compute sizeof (off_t) |
| 13475 | See \`config.log' for more details." >&2;} |
| 13476 | { (exit 77); exit 77; }; } |
| 13477 | else |
| 13478 | ac_cv_sizeof_off_t=0 |
| 13479 | fi ;; |
| 13480 | esac |
| 13481 | else |
| 13482 | cat >conftest.$ac_ext <<_ACEOF |
| 13483 | /* confdefs.h. */ |
| 13484 | _ACEOF |
| 13485 | cat confdefs.h >>conftest.$ac_ext |
| 13486 | cat >>conftest.$ac_ext <<_ACEOF |
| 13487 | /* end confdefs.h. */ |
| 13488 | |
| 13489 | #ifdef HAVE_SYS_TYPES_H |
| 13490 | #include <sys/types.h> |
| 13491 | #endif |
| 13492 | |
| 13493 | |
| 13494 | typedef off_t ac__type_sizeof_; |
| 13495 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13496 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13497 | #include <stdio.h> |
| 13498 | #include <stdlib.h> |
| 13499 | int |
| 13500 | main () |
| 13501 | { |
| 13502 | |
| 13503 | FILE *f = fopen ("conftest.val", "w"); |
| 13504 | if (! f) |
| 13505 | return 1; |
| 13506 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 13507 | { |
| 13508 | long int i = longval (); |
| 13509 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13510 | return 1; |
| 13511 | fprintf (f, "%ld\n", i); |
| 13512 | } |
| 13513 | else |
| 13514 | { |
| 13515 | unsigned long int i = ulongval (); |
| 13516 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13517 | return 1; |
| 13518 | fprintf (f, "%lu\n", i); |
| 13519 | } |
| 13520 | return ferror (f) || fclose (f) != 0; |
| 13521 | |
| 13522 | ; |
| 13523 | return 0; |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13524 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13525 | _ACEOF |
| 13526 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13527 | if { (ac_try="$ac_link" |
| 13528 | case "(($ac_try" in |
| 13529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13530 | *) ac_try_echo=$ac_try;; |
| 13531 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13533 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13534 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13536 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13537 | { (case "(($ac_try" in |
| 13538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13539 | *) ac_try_echo=$ac_try;; |
| 13540 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13542 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13543 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13545 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13546 | ac_cv_sizeof_off_t=`cat conftest.val` |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13547 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13548 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13549 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13550 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13551 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13552 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13553 | if test "$ac_cv_type_off_t" = yes; then |
| 13554 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t) |
| 13555 | See \`config.log' for more details." >&5 |
| 13556 | echo "$as_me: error: cannot compute sizeof (off_t) |
| 13557 | See \`config.log' for more details." >&2;} |
| 13558 | { (exit 77); exit 77; }; } |
| 13559 | else |
| 13560 | ac_cv_sizeof_off_t=0 |
| 13561 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13562 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13563 | 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] | 13564 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13565 | rm -f conftest.val |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13566 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13567 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 13568 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13569 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13570 | |
| 13571 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13572 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13573 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13574 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13575 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13576 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13577 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13578 | { echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 13579 | 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] | 13580 | if test "$have_long_long" = yes |
| 13581 | then |
| 13582 | 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] | 13583 | "$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] | 13584 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13585 | cat >>confdefs.h <<\_ACEOF |
| 13586 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 13587 | _ACEOF |
| 13588 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13589 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 13590 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13591 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13592 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13593 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13594 | fi |
Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 13595 | else |
| 13596 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13597 | echo "${ECHO_T}no" >&6; } |
| 13598 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13599 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13600 | { echo "$as_me:$LINENO: checking for time_t" >&5 |
| 13601 | echo $ECHO_N "checking for time_t... $ECHO_C" >&6; } |
| 13602 | if test "${ac_cv_type_time_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13604 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13605 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13606 | /* confdefs.h. */ |
| 13607 | _ACEOF |
| 13608 | cat confdefs.h >>conftest.$ac_ext |
| 13609 | cat >>conftest.$ac_ext <<_ACEOF |
| 13610 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13611 | |
| 13612 | #ifdef HAVE_SYS_TYPES_H |
| 13613 | #include <sys/types.h> |
| 13614 | #endif |
| 13615 | #ifdef HAVE_TIME_H |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13616 | #include <time.h> |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13617 | #endif |
| 13618 | |
| 13619 | |
| 13620 | typedef time_t ac__type_new_; |
| 13621 | int |
| 13622 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13623 | { |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13624 | if ((ac__type_new_ *) 0) |
| 13625 | return 0; |
| 13626 | if (sizeof (ac__type_new_)) |
| 13627 | return 0; |
| 13628 | ; |
| 13629 | return 0; |
| 13630 | } |
| 13631 | _ACEOF |
| 13632 | rm -f conftest.$ac_objext |
| 13633 | if { (ac_try="$ac_compile" |
| 13634 | case "(($ac_try" in |
| 13635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13636 | *) ac_try_echo=$ac_try;; |
| 13637 | esac |
| 13638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13639 | (eval "$ac_compile") 2>conftest.er1 |
| 13640 | ac_status=$? |
| 13641 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13642 | rm -f conftest.er1 |
| 13643 | cat conftest.err >&5 |
| 13644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13645 | (exit $ac_status); } && { |
| 13646 | test -z "$ac_c_werror_flag" || |
| 13647 | test ! -s conftest.err |
| 13648 | } && test -s conftest.$ac_objext; then |
| 13649 | ac_cv_type_time_t=yes |
| 13650 | else |
| 13651 | echo "$as_me: failed program was:" >&5 |
| 13652 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13653 | |
| 13654 | ac_cv_type_time_t=no |
| 13655 | fi |
| 13656 | |
| 13657 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13658 | fi |
| 13659 | { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5 |
| 13660 | echo "${ECHO_T}$ac_cv_type_time_t" >&6; } |
| 13661 | |
| 13662 | # The cast to long int works around a bug in the HP C Compiler |
| 13663 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13664 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13665 | # This bug is HP SR number 8606223364. |
| 13666 | { echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 13667 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; } |
| 13668 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 13669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13670 | else |
| 13671 | if test "$cross_compiling" = yes; then |
| 13672 | # Depending upon the size, compute the lo and hi bounds. |
| 13673 | cat >conftest.$ac_ext <<_ACEOF |
| 13674 | /* confdefs.h. */ |
| 13675 | _ACEOF |
| 13676 | cat confdefs.h >>conftest.$ac_ext |
| 13677 | cat >>conftest.$ac_ext <<_ACEOF |
| 13678 | /* end confdefs.h. */ |
| 13679 | |
| 13680 | #ifdef HAVE_SYS_TYPES_H |
| 13681 | #include <sys/types.h> |
| 13682 | #endif |
| 13683 | #ifdef HAVE_TIME_H |
| 13684 | #include <time.h> |
| 13685 | #endif |
| 13686 | |
| 13687 | |
| 13688 | typedef time_t ac__type_sizeof_; |
| 13689 | int |
| 13690 | main () |
| 13691 | { |
| 13692 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 13693 | test_array [0] = 0 |
| 13694 | |
| 13695 | ; |
| 13696 | return 0; |
| 13697 | } |
| 13698 | _ACEOF |
| 13699 | rm -f conftest.$ac_objext |
| 13700 | if { (ac_try="$ac_compile" |
| 13701 | case "(($ac_try" in |
| 13702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13703 | *) ac_try_echo=$ac_try;; |
| 13704 | esac |
| 13705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13706 | (eval "$ac_compile") 2>conftest.er1 |
| 13707 | ac_status=$? |
| 13708 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13709 | rm -f conftest.er1 |
| 13710 | cat conftest.err >&5 |
| 13711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13712 | (exit $ac_status); } && { |
| 13713 | test -z "$ac_c_werror_flag" || |
| 13714 | test ! -s conftest.err |
| 13715 | } && test -s conftest.$ac_objext; then |
| 13716 | ac_lo=0 ac_mid=0 |
| 13717 | while :; do |
| 13718 | cat >conftest.$ac_ext <<_ACEOF |
| 13719 | /* confdefs.h. */ |
| 13720 | _ACEOF |
| 13721 | cat confdefs.h >>conftest.$ac_ext |
| 13722 | cat >>conftest.$ac_ext <<_ACEOF |
| 13723 | /* end confdefs.h. */ |
| 13724 | |
| 13725 | #ifdef HAVE_SYS_TYPES_H |
| 13726 | #include <sys/types.h> |
| 13727 | #endif |
| 13728 | #ifdef HAVE_TIME_H |
| 13729 | #include <time.h> |
| 13730 | #endif |
| 13731 | |
| 13732 | |
| 13733 | typedef time_t ac__type_sizeof_; |
| 13734 | int |
| 13735 | main () |
| 13736 | { |
| 13737 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13738 | test_array [0] = 0 |
| 13739 | |
| 13740 | ; |
| 13741 | return 0; |
| 13742 | } |
| 13743 | _ACEOF |
| 13744 | rm -f conftest.$ac_objext |
| 13745 | if { (ac_try="$ac_compile" |
| 13746 | case "(($ac_try" in |
| 13747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13748 | *) ac_try_echo=$ac_try;; |
| 13749 | esac |
| 13750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13751 | (eval "$ac_compile") 2>conftest.er1 |
| 13752 | ac_status=$? |
| 13753 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13754 | rm -f conftest.er1 |
| 13755 | cat conftest.err >&5 |
| 13756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13757 | (exit $ac_status); } && { |
| 13758 | test -z "$ac_c_werror_flag" || |
| 13759 | test ! -s conftest.err |
| 13760 | } && test -s conftest.$ac_objext; then |
| 13761 | ac_hi=$ac_mid; break |
| 13762 | else |
| 13763 | echo "$as_me: failed program was:" >&5 |
| 13764 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13765 | |
| 13766 | ac_lo=`expr $ac_mid + 1` |
| 13767 | if test $ac_lo -le $ac_mid; then |
| 13768 | ac_lo= ac_hi= |
| 13769 | break |
| 13770 | fi |
| 13771 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 13772 | fi |
| 13773 | |
| 13774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13775 | done |
| 13776 | else |
| 13777 | echo "$as_me: failed program was:" >&5 |
| 13778 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13779 | |
| 13780 | cat >conftest.$ac_ext <<_ACEOF |
| 13781 | /* confdefs.h. */ |
| 13782 | _ACEOF |
| 13783 | cat confdefs.h >>conftest.$ac_ext |
| 13784 | cat >>conftest.$ac_ext <<_ACEOF |
| 13785 | /* end confdefs.h. */ |
| 13786 | |
| 13787 | #ifdef HAVE_SYS_TYPES_H |
| 13788 | #include <sys/types.h> |
| 13789 | #endif |
| 13790 | #ifdef HAVE_TIME_H |
| 13791 | #include <time.h> |
| 13792 | #endif |
| 13793 | |
| 13794 | |
| 13795 | typedef time_t ac__type_sizeof_; |
| 13796 | int |
| 13797 | main () |
| 13798 | { |
| 13799 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
| 13800 | test_array [0] = 0 |
| 13801 | |
| 13802 | ; |
| 13803 | return 0; |
| 13804 | } |
| 13805 | _ACEOF |
| 13806 | rm -f conftest.$ac_objext |
| 13807 | if { (ac_try="$ac_compile" |
| 13808 | case "(($ac_try" in |
| 13809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13810 | *) ac_try_echo=$ac_try;; |
| 13811 | esac |
| 13812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13813 | (eval "$ac_compile") 2>conftest.er1 |
| 13814 | ac_status=$? |
| 13815 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13816 | rm -f conftest.er1 |
| 13817 | cat conftest.err >&5 |
| 13818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13819 | (exit $ac_status); } && { |
| 13820 | test -z "$ac_c_werror_flag" || |
| 13821 | test ! -s conftest.err |
| 13822 | } && test -s conftest.$ac_objext; then |
| 13823 | ac_hi=-1 ac_mid=-1 |
| 13824 | while :; do |
| 13825 | cat >conftest.$ac_ext <<_ACEOF |
| 13826 | /* confdefs.h. */ |
| 13827 | _ACEOF |
| 13828 | cat confdefs.h >>conftest.$ac_ext |
| 13829 | cat >>conftest.$ac_ext <<_ACEOF |
| 13830 | /* end confdefs.h. */ |
| 13831 | |
| 13832 | #ifdef HAVE_SYS_TYPES_H |
| 13833 | #include <sys/types.h> |
| 13834 | #endif |
| 13835 | #ifdef HAVE_TIME_H |
| 13836 | #include <time.h> |
| 13837 | #endif |
| 13838 | |
| 13839 | |
| 13840 | typedef time_t ac__type_sizeof_; |
| 13841 | int |
| 13842 | main () |
| 13843 | { |
| 13844 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 13845 | test_array [0] = 0 |
| 13846 | |
| 13847 | ; |
| 13848 | return 0; |
| 13849 | } |
| 13850 | _ACEOF |
| 13851 | rm -f conftest.$ac_objext |
| 13852 | if { (ac_try="$ac_compile" |
| 13853 | case "(($ac_try" in |
| 13854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13855 | *) ac_try_echo=$ac_try;; |
| 13856 | esac |
| 13857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13858 | (eval "$ac_compile") 2>conftest.er1 |
| 13859 | ac_status=$? |
| 13860 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13861 | rm -f conftest.er1 |
| 13862 | cat conftest.err >&5 |
| 13863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13864 | (exit $ac_status); } && { |
| 13865 | test -z "$ac_c_werror_flag" || |
| 13866 | test ! -s conftest.err |
| 13867 | } && test -s conftest.$ac_objext; then |
| 13868 | ac_lo=$ac_mid; break |
| 13869 | else |
| 13870 | echo "$as_me: failed program was:" >&5 |
| 13871 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13872 | |
| 13873 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13874 | if test $ac_mid -le $ac_hi; then |
| 13875 | ac_lo= ac_hi= |
| 13876 | break |
| 13877 | fi |
| 13878 | ac_mid=`expr 2 '*' $ac_mid` |
| 13879 | fi |
| 13880 | |
| 13881 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13882 | done |
| 13883 | else |
| 13884 | echo "$as_me: failed program was:" >&5 |
| 13885 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13886 | |
| 13887 | ac_lo= ac_hi= |
| 13888 | fi |
| 13889 | |
| 13890 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13891 | fi |
| 13892 | |
| 13893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13894 | # Binary search between lo and hi bounds. |
| 13895 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13896 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13897 | cat >conftest.$ac_ext <<_ACEOF |
| 13898 | /* confdefs.h. */ |
| 13899 | _ACEOF |
| 13900 | cat confdefs.h >>conftest.$ac_ext |
| 13901 | cat >>conftest.$ac_ext <<_ACEOF |
| 13902 | /* end confdefs.h. */ |
| 13903 | |
| 13904 | #ifdef HAVE_SYS_TYPES_H |
| 13905 | #include <sys/types.h> |
| 13906 | #endif |
| 13907 | #ifdef HAVE_TIME_H |
| 13908 | #include <time.h> |
| 13909 | #endif |
| 13910 | |
| 13911 | |
| 13912 | typedef time_t ac__type_sizeof_; |
| 13913 | int |
| 13914 | main () |
| 13915 | { |
| 13916 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13917 | test_array [0] = 0 |
| 13918 | |
| 13919 | ; |
| 13920 | return 0; |
| 13921 | } |
| 13922 | _ACEOF |
| 13923 | rm -f conftest.$ac_objext |
| 13924 | if { (ac_try="$ac_compile" |
| 13925 | case "(($ac_try" in |
| 13926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13927 | *) ac_try_echo=$ac_try;; |
| 13928 | esac |
| 13929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13930 | (eval "$ac_compile") 2>conftest.er1 |
| 13931 | ac_status=$? |
| 13932 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13933 | rm -f conftest.er1 |
| 13934 | cat conftest.err >&5 |
| 13935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13936 | (exit $ac_status); } && { |
| 13937 | test -z "$ac_c_werror_flag" || |
| 13938 | test ! -s conftest.err |
| 13939 | } && test -s conftest.$ac_objext; then |
| 13940 | ac_hi=$ac_mid |
| 13941 | else |
| 13942 | echo "$as_me: failed program was:" >&5 |
| 13943 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13944 | |
| 13945 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 13946 | fi |
| 13947 | |
| 13948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13949 | done |
| 13950 | case $ac_lo in |
| 13951 | ?*) ac_cv_sizeof_time_t=$ac_lo;; |
| 13952 | '') if test "$ac_cv_type_time_t" = yes; then |
| 13953 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t) |
| 13954 | See \`config.log' for more details." >&5 |
| 13955 | echo "$as_me: error: cannot compute sizeof (time_t) |
| 13956 | See \`config.log' for more details." >&2;} |
| 13957 | { (exit 77); exit 77; }; } |
| 13958 | else |
| 13959 | ac_cv_sizeof_time_t=0 |
| 13960 | fi ;; |
| 13961 | esac |
| 13962 | else |
| 13963 | cat >conftest.$ac_ext <<_ACEOF |
| 13964 | /* confdefs.h. */ |
| 13965 | _ACEOF |
| 13966 | cat confdefs.h >>conftest.$ac_ext |
| 13967 | cat >>conftest.$ac_ext <<_ACEOF |
| 13968 | /* end confdefs.h. */ |
| 13969 | |
| 13970 | #ifdef HAVE_SYS_TYPES_H |
| 13971 | #include <sys/types.h> |
| 13972 | #endif |
| 13973 | #ifdef HAVE_TIME_H |
| 13974 | #include <time.h> |
| 13975 | #endif |
| 13976 | |
| 13977 | |
| 13978 | typedef time_t ac__type_sizeof_; |
| 13979 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13980 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13981 | #include <stdio.h> |
| 13982 | #include <stdlib.h> |
| 13983 | int |
| 13984 | main () |
| 13985 | { |
| 13986 | |
| 13987 | FILE *f = fopen ("conftest.val", "w"); |
| 13988 | if (! f) |
| 13989 | return 1; |
| 13990 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 13991 | { |
| 13992 | long int i = longval (); |
| 13993 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13994 | return 1; |
| 13995 | fprintf (f, "%ld\n", i); |
| 13996 | } |
| 13997 | else |
| 13998 | { |
| 13999 | unsigned long int i = ulongval (); |
| 14000 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14001 | return 1; |
| 14002 | fprintf (f, "%lu\n", i); |
| 14003 | } |
| 14004 | return ferror (f) || fclose (f) != 0; |
| 14005 | |
| 14006 | ; |
| 14007 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 14008 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14009 | _ACEOF |
| 14010 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14011 | if { (ac_try="$ac_link" |
| 14012 | case "(($ac_try" in |
| 14013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14014 | *) ac_try_echo=$ac_try;; |
| 14015 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14017 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14018 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14020 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14021 | { (case "(($ac_try" in |
| 14022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14023 | *) ac_try_echo=$ac_try;; |
| 14024 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14026 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14027 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14029 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14030 | ac_cv_sizeof_time_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 14031 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14032 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14033 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14034 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14035 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14036 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14037 | if test "$ac_cv_type_time_t" = yes; then |
| 14038 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t) |
| 14039 | See \`config.log' for more details." >&5 |
| 14040 | echo "$as_me: error: cannot compute sizeof (time_t) |
| 14041 | See \`config.log' for more details." >&2;} |
| 14042 | { (exit 77); exit 77; }; } |
| 14043 | else |
| 14044 | ac_cv_sizeof_time_t=0 |
| 14045 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 14046 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14047 | 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] | 14048 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14049 | rm -f conftest.val |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 14050 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14051 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 14052 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14053 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14054 | |
| 14055 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14056 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 14057 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14058 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 14059 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14060 | |
| 14061 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14062 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 14063 | ac_save_cc="$CC" |
| 14064 | if test "$ac_cv_kpthread" = "yes" |
| 14065 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 14066 | elif test "$ac_cv_kthread" = "yes" |
| 14067 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14068 | elif test "$ac_cv_pthread" = "yes" |
| 14069 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 14070 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14071 | { echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 14072 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14073 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14074 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14075 | /* confdefs.h. */ |
| 14076 | _ACEOF |
| 14077 | cat confdefs.h >>conftest.$ac_ext |
| 14078 | cat >>conftest.$ac_ext <<_ACEOF |
| 14079 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14080 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14081 | int |
| 14082 | main () |
| 14083 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 14084 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14085 | ; |
| 14086 | return 0; |
| 14087 | } |
| 14088 | _ACEOF |
| 14089 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14090 | if { (ac_try="$ac_compile" |
| 14091 | case "(($ac_try" in |
| 14092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14093 | *) ac_try_echo=$ac_try;; |
| 14094 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14096 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14097 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14098 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14099 | rm -f conftest.er1 |
| 14100 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14102 | (exit $ac_status); } && { |
| 14103 | test -z "$ac_c_werror_flag" || |
| 14104 | test ! -s conftest.err |
| 14105 | } && test -s conftest.$ac_objext; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14106 | have_pthread_t=yes |
| 14107 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14108 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14109 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14110 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14111 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14112 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14113 | |
| 14114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14115 | { echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 14116 | echo "${ECHO_T}$have_pthread_t" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14117 | if test "$have_pthread_t" = yes ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14118 | { echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 14119 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; } |
| 14120 | if test "${ac_cv_type_pthread_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14122 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14123 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14124 | /* confdefs.h. */ |
| 14125 | _ACEOF |
| 14126 | cat confdefs.h >>conftest.$ac_ext |
| 14127 | cat >>conftest.$ac_ext <<_ACEOF |
| 14128 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14129 | |
| 14130 | #ifdef HAVE_PTHREAD_H |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14131 | #include <pthread.h> |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14132 | #endif |
| 14133 | |
| 14134 | |
| 14135 | typedef pthread_t ac__type_new_; |
| 14136 | int |
| 14137 | main () |
| 14138 | { |
| 14139 | if ((ac__type_new_ *) 0) |
| 14140 | return 0; |
| 14141 | if (sizeof (ac__type_new_)) |
| 14142 | return 0; |
| 14143 | ; |
| 14144 | return 0; |
| 14145 | } |
| 14146 | _ACEOF |
| 14147 | rm -f conftest.$ac_objext |
| 14148 | if { (ac_try="$ac_compile" |
| 14149 | case "(($ac_try" in |
| 14150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14151 | *) ac_try_echo=$ac_try;; |
| 14152 | esac |
| 14153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14154 | (eval "$ac_compile") 2>conftest.er1 |
| 14155 | ac_status=$? |
| 14156 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14157 | rm -f conftest.er1 |
| 14158 | cat conftest.err >&5 |
| 14159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14160 | (exit $ac_status); } && { |
| 14161 | test -z "$ac_c_werror_flag" || |
| 14162 | test ! -s conftest.err |
| 14163 | } && test -s conftest.$ac_objext; then |
| 14164 | ac_cv_type_pthread_t=yes |
| 14165 | else |
| 14166 | echo "$as_me: failed program was:" >&5 |
| 14167 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14168 | |
| 14169 | ac_cv_type_pthread_t=no |
| 14170 | fi |
| 14171 | |
| 14172 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14173 | fi |
| 14174 | { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_t" >&5 |
| 14175 | echo "${ECHO_T}$ac_cv_type_pthread_t" >&6; } |
| 14176 | |
| 14177 | # The cast to long int works around a bug in the HP C Compiler |
| 14178 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14179 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14180 | # This bug is HP SR number 8606223364. |
| 14181 | { echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 14182 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; } |
| 14183 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 14184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14185 | else |
| 14186 | if test "$cross_compiling" = yes; then |
| 14187 | # Depending upon the size, compute the lo and hi bounds. |
| 14188 | cat >conftest.$ac_ext <<_ACEOF |
| 14189 | /* confdefs.h. */ |
| 14190 | _ACEOF |
| 14191 | cat confdefs.h >>conftest.$ac_ext |
| 14192 | cat >>conftest.$ac_ext <<_ACEOF |
| 14193 | /* end confdefs.h. */ |
| 14194 | |
| 14195 | #ifdef HAVE_PTHREAD_H |
| 14196 | #include <pthread.h> |
| 14197 | #endif |
| 14198 | |
| 14199 | |
| 14200 | typedef pthread_t ac__type_sizeof_; |
| 14201 | int |
| 14202 | main () |
| 14203 | { |
| 14204 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 14205 | test_array [0] = 0 |
| 14206 | |
| 14207 | ; |
| 14208 | return 0; |
| 14209 | } |
| 14210 | _ACEOF |
| 14211 | rm -f conftest.$ac_objext |
| 14212 | if { (ac_try="$ac_compile" |
| 14213 | case "(($ac_try" in |
| 14214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14215 | *) ac_try_echo=$ac_try;; |
| 14216 | esac |
| 14217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14218 | (eval "$ac_compile") 2>conftest.er1 |
| 14219 | ac_status=$? |
| 14220 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14221 | rm -f conftest.er1 |
| 14222 | cat conftest.err >&5 |
| 14223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14224 | (exit $ac_status); } && { |
| 14225 | test -z "$ac_c_werror_flag" || |
| 14226 | test ! -s conftest.err |
| 14227 | } && test -s conftest.$ac_objext; then |
| 14228 | ac_lo=0 ac_mid=0 |
| 14229 | while :; do |
| 14230 | cat >conftest.$ac_ext <<_ACEOF |
| 14231 | /* confdefs.h. */ |
| 14232 | _ACEOF |
| 14233 | cat confdefs.h >>conftest.$ac_ext |
| 14234 | cat >>conftest.$ac_ext <<_ACEOF |
| 14235 | /* end confdefs.h. */ |
| 14236 | |
| 14237 | #ifdef HAVE_PTHREAD_H |
| 14238 | #include <pthread.h> |
| 14239 | #endif |
| 14240 | |
| 14241 | |
| 14242 | typedef pthread_t ac__type_sizeof_; |
| 14243 | int |
| 14244 | main () |
| 14245 | { |
| 14246 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 14247 | test_array [0] = 0 |
| 14248 | |
| 14249 | ; |
| 14250 | return 0; |
| 14251 | } |
| 14252 | _ACEOF |
| 14253 | rm -f conftest.$ac_objext |
| 14254 | if { (ac_try="$ac_compile" |
| 14255 | case "(($ac_try" in |
| 14256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14257 | *) ac_try_echo=$ac_try;; |
| 14258 | esac |
| 14259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14260 | (eval "$ac_compile") 2>conftest.er1 |
| 14261 | ac_status=$? |
| 14262 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14263 | rm -f conftest.er1 |
| 14264 | cat conftest.err >&5 |
| 14265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14266 | (exit $ac_status); } && { |
| 14267 | test -z "$ac_c_werror_flag" || |
| 14268 | test ! -s conftest.err |
| 14269 | } && test -s conftest.$ac_objext; then |
| 14270 | ac_hi=$ac_mid; break |
| 14271 | else |
| 14272 | echo "$as_me: failed program was:" >&5 |
| 14273 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14274 | |
| 14275 | ac_lo=`expr $ac_mid + 1` |
| 14276 | if test $ac_lo -le $ac_mid; then |
| 14277 | ac_lo= ac_hi= |
| 14278 | break |
| 14279 | fi |
| 14280 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 14281 | fi |
| 14282 | |
| 14283 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14284 | done |
| 14285 | else |
| 14286 | echo "$as_me: failed program was:" >&5 |
| 14287 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14288 | |
| 14289 | cat >conftest.$ac_ext <<_ACEOF |
| 14290 | /* confdefs.h. */ |
| 14291 | _ACEOF |
| 14292 | cat confdefs.h >>conftest.$ac_ext |
| 14293 | cat >>conftest.$ac_ext <<_ACEOF |
| 14294 | /* end confdefs.h. */ |
| 14295 | |
| 14296 | #ifdef HAVE_PTHREAD_H |
| 14297 | #include <pthread.h> |
| 14298 | #endif |
| 14299 | |
| 14300 | |
| 14301 | typedef pthread_t ac__type_sizeof_; |
| 14302 | int |
| 14303 | main () |
| 14304 | { |
| 14305 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
| 14306 | test_array [0] = 0 |
| 14307 | |
| 14308 | ; |
| 14309 | return 0; |
| 14310 | } |
| 14311 | _ACEOF |
| 14312 | rm -f conftest.$ac_objext |
| 14313 | if { (ac_try="$ac_compile" |
| 14314 | case "(($ac_try" in |
| 14315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14316 | *) ac_try_echo=$ac_try;; |
| 14317 | esac |
| 14318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14319 | (eval "$ac_compile") 2>conftest.er1 |
| 14320 | ac_status=$? |
| 14321 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14322 | rm -f conftest.er1 |
| 14323 | cat conftest.err >&5 |
| 14324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14325 | (exit $ac_status); } && { |
| 14326 | test -z "$ac_c_werror_flag" || |
| 14327 | test ! -s conftest.err |
| 14328 | } && test -s conftest.$ac_objext; then |
| 14329 | ac_hi=-1 ac_mid=-1 |
| 14330 | while :; do |
| 14331 | cat >conftest.$ac_ext <<_ACEOF |
| 14332 | /* confdefs.h. */ |
| 14333 | _ACEOF |
| 14334 | cat confdefs.h >>conftest.$ac_ext |
| 14335 | cat >>conftest.$ac_ext <<_ACEOF |
| 14336 | /* end confdefs.h. */ |
| 14337 | |
| 14338 | #ifdef HAVE_PTHREAD_H |
| 14339 | #include <pthread.h> |
| 14340 | #endif |
| 14341 | |
| 14342 | |
| 14343 | typedef pthread_t ac__type_sizeof_; |
| 14344 | int |
| 14345 | main () |
| 14346 | { |
| 14347 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 14348 | test_array [0] = 0 |
| 14349 | |
| 14350 | ; |
| 14351 | return 0; |
| 14352 | } |
| 14353 | _ACEOF |
| 14354 | rm -f conftest.$ac_objext |
| 14355 | if { (ac_try="$ac_compile" |
| 14356 | case "(($ac_try" in |
| 14357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14358 | *) ac_try_echo=$ac_try;; |
| 14359 | esac |
| 14360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14361 | (eval "$ac_compile") 2>conftest.er1 |
| 14362 | ac_status=$? |
| 14363 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14364 | rm -f conftest.er1 |
| 14365 | cat conftest.err >&5 |
| 14366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14367 | (exit $ac_status); } && { |
| 14368 | test -z "$ac_c_werror_flag" || |
| 14369 | test ! -s conftest.err |
| 14370 | } && test -s conftest.$ac_objext; then |
| 14371 | ac_lo=$ac_mid; break |
| 14372 | else |
| 14373 | echo "$as_me: failed program was:" >&5 |
| 14374 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14375 | |
| 14376 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 14377 | if test $ac_mid -le $ac_hi; then |
| 14378 | ac_lo= ac_hi= |
| 14379 | break |
| 14380 | fi |
| 14381 | ac_mid=`expr 2 '*' $ac_mid` |
| 14382 | fi |
| 14383 | |
| 14384 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14385 | done |
| 14386 | else |
| 14387 | echo "$as_me: failed program was:" >&5 |
| 14388 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14389 | |
| 14390 | ac_lo= ac_hi= |
| 14391 | fi |
| 14392 | |
| 14393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14394 | fi |
| 14395 | |
| 14396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14397 | # Binary search between lo and hi bounds. |
| 14398 | while test "x$ac_lo" != "x$ac_hi"; do |
| 14399 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 14400 | cat >conftest.$ac_ext <<_ACEOF |
| 14401 | /* confdefs.h. */ |
| 14402 | _ACEOF |
| 14403 | cat confdefs.h >>conftest.$ac_ext |
| 14404 | cat >>conftest.$ac_ext <<_ACEOF |
| 14405 | /* end confdefs.h. */ |
| 14406 | |
| 14407 | #ifdef HAVE_PTHREAD_H |
| 14408 | #include <pthread.h> |
| 14409 | #endif |
| 14410 | |
| 14411 | |
| 14412 | typedef pthread_t ac__type_sizeof_; |
| 14413 | int |
| 14414 | main () |
| 14415 | { |
| 14416 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 14417 | test_array [0] = 0 |
| 14418 | |
| 14419 | ; |
| 14420 | return 0; |
| 14421 | } |
| 14422 | _ACEOF |
| 14423 | rm -f conftest.$ac_objext |
| 14424 | if { (ac_try="$ac_compile" |
| 14425 | case "(($ac_try" in |
| 14426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14427 | *) ac_try_echo=$ac_try;; |
| 14428 | esac |
| 14429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14430 | (eval "$ac_compile") 2>conftest.er1 |
| 14431 | ac_status=$? |
| 14432 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14433 | rm -f conftest.er1 |
| 14434 | cat conftest.err >&5 |
| 14435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14436 | (exit $ac_status); } && { |
| 14437 | test -z "$ac_c_werror_flag" || |
| 14438 | test ! -s conftest.err |
| 14439 | } && test -s conftest.$ac_objext; then |
| 14440 | ac_hi=$ac_mid |
| 14441 | else |
| 14442 | echo "$as_me: failed program was:" >&5 |
| 14443 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14444 | |
| 14445 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 14446 | fi |
| 14447 | |
| 14448 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14449 | done |
| 14450 | case $ac_lo in |
| 14451 | ?*) ac_cv_sizeof_pthread_t=$ac_lo;; |
| 14452 | '') if test "$ac_cv_type_pthread_t" = yes; then |
| 14453 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t) |
| 14454 | See \`config.log' for more details." >&5 |
| 14455 | echo "$as_me: error: cannot compute sizeof (pthread_t) |
| 14456 | See \`config.log' for more details." >&2;} |
| 14457 | { (exit 77); exit 77; }; } |
| 14458 | else |
| 14459 | ac_cv_sizeof_pthread_t=0 |
| 14460 | fi ;; |
| 14461 | esac |
| 14462 | else |
| 14463 | cat >conftest.$ac_ext <<_ACEOF |
| 14464 | /* confdefs.h. */ |
| 14465 | _ACEOF |
| 14466 | cat confdefs.h >>conftest.$ac_ext |
| 14467 | cat >>conftest.$ac_ext <<_ACEOF |
| 14468 | /* end confdefs.h. */ |
| 14469 | |
| 14470 | #ifdef HAVE_PTHREAD_H |
| 14471 | #include <pthread.h> |
| 14472 | #endif |
| 14473 | |
| 14474 | |
| 14475 | typedef pthread_t ac__type_sizeof_; |
| 14476 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 14477 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 14478 | #include <stdio.h> |
| 14479 | #include <stdlib.h> |
| 14480 | int |
| 14481 | main () |
| 14482 | { |
| 14483 | |
| 14484 | FILE *f = fopen ("conftest.val", "w"); |
| 14485 | if (! f) |
| 14486 | return 1; |
| 14487 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 14488 | { |
| 14489 | long int i = longval (); |
| 14490 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14491 | return 1; |
| 14492 | fprintf (f, "%ld\n", i); |
| 14493 | } |
| 14494 | else |
| 14495 | { |
| 14496 | unsigned long int i = ulongval (); |
| 14497 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14498 | return 1; |
| 14499 | fprintf (f, "%lu\n", i); |
| 14500 | } |
| 14501 | return ferror (f) || fclose (f) != 0; |
| 14502 | |
| 14503 | ; |
| 14504 | return 0; |
| 14505 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14506 | _ACEOF |
| 14507 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14508 | if { (ac_try="$ac_link" |
| 14509 | case "(($ac_try" in |
| 14510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14511 | *) ac_try_echo=$ac_try;; |
| 14512 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14513 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14514 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14515 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14517 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14518 | { (case "(($ac_try" in |
| 14519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14520 | *) ac_try_echo=$ac_try;; |
| 14521 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14522 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14523 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14524 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14526 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14527 | ac_cv_sizeof_pthread_t=`cat conftest.val` |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14528 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14529 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14530 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14531 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14532 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14533 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14534 | if test "$ac_cv_type_pthread_t" = yes; then |
| 14535 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t) |
| 14536 | See \`config.log' for more details." >&5 |
| 14537 | echo "$as_me: error: cannot compute sizeof (pthread_t) |
| 14538 | See \`config.log' for more details." >&2;} |
| 14539 | { (exit 77); exit 77; }; } |
| 14540 | else |
| 14541 | ac_cv_sizeof_pthread_t=0 |
| 14542 | fi |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14543 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14544 | 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] | 14545 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14546 | rm -f conftest.val |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14547 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14548 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14549 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14550 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14551 | |
| 14552 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14553 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14554 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14555 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14556 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14557 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14558 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 14559 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14560 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14561 | { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 14562 | 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] | 14563 | # Check whether --enable-toolbox-glue was given. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14564 | if test "${enable_toolbox_glue+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14565 | enableval=$enable_toolbox_glue; |
| 14566 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14567 | |
| 14568 | |
| 14569 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14570 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14571 | case $ac_sys_system/$ac_sys_release in |
| 14572 | Darwin/*) |
| 14573 | enable_toolbox_glue="yes";; |
| 14574 | *) |
| 14575 | enable_toolbox_glue="no";; |
| 14576 | esac |
| 14577 | fi |
| 14578 | case "$enable_toolbox_glue" in |
| 14579 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14580 | extra_machdep_objs="Python/mactoolboxglue.o" |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14581 | extra_undefs="-u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14582 | |
| 14583 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14584 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14585 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14586 | |
| 14587 | ;; |
| 14588 | *) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14589 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 14590 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14591 | ;; |
| 14592 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14593 | { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 14594 | echo "${ECHO_T}$enable_toolbox_glue" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14595 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14596 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 14597 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14598 | case $ac_sys_system/$ac_sys_release in |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 14599 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 14600 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 14601 | ;; |
| 14602 | Darwin/*) |
| 14603 | OTHER_LIBTOOL_OPT="" |
| 14604 | ;; |
| 14605 | esac |
| 14606 | |
| 14607 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14608 | ARCH_RUN_32BIT="" |
| 14609 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 14610 | case $ac_sys_system/$ac_sys_release in |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 14611 | Darwin/[01567]\..*) |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14612 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
| 14613 | if test "${enable_universalsdk}"; then |
| 14614 | : |
| 14615 | else |
Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 14616 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14617 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 14618 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14619 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 14620 | Darwin/*) |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 14621 | gcc_version=`gcc -dumpversion` |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 14622 | if test ${gcc_version} '<' 4.0 |
| 14623 | then |
| 14624 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 14625 | else |
| 14626 | LIBTOOL_CRUFT="" |
| 14627 | fi |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14628 | if test "$cross_compiling" = yes; then |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 14629 | ac_osx_32bit=yes |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14630 | else |
| 14631 | cat >conftest.$ac_ext <<_ACEOF |
| 14632 | /* confdefs.h. */ |
| 14633 | _ACEOF |
| 14634 | cat confdefs.h >>conftest.$ac_ext |
| 14635 | cat >>conftest.$ac_ext <<_ACEOF |
| 14636 | /* end confdefs.h. */ |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 14637 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14638 | #include <unistd.h> |
| 14639 | int main(int argc, char*argv[]) |
| 14640 | { |
| 14641 | if (sizeof(long) == 4) { |
| 14642 | return 0; |
| 14643 | } else { |
| 14644 | return 1; |
| 14645 | } |
Ronald Oussoren | 84ddd72 | 2009-09-08 07:17:10 +0000 | [diff] [blame] | 14646 | } |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 14647 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14648 | _ACEOF |
| 14649 | rm -f conftest$ac_exeext |
| 14650 | if { (ac_try="$ac_link" |
| 14651 | case "(($ac_try" in |
| 14652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14653 | *) ac_try_echo=$ac_try;; |
| 14654 | esac |
| 14655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14656 | (eval "$ac_link") 2>&5 |
| 14657 | ac_status=$? |
| 14658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14659 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14660 | { (case "(($ac_try" in |
| 14661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14662 | *) ac_try_echo=$ac_try;; |
| 14663 | esac |
| 14664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14665 | (eval "$ac_try") 2>&5 |
| 14666 | ac_status=$? |
| 14667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14668 | (exit $ac_status); }; }; then |
| 14669 | ac_osx_32bit=yes |
| 14670 | else |
| 14671 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14672 | echo "$as_me: failed program was:" >&5 |
| 14673 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14674 | |
| 14675 | ( exit $ac_status ) |
| 14676 | ac_osx_32bit=no |
| 14677 | fi |
| 14678 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 14679 | fi |
| 14680 | |
| 14681 | |
| 14682 | |
| 14683 | if test "${ac_osx_32bit}" = "yes"; then |
Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 14684 | case `/usr/bin/arch` in |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14685 | i386) |
| 14686 | MACOSX_DEFAULT_ARCH="i386" |
| 14687 | ;; |
| 14688 | ppc) |
| 14689 | MACOSX_DEFAULT_ARCH="ppc" |
| 14690 | ;; |
| 14691 | *) |
| 14692 | { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5 |
| 14693 | echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;} |
| 14694 | { (exit 1); exit 1; }; } |
| 14695 | ;; |
| 14696 | esac |
| 14697 | else |
Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 14698 | case `/usr/bin/arch` in |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14699 | i386) |
| 14700 | MACOSX_DEFAULT_ARCH="x86_64" |
| 14701 | ;; |
| 14702 | ppc) |
| 14703 | MACOSX_DEFAULT_ARCH="ppc64" |
| 14704 | ;; |
| 14705 | *) |
| 14706 | { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5 |
| 14707 | echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;} |
| 14708 | { (exit 1); exit 1; }; } |
| 14709 | ;; |
| 14710 | esac |
| 14711 | |
| 14712 | #ARCH_RUN_32BIT="true" |
| 14713 | fi |
| 14714 | |
| 14715 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 14716 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14717 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14718 | esac |
| 14719 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14720 | { echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 14721 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14722 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14723 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 14724 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14725 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14726 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14727 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14728 | cat >>confdefs.h <<\_ACEOF |
| 14729 | #define WITH_NEXT_FRAMEWORK 1 |
| 14730 | _ACEOF |
| 14731 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14732 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 14733 | echo "${ECHO_T}yes" >&6; } |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 14734 | if test $enable_shared = "yes" |
| 14735 | then |
Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 14736 | { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." >&5 |
| 14737 | 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] | 14738 | { (exit 1); exit 1; }; } |
| 14739 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14740 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14741 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14742 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14743 | fi |
| 14744 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14745 | { echo "$as_me:$LINENO: checking for dyld" >&5 |
| 14746 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14747 | case $ac_sys_system/$ac_sys_release in |
| 14748 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14749 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14750 | cat >>confdefs.h <<\_ACEOF |
| 14751 | #define WITH_DYLD 1 |
| 14752 | _ACEOF |
| 14753 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14754 | { echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 14755 | echo "${ECHO_T}always on for Darwin" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14756 | ;; |
| 14757 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14758 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14759 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14760 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14761 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14762 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14763 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14764 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14765 | |
| 14766 | |
| 14767 | |
| 14768 | |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14769 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14770 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 14771 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14772 | { echo "$as_me:$LINENO: checking SO" >&5 |
| 14773 | echo $ECHO_N "checking SO... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14774 | if test -z "$SO" |
| 14775 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14776 | case $ac_sys_system in |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 14777 | hp*|HP*) |
| 14778 | case `uname -m` in |
| 14779 | ia64) SO=.so;; |
| 14780 | *) SO=.sl;; |
| 14781 | esac |
| 14782 | ;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 14783 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14784 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14785 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 14786 | else |
| 14787 | # this might also be a termcap variable, see #610332 |
| 14788 | echo |
| 14789 | echo '=====================================================================' |
| 14790 | echo '+ +' |
| 14791 | echo '+ WARNING: You have set SO in your environment. +' |
| 14792 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 14793 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 14794 | echo '+ +' |
| 14795 | echo '=====================================================================' |
| 14796 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14797 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14798 | { echo "$as_me:$LINENO: result: $SO" >&5 |
| 14799 | echo "${ECHO_T}$SO" >&6; } |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 14800 | |
Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 14801 | |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 14802 | cat >>confdefs.h <<_ACEOF |
| 14803 | #define SHLIB_EXT "$SO" |
| 14804 | _ACEOF |
| 14805 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14806 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 14807 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14808 | # (Shared libraries in this instance are shared modules to be loaded into |
| 14809 | # Python, as opposed to building Python itself as a shared library.) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14810 | { echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 14811 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14812 | if test -z "$LDSHARED" |
| 14813 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14814 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14815 | AIX*) |
| 14816 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 14817 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14818 | ;; |
| 14819 | BeOS*) |
| 14820 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 14821 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14822 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 14823 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 14824 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14825 | SunOS/5*) |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14826 | if test "$GCC" = "yes" ; then |
| 14827 | LDSHARED='$(CC) -shared' |
| 14828 | LDCXXSHARED='$(CXX) -shared' |
| 14829 | else |
| 14830 | LDSHARED='$(CC) -G' |
| 14831 | LDCXXSHARED='$(CXX) -G' |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 14832 | fi ;; |
Thomas Heller | dc96a77 | 2008-04-04 10:07:55 +0000 | [diff] [blame] | 14833 | hp*|HP*) |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14834 | if test "$GCC" = "yes" ; then |
| 14835 | LDSHARED='$(CC) -shared' |
| 14836 | LDCXXSHARED='$(CXX) -shared' |
| 14837 | else |
| 14838 | LDSHARED='ld -b' |
Thomas Heller | dc96a77 | 2008-04-04 10:07:55 +0000 | [diff] [blame] | 14839 | fi ;; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14840 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 14841 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14842 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14843 | LDCXXSHARED='$(CXX) $(LDFLAGS) -bundle' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14844 | if test "$enable_framework" ; then |
| 14845 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14846 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 14847 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14848 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14849 | else |
| 14850 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 14851 | LDSHARED="$LDSHARED -undefined suppress" |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14852 | LDCXXSHARED="$LDCXXSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14853 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14854 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14855 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14856 | LDCXXSHARED='$(CXX) $(LDFLAGS) -bundle' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14857 | if test "$enable_framework" ; then |
| 14858 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14859 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 14860 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14861 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14862 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 14863 | # No framework, use the Python app as bundle-loader |
| 14864 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 14865 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14866 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14867 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14868 | Darwin/*) |
| 14869 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 14870 | # This allows an extension to be used in any Python |
Ronald Oussoren | 38f1b98 | 2007-09-02 09:46:07 +0000 | [diff] [blame] | 14871 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 14872 | if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14873 | then |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14874 | if test "${enable_universalsdk}"; then |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 14875 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14876 | fi |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14877 | LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14878 | LDCXXSHARED='$(CXX) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14879 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14880 | else |
| 14881 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14882 | LDCXXSHARED='$(CXX) $(LDFLAGS) -bundle' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14883 | if test "$enable_framework" ; then |
| 14884 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14885 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 14886 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14887 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14888 | else |
| 14889 | # No framework, use the Python app as bundle-loader |
| 14890 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 14891 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14892 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14893 | fi |
| 14894 | fi |
| 14895 | ;; |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14896 | Linux*|GNU*|QNX*) |
| 14897 | LDSHARED='$(CC) -shared' |
| 14898 | LDCXXSHARED='$(CXX) -shared';; |
| 14899 | BSD/OS*/4*) |
| 14900 | LDSHARED="gcc -shared" |
| 14901 | LDCXXSHARED="g++ -shared";; |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 14902 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 14903 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 14904 | then |
Benjamin Peterson | 3b2abe9 | 2010-03-14 15:06:14 +0000 | [diff] [blame] | 14905 | LDSHARED='$(CC) -shared ${LDFLAGS}' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14906 | LDCXXSHARED='$(CXX) -shared ${LDFLAGS}' |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 14907 | else |
| 14908 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 14909 | fi;; |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 14910 | OpenBSD*) |
| 14911 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 14912 | then |
| 14913 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14914 | LDCXXSHARED='$(CXX) -shared $(CCSHARED) ${LDFLAGS}' |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 14915 | else |
| 14916 | case `uname -r` in |
| 14917 | [01].* | 2.[0-7] | 2.[0-7].*) |
| 14918 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 14919 | ;; |
| 14920 | *) |
| 14921 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14922 | LDCXXSHARED='$(CXX) -shared $(CCSHARED) ${LDFLAGS}' |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 14923 | ;; |
| 14924 | esac |
| 14925 | fi;; |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14926 | NetBSD*|DragonFly*) |
| 14927 | LDSHARED="cc -shared ${LDFLAGS}" |
| 14928 | LDCXXSHARED="c++ -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 14929 | OpenUNIX*|UnixWare*) |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14930 | if test "$GCC" = "yes" ; then |
| 14931 | LDSHARED='$(CC) -shared' |
| 14932 | LDCXXSHARED='$(CXX) -shared' |
| 14933 | else |
| 14934 | LDSHARED='$(CC) -G' |
| 14935 | LDCXXSHARED='$(CXX) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14936 | fi;; |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14937 | SCO_SV*) |
| 14938 | LDSHARED='$(CC) -Wl,-G,-Bexport' |
| 14939 | LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; |
| 14940 | CYGWIN*) |
| 14941 | LDSHARED="gcc -shared -Wl,--enable-auto-image-base" |
| 14942 | LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; |
| 14943 | atheos*) |
| 14944 | LDSHARED="gcc -shared" |
| 14945 | LDCXXSHARED="g++ -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14946 | *) LDSHARED="ld";; |
| 14947 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14948 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14949 | { echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 14950 | echo "${ECHO_T}$LDSHARED" >&6; } |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 14951 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14952 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14953 | # 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] | 14954 | # library (module) -- this is only needed for a few systems |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14955 | { echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 14956 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14957 | if test -z "$CCSHARED" |
| 14958 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 14959 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 14960 | SunOS*) if test "$GCC" = yes; |
Martin v. Löwis | eb62357 | 2007-03-12 10:50:39 +0000 | [diff] [blame] | 14961 | then CCSHARED="-fPIC"; |
| 14962 | elif test `uname -p` = sparc; |
| 14963 | then CCSHARED="-xcode=pic32"; |
| 14964 | else CCSHARED="-Kpic"; |
| 14965 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 14966 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 14967 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 14968 | else CCSHARED="+z"; |
| 14969 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14970 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 14971 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 14972 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 14973 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14974 | if test "$GCC" = "yes" |
| 14975 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14976 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14977 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 14978 | SCO_SV*) |
| 14979 | if test "$GCC" = "yes" |
| 14980 | then CCSHARED="-fPIC" |
| 14981 | else CCSHARED="-Kpic -belf" |
| 14982 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14983 | IRIX*/6*) case $CC in |
| 14984 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 14985 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14986 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14987 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14988 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14989 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14990 | { echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 14991 | echo "${ECHO_T}$CCSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14992 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14993 | # the python executable -- this is only needed for a few systems |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14994 | { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 14995 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14996 | if test -z "$LINKFORSHARED" |
| 14997 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 14998 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14999 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 15000 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15001 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 15002 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 15003 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15004 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 15005 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15006 | Darwin/*) |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 15007 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, |
| 15008 | # which is |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 15009 | # not used by the core itself but which needs to be in the core so |
| 15010 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 15011 | # -prebind is no longer used, because it actually seems to give a |
| 15012 | # slowdown in stead of a speedup, maybe due to the large number of |
| 15013 | # dynamic loads Python does. |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 15014 | |
| 15015 | LINKFORSHARED="$extra_undefs" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 15016 | if test "$enable_framework" |
| 15017 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 15018 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 15019 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 15020 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 15021 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 15022 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 15023 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 15024 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 15025 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 15026 | then |
| 15027 | LINKFORSHARED="-Wl,--export-dynamic" |
| 15028 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 15029 | SunOS/5*) case $CC in |
| 15030 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 15031 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 15032 | then |
| 15033 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 15034 | fi;; |
| 15035 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 15036 | CYGWIN*) |
| 15037 | if test $enable_shared = "no" |
| 15038 | then |
| 15039 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 15040 | fi;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 15041 | QNX*) |
| 15042 | # -Wl,-E causes the symbols to be added to the dynamic |
| 15043 | # symbol table so that they can be found when a module |
| 15044 | # is loaded. -N 2048K causes the stack size to be set |
| 15045 | # to 2048 kilobytes so that the stack doesn't overflow |
| 15046 | # when running test_compile.py. |
| 15047 | LINKFORSHARED='-Wl,-E -N 2048K';; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 15048 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 15049 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15050 | { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 15051 | echo "${ECHO_T}$LINKFORSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 15052 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15053 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 15054 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15055 | { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 15056 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15057 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 15058 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 15059 | case $ac_sys_system in |
| 15060 | CYGWIN*) |
| 15061 | # Cygwin needs CCSHARED when building extension DLLs |
| 15062 | # but not when building the interpreter DLL. |
| 15063 | CFLAGSFORSHARED='';; |
| 15064 | *) |
| 15065 | CFLAGSFORSHARED='$(CCSHARED)' |
| 15066 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15067 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15068 | { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 15069 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15070 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15071 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 15072 | # library (with --enable-shared). |
| 15073 | # 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] | 15074 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 15075 | # if it is not required, since it creates a dependency of the shared library |
| 15076 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 15077 | # don't need to link LIBS explicitly. The default should be only changed |
| 15078 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15079 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15080 | { echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 15081 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15082 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15083 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 15084 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15085 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15086 | { echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 15087 | echo "${ECHO_T}$SHLIBS" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15088 | |
| 15089 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15090 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15091 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15092 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 15093 | 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] | 15094 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15096 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15097 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15098 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15099 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15100 | /* confdefs.h. */ |
| 15101 | _ACEOF |
| 15102 | cat confdefs.h >>conftest.$ac_ext |
| 15103 | cat >>conftest.$ac_ext <<_ACEOF |
| 15104 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15105 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15106 | /* Override any GCC internal prototype to avoid an error. |
| 15107 | Use char because int might match the return type of a GCC |
| 15108 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15109 | #ifdef __cplusplus |
| 15110 | extern "C" |
| 15111 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15112 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15113 | int |
| 15114 | main () |
| 15115 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15116 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15117 | ; |
| 15118 | return 0; |
| 15119 | } |
| 15120 | _ACEOF |
| 15121 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15122 | if { (ac_try="$ac_link" |
| 15123 | case "(($ac_try" in |
| 15124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15125 | *) ac_try_echo=$ac_try;; |
| 15126 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15128 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15129 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15130 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15131 | rm -f conftest.er1 |
| 15132 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15134 | (exit $ac_status); } && { |
| 15135 | test -z "$ac_c_werror_flag" || |
| 15136 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15137 | } && test -s conftest$ac_exeext && |
| 15138 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15139 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15140 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15141 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15142 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15143 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15144 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15145 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15146 | |
| 15147 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15148 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15149 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15150 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15151 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 15152 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 15153 | if test $ac_cv_lib_dl_dlopen = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15154 | cat >>confdefs.h <<_ACEOF |
| 15155 | #define HAVE_LIBDL 1 |
| 15156 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15157 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15158 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15159 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15160 | fi |
| 15161 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15162 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15163 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 15164 | 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] | 15165 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15167 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15168 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15169 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15170 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15171 | /* confdefs.h. */ |
| 15172 | _ACEOF |
| 15173 | cat confdefs.h >>conftest.$ac_ext |
| 15174 | cat >>conftest.$ac_ext <<_ACEOF |
| 15175 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15176 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15177 | /* Override any GCC internal prototype to avoid an error. |
| 15178 | Use char because int might match the return type of a GCC |
| 15179 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15180 | #ifdef __cplusplus |
| 15181 | extern "C" |
| 15182 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15183 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15184 | int |
| 15185 | main () |
| 15186 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15187 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15188 | ; |
| 15189 | return 0; |
| 15190 | } |
| 15191 | _ACEOF |
| 15192 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15193 | if { (ac_try="$ac_link" |
| 15194 | case "(($ac_try" in |
| 15195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15196 | *) ac_try_echo=$ac_try;; |
| 15197 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15199 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15200 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15201 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15202 | rm -f conftest.er1 |
| 15203 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15205 | (exit $ac_status); } && { |
| 15206 | test -z "$ac_c_werror_flag" || |
| 15207 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15208 | } && test -s conftest$ac_exeext && |
| 15209 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15210 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15211 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15212 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15213 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15214 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15215 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15216 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15217 | |
| 15218 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15219 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15220 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15221 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15222 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 15223 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
| 15224 | if test $ac_cv_lib_dld_shl_load = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15225 | cat >>confdefs.h <<_ACEOF |
| 15226 | #define HAVE_LIBDLD 1 |
| 15227 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15228 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15229 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15230 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15231 | fi |
| 15232 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15233 | |
Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 15234 | # only check for sem_init if thread support is requested |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15235 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15236 | { echo "$as_me:$LINENO: checking for library containing sem_init" >&5 |
| 15237 | 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] | 15238 | if test "${ac_cv_search_sem_init+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 15240 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 15241 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15242 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15243 | /* confdefs.h. */ |
| 15244 | _ACEOF |
| 15245 | cat confdefs.h >>conftest.$ac_ext |
| 15246 | cat >>conftest.$ac_ext <<_ACEOF |
| 15247 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15248 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15249 | /* Override any GCC internal prototype to avoid an error. |
| 15250 | Use char because int might match the return type of a GCC |
| 15251 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15252 | #ifdef __cplusplus |
| 15253 | extern "C" |
| 15254 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15255 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15256 | int |
| 15257 | main () |
| 15258 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15259 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15260 | ; |
| 15261 | return 0; |
| 15262 | } |
| 15263 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15264 | for ac_lib in '' pthread rt posix4; do |
| 15265 | if test -z "$ac_lib"; then |
| 15266 | ac_res="none required" |
| 15267 | else |
| 15268 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15269 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15270 | fi |
| 15271 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15272 | if { (ac_try="$ac_link" |
| 15273 | case "(($ac_try" in |
| 15274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15275 | *) ac_try_echo=$ac_try;; |
| 15276 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15277 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15278 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15279 | ac_status=$? |
| 15280 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15281 | rm -f conftest.er1 |
| 15282 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15284 | (exit $ac_status); } && { |
| 15285 | test -z "$ac_c_werror_flag" || |
| 15286 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15287 | } && test -s conftest$ac_exeext && |
| 15288 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15289 | ac_cv_search_sem_init=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 15290 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15291 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15292 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15293 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15294 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 15295 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15296 | |
| 15297 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 15298 | conftest$ac_exeext |
| 15299 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 15300 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15301 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15302 | done |
| 15303 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 15304 | : |
| 15305 | else |
| 15306 | ac_cv_search_sem_init=no |
| 15307 | fi |
| 15308 | rm conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 15309 | LIBS=$ac_func_search_save_LIBS |
| 15310 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15311 | { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 15312 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15313 | ac_res=$ac_cv_search_sem_init |
| 15314 | if test "$ac_res" != no; then |
| 15315 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 15316 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 15317 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 15318 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15319 | # posix4 on Solaris 2.6 |
| 15320 | # pthread (first!) on Linux |
| 15321 | fi |
| 15322 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15323 | # check if we need libintl for locale functions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15324 | { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| 15325 | 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] | 15326 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15328 | else |
| 15329 | ac_check_lib_save_LIBS=$LIBS |
| 15330 | LIBS="-lintl $LIBS" |
| 15331 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15332 | /* confdefs.h. */ |
| 15333 | _ACEOF |
| 15334 | cat confdefs.h >>conftest.$ac_ext |
| 15335 | cat >>conftest.$ac_ext <<_ACEOF |
| 15336 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15337 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15338 | /* Override any GCC internal prototype to avoid an error. |
| 15339 | Use char because int might match the return type of a GCC |
| 15340 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15341 | #ifdef __cplusplus |
| 15342 | extern "C" |
| 15343 | #endif |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15344 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15345 | int |
| 15346 | main () |
| 15347 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15348 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15349 | ; |
| 15350 | return 0; |
| 15351 | } |
| 15352 | _ACEOF |
| 15353 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15354 | if { (ac_try="$ac_link" |
| 15355 | case "(($ac_try" in |
| 15356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15357 | *) ac_try_echo=$ac_try;; |
| 15358 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15360 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15361 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15362 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15363 | rm -f conftest.er1 |
| 15364 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15366 | (exit $ac_status); } && { |
| 15367 | test -z "$ac_c_werror_flag" || |
| 15368 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15369 | } && test -s conftest$ac_exeext && |
| 15370 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15371 | ac_cv_lib_intl_textdomain=yes |
| 15372 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15373 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15374 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15375 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15376 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15377 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15378 | |
| 15379 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15380 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15381 | LIBS=$ac_check_lib_save_LIBS |
| 15382 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15383 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| 15384 | echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; } |
| 15385 | if test $ac_cv_lib_intl_textdomain = yes; then |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15386 | |
| 15387 | cat >>confdefs.h <<\_ACEOF |
| 15388 | #define WITH_LIBINTL 1 |
| 15389 | _ACEOF |
| 15390 | |
| 15391 | fi |
| 15392 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15393 | |
| 15394 | # checks for system dependent C++ extensions support |
| 15395 | case "$ac_sys_system" in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15396 | AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 15397 | 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] | 15398 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15399 | /* confdefs.h. */ |
| 15400 | _ACEOF |
| 15401 | cat confdefs.h >>conftest.$ac_ext |
| 15402 | cat >>conftest.$ac_ext <<_ACEOF |
| 15403 | /* end confdefs.h. */ |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15404 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15405 | int |
| 15406 | main () |
| 15407 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15408 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15409 | ; |
| 15410 | return 0; |
| 15411 | } |
| 15412 | _ACEOF |
| 15413 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15414 | if { (ac_try="$ac_link" |
| 15415 | case "(($ac_try" in |
| 15416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15417 | *) ac_try_echo=$ac_try;; |
| 15418 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15420 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15421 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15422 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15423 | rm -f conftest.er1 |
| 15424 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15426 | (exit $ac_status); } && { |
| 15427 | test -z "$ac_c_werror_flag" || |
| 15428 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15429 | } && test -s conftest$ac_exeext && |
| 15430 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15431 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15432 | cat >>confdefs.h <<\_ACEOF |
| 15433 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 15434 | _ACEOF |
| 15435 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15436 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15437 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15438 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15439 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15440 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15441 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15442 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15443 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15444 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15445 | |
| 15446 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15447 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15448 | *) ;; |
| 15449 | esac |
| 15450 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 15451 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15452 | # BeOS' sockets are stashed in libnet. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15453 | { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 15454 | 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] | 15455 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15457 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15458 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15459 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15460 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15461 | /* confdefs.h. */ |
| 15462 | _ACEOF |
| 15463 | cat confdefs.h >>conftest.$ac_ext |
| 15464 | cat >>conftest.$ac_ext <<_ACEOF |
| 15465 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15466 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15467 | /* Override any GCC internal prototype to avoid an error. |
| 15468 | Use char because int might match the return type of a GCC |
| 15469 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15470 | #ifdef __cplusplus |
| 15471 | extern "C" |
| 15472 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15473 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15474 | int |
| 15475 | main () |
| 15476 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15477 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15478 | ; |
| 15479 | return 0; |
| 15480 | } |
| 15481 | _ACEOF |
| 15482 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15483 | if { (ac_try="$ac_link" |
| 15484 | case "(($ac_try" in |
| 15485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15486 | *) ac_try_echo=$ac_try;; |
| 15487 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15489 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15490 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15491 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15492 | rm -f conftest.er1 |
| 15493 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15495 | (exit $ac_status); } && { |
| 15496 | test -z "$ac_c_werror_flag" || |
| 15497 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15498 | } && test -s conftest$ac_exeext && |
| 15499 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15500 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15501 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15502 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15503 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15504 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15505 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15506 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15507 | |
| 15508 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15509 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15510 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15511 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15512 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 15513 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; } |
| 15514 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15515 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15516 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 15517 | # SVR4 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15518 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 15519 | 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] | 15520 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15522 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15523 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15524 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15525 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15526 | /* confdefs.h. */ |
| 15527 | _ACEOF |
| 15528 | cat confdefs.h >>conftest.$ac_ext |
| 15529 | cat >>conftest.$ac_ext <<_ACEOF |
| 15530 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15531 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15532 | /* Override any GCC internal prototype to avoid an error. |
| 15533 | Use char because int might match the return type of a GCC |
| 15534 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15535 | #ifdef __cplusplus |
| 15536 | extern "C" |
| 15537 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15538 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15539 | int |
| 15540 | main () |
| 15541 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15542 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15543 | ; |
| 15544 | return 0; |
| 15545 | } |
| 15546 | _ACEOF |
| 15547 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15548 | if { (ac_try="$ac_link" |
| 15549 | case "(($ac_try" in |
| 15550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15551 | *) ac_try_echo=$ac_try;; |
| 15552 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15553 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15554 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15555 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15556 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15557 | rm -f conftest.er1 |
| 15558 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15560 | (exit $ac_status); } && { |
| 15561 | test -z "$ac_c_werror_flag" || |
| 15562 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15563 | } && test -s conftest$ac_exeext && |
| 15564 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15565 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15566 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15567 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15568 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15569 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15570 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15571 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15572 | |
| 15573 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15574 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15575 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15576 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15577 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 15578 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } |
| 15579 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15580 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15581 | fi |
| 15582 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 15583 | |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 15584 | case "$ac_sys_system" in |
| 15585 | BeOS*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15586 | { echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 15587 | 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] | 15588 | if test "${ac_cv_lib_net_socket+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15589 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15590 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15591 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15592 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15593 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15594 | /* confdefs.h. */ |
| 15595 | _ACEOF |
| 15596 | cat confdefs.h >>conftest.$ac_ext |
| 15597 | cat >>conftest.$ac_ext <<_ACEOF |
| 15598 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15599 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15600 | /* Override any GCC internal prototype to avoid an error. |
| 15601 | Use char because int might match the return type of a GCC |
| 15602 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15603 | #ifdef __cplusplus |
| 15604 | extern "C" |
| 15605 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15606 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15607 | int |
| 15608 | main () |
| 15609 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15610 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15611 | ; |
| 15612 | return 0; |
| 15613 | } |
| 15614 | _ACEOF |
| 15615 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15616 | if { (ac_try="$ac_link" |
| 15617 | case "(($ac_try" in |
| 15618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15619 | *) ac_try_echo=$ac_try;; |
| 15620 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15622 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15623 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15624 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15625 | rm -f conftest.er1 |
| 15626 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15628 | (exit $ac_status); } && { |
| 15629 | test -z "$ac_c_werror_flag" || |
| 15630 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15631 | } && test -s conftest$ac_exeext && |
| 15632 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15633 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15634 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15635 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15636 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15637 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15638 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15639 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15640 | |
| 15641 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15642 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15643 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15644 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15645 | { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 15646 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; } |
| 15647 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15648 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15649 | fi |
| 15650 | # BeOS |
| 15651 | ;; |
| 15652 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 15653 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15654 | { echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 15655 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15656 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15657 | # Check whether --with-libs was given. |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 15658 | if test "${with_libs+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15659 | withval=$with_libs; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15660 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 15661 | echo "${ECHO_T}$withval" >&6; } |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 15662 | LIBS="$withval $LIBS" |
| 15663 | |
| 15664 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15665 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15666 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15667 | fi |
| 15668 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15669 | |
Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 15670 | if test -n "$ac_tool_prefix"; then |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 15671 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 15672 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 15673 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 15674 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 15675 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
| 15676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15677 | else |
| 15678 | case $PKG_CONFIG in |
| 15679 | [\\/]* | ?:[\\/]*) |
| 15680 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 15681 | ;; |
| 15682 | *) |
| 15683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15684 | for as_dir in $PATH |
| 15685 | do |
| 15686 | IFS=$as_save_IFS |
| 15687 | test -z "$as_dir" && as_dir=. |
| 15688 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15689 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 15690 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 15691 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15692 | break 2 |
| 15693 | fi |
| 15694 | done |
| 15695 | done |
| 15696 | IFS=$as_save_IFS |
| 15697 | |
| 15698 | ;; |
| 15699 | esac |
| 15700 | fi |
| 15701 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 15702 | if test -n "$PKG_CONFIG"; then |
| 15703 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| 15704 | echo "${ECHO_T}$PKG_CONFIG" >&6; } |
| 15705 | else |
| 15706 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15707 | echo "${ECHO_T}no" >&6; } |
| 15708 | fi |
| 15709 | |
| 15710 | |
| 15711 | fi |
| 15712 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 15713 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 15714 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 15715 | set dummy pkg-config; ac_word=$2 |
| 15716 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 15717 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 15718 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then |
| 15719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15720 | else |
| 15721 | case $ac_pt_PKG_CONFIG in |
| 15722 | [\\/]* | ?:[\\/]*) |
| 15723 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 15724 | ;; |
| 15725 | *) |
| 15726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15727 | for as_dir in $PATH |
| 15728 | do |
| 15729 | IFS=$as_save_IFS |
| 15730 | test -z "$as_dir" && as_dir=. |
| 15731 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15732 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 15733 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 15734 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15735 | break 2 |
| 15736 | fi |
| 15737 | done |
| 15738 | done |
| 15739 | IFS=$as_save_IFS |
| 15740 | |
| 15741 | ;; |
| 15742 | esac |
| 15743 | fi |
| 15744 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 15745 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 15746 | { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 |
| 15747 | echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } |
| 15748 | else |
| 15749 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15750 | echo "${ECHO_T}no" >&6; } |
| 15751 | fi |
| 15752 | |
| 15753 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 15754 | PKG_CONFIG="" |
| 15755 | else |
| 15756 | case $cross_compiling:$ac_tool_warned in |
| 15757 | yes:) |
| 15758 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 15759 | whose name does not start with the host triplet. If you think this |
| 15760 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 15761 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 15762 | whose name does not start with the host triplet. If you think this |
| 15763 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 15764 | ac_tool_warned=yes ;; |
| 15765 | esac |
| 15766 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 15767 | fi |
| 15768 | else |
| 15769 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 15770 | fi |
| 15771 | |
Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 15772 | |
| 15773 | # Check for use of the system expat library |
| 15774 | { echo "$as_me:$LINENO: checking for --with-system-expat" >&5 |
| 15775 | echo $ECHO_N "checking for --with-system-expat... $ECHO_C" >&6; } |
| 15776 | |
| 15777 | # Check whether --with-system_expat was given. |
| 15778 | if test "${with_system_expat+set}" = set; then |
| 15779 | withval=$with_system_expat; |
| 15780 | fi |
| 15781 | |
| 15782 | |
| 15783 | { echo "$as_me:$LINENO: result: $with_system_expat" >&5 |
| 15784 | echo "${ECHO_T}$with_system_expat" >&6; } |
| 15785 | |
| 15786 | # Check for use of the system libffi library |
| 15787 | { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5 |
| 15788 | echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; } |
| 15789 | |
| 15790 | # Check whether --with-system_ffi was given. |
| 15791 | if test "${with_system_ffi+set}" = set; then |
| 15792 | withval=$with_system_ffi; |
| 15793 | fi |
| 15794 | |
| 15795 | |
| 15796 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 15797 | LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" |
| 15798 | else |
| 15799 | LIBFFI_INCLUDEDIR="" |
| 15800 | fi |
| 15801 | |
| 15802 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15803 | { echo "$as_me:$LINENO: result: $with_system_ffi" >&5 |
| 15804 | echo "${ECHO_T}$with_system_ffi" >&6; } |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15805 | |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15806 | # Check for --with-dbmliborder |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15807 | { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5 |
| 15808 | echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; } |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15809 | |
| 15810 | # Check whether --with-dbmliborder was given. |
| 15811 | if test "${with_dbmliborder+set}" = set; then |
| 15812 | withval=$with_dbmliborder; |
| 15813 | if test x$with_dbmliborder = xyes |
| 15814 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15815 | { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5 |
| 15816 | echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;} |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15817 | { (exit 1); exit 1; }; } |
| 15818 | else |
| 15819 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do |
| 15820 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb |
| 15821 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15822 | { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5 |
| 15823 | echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;} |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15824 | { (exit 1); exit 1; }; } |
| 15825 | fi |
| 15826 | done |
| 15827 | fi |
| 15828 | fi |
| 15829 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15830 | { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5 |
| 15831 | echo "${ECHO_T}$with_dbmliborder" >&6; } |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15832 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 15833 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15834 | |
| 15835 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15836 | { echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 15837 | 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] | 15838 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15839 | # Check whether --with-signal-module was given. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15840 | if test "${with_signal_module+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15841 | withval=$with_signal_module; |
| 15842 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15843 | |
| 15844 | |
| 15845 | if test -z "$with_signal_module" |
| 15846 | then with_signal_module="yes" |
| 15847 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15848 | { echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 15849 | echo "${ECHO_T}$with_signal_module" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15850 | |
| 15851 | if test "${with_signal_module}" = "yes"; then |
| 15852 | USE_SIGNAL_MODULE="" |
| 15853 | SIGNAL_OBJS="" |
| 15854 | else |
| 15855 | USE_SIGNAL_MODULE="#" |
| 15856 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 15857 | fi |
| 15858 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 15859 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 15860 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15861 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 15862 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15863 | { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 15864 | 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] | 15865 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15866 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15867 | # Check whether --with-dec-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15868 | if test "${with_dec_threads+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15869 | withval=$with_dec_threads; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15870 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 15871 | echo "${ECHO_T}$withval" >&6; } |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15872 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15873 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15874 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15875 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15876 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15877 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15878 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15879 | fi |
| 15880 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15881 | |
| 15882 | # Templates for things AC_DEFINEd more than once. |
| 15883 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15884 | |
| 15885 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15886 | |
| 15887 | |
| 15888 | |
| 15889 | |
| 15890 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15891 | { echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 15892 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15893 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15894 | # Check whether --with-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15895 | if test "${with_threads+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15896 | withval=$with_threads; |
| 15897 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15898 | |
| 15899 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15900 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15901 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15902 | # Check whether --with-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15903 | if test "${with_thread+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15904 | withval=$with_thread; with_threads=$with_thread |
| 15905 | fi |
| 15906 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15907 | |
| 15908 | if test -z "$with_threads" |
| 15909 | then with_threads="yes" |
| 15910 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15911 | { echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 15912 | echo "${ECHO_T}$with_threads" >&6; } |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15913 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15914 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15915 | if test "$with_threads" = "no" |
| 15916 | then |
| 15917 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15918 | elif test "$ac_cv_pthread_is_default" = yes |
| 15919 | then |
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 WITH_THREAD 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 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15924 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15925 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15926 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15927 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15928 | |
| 15929 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15930 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15931 | elif test "$ac_cv_kpthread" = "yes" |
| 15932 | then |
| 15933 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15934 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 15935 | CXX="$CXX -Kpthread" |
| 15936 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15937 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 15938 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15939 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 15940 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15941 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15942 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 15943 | elif test "$ac_cv_kthread" = "yes" |
| 15944 | then |
| 15945 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15946 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 15947 | CXX="$CXX -Kthread" |
| 15948 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 15949 | cat >>confdefs.h <<\_ACEOF |
| 15950 | #define WITH_THREAD 1 |
| 15951 | _ACEOF |
| 15952 | |
| 15953 | posix_threads=yes |
| 15954 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15955 | elif test "$ac_cv_pthread" = "yes" |
| 15956 | then |
| 15957 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15958 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 15959 | CXX="$CXX -pthread" |
| 15960 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15961 | cat >>confdefs.h <<\_ACEOF |
| 15962 | #define WITH_THREAD 1 |
| 15963 | _ACEOF |
| 15964 | |
| 15965 | posix_threads=yes |
| 15966 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15967 | else |
| 15968 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 15969 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 15970 | fi |
| 15971 | if test ! -z "$withval" -a -d "$withval" |
| 15972 | then LDFLAGS="$LDFLAGS -L$withval" |
| 15973 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15974 | |
| 15975 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 15976 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 15977 | # (e.g. gnu pth with pthread emulation) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15978 | { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 15979 | 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] | 15980 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15981 | /* confdefs.h. */ |
| 15982 | _ACEOF |
| 15983 | cat confdefs.h >>conftest.$ac_ext |
| 15984 | cat >>conftest.$ac_ext <<_ACEOF |
| 15985 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 15986 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15987 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 15988 | #ifdef _POSIX_THREADS |
| 15989 | yes |
| 15990 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15991 | |
| 15992 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15993 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15994 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15995 | unistd_defines_pthreads=yes |
| 15996 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15997 | unistd_defines_pthreads=no |
| 15998 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame^] | 15999 | rm -f conftest* |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 16000 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16001 | { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 16002 | echo "${ECHO_T}$unistd_defines_pthreads" >&6; } |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 16003 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16004 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 16005 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16006 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 16007 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16008 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16009 | { echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 16010 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16011 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16013 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16014 | { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 16015 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16016 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16017 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16018 | { echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 16019 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16020 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16021 | /* confdefs.h. */ |
| 16022 | _ACEOF |
| 16023 | cat confdefs.h >>conftest.$ac_ext |
| 16024 | cat >>conftest.$ac_ext <<_ACEOF |
| 16025 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16026 | $ac_includes_default |
| 16027 | #include <cthreads.h> |
| 16028 | _ACEOF |
| 16029 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16030 | if { (ac_try="$ac_compile" |
| 16031 | case "(($ac_try" in |
| 16032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16033 | *) ac_try_echo=$ac_try;; |
| 16034 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16036 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16037 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16038 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16039 | rm -f conftest.er1 |
| 16040 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16042 | (exit $ac_status); } && { |
| 16043 | test -z "$ac_c_werror_flag" || |
| 16044 | test ! -s conftest.err |
| 16045 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16046 | ac_header_compiler=yes |
| 16047 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16048 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16049 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16050 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16051 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16052 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16053 | |
| 16054 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16055 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16056 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16057 | |
| 16058 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16059 | { echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 16060 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16061 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16062 | /* confdefs.h. */ |
| 16063 | _ACEOF |
| 16064 | cat confdefs.h >>conftest.$ac_ext |
| 16065 | cat >>conftest.$ac_ext <<_ACEOF |
| 16066 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16067 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16068 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16069 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16070 | case "(($ac_try" in |
| 16071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16072 | *) ac_try_echo=$ac_try;; |
| 16073 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16075 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16076 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16077 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16078 | rm -f conftest.er1 |
| 16079 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16081 | (exit $ac_status); } >/dev/null && { |
| 16082 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16083 | test ! -s conftest.err |
| 16084 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16085 | ac_header_preproc=yes |
| 16086 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16087 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16088 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16089 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16090 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16091 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16092 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16093 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16094 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16095 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16096 | |
| 16097 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16098 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16099 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16100 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16101 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16102 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5 |
| 16103 | 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] | 16104 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16105 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16106 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16107 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 16108 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 16109 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 16110 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 16111 | { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5 |
| 16112 | echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;} |
| 16113 | { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16114 | echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16115 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 16116 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 16117 | { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5 |
| 16118 | 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] | 16119 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 16120 | ## -------------------------------------- ## |
| 16121 | ## Report this to http://bugs.python.org/ ## |
| 16122 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16123 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16124 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16125 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16126 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16127 | { echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 16128 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16129 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16131 | else |
| 16132 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16133 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16134 | { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 16135 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16136 | |
| 16137 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16138 | if test $ac_cv_header_cthreads_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16139 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16140 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16141 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16142 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16143 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16144 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16145 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16146 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16147 | |
| 16148 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16149 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16150 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16151 | |
| 16152 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16153 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16154 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16155 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16156 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16157 | { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 16158 | 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] | 16159 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16160 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16161 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16162 | { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 16163 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16164 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16165 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16166 | { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 16167 | 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] | 16168 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16169 | /* confdefs.h. */ |
| 16170 | _ACEOF |
| 16171 | cat confdefs.h >>conftest.$ac_ext |
| 16172 | cat >>conftest.$ac_ext <<_ACEOF |
| 16173 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16174 | $ac_includes_default |
| 16175 | #include <mach/cthreads.h> |
| 16176 | _ACEOF |
| 16177 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16178 | if { (ac_try="$ac_compile" |
| 16179 | case "(($ac_try" in |
| 16180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16181 | *) ac_try_echo=$ac_try;; |
| 16182 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16183 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16184 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16185 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16186 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16187 | rm -f conftest.er1 |
| 16188 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16190 | (exit $ac_status); } && { |
| 16191 | test -z "$ac_c_werror_flag" || |
| 16192 | test ! -s conftest.err |
| 16193 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16194 | ac_header_compiler=yes |
| 16195 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16196 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16197 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16198 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16199 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16200 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16201 | |
| 16202 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16203 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16204 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16205 | |
| 16206 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16207 | { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 16208 | 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] | 16209 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16210 | /* confdefs.h. */ |
| 16211 | _ACEOF |
| 16212 | cat confdefs.h >>conftest.$ac_ext |
| 16213 | cat >>conftest.$ac_ext <<_ACEOF |
| 16214 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16215 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16216 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16217 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16218 | case "(($ac_try" in |
| 16219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16220 | *) ac_try_echo=$ac_try;; |
| 16221 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16223 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16224 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16225 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16226 | rm -f conftest.er1 |
| 16227 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16229 | (exit $ac_status); } >/dev/null && { |
| 16230 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16231 | test ! -s conftest.err |
| 16232 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16233 | ac_header_preproc=yes |
| 16234 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16235 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16236 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16237 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16238 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16239 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16240 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16241 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16242 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16243 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16244 | |
| 16245 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16246 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16247 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16248 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16249 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16250 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5 |
| 16251 | 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] | 16252 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16253 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16254 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16255 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 16256 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 16257 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 16258 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 16259 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5 |
| 16260 | echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;} |
| 16261 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16262 | echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16263 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 16264 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 16265 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5 |
| 16266 | 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] | 16267 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 16268 | ## -------------------------------------- ## |
| 16269 | ## Report this to http://bugs.python.org/ ## |
| 16270 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16271 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16272 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16273 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16274 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16275 | { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 16276 | 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] | 16277 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16279 | else |
| 16280 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16281 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16282 | { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 16283 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16284 | |
| 16285 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16286 | if test $ac_cv_header_mach_cthreads_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16287 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16288 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16289 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16290 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16291 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16292 | #define 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 | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16295 | |
| 16296 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16297 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16298 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16299 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16300 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16301 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16302 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16303 | { echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 16304 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16305 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16306 | # Check whether --with-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16307 | if test "${with_pth+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16308 | withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5 |
| 16309 | echo "${ECHO_T}$withval" >&6; } |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 16310 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16311 | #define WITH_THREAD 1 |
| 16312 | _ACEOF |
| 16313 | |
| 16314 | |
| 16315 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16316 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16317 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16318 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 16319 | LIBS="-lpth $LIBS" |
| 16320 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16321 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16322 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16323 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16324 | |
| 16325 | # Just looking for pthread_create in libpthread is not enough: |
| 16326 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 16327 | # So we really have to include pthread.h, and then link. |
| 16328 | _libs=$LIBS |
| 16329 | LIBS="$LIBS -lpthread" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16330 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 16331 | 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] | 16332 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16333 | /* confdefs.h. */ |
| 16334 | _ACEOF |
| 16335 | cat confdefs.h >>conftest.$ac_ext |
| 16336 | cat >>conftest.$ac_ext <<_ACEOF |
| 16337 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16338 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16339 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16340 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16341 | int |
| 16342 | main () |
| 16343 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16344 | |
| 16345 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16346 | ; |
| 16347 | return 0; |
| 16348 | } |
| 16349 | _ACEOF |
| 16350 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16351 | if { (ac_try="$ac_link" |
| 16352 | case "(($ac_try" in |
| 16353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16354 | *) ac_try_echo=$ac_try;; |
| 16355 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16356 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16357 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16358 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16359 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16360 | rm -f conftest.er1 |
| 16361 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16363 | (exit $ac_status); } && { |
| 16364 | test -z "$ac_c_werror_flag" || |
| 16365 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16366 | } && test -s conftest$ac_exeext && |
| 16367 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16368 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16369 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16370 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16371 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16372 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16373 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16374 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 16375 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16376 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16377 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16378 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16379 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16380 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16381 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16382 | LIBS=$_libs |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16383 | { echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 16384 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16385 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16387 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16388 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16389 | /* confdefs.h. */ |
| 16390 | _ACEOF |
| 16391 | cat confdefs.h >>conftest.$ac_ext |
| 16392 | cat >>conftest.$ac_ext <<_ACEOF |
| 16393 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16394 | /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach. |
| 16395 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16396 | #define pthread_detach innocuous_pthread_detach |
| 16397 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16398 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16399 | which can conflict with char pthread_detach (); below. |
| 16400 | 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] | 16401 | <limits.h> exists even on freestanding compilers. */ |
| 16402 | |
| 16403 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16404 | # include <limits.h> |
| 16405 | #else |
| 16406 | # include <assert.h> |
| 16407 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16408 | |
| 16409 | #undef pthread_detach |
| 16410 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16411 | /* Override any GCC internal prototype to avoid an error. |
| 16412 | Use char because int might match the return type of a GCC |
| 16413 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16414 | #ifdef __cplusplus |
| 16415 | extern "C" |
| 16416 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16417 | char pthread_detach (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16418 | /* The GNU C library defines this for functions which it implements |
| 16419 | to always fail with ENOSYS. Some functions are actually named |
| 16420 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16421 | #if defined __stub_pthread_detach || defined __stub___pthread_detach |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16422 | choke me |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16423 | #endif |
| 16424 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16425 | int |
| 16426 | main () |
| 16427 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16428 | return pthread_detach (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16429 | ; |
| 16430 | return 0; |
| 16431 | } |
| 16432 | _ACEOF |
| 16433 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16434 | if { (ac_try="$ac_link" |
| 16435 | case "(($ac_try" in |
| 16436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16437 | *) ac_try_echo=$ac_try;; |
| 16438 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16440 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16441 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16442 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16443 | rm -f conftest.er1 |
| 16444 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16446 | (exit $ac_status); } && { |
| 16447 | test -z "$ac_c_werror_flag" || |
| 16448 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16449 | } && test -s conftest$ac_exeext && |
| 16450 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16451 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16452 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16453 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16454 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16455 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16456 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16457 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16458 | |
| 16459 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16460 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16461 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16462 | { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 16463 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; } |
| 16464 | if test $ac_cv_func_pthread_detach = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16465 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16466 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16467 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16468 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 16469 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16470 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16471 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16472 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16473 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16474 | { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 16475 | 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] | 16476 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16477 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16478 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16479 | { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 16480 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16481 | else |
| 16482 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16483 | { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 16484 | 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] | 16485 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16486 | /* confdefs.h. */ |
| 16487 | _ACEOF |
| 16488 | cat confdefs.h >>conftest.$ac_ext |
| 16489 | cat >>conftest.$ac_ext <<_ACEOF |
| 16490 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16491 | $ac_includes_default |
| 16492 | #include <atheos/threads.h> |
| 16493 | _ACEOF |
| 16494 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16495 | if { (ac_try="$ac_compile" |
| 16496 | case "(($ac_try" in |
| 16497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16498 | *) ac_try_echo=$ac_try;; |
| 16499 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16501 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16502 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16503 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16504 | rm -f conftest.er1 |
| 16505 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16507 | (exit $ac_status); } && { |
| 16508 | test -z "$ac_c_werror_flag" || |
| 16509 | test ! -s conftest.err |
| 16510 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16511 | ac_header_compiler=yes |
| 16512 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16513 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16514 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16515 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16516 | ac_header_compiler=no |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16517 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16518 | |
| 16519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16520 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16521 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16522 | |
| 16523 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16524 | { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 16525 | 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] | 16526 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16527 | /* confdefs.h. */ |
| 16528 | _ACEOF |
| 16529 | cat confdefs.h >>conftest.$ac_ext |
| 16530 | cat >>conftest.$ac_ext <<_ACEOF |
| 16531 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16532 | #include <atheos/threads.h> |
| 16533 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16534 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16535 | case "(($ac_try" in |
| 16536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16537 | *) ac_try_echo=$ac_try;; |
| 16538 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16540 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16541 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16542 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16543 | rm -f conftest.er1 |
| 16544 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16546 | (exit $ac_status); } >/dev/null && { |
| 16547 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16548 | test ! -s conftest.err |
| 16549 | }; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16550 | ac_header_preproc=yes |
| 16551 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16552 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16553 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16554 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16555 | ac_header_preproc=no |
| 16556 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16557 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16558 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16559 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16560 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16561 | |
| 16562 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16563 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16564 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16565 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16566 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16567 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5 |
| 16568 | 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] | 16569 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16570 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16571 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16572 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 16573 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 16574 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 16575 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 16576 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5 |
| 16577 | echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;} |
| 16578 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16579 | echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16580 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 16581 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;} |
| 16582 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5 |
| 16583 | 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] | 16584 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 16585 | ## -------------------------------------- ## |
| 16586 | ## Report this to http://bugs.python.org/ ## |
| 16587 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16588 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16589 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16590 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16591 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16592 | { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 16593 | 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] | 16594 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16595 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16596 | else |
| 16597 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 16598 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16599 | { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 16600 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16601 | |
| 16602 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16603 | if test $ac_cv_header_atheos_threads_h = yes; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16604 | cat >>confdefs.h <<\_ACEOF |
| 16605 | #define WITH_THREAD 1 |
| 16606 | _ACEOF |
| 16607 | |
| 16608 | |
| 16609 | cat >>confdefs.h <<\_ACEOF |
| 16610 | #define ATHEOS_THREADS 1 |
| 16611 | _ACEOF |
| 16612 | |
| 16613 | THREADOBJ="Python/thread.o" |
| 16614 | else |
| 16615 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16616 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16617 | { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 16618 | 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] | 16619 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16621 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16622 | { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 16623 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16624 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16625 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16626 | { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 16627 | 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] | 16628 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16629 | /* confdefs.h. */ |
| 16630 | _ACEOF |
| 16631 | cat confdefs.h >>conftest.$ac_ext |
| 16632 | cat >>conftest.$ac_ext <<_ACEOF |
| 16633 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16634 | $ac_includes_default |
| 16635 | #include <kernel/OS.h> |
| 16636 | _ACEOF |
| 16637 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16638 | if { (ac_try="$ac_compile" |
| 16639 | case "(($ac_try" in |
| 16640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16641 | *) ac_try_echo=$ac_try;; |
| 16642 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16644 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16645 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16646 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16647 | rm -f conftest.er1 |
| 16648 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16650 | (exit $ac_status); } && { |
| 16651 | test -z "$ac_c_werror_flag" || |
| 16652 | test ! -s conftest.err |
| 16653 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16654 | ac_header_compiler=yes |
| 16655 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16656 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16657 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16658 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16659 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16660 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16661 | |
| 16662 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16663 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16664 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16665 | |
| 16666 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16667 | { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 16668 | 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] | 16669 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16670 | /* confdefs.h. */ |
| 16671 | _ACEOF |
| 16672 | cat confdefs.h >>conftest.$ac_ext |
| 16673 | cat >>conftest.$ac_ext <<_ACEOF |
| 16674 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16675 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16676 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16677 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16678 | case "(($ac_try" in |
| 16679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16680 | *) ac_try_echo=$ac_try;; |
| 16681 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16683 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16684 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16685 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16686 | rm -f conftest.er1 |
| 16687 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16689 | (exit $ac_status); } >/dev/null && { |
| 16690 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16691 | test ! -s conftest.err |
| 16692 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16693 | ac_header_preproc=yes |
| 16694 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16695 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16696 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16697 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16698 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16699 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16700 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16701 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16702 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16703 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16704 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16705 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16706 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16707 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16708 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16709 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16710 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5 |
| 16711 | 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] | 16712 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16713 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16714 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16715 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 16716 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| 16717 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 16718 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 16719 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5 |
| 16720 | echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;} |
| 16721 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16722 | echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16723 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 16724 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;} |
| 16725 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5 |
| 16726 | 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] | 16727 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 16728 | ## -------------------------------------- ## |
| 16729 | ## Report this to http://bugs.python.org/ ## |
| 16730 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16731 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16732 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16733 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16734 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16735 | { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 16736 | 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] | 16737 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16739 | else |
| 16740 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 16741 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16742 | { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 16743 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16744 | |
| 16745 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16746 | if test $ac_cv_header_kernel_OS_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16747 | cat >>confdefs.h <<\_ACEOF |
| 16748 | #define WITH_THREAD 1 |
| 16749 | _ACEOF |
| 16750 | |
| 16751 | |
| 16752 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16753 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16754 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16755 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16756 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16757 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16758 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16759 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 16760 | 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] | 16761 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16763 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16764 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16765 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16766 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16767 | /* confdefs.h. */ |
| 16768 | _ACEOF |
| 16769 | cat confdefs.h >>conftest.$ac_ext |
| 16770 | cat >>conftest.$ac_ext <<_ACEOF |
| 16771 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16772 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16773 | /* Override any GCC internal prototype to avoid an error. |
| 16774 | Use char because int might match the return type of a GCC |
| 16775 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16776 | #ifdef __cplusplus |
| 16777 | extern "C" |
| 16778 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16779 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16780 | int |
| 16781 | main () |
| 16782 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16783 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16784 | ; |
| 16785 | return 0; |
| 16786 | } |
| 16787 | _ACEOF |
| 16788 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16789 | if { (ac_try="$ac_link" |
| 16790 | case "(($ac_try" in |
| 16791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16792 | *) ac_try_echo=$ac_try;; |
| 16793 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16794 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16795 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16796 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16797 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16798 | rm -f conftest.er1 |
| 16799 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16801 | (exit $ac_status); } && { |
| 16802 | test -z "$ac_c_werror_flag" || |
| 16803 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16804 | } && test -s conftest$ac_exeext && |
| 16805 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16806 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16807 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16808 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16809 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16810 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16811 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16812 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16813 | |
| 16814 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16815 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16816 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16817 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16818 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 16819 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; } |
| 16820 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16821 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16822 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16823 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16824 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16825 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16826 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16827 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16828 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16829 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16830 | { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 16831 | 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] | 16832 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16834 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16835 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16836 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16837 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16838 | /* confdefs.h. */ |
| 16839 | _ACEOF |
| 16840 | cat confdefs.h >>conftest.$ac_ext |
| 16841 | cat >>conftest.$ac_ext <<_ACEOF |
| 16842 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16843 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16844 | /* Override any GCC internal prototype to avoid an error. |
| 16845 | Use char because int might match the return type of a GCC |
| 16846 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16847 | #ifdef __cplusplus |
| 16848 | extern "C" |
| 16849 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16850 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16851 | int |
| 16852 | main () |
| 16853 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16854 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16855 | ; |
| 16856 | return 0; |
| 16857 | } |
| 16858 | _ACEOF |
| 16859 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16860 | if { (ac_try="$ac_link" |
| 16861 | case "(($ac_try" in |
| 16862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16863 | *) ac_try_echo=$ac_try;; |
| 16864 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16866 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16867 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16868 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16869 | rm -f conftest.er1 |
| 16870 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16872 | (exit $ac_status); } && { |
| 16873 | test -z "$ac_c_werror_flag" || |
| 16874 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16875 | } && test -s conftest$ac_exeext && |
| 16876 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16877 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16878 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16879 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16880 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16881 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16882 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16883 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16884 | |
| 16885 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16886 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16887 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16888 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16889 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 16890 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; } |
| 16891 | 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] | 16892 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16893 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16894 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16895 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16896 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16897 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16898 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 16899 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 16900 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16901 | { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 16902 | 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] | 16903 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16905 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16906 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16907 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16908 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16909 | /* confdefs.h. */ |
| 16910 | _ACEOF |
| 16911 | cat confdefs.h >>conftest.$ac_ext |
| 16912 | cat >>conftest.$ac_ext <<_ACEOF |
| 16913 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16914 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16915 | /* Override any GCC internal prototype to avoid an error. |
| 16916 | Use char because int might match the return type of a GCC |
| 16917 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16918 | #ifdef __cplusplus |
| 16919 | extern "C" |
| 16920 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16921 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16922 | int |
| 16923 | main () |
| 16924 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16925 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16926 | ; |
| 16927 | return 0; |
| 16928 | } |
| 16929 | _ACEOF |
| 16930 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16931 | if { (ac_try="$ac_link" |
| 16932 | case "(($ac_try" in |
| 16933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16934 | *) ac_try_echo=$ac_try;; |
| 16935 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16937 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16938 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16939 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16940 | rm -f conftest.er1 |
| 16941 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16943 | (exit $ac_status); } && { |
| 16944 | test -z "$ac_c_werror_flag" || |
| 16945 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16946 | } && test -s conftest$ac_exeext && |
| 16947 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16948 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16949 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16950 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16951 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16952 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16953 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16954 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16955 | |
| 16956 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16957 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16958 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16959 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16960 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 16961 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; } |
| 16962 | 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] | 16963 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16964 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16965 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16966 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16967 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16968 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16969 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16970 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16971 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16972 | { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 16973 | 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] | 16974 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16975 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16976 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16977 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16978 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16979 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16980 | /* confdefs.h. */ |
| 16981 | _ACEOF |
| 16982 | cat confdefs.h >>conftest.$ac_ext |
| 16983 | cat >>conftest.$ac_ext <<_ACEOF |
| 16984 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16985 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16986 | /* Override any GCC internal prototype to avoid an error. |
| 16987 | Use char because int might match the return type of a GCC |
| 16988 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16989 | #ifdef __cplusplus |
| 16990 | extern "C" |
| 16991 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16992 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16993 | int |
| 16994 | main () |
| 16995 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16996 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16997 | ; |
| 16998 | return 0; |
| 16999 | } |
| 17000 | _ACEOF |
| 17001 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17002 | if { (ac_try="$ac_link" |
| 17003 | case "(($ac_try" in |
| 17004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17005 | *) ac_try_echo=$ac_try;; |
| 17006 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17008 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17009 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17010 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17011 | rm -f conftest.er1 |
| 17012 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17014 | (exit $ac_status); } && { |
| 17015 | test -z "$ac_c_werror_flag" || |
| 17016 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17017 | } && test -s conftest$ac_exeext && |
| 17018 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17019 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 17020 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17021 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17022 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17023 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17024 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 17025 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17026 | |
| 17027 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17028 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17029 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 17030 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17031 | { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 17032 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; } |
| 17033 | if test $ac_cv_lib_cma_pthread_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17034 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 17035 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17036 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 17037 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17038 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 17039 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 17040 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 17041 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 17042 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 17043 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 17044 | fi |
| 17045 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17046 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 17047 | fi |
| 17048 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 17049 | fi |
| 17050 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 17051 | fi |
| 17052 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 17053 | fi |
| 17054 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 17055 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17056 | fi |
| 17057 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 17058 | |
| 17059 | fi |
| 17060 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 17061 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17062 | |
| 17063 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17064 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17065 | fi |
| 17066 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17067 | fi |
| 17068 | |
| 17069 | |
| 17070 | fi |
| 17071 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 17072 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17073 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17074 | { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 17075 | 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] | 17076 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17078 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17079 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17080 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17081 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17082 | /* confdefs.h. */ |
| 17083 | _ACEOF |
| 17084 | cat confdefs.h >>conftest.$ac_ext |
| 17085 | cat >>conftest.$ac_ext <<_ACEOF |
| 17086 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17087 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17088 | /* Override any GCC internal prototype to avoid an error. |
| 17089 | Use char because int might match the return type of a GCC |
| 17090 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17091 | #ifdef __cplusplus |
| 17092 | extern "C" |
| 17093 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17094 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17095 | int |
| 17096 | main () |
| 17097 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17098 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17099 | ; |
| 17100 | return 0; |
| 17101 | } |
| 17102 | _ACEOF |
| 17103 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17104 | if { (ac_try="$ac_link" |
| 17105 | case "(($ac_try" in |
| 17106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17107 | *) ac_try_echo=$ac_try;; |
| 17108 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17110 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17111 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17112 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17113 | rm -f conftest.er1 |
| 17114 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17116 | (exit $ac_status); } && { |
| 17117 | test -z "$ac_c_werror_flag" || |
| 17118 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17119 | } && test -s conftest$ac_exeext && |
| 17120 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17121 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17122 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17123 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17124 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17125 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17126 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17127 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17128 | |
| 17129 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17130 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17131 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17132 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17133 | { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 17134 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; } |
| 17135 | if test $ac_cv_lib_mpc_usconfig = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17136 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17137 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17138 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17139 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 17140 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 17141 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 17142 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17143 | fi |
| 17144 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 17145 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 17146 | if test "$posix_threads" != "yes"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17147 | { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 17148 | 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] | 17149 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17151 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17152 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17153 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17154 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17155 | /* confdefs.h. */ |
| 17156 | _ACEOF |
| 17157 | cat confdefs.h >>conftest.$ac_ext |
| 17158 | cat >>conftest.$ac_ext <<_ACEOF |
| 17159 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17160 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17161 | /* Override any GCC internal prototype to avoid an error. |
| 17162 | Use char because int might match the return type of a GCC |
| 17163 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17164 | #ifdef __cplusplus |
| 17165 | extern "C" |
| 17166 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17167 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17168 | int |
| 17169 | main () |
| 17170 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17171 | return thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17172 | ; |
| 17173 | return 0; |
| 17174 | } |
| 17175 | _ACEOF |
| 17176 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17177 | if { (ac_try="$ac_link" |
| 17178 | case "(($ac_try" in |
| 17179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17180 | *) ac_try_echo=$ac_try;; |
| 17181 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17183 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17184 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17185 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17186 | rm -f conftest.er1 |
| 17187 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17189 | (exit $ac_status); } && { |
| 17190 | test -z "$ac_c_werror_flag" || |
| 17191 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17192 | } && test -s conftest$ac_exeext && |
| 17193 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17194 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17195 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17196 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17197 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17198 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17199 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17200 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17201 | |
| 17202 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17203 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17204 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17205 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17206 | { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 17207 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; } |
| 17208 | if test $ac_cv_lib_thread_thr_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17209 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17210 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17211 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17212 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 17213 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 17214 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 17215 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17216 | fi |
| 17217 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 17218 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17219 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 17220 | if test "$USE_THREAD_MODULE" != "#" |
| 17221 | then |
| 17222 | # If the above checks didn't disable threads, (at least) OSF1 |
| 17223 | # needs this '-threads' argument during linking. |
| 17224 | case $ac_sys_system in |
| 17225 | OSF1) LDLAST=-threads;; |
| 17226 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 17227 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17228 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 17229 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17230 | if test "$posix_threads" = "yes"; then |
| 17231 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 17232 | |
| 17233 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17234 | #define _POSIX_THREADS 1 |
| 17235 | _ACEOF |
| 17236 | |
| 17237 | fi |
| 17238 | |
| 17239 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 17240 | case $ac_sys_system/$ac_sys_release in |
| 17241 | SunOS/5.6) |
| 17242 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 17243 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 17244 | _ACEOF |
| 17245 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17246 | ;; |
| 17247 | SunOS/5.8) |
| 17248 | cat >>confdefs.h <<\_ACEOF |
| 17249 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 17250 | _ACEOF |
| 17251 | |
| 17252 | ;; |
Christian Heimes | cba36bb | 2008-01-30 22:54:18 +0000 | [diff] [blame] | 17253 | AIX/5) |
| 17254 | cat >>confdefs.h <<\_ACEOF |
| 17255 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 17256 | _ACEOF |
| 17257 | |
| 17258 | ;; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17259 | esac |
| 17260 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17261 | { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 17262 | 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] | 17263 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17265 | else |
| 17266 | if test "$cross_compiling" = yes; then |
| 17267 | ac_cv_pthread_system_supported=no |
| 17268 | else |
| 17269 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17270 | /* confdefs.h. */ |
| 17271 | _ACEOF |
| 17272 | cat confdefs.h >>conftest.$ac_ext |
| 17273 | cat >>conftest.$ac_ext <<_ACEOF |
| 17274 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17275 | #include <pthread.h> |
| 17276 | void *foo(void *parm) { |
| 17277 | return NULL; |
| 17278 | } |
| 17279 | main() { |
| 17280 | pthread_attr_t attr; |
| 17281 | pthread_t id; |
| 17282 | if (pthread_attr_init(&attr)) exit(-1); |
| 17283 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 17284 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 17285 | exit(0); |
| 17286 | } |
| 17287 | _ACEOF |
| 17288 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17289 | if { (ac_try="$ac_link" |
| 17290 | case "(($ac_try" in |
| 17291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17292 | *) ac_try_echo=$ac_try;; |
| 17293 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17295 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17296 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17298 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17299 | { (case "(($ac_try" in |
| 17300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17301 | *) ac_try_echo=$ac_try;; |
| 17302 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17304 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17305 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17307 | (exit $ac_status); }; }; then |
| 17308 | ac_cv_pthread_system_supported=yes |
| 17309 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17310 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17311 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17312 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17313 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17314 | ( exit $ac_status ) |
| 17315 | ac_cv_pthread_system_supported=no |
| 17316 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17317 | 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] | 17318 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 17319 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17320 | |
| 17321 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17322 | fi |
| 17323 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17324 | { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 17325 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17326 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 17327 | |
| 17328 | cat >>confdefs.h <<\_ACEOF |
| 17329 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 17330 | _ACEOF |
| 17331 | |
| 17332 | fi |
| 17333 | |
| 17334 | for ac_func in pthread_sigmask |
| 17335 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17336 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17337 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17338 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17339 | 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] | 17340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17341 | else |
| 17342 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17343 | /* confdefs.h. */ |
| 17344 | _ACEOF |
| 17345 | cat confdefs.h >>conftest.$ac_ext |
| 17346 | cat >>conftest.$ac_ext <<_ACEOF |
| 17347 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17348 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17349 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17350 | #define $ac_func innocuous_$ac_func |
| 17351 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17352 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17353 | which can conflict with char $ac_func (); below. |
| 17354 | 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] | 17355 | <limits.h> exists even on freestanding compilers. */ |
| 17356 | |
| 17357 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17358 | # include <limits.h> |
| 17359 | #else |
| 17360 | # include <assert.h> |
| 17361 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17362 | |
| 17363 | #undef $ac_func |
| 17364 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17365 | /* Override any GCC internal prototype to avoid an error. |
| 17366 | Use char because int might match the return type of a GCC |
| 17367 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17368 | #ifdef __cplusplus |
| 17369 | extern "C" |
| 17370 | #endif |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17371 | char $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17372 | /* The GNU C library defines this for functions which it implements |
| 17373 | to always fail with ENOSYS. Some functions are actually named |
| 17374 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17375 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17376 | choke me |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17377 | #endif |
| 17378 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17379 | int |
| 17380 | main () |
| 17381 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17382 | return $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17383 | ; |
| 17384 | return 0; |
| 17385 | } |
| 17386 | _ACEOF |
| 17387 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17388 | if { (ac_try="$ac_link" |
| 17389 | case "(($ac_try" in |
| 17390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17391 | *) ac_try_echo=$ac_try;; |
| 17392 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17394 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17395 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17396 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17397 | rm -f conftest.er1 |
| 17398 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17400 | (exit $ac_status); } && { |
| 17401 | test -z "$ac_c_werror_flag" || |
| 17402 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17403 | } && test -s conftest$ac_exeext && |
| 17404 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17405 | eval "$as_ac_var=yes" |
| 17406 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17407 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17408 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17409 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17410 | eval "$as_ac_var=no" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17411 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17412 | |
| 17413 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17414 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17415 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17416 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17417 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17418 | echo "${ECHO_T}$ac_res" >&6; } |
| 17419 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17420 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17421 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17422 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 17423 | case $ac_sys_system in |
| 17424 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17425 | |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 17426 | cat >>confdefs.h <<\_ACEOF |
| 17427 | #define HAVE_BROKEN_PTHREAD_SIGMASK 1 |
| 17428 | _ACEOF |
| 17429 | |
| 17430 | ;; |
| 17431 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17432 | fi |
| 17433 | done |
| 17434 | |
| 17435 | fi |
| 17436 | |
| 17437 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17438 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17439 | |
| 17440 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17441 | { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 17442 | 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] | 17443 | # Check whether --enable-ipv6 was given. |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17444 | if test "${enable_ipv6+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17445 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17446 | no) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17447 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17448 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17449 | ipv6=no |
| 17450 | ;; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17451 | *) { echo "$as_me:$LINENO: result: yes" >&5 |
| 17452 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17453 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17454 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17455 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17456 | |
| 17457 | ipv6=yes |
| 17458 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17459 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17460 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17461 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17462 | if test "$cross_compiling" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17463 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17464 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17465 | ipv6=no |
| 17466 | |
| 17467 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17468 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17469 | /* confdefs.h. */ |
| 17470 | _ACEOF |
| 17471 | cat confdefs.h >>conftest.$ac_ext |
| 17472 | cat >>conftest.$ac_ext <<_ACEOF |
| 17473 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17474 | /* AF_INET6 available check */ |
| 17475 | #include <sys/types.h> |
| 17476 | #include <sys/socket.h> |
| 17477 | main() |
| 17478 | { |
| 17479 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 17480 | exit(1); |
| 17481 | else |
| 17482 | exit(0); |
| 17483 | } |
| 17484 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17485 | _ACEOF |
| 17486 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17487 | if { (ac_try="$ac_link" |
| 17488 | case "(($ac_try" in |
| 17489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17490 | *) ac_try_echo=$ac_try;; |
| 17491 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17493 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17494 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17496 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17497 | { (case "(($ac_try" in |
| 17498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17499 | *) ac_try_echo=$ac_try;; |
| 17500 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17502 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17503 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17505 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17506 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17507 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17508 | ipv6=yes |
| 17509 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17510 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17511 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17512 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17513 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17514 | ( exit $ac_status ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17515 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17516 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17517 | ipv6=no |
| 17518 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17519 | 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] | 17520 | fi |
| 17521 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17522 | |
| 17523 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17524 | if test "$ipv6" = "yes"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17525 | { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 17526 | 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] | 17527 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17528 | /* confdefs.h. */ |
| 17529 | _ACEOF |
| 17530 | cat confdefs.h >>conftest.$ac_ext |
| 17531 | cat >>conftest.$ac_ext <<_ACEOF |
| 17532 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17533 | #include <sys/types.h> |
| 17534 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17535 | int |
| 17536 | main () |
| 17537 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17538 | struct sockaddr_in6 x; |
| 17539 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17540 | ; |
| 17541 | return 0; |
| 17542 | } |
| 17543 | _ACEOF |
| 17544 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17545 | if { (ac_try="$ac_compile" |
| 17546 | case "(($ac_try" in |
| 17547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17548 | *) ac_try_echo=$ac_try;; |
| 17549 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17551 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17552 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17553 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17554 | rm -f conftest.er1 |
| 17555 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17557 | (exit $ac_status); } && { |
| 17558 | test -z "$ac_c_werror_flag" || |
| 17559 | test ! -s conftest.err |
| 17560 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17561 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17562 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17563 | ipv6=yes |
| 17564 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17565 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17566 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17567 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17568 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17569 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17570 | ipv6=no |
| 17571 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17572 | |
| 17573 | 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] | 17574 | fi |
| 17575 | |
| 17576 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17577 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17578 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17579 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17580 | |
| 17581 | fi |
| 17582 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17583 | fi |
| 17584 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17585 | |
| 17586 | ipv6type=unknown |
| 17587 | ipv6lib=none |
| 17588 | ipv6trylibc=no |
| 17589 | |
| 17590 | if test "$ipv6" = "yes"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17591 | { echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 17592 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; } |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 17593 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 17594 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17595 | case $i in |
| 17596 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17597 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17598 | /* confdefs.h. */ |
| 17599 | _ACEOF |
| 17600 | cat confdefs.h >>conftest.$ac_ext |
| 17601 | cat >>conftest.$ac_ext <<_ACEOF |
| 17602 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17603 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17604 | #include <netinet/in.h> |
| 17605 | #ifdef IPV6_INRIA_VERSION |
| 17606 | yes |
| 17607 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17608 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17609 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17610 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 17611 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17612 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame^] | 17613 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17614 | |
| 17615 | ;; |
| 17616 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17617 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17618 | /* confdefs.h. */ |
| 17619 | _ACEOF |
| 17620 | cat confdefs.h >>conftest.$ac_ext |
| 17621 | cat >>conftest.$ac_ext <<_ACEOF |
| 17622 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17623 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17624 | #include <netinet/in.h> |
| 17625 | #ifdef __KAME__ |
| 17626 | yes |
| 17627 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17628 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17629 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17630 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17631 | ipv6type=$i; |
| 17632 | ipv6lib=inet6 |
| 17633 | ipv6libdir=/usr/local/v6/lib |
| 17634 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17635 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame^] | 17636 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17637 | |
| 17638 | ;; |
| 17639 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17640 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17641 | /* confdefs.h. */ |
| 17642 | _ACEOF |
| 17643 | cat confdefs.h >>conftest.$ac_ext |
| 17644 | cat >>conftest.$ac_ext <<_ACEOF |
| 17645 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17646 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17647 | #include <features.h> |
| 17648 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 17649 | yes |
| 17650 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17651 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17652 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17653 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17654 | ipv6type=$i; |
| 17655 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17656 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame^] | 17657 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17658 | |
| 17659 | ;; |
| 17660 | linux-inet6) |
| 17661 | if test -d /usr/inet6; then |
| 17662 | ipv6type=$i |
| 17663 | ipv6lib=inet6 |
| 17664 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 17665 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17666 | fi |
| 17667 | ;; |
| 17668 | solaris) |
| 17669 | if test -f /etc/netconfig; then |
| 17670 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 17671 | ipv6type=$i |
| 17672 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17673 | fi |
| 17674 | fi |
| 17675 | ;; |
| 17676 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17677 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17678 | /* confdefs.h. */ |
| 17679 | _ACEOF |
| 17680 | cat confdefs.h >>conftest.$ac_ext |
| 17681 | cat >>conftest.$ac_ext <<_ACEOF |
| 17682 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17683 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17684 | #include <sys/param.h> |
| 17685 | #ifdef _TOSHIBA_INET6 |
| 17686 | yes |
| 17687 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17688 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17689 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17690 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17691 | ipv6type=$i; |
| 17692 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 17693 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17694 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame^] | 17695 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17696 | |
| 17697 | ;; |
| 17698 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17699 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17700 | /* confdefs.h. */ |
| 17701 | _ACEOF |
| 17702 | cat confdefs.h >>conftest.$ac_ext |
| 17703 | cat >>conftest.$ac_ext <<_ACEOF |
| 17704 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17705 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17706 | #include </usr/local/v6/include/sys/v6config.h> |
| 17707 | #ifdef __V6D__ |
| 17708 | yes |
| 17709 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17710 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17711 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17712 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17713 | ipv6type=$i; |
| 17714 | ipv6lib=v6; |
| 17715 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 17716 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17717 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame^] | 17718 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17719 | |
| 17720 | ;; |
| 17721 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17722 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17723 | /* confdefs.h. */ |
| 17724 | _ACEOF |
| 17725 | cat confdefs.h >>conftest.$ac_ext |
| 17726 | cat >>conftest.$ac_ext <<_ACEOF |
| 17727 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17728 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17729 | #include <sys/param.h> |
| 17730 | #ifdef _ZETA_MINAMI_INET6 |
| 17731 | yes |
| 17732 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17733 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17734 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17735 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17736 | ipv6type=$i; |
| 17737 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 17738 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17739 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame^] | 17740 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17741 | |
| 17742 | ;; |
| 17743 | esac |
| 17744 | if test "$ipv6type" != "unknown"; then |
| 17745 | break |
| 17746 | fi |
| 17747 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17748 | { echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 17749 | echo "${ECHO_T}$ipv6type" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17750 | fi |
| 17751 | |
| 17752 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 17753 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 17754 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 17755 | echo "using lib$ipv6lib" |
| 17756 | else |
| 17757 | if test $ipv6trylibc = "yes"; then |
| 17758 | echo "using libc" |
| 17759 | else |
| 17760 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 17761 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 17762 | echo 'ipv6 kit and compile beforehand.' |
| 17763 | exit 1 |
| 17764 | fi |
| 17765 | fi |
| 17766 | fi |
| 17767 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17768 | { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5 |
| 17769 | 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] | 17770 | cat >conftest.$ac_ext <<_ACEOF |
| 17771 | /* confdefs.h. */ |
| 17772 | _ACEOF |
| 17773 | cat confdefs.h >>conftest.$ac_ext |
| 17774 | cat >>conftest.$ac_ext <<_ACEOF |
| 17775 | /* end confdefs.h. */ |
| 17776 | #include <Carbon/Carbon.h> |
| 17777 | int |
| 17778 | main () |
| 17779 | { |
| 17780 | FSIORefNum fRef = 0 |
| 17781 | ; |
| 17782 | return 0; |
| 17783 | } |
| 17784 | _ACEOF |
| 17785 | rm -f conftest.$ac_objext |
| 17786 | if { (ac_try="$ac_compile" |
| 17787 | case "(($ac_try" in |
| 17788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17789 | *) ac_try_echo=$ac_try;; |
| 17790 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17792 | (eval "$ac_compile") 2>conftest.er1 |
| 17793 | ac_status=$? |
| 17794 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17795 | rm -f conftest.er1 |
| 17796 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17798 | (exit $ac_status); } && { |
| 17799 | test -z "$ac_c_werror_flag" || |
| 17800 | test ! -s conftest.err |
| 17801 | } && test -s conftest.$ac_objext; then |
| 17802 | |
| 17803 | cat >>confdefs.h <<\_ACEOF |
| 17804 | #define HAVE_OSX105_SDK 1 |
| 17805 | _ACEOF |
| 17806 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17807 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17808 | echo "${ECHO_T}yes" >&6; } |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17809 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17810 | echo "$as_me: failed program was:" >&5 |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17811 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17812 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17813 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17814 | echo "${ECHO_T}no" >&6; } |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17815 | |
| 17816 | fi |
| 17817 | |
| 17818 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17819 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17820 | # Check for --with-doc-strings |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17821 | { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 17822 | 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] | 17823 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17824 | # Check whether --with-doc-strings was given. |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17825 | if test "${with_doc_strings+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17826 | withval=$with_doc_strings; |
| 17827 | fi |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17828 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17829 | |
| 17830 | if test -z "$with_doc_strings" |
| 17831 | then with_doc_strings="yes" |
| 17832 | fi |
| 17833 | if test "$with_doc_strings" != "no" |
| 17834 | then |
| 17835 | |
| 17836 | cat >>confdefs.h <<\_ACEOF |
| 17837 | #define WITH_DOC_STRINGS 1 |
| 17838 | _ACEOF |
| 17839 | |
| 17840 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17841 | { echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 17842 | echo "${ECHO_T}$with_doc_strings" >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17843 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 17844 | # Check for Python-specific malloc support |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17845 | { echo "$as_me:$LINENO: checking for --with-tsc" >&5 |
| 17846 | echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17847 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17848 | # Check whether --with-tsc was given. |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17849 | if test "${with_tsc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17850 | withval=$with_tsc; |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17851 | if test "$withval" != no |
| 17852 | then |
| 17853 | |
| 17854 | cat >>confdefs.h <<\_ACEOF |
| 17855 | #define WITH_TSC 1 |
| 17856 | _ACEOF |
| 17857 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17858 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17859 | echo "${ECHO_T}yes" >&6; } |
| 17860 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 17861 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17862 | fi |
| 17863 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17864 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17865 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17866 | fi |
| 17867 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17868 | |
| 17869 | # Check for Python-specific malloc support |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17870 | { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 17871 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17872 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17873 | # Check whether --with-pymalloc was given. |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 17874 | if test "${with_pymalloc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17875 | withval=$with_pymalloc; |
| 17876 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17877 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 17878 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17879 | if test -z "$with_pymalloc" |
| 17880 | then with_pymalloc="yes" |
| 17881 | fi |
| 17882 | if test "$with_pymalloc" != "no" |
| 17883 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17884 | |
| 17885 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17886 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17887 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17888 | |
| 17889 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17890 | { echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 17891 | echo "${ECHO_T}$with_pymalloc" >&6; } |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17892 | |
Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 17893 | # Check for Valgrind support |
| 17894 | { echo "$as_me:$LINENO: checking for --with-valgrind" >&5 |
| 17895 | echo $ECHO_N "checking for --with-valgrind... $ECHO_C" >&6; } |
| 17896 | |
| 17897 | # Check whether --with-valgrind was given. |
| 17898 | if test "${with_valgrind+set}" = set; then |
| 17899 | withval=$with_valgrind; |
| 17900 | else |
| 17901 | with_valgrind=no |
| 17902 | fi |
| 17903 | |
| 17904 | { echo "$as_me:$LINENO: result: $with_valgrind" >&5 |
| 17905 | echo "${ECHO_T}$with_valgrind" >&6; } |
| 17906 | if test "$with_valgrind" != no; then |
| 17907 | if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then |
| 17908 | { echo "$as_me:$LINENO: checking for valgrind/valgrind.h" >&5 |
| 17909 | echo $ECHO_N "checking for valgrind/valgrind.h... $ECHO_C" >&6; } |
| 17910 | if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then |
| 17911 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17912 | fi |
| 17913 | { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_valgrind_h" >&5 |
| 17914 | echo "${ECHO_T}$ac_cv_header_valgrind_valgrind_h" >&6; } |
| 17915 | else |
| 17916 | # Is the header compilable? |
| 17917 | { echo "$as_me:$LINENO: checking valgrind/valgrind.h usability" >&5 |
| 17918 | echo $ECHO_N "checking valgrind/valgrind.h usability... $ECHO_C" >&6; } |
| 17919 | cat >conftest.$ac_ext <<_ACEOF |
| 17920 | /* confdefs.h. */ |
| 17921 | _ACEOF |
| 17922 | cat confdefs.h >>conftest.$ac_ext |
| 17923 | cat >>conftest.$ac_ext <<_ACEOF |
| 17924 | /* end confdefs.h. */ |
| 17925 | $ac_includes_default |
| 17926 | #include <valgrind/valgrind.h> |
| 17927 | _ACEOF |
| 17928 | rm -f conftest.$ac_objext |
| 17929 | if { (ac_try="$ac_compile" |
| 17930 | case "(($ac_try" in |
| 17931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17932 | *) ac_try_echo=$ac_try;; |
| 17933 | esac |
| 17934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17935 | (eval "$ac_compile") 2>conftest.er1 |
| 17936 | ac_status=$? |
| 17937 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17938 | rm -f conftest.er1 |
| 17939 | cat conftest.err >&5 |
| 17940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17941 | (exit $ac_status); } && { |
| 17942 | test -z "$ac_c_werror_flag" || |
| 17943 | test ! -s conftest.err |
| 17944 | } && test -s conftest.$ac_objext; then |
| 17945 | ac_header_compiler=yes |
| 17946 | else |
| 17947 | echo "$as_me: failed program was:" >&5 |
| 17948 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17949 | |
| 17950 | ac_header_compiler=no |
| 17951 | fi |
| 17952 | |
| 17953 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17954 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 17955 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 17956 | |
| 17957 | # Is the header present? |
| 17958 | { echo "$as_me:$LINENO: checking valgrind/valgrind.h presence" >&5 |
| 17959 | echo $ECHO_N "checking valgrind/valgrind.h presence... $ECHO_C" >&6; } |
| 17960 | cat >conftest.$ac_ext <<_ACEOF |
| 17961 | /* confdefs.h. */ |
| 17962 | _ACEOF |
| 17963 | cat confdefs.h >>conftest.$ac_ext |
| 17964 | cat >>conftest.$ac_ext <<_ACEOF |
| 17965 | /* end confdefs.h. */ |
| 17966 | #include <valgrind/valgrind.h> |
| 17967 | _ACEOF |
| 17968 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 17969 | case "(($ac_try" in |
| 17970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17971 | *) ac_try_echo=$ac_try;; |
| 17972 | esac |
| 17973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17974 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 17975 | ac_status=$? |
| 17976 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17977 | rm -f conftest.er1 |
| 17978 | cat conftest.err >&5 |
| 17979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17980 | (exit $ac_status); } >/dev/null && { |
| 17981 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 17982 | test ! -s conftest.err |
| 17983 | }; then |
| 17984 | ac_header_preproc=yes |
| 17985 | else |
| 17986 | echo "$as_me: failed program was:" >&5 |
| 17987 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17988 | |
| 17989 | ac_header_preproc=no |
| 17990 | fi |
| 17991 | |
| 17992 | rm -f conftest.err conftest.$ac_ext |
| 17993 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 17994 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 17995 | |
| 17996 | # So? What about this header? |
| 17997 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 17998 | yes:no: ) |
| 17999 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 18000 | echo "$as_me: WARNING: valgrind/valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 18001 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: proceeding with the compiler's result" >&5 |
| 18002 | echo "$as_me: WARNING: valgrind/valgrind.h: proceeding with the compiler's result" >&2;} |
| 18003 | ac_header_preproc=yes |
| 18004 | ;; |
| 18005 | no:yes:* ) |
| 18006 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: present but cannot be compiled" >&5 |
| 18007 | echo "$as_me: WARNING: valgrind/valgrind.h: present but cannot be compiled" >&2;} |
| 18008 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: check for missing prerequisite headers?" >&5 |
| 18009 | echo "$as_me: WARNING: valgrind/valgrind.h: check for missing prerequisite headers?" >&2;} |
| 18010 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: see the Autoconf documentation" >&5 |
| 18011 | echo "$as_me: WARNING: valgrind/valgrind.h: see the Autoconf documentation" >&2;} |
| 18012 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 18013 | echo "$as_me: WARNING: valgrind/valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 18014 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: proceeding with the preprocessor's result" >&5 |
| 18015 | echo "$as_me: WARNING: valgrind/valgrind.h: proceeding with the preprocessor's result" >&2;} |
| 18016 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: in the future, the compiler will take precedence" >&5 |
| 18017 | echo "$as_me: WARNING: valgrind/valgrind.h: in the future, the compiler will take precedence" >&2;} |
| 18018 | ( cat <<\_ASBOX |
| 18019 | ## -------------------------------------- ## |
| 18020 | ## Report this to http://bugs.python.org/ ## |
| 18021 | ## -------------------------------------- ## |
| 18022 | _ASBOX |
| 18023 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 18024 | ;; |
| 18025 | esac |
| 18026 | { echo "$as_me:$LINENO: checking for valgrind/valgrind.h" >&5 |
| 18027 | echo $ECHO_N "checking for valgrind/valgrind.h... $ECHO_C" >&6; } |
| 18028 | if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then |
| 18029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18030 | else |
| 18031 | ac_cv_header_valgrind_valgrind_h=$ac_header_preproc |
| 18032 | fi |
| 18033 | { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_valgrind_h" >&5 |
| 18034 | echo "${ECHO_T}$ac_cv_header_valgrind_valgrind_h" >&6; } |
| 18035 | |
| 18036 | fi |
| 18037 | if test $ac_cv_header_valgrind_valgrind_h = yes; then |
| 18038 | |
| 18039 | cat >>confdefs.h <<\_ACEOF |
| 18040 | #define WITH_VALGRIND 1 |
| 18041 | _ACEOF |
| 18042 | |
| 18043 | else |
| 18044 | { { echo "$as_me:$LINENO: error: Valgrind support requested but headers not available" >&5 |
| 18045 | echo "$as_me: error: Valgrind support requested but headers not available" >&2;} |
| 18046 | { (exit 1); exit 1; }; } |
| 18047 | |
| 18048 | fi |
| 18049 | |
| 18050 | |
| 18051 | fi |
| 18052 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 18053 | # Check for --with-wctype-functions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18054 | { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 18055 | 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] | 18056 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18057 | # Check whether --with-wctype-functions was given. |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 18058 | if test "${with_wctype_functions+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18059 | withval=$with_wctype_functions; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 18060 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18061 | then |
| 18062 | |
| 18063 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 18064 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18065 | _ACEOF |
| 18066 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18067 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18068 | echo "${ECHO_T}yes" >&6; } |
| 18069 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 18070 | echo "${ECHO_T}no" >&6; } |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 18071 | fi |
| 18072 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18073 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18074 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18075 | fi |
| 18076 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 18077 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 18078 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18079 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 18080 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18081 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18082 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 18083 | # 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] | 18084 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 18085 | for ac_func in dlopen |
| 18086 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18087 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18088 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18089 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18090 | 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] | 18091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18092 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18093 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18094 | /* confdefs.h. */ |
| 18095 | _ACEOF |
| 18096 | cat confdefs.h >>conftest.$ac_ext |
| 18097 | cat >>conftest.$ac_ext <<_ACEOF |
| 18098 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18099 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18100 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18101 | #define $ac_func innocuous_$ac_func |
| 18102 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18103 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18104 | which can conflict with char $ac_func (); below. |
| 18105 | 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] | 18106 | <limits.h> exists even on freestanding compilers. */ |
| 18107 | |
| 18108 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18109 | # include <limits.h> |
| 18110 | #else |
| 18111 | # include <assert.h> |
| 18112 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18113 | |
| 18114 | #undef $ac_func |
| 18115 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18116 | /* Override any GCC internal prototype to avoid an error. |
| 18117 | Use char because int might match the return type of a GCC |
| 18118 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18119 | #ifdef __cplusplus |
| 18120 | extern "C" |
| 18121 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18122 | char $ac_func (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18123 | /* The GNU C library defines this for functions which it implements |
| 18124 | to always fail with ENOSYS. Some functions are actually named |
| 18125 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18126 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18127 | choke me |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18128 | #endif |
| 18129 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18130 | int |
| 18131 | main () |
| 18132 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18133 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18134 | ; |
| 18135 | return 0; |
| 18136 | } |
| 18137 | _ACEOF |
| 18138 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18139 | if { (ac_try="$ac_link" |
| 18140 | case "(($ac_try" in |
| 18141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18142 | *) ac_try_echo=$ac_try;; |
| 18143 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18145 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18146 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18147 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18148 | rm -f conftest.er1 |
| 18149 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18151 | (exit $ac_status); } && { |
| 18152 | test -z "$ac_c_werror_flag" || |
| 18153 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18154 | } && test -s conftest$ac_exeext && |
| 18155 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18156 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18157 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18158 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18159 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18160 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18161 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18162 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18163 | |
| 18164 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18165 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18166 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18167 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18168 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18169 | echo "${ECHO_T}$ac_res" >&6; } |
| 18170 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18171 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18172 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18173 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18174 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18175 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 18176 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18177 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18178 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18179 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 18180 | # loading of modules. |
| 18181 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18182 | { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 18183 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18184 | if test -z "$DYNLOADFILE" |
| 18185 | then |
| 18186 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 18187 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 18188 | if test "$ac_cv_func_dlopen" = yes |
| 18189 | then DYNLOADFILE="dynload_shlib.o" |
| 18190 | else DYNLOADFILE="dynload_aix.o" |
| 18191 | fi |
| 18192 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18193 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 18194 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 18195 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() |
| 18196 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 18197 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18198 | *) |
| 18199 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 18200 | # out any dynamic loading |
| 18201 | if test "$ac_cv_func_dlopen" = yes |
| 18202 | then DYNLOADFILE="dynload_shlib.o" |
| 18203 | else DYNLOADFILE="dynload_stub.o" |
| 18204 | fi |
| 18205 | ;; |
| 18206 | esac |
| 18207 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18208 | { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 18209 | echo "${ECHO_T}$DYNLOADFILE" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18210 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 18211 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18212 | |
| 18213 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18214 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18215 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18216 | |
| 18217 | fi |
| 18218 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 18219 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 18220 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18221 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18222 | { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 18223 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 18224 | if test -z "$MACHDEP_OBJS" |
| 18225 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 18226 | MACHDEP_OBJS=$extra_machdep_objs |
| 18227 | else |
| 18228 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 18229 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18230 | { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 18231 | echo "${ECHO_T}MACHDEP_OBJS" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 18232 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18233 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | |
| 18300 | |
| 18301 | |
| 18302 | |
| 18303 | |
| 18304 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 18305 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 18306 | |
| 18307 | |
Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 18308 | |
| 18309 | |
Martin v. Löwis | 382abef | 2007-02-19 10:55:19 +0000 | [diff] [blame] | 18310 | |
| 18311 | |
Christian Heimes | 3628187 | 2007-11-30 21:11:28 +0000 | [diff] [blame] | 18312 | |
Martin v. Löwis | aef18b1 | 2008-03-24 13:31:16 +0000 | [diff] [blame] | 18313 | |
| 18314 | |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 18315 | |
| 18316 | |
| 18317 | |
| 18318 | |
Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 18319 | |
| 18320 | |
| 18321 | |
| 18322 | |
| 18323 | |
| 18324 | |
| 18325 | |
| 18326 | |
| 18327 | |
| 18328 | |
| 18329 | |
| 18330 | |
| 18331 | |
Antoine Pitrou | 30b3b35 | 2009-12-02 20:37:54 +0000 | [diff] [blame] | 18332 | |
Martin v. Löwis | aef18b1 | 2008-03-24 13:31:16 +0000 | [diff] [blame] | 18333 | for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \ |
| 18334 | clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 18335 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 18336 | getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ |
Antoine Pitrou | 30b3b35 | 2009-12-02 20:37:54 +0000 | [diff] [blame] | 18337 | initgroups kill killpg lchmod lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 18338 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 18339 | putenv readlink realpath \ |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 18340 | select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \ |
| 18341 | setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 18342 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 18343 | setlocale setregid setreuid setresuid setresgid \ |
| 18344 | setsid setpgid setpgrp setuid setvbuf snprintf \ |
Skip Montanaro | 7e11a01 | 2004-02-07 12:55:46 +0000 | [diff] [blame] | 18345 | sigaction siginterrupt sigrelse strftime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 18346 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 18347 | truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18348 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18349 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18350 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18351 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18352 | 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] | 18353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18354 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18355 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18356 | /* confdefs.h. */ |
| 18357 | _ACEOF |
| 18358 | cat confdefs.h >>conftest.$ac_ext |
| 18359 | cat >>conftest.$ac_ext <<_ACEOF |
| 18360 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18361 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18362 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18363 | #define $ac_func innocuous_$ac_func |
| 18364 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18365 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18366 | which can conflict with char $ac_func (); below. |
| 18367 | 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] | 18368 | <limits.h> exists even on freestanding compilers. */ |
| 18369 | |
| 18370 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18371 | # include <limits.h> |
| 18372 | #else |
| 18373 | # include <assert.h> |
| 18374 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18375 | |
| 18376 | #undef $ac_func |
| 18377 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18378 | /* Override any GCC internal prototype to avoid an error. |
| 18379 | Use char because int might match the return type of a GCC |
| 18380 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18381 | #ifdef __cplusplus |
| 18382 | extern "C" |
| 18383 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18384 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18385 | /* The GNU C library defines this for functions which it implements |
| 18386 | to always fail with ENOSYS. Some functions are actually named |
| 18387 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18388 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18389 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18390 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18391 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18392 | int |
| 18393 | main () |
| 18394 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18395 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18396 | ; |
| 18397 | return 0; |
| 18398 | } |
| 18399 | _ACEOF |
| 18400 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18401 | if { (ac_try="$ac_link" |
| 18402 | case "(($ac_try" in |
| 18403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18404 | *) ac_try_echo=$ac_try;; |
| 18405 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18407 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18408 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18409 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18410 | rm -f conftest.er1 |
| 18411 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18413 | (exit $ac_status); } && { |
| 18414 | test -z "$ac_c_werror_flag" || |
| 18415 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18416 | } && test -s conftest$ac_exeext && |
| 18417 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18418 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18419 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18420 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18421 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18422 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18423 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18424 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18425 | |
| 18426 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18427 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18428 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18429 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18430 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18431 | echo "${ECHO_T}$ac_res" >&6; } |
| 18432 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18433 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18434 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18435 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18436 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 18437 | fi |
| 18438 | done |
| 18439 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18440 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18441 | # For some functions, having a definition is not sufficient, since |
| 18442 | # we want to take their address. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18443 | { echo "$as_me:$LINENO: checking for chroot" >&5 |
| 18444 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18445 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18446 | /* confdefs.h. */ |
| 18447 | _ACEOF |
| 18448 | cat confdefs.h >>conftest.$ac_ext |
| 18449 | cat >>conftest.$ac_ext <<_ACEOF |
| 18450 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18451 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18452 | int |
| 18453 | main () |
| 18454 | { |
| 18455 | void *x=chroot |
| 18456 | ; |
| 18457 | return 0; |
| 18458 | } |
| 18459 | _ACEOF |
| 18460 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18461 | if { (ac_try="$ac_compile" |
| 18462 | case "(($ac_try" in |
| 18463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18464 | *) ac_try_echo=$ac_try;; |
| 18465 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18467 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18468 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18469 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18470 | rm -f conftest.er1 |
| 18471 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18473 | (exit $ac_status); } && { |
| 18474 | test -z "$ac_c_werror_flag" || |
| 18475 | test ! -s conftest.err |
| 18476 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18477 | |
| 18478 | cat >>confdefs.h <<\_ACEOF |
| 18479 | #define HAVE_CHROOT 1 |
| 18480 | _ACEOF |
| 18481 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18482 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18483 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18484 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18485 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18486 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18487 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18488 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18489 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18490 | |
| 18491 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18492 | |
| 18493 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18494 | { echo "$as_me:$LINENO: checking for link" >&5 |
| 18495 | echo $ECHO_N "checking for link... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18496 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18497 | /* confdefs.h. */ |
| 18498 | _ACEOF |
| 18499 | cat confdefs.h >>conftest.$ac_ext |
| 18500 | cat >>conftest.$ac_ext <<_ACEOF |
| 18501 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18502 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18503 | int |
| 18504 | main () |
| 18505 | { |
| 18506 | void *x=link |
| 18507 | ; |
| 18508 | return 0; |
| 18509 | } |
| 18510 | _ACEOF |
| 18511 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18512 | if { (ac_try="$ac_compile" |
| 18513 | case "(($ac_try" in |
| 18514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18515 | *) ac_try_echo=$ac_try;; |
| 18516 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18518 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18519 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18520 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18521 | rm -f conftest.er1 |
| 18522 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18524 | (exit $ac_status); } && { |
| 18525 | test -z "$ac_c_werror_flag" || |
| 18526 | test ! -s conftest.err |
| 18527 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18528 | |
| 18529 | cat >>confdefs.h <<\_ACEOF |
| 18530 | #define HAVE_LINK 1 |
| 18531 | _ACEOF |
| 18532 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18533 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18534 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18535 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18536 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18537 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18538 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18539 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18540 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18541 | |
| 18542 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18543 | |
| 18544 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18545 | { echo "$as_me:$LINENO: checking for symlink" >&5 |
| 18546 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18547 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18548 | /* confdefs.h. */ |
| 18549 | _ACEOF |
| 18550 | cat confdefs.h >>conftest.$ac_ext |
| 18551 | cat >>conftest.$ac_ext <<_ACEOF |
| 18552 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18553 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18554 | int |
| 18555 | main () |
| 18556 | { |
| 18557 | void *x=symlink |
| 18558 | ; |
| 18559 | return 0; |
| 18560 | } |
| 18561 | _ACEOF |
| 18562 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18563 | if { (ac_try="$ac_compile" |
| 18564 | case "(($ac_try" in |
| 18565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18566 | *) ac_try_echo=$ac_try;; |
| 18567 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18569 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18570 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18571 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18572 | rm -f conftest.er1 |
| 18573 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18575 | (exit $ac_status); } && { |
| 18576 | test -z "$ac_c_werror_flag" || |
| 18577 | test ! -s conftest.err |
| 18578 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18579 | |
| 18580 | cat >>confdefs.h <<\_ACEOF |
| 18581 | #define HAVE_SYMLINK 1 |
| 18582 | _ACEOF |
| 18583 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18584 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18585 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18586 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18587 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18588 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18589 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18590 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18591 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18592 | |
| 18593 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18594 | |
| 18595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18596 | { echo "$as_me:$LINENO: checking for fchdir" >&5 |
| 18597 | echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18598 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18599 | /* confdefs.h. */ |
| 18600 | _ACEOF |
| 18601 | cat confdefs.h >>conftest.$ac_ext |
| 18602 | cat >>conftest.$ac_ext <<_ACEOF |
| 18603 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18604 | #include <unistd.h> |
| 18605 | int |
| 18606 | main () |
| 18607 | { |
| 18608 | void *x=fchdir |
| 18609 | ; |
| 18610 | return 0; |
| 18611 | } |
| 18612 | _ACEOF |
| 18613 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18614 | if { (ac_try="$ac_compile" |
| 18615 | case "(($ac_try" in |
| 18616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18617 | *) ac_try_echo=$ac_try;; |
| 18618 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18619 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18620 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18621 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18622 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18623 | rm -f conftest.er1 |
| 18624 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18626 | (exit $ac_status); } && { |
| 18627 | test -z "$ac_c_werror_flag" || |
| 18628 | test ! -s conftest.err |
| 18629 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18630 | |
| 18631 | cat >>confdefs.h <<\_ACEOF |
| 18632 | #define HAVE_FCHDIR 1 |
| 18633 | _ACEOF |
| 18634 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18635 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18636 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18637 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18638 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18639 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18640 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18641 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18642 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18643 | |
| 18644 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18645 | |
| 18646 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18647 | { echo "$as_me:$LINENO: checking for fsync" >&5 |
| 18648 | echo $ECHO_N "checking for fsync... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18649 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18650 | /* confdefs.h. */ |
| 18651 | _ACEOF |
| 18652 | cat confdefs.h >>conftest.$ac_ext |
| 18653 | cat >>conftest.$ac_ext <<_ACEOF |
| 18654 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18655 | #include <unistd.h> |
| 18656 | int |
| 18657 | main () |
| 18658 | { |
| 18659 | void *x=fsync |
| 18660 | ; |
| 18661 | return 0; |
| 18662 | } |
| 18663 | _ACEOF |
| 18664 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18665 | if { (ac_try="$ac_compile" |
| 18666 | case "(($ac_try" in |
| 18667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18668 | *) ac_try_echo=$ac_try;; |
| 18669 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18671 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18672 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18673 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18674 | rm -f conftest.er1 |
| 18675 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18677 | (exit $ac_status); } && { |
| 18678 | test -z "$ac_c_werror_flag" || |
| 18679 | test ! -s conftest.err |
| 18680 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18681 | |
| 18682 | cat >>confdefs.h <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18683 | #define HAVE_FSYNC 1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18684 | _ACEOF |
| 18685 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18686 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18687 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18688 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18689 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18690 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18691 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18692 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18693 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18694 | |
| 18695 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18696 | |
| 18697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18698 | { echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 18699 | echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18700 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18701 | /* confdefs.h. */ |
| 18702 | _ACEOF |
| 18703 | cat confdefs.h >>conftest.$ac_ext |
| 18704 | cat >>conftest.$ac_ext <<_ACEOF |
| 18705 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18706 | #include <unistd.h> |
| 18707 | int |
| 18708 | main () |
| 18709 | { |
| 18710 | void *x=fdatasync |
| 18711 | ; |
| 18712 | return 0; |
| 18713 | } |
| 18714 | _ACEOF |
| 18715 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18716 | if { (ac_try="$ac_compile" |
| 18717 | case "(($ac_try" in |
| 18718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18719 | *) ac_try_echo=$ac_try;; |
| 18720 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18722 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18723 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18724 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18725 | rm -f conftest.er1 |
| 18726 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18728 | (exit $ac_status); } && { |
| 18729 | test -z "$ac_c_werror_flag" || |
| 18730 | test ! -s conftest.err |
| 18731 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18732 | |
| 18733 | cat >>confdefs.h <<\_ACEOF |
| 18734 | #define HAVE_FDATASYNC 1 |
| 18735 | _ACEOF |
| 18736 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18737 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18738 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18739 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18740 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18741 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18742 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18743 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18744 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18745 | |
| 18746 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18747 | |
| 18748 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18749 | { echo "$as_me:$LINENO: checking for epoll" >&5 |
| 18750 | echo $ECHO_N "checking for epoll... $ECHO_C" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18751 | cat >conftest.$ac_ext <<_ACEOF |
| 18752 | /* confdefs.h. */ |
| 18753 | _ACEOF |
| 18754 | cat confdefs.h >>conftest.$ac_ext |
| 18755 | cat >>conftest.$ac_ext <<_ACEOF |
| 18756 | /* end confdefs.h. */ |
| 18757 | #include <sys/epoll.h> |
| 18758 | int |
| 18759 | main () |
| 18760 | { |
| 18761 | void *x=epoll_create |
| 18762 | ; |
| 18763 | return 0; |
| 18764 | } |
| 18765 | _ACEOF |
| 18766 | rm -f conftest.$ac_objext |
| 18767 | if { (ac_try="$ac_compile" |
| 18768 | case "(($ac_try" in |
| 18769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18770 | *) ac_try_echo=$ac_try;; |
| 18771 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18772 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18773 | (eval "$ac_compile") 2>conftest.er1 |
| 18774 | ac_status=$? |
| 18775 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18776 | rm -f conftest.er1 |
| 18777 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18779 | (exit $ac_status); } && { |
| 18780 | test -z "$ac_c_werror_flag" || |
| 18781 | test ! -s conftest.err |
| 18782 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18783 | |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18784 | cat >>confdefs.h <<\_ACEOF |
| 18785 | #define HAVE_EPOLL 1 |
| 18786 | _ACEOF |
| 18787 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18788 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18789 | echo "${ECHO_T}yes" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18790 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18791 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18792 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18793 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18794 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18795 | echo "${ECHO_T}no" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18796 | |
| 18797 | fi |
| 18798 | |
| 18799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18800 | { echo "$as_me:$LINENO: checking for kqueue" >&5 |
| 18801 | echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18802 | cat >conftest.$ac_ext <<_ACEOF |
| 18803 | /* confdefs.h. */ |
| 18804 | _ACEOF |
| 18805 | cat confdefs.h >>conftest.$ac_ext |
| 18806 | cat >>conftest.$ac_ext <<_ACEOF |
| 18807 | /* end confdefs.h. */ |
| 18808 | |
| 18809 | #include <sys/types.h> |
| 18810 | #include <sys/event.h> |
| 18811 | |
| 18812 | int |
| 18813 | main () |
| 18814 | { |
| 18815 | int x=kqueue() |
| 18816 | ; |
| 18817 | return 0; |
| 18818 | } |
| 18819 | _ACEOF |
| 18820 | rm -f conftest.$ac_objext |
| 18821 | if { (ac_try="$ac_compile" |
| 18822 | case "(($ac_try" in |
| 18823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18824 | *) ac_try_echo=$ac_try;; |
| 18825 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18827 | (eval "$ac_compile") 2>conftest.er1 |
| 18828 | ac_status=$? |
| 18829 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18830 | rm -f conftest.er1 |
| 18831 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18833 | (exit $ac_status); } && { |
| 18834 | test -z "$ac_c_werror_flag" || |
| 18835 | test ! -s conftest.err |
| 18836 | } && test -s conftest.$ac_objext; then |
| 18837 | |
| 18838 | cat >>confdefs.h <<\_ACEOF |
| 18839 | #define HAVE_KQUEUE 1 |
| 18840 | _ACEOF |
| 18841 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18842 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18843 | echo "${ECHO_T}yes" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18844 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18845 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18846 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18847 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18848 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18849 | echo "${ECHO_T}no" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18850 | |
| 18851 | fi |
| 18852 | |
| 18853 | 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] | 18854 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 18855 | # functions ctermid_r, setgroups in the library, but no prototype |
| 18856 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 18857 | # address to avoid compiler warnings and potential miscompilations |
| 18858 | # because of the missing prototypes. |
| 18859 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18860 | { echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 18861 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18862 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18863 | /* confdefs.h. */ |
| 18864 | _ACEOF |
| 18865 | cat confdefs.h >>conftest.$ac_ext |
| 18866 | cat >>conftest.$ac_ext <<_ACEOF |
| 18867 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18868 | |
| 18869 | #include "confdefs.h" |
| 18870 | #include <stdio.h> |
| 18871 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18872 | int |
| 18873 | main () |
| 18874 | { |
| 18875 | void* p = ctermid_r |
| 18876 | ; |
| 18877 | return 0; |
| 18878 | } |
| 18879 | _ACEOF |
| 18880 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18881 | if { (ac_try="$ac_compile" |
| 18882 | case "(($ac_try" in |
| 18883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18884 | *) ac_try_echo=$ac_try;; |
| 18885 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18887 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18888 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18889 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18890 | rm -f conftest.er1 |
| 18891 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18893 | (exit $ac_status); } && { |
| 18894 | test -z "$ac_c_werror_flag" || |
| 18895 | test ! -s conftest.err |
| 18896 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18897 | |
| 18898 | cat >>confdefs.h <<\_ACEOF |
| 18899 | #define HAVE_CTERMID_R 1 |
| 18900 | _ACEOF |
| 18901 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18902 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18903 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18904 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18905 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18906 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18907 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18908 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18909 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18910 | |
| 18911 | fi |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18912 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18913 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18914 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18915 | { echo "$as_me:$LINENO: checking for flock" >&5 |
| 18916 | echo $ECHO_N "checking for flock... $ECHO_C" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18917 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18918 | /* confdefs.h. */ |
| 18919 | _ACEOF |
| 18920 | cat confdefs.h >>conftest.$ac_ext |
| 18921 | cat >>conftest.$ac_ext <<_ACEOF |
| 18922 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18923 | |
| 18924 | #include "confdefs.h" |
| 18925 | #include <sys/file.h> |
| 18926 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18927 | int |
| 18928 | main () |
| 18929 | { |
| 18930 | void* p = flock |
| 18931 | ; |
| 18932 | return 0; |
| 18933 | } |
| 18934 | _ACEOF |
| 18935 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18936 | if { (ac_try="$ac_compile" |
| 18937 | case "(($ac_try" in |
| 18938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18939 | *) ac_try_echo=$ac_try;; |
| 18940 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18942 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18943 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18944 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18945 | rm -f conftest.er1 |
| 18946 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18948 | (exit $ac_status); } && { |
| 18949 | test -z "$ac_c_werror_flag" || |
| 18950 | test ! -s conftest.err |
| 18951 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18952 | |
| 18953 | cat >>confdefs.h <<\_ACEOF |
| 18954 | #define HAVE_FLOCK 1 |
| 18955 | _ACEOF |
| 18956 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18957 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18958 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18959 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18960 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18961 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18962 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18963 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18964 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18965 | |
| 18966 | fi |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18967 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18968 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18969 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18970 | { echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 18971 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18972 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18973 | /* confdefs.h. */ |
| 18974 | _ACEOF |
| 18975 | cat confdefs.h >>conftest.$ac_ext |
| 18976 | cat >>conftest.$ac_ext <<_ACEOF |
| 18977 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18978 | |
| 18979 | #include "confdefs.h" |
| 18980 | #include <unistd.h> |
| 18981 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18982 | int |
| 18983 | main () |
| 18984 | { |
| 18985 | void* p = getpagesize |
| 18986 | ; |
| 18987 | return 0; |
| 18988 | } |
| 18989 | _ACEOF |
| 18990 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18991 | if { (ac_try="$ac_compile" |
| 18992 | case "(($ac_try" in |
| 18993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18994 | *) ac_try_echo=$ac_try;; |
| 18995 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18996 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18997 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18998 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18999 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19000 | rm -f conftest.er1 |
| 19001 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19003 | (exit $ac_status); } && { |
| 19004 | test -z "$ac_c_werror_flag" || |
| 19005 | test ! -s conftest.err |
| 19006 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 19007 | |
| 19008 | cat >>confdefs.h <<\_ACEOF |
| 19009 | #define HAVE_GETPAGESIZE 1 |
| 19010 | _ACEOF |
| 19011 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19012 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19013 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 19014 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19015 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19016 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19017 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19018 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19019 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 19020 | |
| 19021 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19022 | |
| 19023 | 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] | 19024 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 19025 | for ac_prog in true |
| 19026 | do |
| 19027 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 19028 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19029 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 19030 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 19031 | if test "${ac_cv_prog_TRUE+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 19033 | else |
| 19034 | if test -n "$TRUE"; then |
| 19035 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 19036 | else |
| 19037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19038 | for as_dir in $PATH |
| 19039 | do |
| 19040 | IFS=$as_save_IFS |
| 19041 | test -z "$as_dir" && as_dir=. |
| 19042 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19043 | 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] | 19044 | ac_cv_prog_TRUE="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19045 | 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] | 19046 | break 2 |
| 19047 | fi |
| 19048 | done |
| 19049 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19050 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 19051 | |
| 19052 | fi |
| 19053 | fi |
| 19054 | TRUE=$ac_cv_prog_TRUE |
| 19055 | if test -n "$TRUE"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19056 | { echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 19057 | echo "${ECHO_T}$TRUE" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 19058 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19059 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19060 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 19061 | fi |
| 19062 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19063 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 19064 | test -n "$TRUE" && break |
| 19065 | done |
| 19066 | test -n "$TRUE" || TRUE="/bin/true" |
| 19067 | |
| 19068 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19069 | { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 19070 | 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] | 19071 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19073 | else |
| 19074 | ac_check_lib_save_LIBS=$LIBS |
| 19075 | LIBS="-lc $LIBS" |
| 19076 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19077 | /* confdefs.h. */ |
| 19078 | _ACEOF |
| 19079 | cat confdefs.h >>conftest.$ac_ext |
| 19080 | cat >>conftest.$ac_ext <<_ACEOF |
| 19081 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19082 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19083 | /* Override any GCC internal prototype to avoid an error. |
| 19084 | Use char because int might match the return type of a GCC |
| 19085 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19086 | #ifdef __cplusplus |
| 19087 | extern "C" |
| 19088 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19089 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19090 | int |
| 19091 | main () |
| 19092 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19093 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19094 | ; |
| 19095 | return 0; |
| 19096 | } |
| 19097 | _ACEOF |
| 19098 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19099 | if { (ac_try="$ac_link" |
| 19100 | case "(($ac_try" in |
| 19101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19102 | *) ac_try_echo=$ac_try;; |
| 19103 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19105 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19106 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19107 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19108 | rm -f conftest.er1 |
| 19109 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19111 | (exit $ac_status); } && { |
| 19112 | test -z "$ac_c_werror_flag" || |
| 19113 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19114 | } && test -s conftest$ac_exeext && |
| 19115 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19116 | ac_cv_lib_c_inet_aton=yes |
| 19117 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19118 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19119 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19120 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19121 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19122 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19123 | |
| 19124 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19125 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19126 | LIBS=$ac_check_lib_save_LIBS |
| 19127 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19128 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 19129 | echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; } |
| 19130 | if test $ac_cv_lib_c_inet_aton = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 19131 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19132 | else |
| 19133 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19134 | { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 19135 | 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] | 19136 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19138 | else |
| 19139 | ac_check_lib_save_LIBS=$LIBS |
| 19140 | LIBS="-lresolv $LIBS" |
| 19141 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19142 | /* confdefs.h. */ |
| 19143 | _ACEOF |
| 19144 | cat confdefs.h >>conftest.$ac_ext |
| 19145 | cat >>conftest.$ac_ext <<_ACEOF |
| 19146 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19147 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19148 | /* Override any GCC internal prototype to avoid an error. |
| 19149 | Use char because int might match the return type of a GCC |
| 19150 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19151 | #ifdef __cplusplus |
| 19152 | extern "C" |
| 19153 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19154 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19155 | int |
| 19156 | main () |
| 19157 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19158 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19159 | ; |
| 19160 | return 0; |
| 19161 | } |
| 19162 | _ACEOF |
| 19163 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19164 | if { (ac_try="$ac_link" |
| 19165 | case "(($ac_try" in |
| 19166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19167 | *) ac_try_echo=$ac_try;; |
| 19168 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19170 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19171 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19172 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19173 | rm -f conftest.er1 |
| 19174 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19176 | (exit $ac_status); } && { |
| 19177 | test -z "$ac_c_werror_flag" || |
| 19178 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19179 | } && test -s conftest$ac_exeext && |
| 19180 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19181 | ac_cv_lib_resolv_inet_aton=yes |
| 19182 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19183 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19184 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19185 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19186 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19187 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19188 | |
| 19189 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19190 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19191 | LIBS=$ac_check_lib_save_LIBS |
| 19192 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19193 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 19194 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; } |
| 19195 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19196 | cat >>confdefs.h <<_ACEOF |
| 19197 | #define HAVE_LIBRESOLV 1 |
| 19198 | _ACEOF |
| 19199 | |
| 19200 | LIBS="-lresolv $LIBS" |
| 19201 | |
| 19202 | fi |
| 19203 | |
| 19204 | |
| 19205 | fi |
| 19206 | |
| 19207 | |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19208 | # On Tru64, chflags seems to be present, but calling it will |
| 19209 | # exit Python |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19210 | { echo "$as_me:$LINENO: checking for chflags" >&5 |
| 19211 | echo $ECHO_N "checking for chflags... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19212 | if test "${ac_cv_have_chflags+set}" = set; then |
| 19213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19214 | else |
| 19215 | if test "$cross_compiling" = yes; then |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19216 | ac_cv_have_chflags=cross |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19217 | else |
| 19218 | cat >conftest.$ac_ext <<_ACEOF |
| 19219 | /* confdefs.h. */ |
| 19220 | _ACEOF |
| 19221 | cat confdefs.h >>conftest.$ac_ext |
| 19222 | cat >>conftest.$ac_ext <<_ACEOF |
| 19223 | /* end confdefs.h. */ |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19224 | [ |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19225 | #include <sys/stat.h> |
| 19226 | #include <unistd.h> |
| 19227 | int main(int argc, char*argv[]) |
| 19228 | { |
| 19229 | if(chflags(argv[0], 0) != 0) |
| 19230 | return 1; |
| 19231 | return 0; |
| 19232 | } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19233 | ] |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19234 | _ACEOF |
| 19235 | rm -f conftest$ac_exeext |
| 19236 | if { (ac_try="$ac_link" |
| 19237 | case "(($ac_try" in |
| 19238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19239 | *) ac_try_echo=$ac_try;; |
| 19240 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19241 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19242 | (eval "$ac_link") 2>&5 |
| 19243 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19245 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19246 | { (case "(($ac_try" in |
| 19247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19248 | *) ac_try_echo=$ac_try;; |
| 19249 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19251 | (eval "$ac_try") 2>&5 |
| 19252 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19254 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19255 | ac_cv_have_chflags=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19256 | else |
| 19257 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19258 | echo "$as_me: failed program was:" >&5 |
| 19259 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19260 | |
| 19261 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19262 | ac_cv_have_chflags=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19263 | fi |
| 19264 | 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] | 19265 | fi |
| 19266 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19267 | |
| 19268 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19269 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19270 | { echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5 |
| 19271 | echo "${ECHO_T}$ac_cv_have_chflags" >&6; } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19272 | if test "$ac_cv_have_chflags" = cross ; then |
| 19273 | { echo "$as_me:$LINENO: checking for chflags" >&5 |
| 19274 | echo $ECHO_N "checking for chflags... $ECHO_C" >&6; } |
| 19275 | if test "${ac_cv_func_chflags+set}" = set; then |
| 19276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19277 | else |
| 19278 | cat >conftest.$ac_ext <<_ACEOF |
| 19279 | /* confdefs.h. */ |
| 19280 | _ACEOF |
| 19281 | cat confdefs.h >>conftest.$ac_ext |
| 19282 | cat >>conftest.$ac_ext <<_ACEOF |
| 19283 | /* end confdefs.h. */ |
| 19284 | /* Define chflags to an innocuous variant, in case <limits.h> declares chflags. |
| 19285 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19286 | #define chflags innocuous_chflags |
| 19287 | |
| 19288 | /* System header to define __stub macros and hopefully few prototypes, |
| 19289 | which can conflict with char chflags (); below. |
| 19290 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19291 | <limits.h> exists even on freestanding compilers. */ |
| 19292 | |
| 19293 | #ifdef __STDC__ |
| 19294 | # include <limits.h> |
| 19295 | #else |
| 19296 | # include <assert.h> |
| 19297 | #endif |
| 19298 | |
| 19299 | #undef chflags |
| 19300 | |
| 19301 | /* Override any GCC internal prototype to avoid an error. |
| 19302 | Use char because int might match the return type of a GCC |
| 19303 | builtin and then its argument prototype would still apply. */ |
| 19304 | #ifdef __cplusplus |
| 19305 | extern "C" |
| 19306 | #endif |
| 19307 | char chflags (); |
| 19308 | /* The GNU C library defines this for functions which it implements |
| 19309 | to always fail with ENOSYS. Some functions are actually named |
| 19310 | something starting with __ and the normal name is an alias. */ |
| 19311 | #if defined __stub_chflags || defined __stub___chflags |
| 19312 | choke me |
| 19313 | #endif |
| 19314 | |
| 19315 | int |
| 19316 | main () |
| 19317 | { |
| 19318 | return chflags (); |
| 19319 | ; |
| 19320 | return 0; |
| 19321 | } |
| 19322 | _ACEOF |
| 19323 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19324 | if { (ac_try="$ac_link" |
| 19325 | case "(($ac_try" in |
| 19326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19327 | *) ac_try_echo=$ac_try;; |
| 19328 | esac |
| 19329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19330 | (eval "$ac_link") 2>conftest.er1 |
| 19331 | ac_status=$? |
| 19332 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19333 | rm -f conftest.er1 |
| 19334 | cat conftest.err >&5 |
| 19335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19336 | (exit $ac_status); } && { |
| 19337 | test -z "$ac_c_werror_flag" || |
| 19338 | test ! -s conftest.err |
| 19339 | } && test -s conftest$ac_exeext && |
| 19340 | $as_test_x conftest$ac_exeext; then |
| 19341 | ac_cv_func_chflags=yes |
| 19342 | else |
| 19343 | echo "$as_me: failed program was:" >&5 |
| 19344 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19345 | |
| 19346 | ac_cv_func_chflags=no |
| 19347 | fi |
| 19348 | |
| 19349 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 19350 | conftest$ac_exeext conftest.$ac_ext |
| 19351 | fi |
| 19352 | { echo "$as_me:$LINENO: result: $ac_cv_func_chflags" >&5 |
| 19353 | echo "${ECHO_T}$ac_cv_func_chflags" >&6; } |
| 19354 | if test $ac_cv_func_chflags = yes; then |
| 19355 | ac_cv_have_chflags="yes" |
| 19356 | else |
| 19357 | ac_cv_have_chflags="no" |
| 19358 | fi |
| 19359 | |
| 19360 | fi |
| 19361 | if test "$ac_cv_have_chflags" = yes ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19362 | |
| 19363 | cat >>confdefs.h <<\_ACEOF |
| 19364 | #define HAVE_CHFLAGS 1 |
| 19365 | _ACEOF |
| 19366 | |
| 19367 | fi |
| 19368 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19369 | { echo "$as_me:$LINENO: checking for lchflags" >&5 |
| 19370 | echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19371 | if test "${ac_cv_have_lchflags+set}" = set; then |
| 19372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19373 | else |
| 19374 | if test "$cross_compiling" = yes; then |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19375 | ac_cv_have_lchflags=cross |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19376 | else |
| 19377 | cat >conftest.$ac_ext <<_ACEOF |
| 19378 | /* confdefs.h. */ |
| 19379 | _ACEOF |
| 19380 | cat confdefs.h >>conftest.$ac_ext |
| 19381 | cat >>conftest.$ac_ext <<_ACEOF |
| 19382 | /* end confdefs.h. */ |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19383 | [ |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19384 | #include <sys/stat.h> |
| 19385 | #include <unistd.h> |
| 19386 | int main(int argc, char*argv[]) |
| 19387 | { |
| 19388 | if(lchflags(argv[0], 0) != 0) |
| 19389 | return 1; |
| 19390 | return 0; |
| 19391 | } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19392 | ] |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19393 | _ACEOF |
| 19394 | rm -f conftest$ac_exeext |
| 19395 | if { (ac_try="$ac_link" |
| 19396 | case "(($ac_try" in |
| 19397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19398 | *) ac_try_echo=$ac_try;; |
| 19399 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19400 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19401 | (eval "$ac_link") 2>&5 |
| 19402 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19404 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19405 | { (case "(($ac_try" in |
| 19406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19407 | *) ac_try_echo=$ac_try;; |
| 19408 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19410 | (eval "$ac_try") 2>&5 |
| 19411 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19413 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19414 | ac_cv_have_lchflags=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19415 | else |
| 19416 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19417 | echo "$as_me: failed program was:" >&5 |
| 19418 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19419 | |
| 19420 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19421 | ac_cv_have_lchflags=no |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19422 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19423 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 19424 | fi |
| 19425 | |
| 19426 | |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19427 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19428 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19429 | { echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5 |
| 19430 | echo "${ECHO_T}$ac_cv_have_lchflags" >&6; } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19431 | if test "$ac_cv_have_lchflags" = cross ; then |
| 19432 | { echo "$as_me:$LINENO: checking for lchflags" >&5 |
| 19433 | echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; } |
| 19434 | if test "${ac_cv_func_lchflags+set}" = set; then |
| 19435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19436 | else |
| 19437 | cat >conftest.$ac_ext <<_ACEOF |
| 19438 | /* confdefs.h. */ |
| 19439 | _ACEOF |
| 19440 | cat confdefs.h >>conftest.$ac_ext |
| 19441 | cat >>conftest.$ac_ext <<_ACEOF |
| 19442 | /* end confdefs.h. */ |
| 19443 | /* Define lchflags to an innocuous variant, in case <limits.h> declares lchflags. |
| 19444 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19445 | #define lchflags innocuous_lchflags |
| 19446 | |
| 19447 | /* System header to define __stub macros and hopefully few prototypes, |
| 19448 | which can conflict with char lchflags (); below. |
| 19449 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19450 | <limits.h> exists even on freestanding compilers. */ |
| 19451 | |
| 19452 | #ifdef __STDC__ |
| 19453 | # include <limits.h> |
| 19454 | #else |
| 19455 | # include <assert.h> |
| 19456 | #endif |
| 19457 | |
| 19458 | #undef lchflags |
| 19459 | |
| 19460 | /* Override any GCC internal prototype to avoid an error. |
| 19461 | Use char because int might match the return type of a GCC |
| 19462 | builtin and then its argument prototype would still apply. */ |
| 19463 | #ifdef __cplusplus |
| 19464 | extern "C" |
| 19465 | #endif |
| 19466 | char lchflags (); |
| 19467 | /* The GNU C library defines this for functions which it implements |
| 19468 | to always fail with ENOSYS. Some functions are actually named |
| 19469 | something starting with __ and the normal name is an alias. */ |
| 19470 | #if defined __stub_lchflags || defined __stub___lchflags |
| 19471 | choke me |
| 19472 | #endif |
| 19473 | |
| 19474 | int |
| 19475 | main () |
| 19476 | { |
| 19477 | return lchflags (); |
| 19478 | ; |
| 19479 | return 0; |
| 19480 | } |
| 19481 | _ACEOF |
| 19482 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19483 | if { (ac_try="$ac_link" |
| 19484 | case "(($ac_try" in |
| 19485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19486 | *) ac_try_echo=$ac_try;; |
| 19487 | esac |
| 19488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19489 | (eval "$ac_link") 2>conftest.er1 |
| 19490 | ac_status=$? |
| 19491 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19492 | rm -f conftest.er1 |
| 19493 | cat conftest.err >&5 |
| 19494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19495 | (exit $ac_status); } && { |
| 19496 | test -z "$ac_c_werror_flag" || |
| 19497 | test ! -s conftest.err |
| 19498 | } && test -s conftest$ac_exeext && |
| 19499 | $as_test_x conftest$ac_exeext; then |
| 19500 | ac_cv_func_lchflags=yes |
| 19501 | else |
| 19502 | echo "$as_me: failed program was:" >&5 |
| 19503 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19504 | |
| 19505 | ac_cv_func_lchflags=no |
| 19506 | fi |
| 19507 | |
| 19508 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 19509 | conftest$ac_exeext conftest.$ac_ext |
| 19510 | fi |
| 19511 | { echo "$as_me:$LINENO: result: $ac_cv_func_lchflags" >&5 |
| 19512 | echo "${ECHO_T}$ac_cv_func_lchflags" >&6; } |
| 19513 | if test $ac_cv_func_lchflags = yes; then |
| 19514 | ac_cv_have_lchflags="yes" |
| 19515 | else |
| 19516 | ac_cv_have_lchflags="no" |
| 19517 | fi |
| 19518 | |
| 19519 | fi |
| 19520 | if test "$ac_cv_have_lchflags" = yes ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19521 | |
| 19522 | cat >>confdefs.h <<\_ACEOF |
| 19523 | #define HAVE_LCHFLAGS 1 |
| 19524 | _ACEOF |
| 19525 | |
| 19526 | fi |
| 19527 | |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 19528 | case $ac_sys_system/$ac_sys_release in |
| 19529 | Darwin/*) |
| 19530 | _CUR_CFLAGS="${CFLAGS}" |
| 19531 | _CUR_LDFLAGS="${LDFLAGS}" |
| 19532 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" |
| 19533 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" |
| 19534 | ;; |
| 19535 | esac |
| 19536 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19537 | { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5 |
| 19538 | echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; } |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19539 | if test "${ac_cv_lib_z_inflateCopy+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19541 | else |
| 19542 | ac_check_lib_save_LIBS=$LIBS |
| 19543 | LIBS="-lz $LIBS" |
| 19544 | cat >conftest.$ac_ext <<_ACEOF |
| 19545 | /* confdefs.h. */ |
| 19546 | _ACEOF |
| 19547 | cat confdefs.h >>conftest.$ac_ext |
| 19548 | cat >>conftest.$ac_ext <<_ACEOF |
| 19549 | /* end confdefs.h. */ |
| 19550 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19551 | /* Override any GCC internal prototype to avoid an error. |
| 19552 | Use char because int might match the return type of a GCC |
| 19553 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19554 | #ifdef __cplusplus |
| 19555 | extern "C" |
| 19556 | #endif |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19557 | char inflateCopy (); |
| 19558 | int |
| 19559 | main () |
| 19560 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19561 | return inflateCopy (); |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19562 | ; |
| 19563 | return 0; |
| 19564 | } |
| 19565 | _ACEOF |
| 19566 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19567 | if { (ac_try="$ac_link" |
| 19568 | case "(($ac_try" in |
| 19569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19570 | *) ac_try_echo=$ac_try;; |
| 19571 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19572 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19573 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19574 | ac_status=$? |
| 19575 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19576 | rm -f conftest.er1 |
| 19577 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19579 | (exit $ac_status); } && { |
| 19580 | test -z "$ac_c_werror_flag" || |
| 19581 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19582 | } && test -s conftest$ac_exeext && |
| 19583 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19584 | ac_cv_lib_z_inflateCopy=yes |
| 19585 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19586 | echo "$as_me: failed program was:" >&5 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19587 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19588 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19589 | ac_cv_lib_z_inflateCopy=no |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19590 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19591 | |
| 19592 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19593 | conftest$ac_exeext conftest.$ac_ext |
| 19594 | LIBS=$ac_check_lib_save_LIBS |
| 19595 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19596 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5 |
| 19597 | echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; } |
| 19598 | if test $ac_cv_lib_z_inflateCopy = yes; then |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19599 | |
| 19600 | cat >>confdefs.h <<\_ACEOF |
| 19601 | #define HAVE_ZLIB_COPY 1 |
| 19602 | _ACEOF |
| 19603 | |
| 19604 | fi |
| 19605 | |
| 19606 | |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 19607 | case $ac_sys_system/$ac_sys_release in |
| 19608 | Darwin/*) |
| 19609 | CFLAGS="${_CUR_CFLAGS}" |
| 19610 | LDFLAGS="${_CUR_LDFLAGS}" |
| 19611 | ;; |
| 19612 | esac |
| 19613 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19614 | { echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 19615 | echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19616 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19617 | /* confdefs.h. */ |
| 19618 | _ACEOF |
| 19619 | cat confdefs.h >>conftest.$ac_ext |
| 19620 | cat >>conftest.$ac_ext <<_ACEOF |
| 19621 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19622 | |
| 19623 | #include "confdefs.h" |
| 19624 | #include <netdb.h> |
| 19625 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19626 | int |
| 19627 | main () |
| 19628 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19629 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19630 | ; |
| 19631 | return 0; |
| 19632 | } |
| 19633 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19634 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19635 | if { (ac_try="$ac_link" |
| 19636 | case "(($ac_try" in |
| 19637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19638 | *) ac_try_echo=$ac_try;; |
| 19639 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19641 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19642 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19643 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19644 | rm -f conftest.er1 |
| 19645 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19647 | (exit $ac_status); } && { |
| 19648 | test -z "$ac_c_werror_flag" || |
| 19649 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19650 | } && test -s conftest$ac_exeext && |
| 19651 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19652 | |
| 19653 | cat >>confdefs.h <<\_ACEOF |
| 19654 | #define HAVE_HSTRERROR 1 |
| 19655 | _ACEOF |
| 19656 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19657 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19658 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19659 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19660 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19662 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19663 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19664 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19665 | |
| 19666 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19667 | |
| 19668 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19669 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19670 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19671 | { echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 19672 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19673 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19674 | /* confdefs.h. */ |
| 19675 | _ACEOF |
| 19676 | cat confdefs.h >>conftest.$ac_ext |
| 19677 | cat >>conftest.$ac_ext <<_ACEOF |
| 19678 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19679 | |
| 19680 | #include "confdefs.h" |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 19681 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19682 | #include <sys/socket.h> |
| 19683 | #include <netinet/in.h> |
| 19684 | #include <arpa/inet.h> |
| 19685 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19686 | int |
| 19687 | main () |
| 19688 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19689 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19690 | ; |
| 19691 | return 0; |
| 19692 | } |
| 19693 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19694 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19695 | if { (ac_try="$ac_link" |
| 19696 | case "(($ac_try" in |
| 19697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19698 | *) ac_try_echo=$ac_try;; |
| 19699 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19701 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19702 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19703 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19704 | rm -f conftest.er1 |
| 19705 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19707 | (exit $ac_status); } && { |
| 19708 | test -z "$ac_c_werror_flag" || |
| 19709 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19710 | } && test -s conftest$ac_exeext && |
| 19711 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19712 | |
| 19713 | cat >>confdefs.h <<\_ACEOF |
| 19714 | #define HAVE_INET_ATON 1 |
| 19715 | _ACEOF |
| 19716 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19717 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19718 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19719 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19720 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19721 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19722 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19723 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19724 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19725 | |
| 19726 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19727 | |
| 19728 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19729 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19730 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19731 | { echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 19732 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19733 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19734 | /* confdefs.h. */ |
| 19735 | _ACEOF |
| 19736 | cat confdefs.h >>conftest.$ac_ext |
| 19737 | cat >>conftest.$ac_ext <<_ACEOF |
| 19738 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19739 | |
| 19740 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 19741 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19742 | #include <sys/socket.h> |
| 19743 | #include <netinet/in.h> |
| 19744 | #include <arpa/inet.h> |
| 19745 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19746 | int |
| 19747 | main () |
| 19748 | { |
| 19749 | void* p = inet_pton |
| 19750 | ; |
| 19751 | return 0; |
| 19752 | } |
| 19753 | _ACEOF |
| 19754 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19755 | if { (ac_try="$ac_compile" |
| 19756 | case "(($ac_try" in |
| 19757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19758 | *) ac_try_echo=$ac_try;; |
| 19759 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19761 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19762 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19763 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19764 | rm -f conftest.er1 |
| 19765 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19767 | (exit $ac_status); } && { |
| 19768 | test -z "$ac_c_werror_flag" || |
| 19769 | test ! -s conftest.err |
| 19770 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19771 | |
| 19772 | cat >>confdefs.h <<\_ACEOF |
| 19773 | #define HAVE_INET_PTON 1 |
| 19774 | _ACEOF |
| 19775 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19776 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19777 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19778 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19779 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19780 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19781 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19782 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19783 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19784 | |
| 19785 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19786 | |
| 19787 | 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] | 19788 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 19789 | # 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] | 19790 | { echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 19791 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19792 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19793 | /* confdefs.h. */ |
| 19794 | _ACEOF |
| 19795 | cat confdefs.h >>conftest.$ac_ext |
| 19796 | cat >>conftest.$ac_ext <<_ACEOF |
| 19797 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19798 | |
| 19799 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 19800 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 19801 | #ifdef HAVE_GRP_H |
| 19802 | #include <grp.h> |
| 19803 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19804 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19805 | int |
| 19806 | main () |
| 19807 | { |
| 19808 | void* p = setgroups |
| 19809 | ; |
| 19810 | return 0; |
| 19811 | } |
| 19812 | _ACEOF |
| 19813 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19814 | if { (ac_try="$ac_compile" |
| 19815 | case "(($ac_try" in |
| 19816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19817 | *) ac_try_echo=$ac_try;; |
| 19818 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19819 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19820 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19821 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19822 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19823 | rm -f conftest.er1 |
| 19824 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19826 | (exit $ac_status); } && { |
| 19827 | test -z "$ac_c_werror_flag" || |
| 19828 | test ! -s conftest.err |
| 19829 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19830 | |
| 19831 | cat >>confdefs.h <<\_ACEOF |
| 19832 | #define HAVE_SETGROUPS 1 |
| 19833 | _ACEOF |
| 19834 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19835 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19836 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19837 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19838 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19839 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19840 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19841 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19842 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19843 | |
| 19844 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19845 | |
| 19846 | 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] | 19847 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19848 | # check for openpty and forkpty |
| 19849 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19850 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19851 | for ac_func in openpty |
| 19852 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19853 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19854 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19855 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19856 | 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] | 19857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19858 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19859 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19860 | /* confdefs.h. */ |
| 19861 | _ACEOF |
| 19862 | cat confdefs.h >>conftest.$ac_ext |
| 19863 | cat >>conftest.$ac_ext <<_ACEOF |
| 19864 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19865 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19866 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19867 | #define $ac_func innocuous_$ac_func |
| 19868 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19869 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19870 | which can conflict with char $ac_func (); below. |
| 19871 | 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] | 19872 | <limits.h> exists even on freestanding compilers. */ |
| 19873 | |
| 19874 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19875 | # include <limits.h> |
| 19876 | #else |
| 19877 | # include <assert.h> |
| 19878 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19879 | |
| 19880 | #undef $ac_func |
| 19881 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19882 | /* Override any GCC internal prototype to avoid an error. |
| 19883 | Use char because int might match the return type of a GCC |
| 19884 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19885 | #ifdef __cplusplus |
| 19886 | extern "C" |
| 19887 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19888 | char $ac_func (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19889 | /* The GNU C library defines this for functions which it implements |
| 19890 | to always fail with ENOSYS. Some functions are actually named |
| 19891 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19892 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19893 | choke me |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19894 | #endif |
| 19895 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19896 | int |
| 19897 | main () |
| 19898 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19899 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19900 | ; |
| 19901 | return 0; |
| 19902 | } |
| 19903 | _ACEOF |
| 19904 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19905 | if { (ac_try="$ac_link" |
| 19906 | case "(($ac_try" in |
| 19907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19908 | *) ac_try_echo=$ac_try;; |
| 19909 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19910 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19911 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19912 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19913 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19914 | rm -f conftest.er1 |
| 19915 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19917 | (exit $ac_status); } && { |
| 19918 | test -z "$ac_c_werror_flag" || |
| 19919 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19920 | } && test -s conftest$ac_exeext && |
| 19921 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19922 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19923 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19924 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19925 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19926 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19927 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19928 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19929 | |
| 19930 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19931 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19932 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19933 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19934 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19935 | echo "${ECHO_T}$ac_res" >&6; } |
| 19936 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19937 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19938 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19939 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19940 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19941 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19942 | { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 19943 | 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] | 19944 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19946 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19947 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19948 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19949 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19950 | /* confdefs.h. */ |
| 19951 | _ACEOF |
| 19952 | cat confdefs.h >>conftest.$ac_ext |
| 19953 | cat >>conftest.$ac_ext <<_ACEOF |
| 19954 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19955 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19956 | /* Override any GCC internal prototype to avoid an error. |
| 19957 | Use char because int might match the return type of a GCC |
| 19958 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19959 | #ifdef __cplusplus |
| 19960 | extern "C" |
| 19961 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19962 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19963 | int |
| 19964 | main () |
| 19965 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19966 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19967 | ; |
| 19968 | return 0; |
| 19969 | } |
| 19970 | _ACEOF |
| 19971 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19972 | if { (ac_try="$ac_link" |
| 19973 | case "(($ac_try" in |
| 19974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19975 | *) ac_try_echo=$ac_try;; |
| 19976 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19978 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19979 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19980 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19981 | rm -f conftest.er1 |
| 19982 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19984 | (exit $ac_status); } && { |
| 19985 | test -z "$ac_c_werror_flag" || |
| 19986 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19987 | } && test -s conftest$ac_exeext && |
| 19988 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19989 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19990 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19991 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19992 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19993 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19994 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19995 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19996 | |
| 19997 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19998 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19999 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20000 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20001 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 20002 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; } |
| 20003 | if test $ac_cv_lib_util_openpty = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20004 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20005 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20006 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20007 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20008 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20009 | { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5 |
| 20010 | 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] | 20011 | if test "${ac_cv_lib_bsd_openpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20013 | else |
| 20014 | ac_check_lib_save_LIBS=$LIBS |
| 20015 | LIBS="-lbsd $LIBS" |
| 20016 | cat >conftest.$ac_ext <<_ACEOF |
| 20017 | /* confdefs.h. */ |
| 20018 | _ACEOF |
| 20019 | cat confdefs.h >>conftest.$ac_ext |
| 20020 | cat >>conftest.$ac_ext <<_ACEOF |
| 20021 | /* end confdefs.h. */ |
| 20022 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20023 | /* Override any GCC internal prototype to avoid an error. |
| 20024 | Use char because int might match the return type of a GCC |
| 20025 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20026 | #ifdef __cplusplus |
| 20027 | extern "C" |
| 20028 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20029 | char openpty (); |
| 20030 | int |
| 20031 | main () |
| 20032 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20033 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20034 | ; |
| 20035 | return 0; |
| 20036 | } |
| 20037 | _ACEOF |
| 20038 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20039 | if { (ac_try="$ac_link" |
| 20040 | case "(($ac_try" in |
| 20041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20042 | *) ac_try_echo=$ac_try;; |
| 20043 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20045 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20046 | ac_status=$? |
| 20047 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20048 | rm -f conftest.er1 |
| 20049 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20051 | (exit $ac_status); } && { |
| 20052 | test -z "$ac_c_werror_flag" || |
| 20053 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20054 | } && test -s conftest$ac_exeext && |
| 20055 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20056 | ac_cv_lib_bsd_openpty=yes |
| 20057 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20058 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20059 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20060 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20061 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20062 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20063 | |
| 20064 | 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] | 20065 | conftest$ac_exeext conftest.$ac_ext |
| 20066 | LIBS=$ac_check_lib_save_LIBS |
| 20067 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20068 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5 |
| 20069 | echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; } |
| 20070 | if test $ac_cv_lib_bsd_openpty = yes; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20071 | cat >>confdefs.h <<\_ACEOF |
| 20072 | #define HAVE_OPENPTY 1 |
| 20073 | _ACEOF |
| 20074 | LIBS="$LIBS -lbsd" |
| 20075 | fi |
| 20076 | |
| 20077 | |
| 20078 | fi |
| 20079 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20080 | |
| 20081 | fi |
| 20082 | done |
| 20083 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20084 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20085 | for ac_func in forkpty |
| 20086 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20087 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20088 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20089 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20090 | 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] | 20091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20092 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20093 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20094 | /* confdefs.h. */ |
| 20095 | _ACEOF |
| 20096 | cat confdefs.h >>conftest.$ac_ext |
| 20097 | cat >>conftest.$ac_ext <<_ACEOF |
| 20098 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20099 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20100 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20101 | #define $ac_func innocuous_$ac_func |
| 20102 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20103 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20104 | which can conflict with char $ac_func (); below. |
| 20105 | 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] | 20106 | <limits.h> exists even on freestanding compilers. */ |
| 20107 | |
| 20108 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20109 | # include <limits.h> |
| 20110 | #else |
| 20111 | # include <assert.h> |
| 20112 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20113 | |
| 20114 | #undef $ac_func |
| 20115 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20116 | /* Override any GCC internal prototype to avoid an error. |
| 20117 | Use char because int might match the return type of a GCC |
| 20118 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20119 | #ifdef __cplusplus |
| 20120 | extern "C" |
| 20121 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20122 | char $ac_func (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20123 | /* The GNU C library defines this for functions which it implements |
| 20124 | to always fail with ENOSYS. Some functions are actually named |
| 20125 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20126 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20127 | choke me |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20128 | #endif |
| 20129 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20130 | int |
| 20131 | main () |
| 20132 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20133 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20134 | ; |
| 20135 | return 0; |
| 20136 | } |
| 20137 | _ACEOF |
| 20138 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20139 | if { (ac_try="$ac_link" |
| 20140 | case "(($ac_try" in |
| 20141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20142 | *) ac_try_echo=$ac_try;; |
| 20143 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20145 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20146 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20147 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20148 | rm -f conftest.er1 |
| 20149 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20151 | (exit $ac_status); } && { |
| 20152 | test -z "$ac_c_werror_flag" || |
| 20153 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20154 | } && test -s conftest$ac_exeext && |
| 20155 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20156 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20157 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20158 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20159 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20160 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20161 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20162 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20163 | |
| 20164 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20165 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20166 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20167 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20168 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20169 | echo "${ECHO_T}$ac_res" >&6; } |
| 20170 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20171 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20172 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20173 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20174 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20175 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20176 | { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 20177 | 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] | 20178 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20180 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20181 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20182 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20183 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20184 | /* confdefs.h. */ |
| 20185 | _ACEOF |
| 20186 | cat confdefs.h >>conftest.$ac_ext |
| 20187 | cat >>conftest.$ac_ext <<_ACEOF |
| 20188 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20189 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20190 | /* Override any GCC internal prototype to avoid an error. |
| 20191 | Use char because int might match the return type of a GCC |
| 20192 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20193 | #ifdef __cplusplus |
| 20194 | extern "C" |
| 20195 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20196 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20197 | int |
| 20198 | main () |
| 20199 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20200 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20201 | ; |
| 20202 | return 0; |
| 20203 | } |
| 20204 | _ACEOF |
| 20205 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20206 | if { (ac_try="$ac_link" |
| 20207 | case "(($ac_try" in |
| 20208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20209 | *) ac_try_echo=$ac_try;; |
| 20210 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20212 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20213 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20214 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20215 | rm -f conftest.er1 |
| 20216 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20218 | (exit $ac_status); } && { |
| 20219 | test -z "$ac_c_werror_flag" || |
| 20220 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20221 | } && test -s conftest$ac_exeext && |
| 20222 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20223 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20224 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20225 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20226 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20227 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20228 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20229 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20230 | |
| 20231 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20232 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20233 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20234 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20235 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 20236 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; } |
| 20237 | if test $ac_cv_lib_util_forkpty = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20238 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20239 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20240 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20241 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20242 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20243 | { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5 |
| 20244 | 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] | 20245 | if test "${ac_cv_lib_bsd_forkpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20247 | else |
| 20248 | ac_check_lib_save_LIBS=$LIBS |
| 20249 | LIBS="-lbsd $LIBS" |
| 20250 | cat >conftest.$ac_ext <<_ACEOF |
| 20251 | /* confdefs.h. */ |
| 20252 | _ACEOF |
| 20253 | cat confdefs.h >>conftest.$ac_ext |
| 20254 | cat >>conftest.$ac_ext <<_ACEOF |
| 20255 | /* end confdefs.h. */ |
| 20256 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20257 | /* Override any GCC internal prototype to avoid an error. |
| 20258 | Use char because int might match the return type of a GCC |
| 20259 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20260 | #ifdef __cplusplus |
| 20261 | extern "C" |
| 20262 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20263 | char forkpty (); |
| 20264 | int |
| 20265 | main () |
| 20266 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20267 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20268 | ; |
| 20269 | return 0; |
| 20270 | } |
| 20271 | _ACEOF |
| 20272 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20273 | if { (ac_try="$ac_link" |
| 20274 | case "(($ac_try" in |
| 20275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20276 | *) ac_try_echo=$ac_try;; |
| 20277 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20279 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20280 | ac_status=$? |
| 20281 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20282 | rm -f conftest.er1 |
| 20283 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20285 | (exit $ac_status); } && { |
| 20286 | test -z "$ac_c_werror_flag" || |
| 20287 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20288 | } && test -s conftest$ac_exeext && |
| 20289 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20290 | ac_cv_lib_bsd_forkpty=yes |
| 20291 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20292 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20293 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20294 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20295 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20296 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20297 | |
| 20298 | 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] | 20299 | conftest$ac_exeext conftest.$ac_ext |
| 20300 | LIBS=$ac_check_lib_save_LIBS |
| 20301 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20302 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5 |
| 20303 | echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; } |
| 20304 | if test $ac_cv_lib_bsd_forkpty = yes; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20305 | cat >>confdefs.h <<\_ACEOF |
| 20306 | #define HAVE_FORKPTY 1 |
| 20307 | _ACEOF |
| 20308 | LIBS="$LIBS -lbsd" |
| 20309 | fi |
| 20310 | |
| 20311 | |
| 20312 | fi |
| 20313 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20314 | |
| 20315 | fi |
| 20316 | done |
| 20317 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20318 | |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20319 | # Stuff for expat. |
| 20320 | |
| 20321 | for ac_func in memmove |
| 20322 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20323 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20324 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20325 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20326 | 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] | 20327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20328 | else |
| 20329 | cat >conftest.$ac_ext <<_ACEOF |
| 20330 | /* confdefs.h. */ |
| 20331 | _ACEOF |
| 20332 | cat confdefs.h >>conftest.$ac_ext |
| 20333 | cat >>conftest.$ac_ext <<_ACEOF |
| 20334 | /* end confdefs.h. */ |
| 20335 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20336 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20337 | #define $ac_func innocuous_$ac_func |
| 20338 | |
| 20339 | /* System header to define __stub macros and hopefully few prototypes, |
| 20340 | which can conflict with char $ac_func (); below. |
| 20341 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20342 | <limits.h> exists even on freestanding compilers. */ |
| 20343 | |
| 20344 | #ifdef __STDC__ |
| 20345 | # include <limits.h> |
| 20346 | #else |
| 20347 | # include <assert.h> |
| 20348 | #endif |
| 20349 | |
| 20350 | #undef $ac_func |
| 20351 | |
| 20352 | /* Override any GCC internal prototype to avoid an error. |
| 20353 | Use char because int might match the return type of a GCC |
| 20354 | builtin and then its argument prototype would still apply. */ |
| 20355 | #ifdef __cplusplus |
| 20356 | extern "C" |
| 20357 | #endif |
| 20358 | char $ac_func (); |
| 20359 | /* The GNU C library defines this for functions which it implements |
| 20360 | to always fail with ENOSYS. Some functions are actually named |
| 20361 | something starting with __ and the normal name is an alias. */ |
| 20362 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 20363 | choke me |
| 20364 | #endif |
| 20365 | |
| 20366 | int |
| 20367 | main () |
| 20368 | { |
| 20369 | return $ac_func (); |
| 20370 | ; |
| 20371 | return 0; |
| 20372 | } |
| 20373 | _ACEOF |
| 20374 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20375 | if { (ac_try="$ac_link" |
| 20376 | case "(($ac_try" in |
| 20377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20378 | *) ac_try_echo=$ac_try;; |
| 20379 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20380 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20381 | (eval "$ac_link") 2>conftest.er1 |
| 20382 | ac_status=$? |
| 20383 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20384 | rm -f conftest.er1 |
| 20385 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20387 | (exit $ac_status); } && { |
| 20388 | test -z "$ac_c_werror_flag" || |
| 20389 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20390 | } && test -s conftest$ac_exeext && |
| 20391 | $as_test_x conftest$ac_exeext; then |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20392 | eval "$as_ac_var=yes" |
| 20393 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20394 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20395 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20396 | |
| 20397 | eval "$as_ac_var=no" |
| 20398 | fi |
| 20399 | |
| 20400 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 20401 | conftest$ac_exeext conftest.$ac_ext |
| 20402 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20403 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20404 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20405 | echo "${ECHO_T}$ac_res" >&6; } |
| 20406 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20407 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20408 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20409 | _ACEOF |
| 20410 | |
| 20411 | fi |
| 20412 | done |
| 20413 | |
| 20414 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20415 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20416 | |
| 20417 | |
| 20418 | |
| 20419 | |
| 20420 | |
| 20421 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20422 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 20423 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20424 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20425 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20426 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20427 | 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] | 20428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20429 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20430 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20431 | /* confdefs.h. */ |
| 20432 | _ACEOF |
| 20433 | cat confdefs.h >>conftest.$ac_ext |
| 20434 | cat >>conftest.$ac_ext <<_ACEOF |
| 20435 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20436 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20437 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20438 | #define $ac_func innocuous_$ac_func |
| 20439 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20440 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20441 | which can conflict with char $ac_func (); below. |
| 20442 | 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] | 20443 | <limits.h> exists even on freestanding compilers. */ |
| 20444 | |
| 20445 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20446 | # include <limits.h> |
| 20447 | #else |
| 20448 | # include <assert.h> |
| 20449 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20450 | |
| 20451 | #undef $ac_func |
| 20452 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20453 | /* Override any GCC internal prototype to avoid an error. |
| 20454 | Use char because int might match the return type of a GCC |
| 20455 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20456 | #ifdef __cplusplus |
| 20457 | extern "C" |
| 20458 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20459 | char $ac_func (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20460 | /* The GNU C library defines this for functions which it implements |
| 20461 | to always fail with ENOSYS. Some functions are actually named |
| 20462 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20463 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20464 | choke me |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20465 | #endif |
| 20466 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20467 | int |
| 20468 | main () |
| 20469 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20470 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20471 | ; |
| 20472 | return 0; |
| 20473 | } |
| 20474 | _ACEOF |
| 20475 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20476 | if { (ac_try="$ac_link" |
| 20477 | case "(($ac_try" in |
| 20478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20479 | *) ac_try_echo=$ac_try;; |
| 20480 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20482 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20483 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20484 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20485 | rm -f conftest.er1 |
| 20486 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20488 | (exit $ac_status); } && { |
| 20489 | test -z "$ac_c_werror_flag" || |
| 20490 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20491 | } && test -s conftest$ac_exeext && |
| 20492 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20493 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20494 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20495 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20496 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20497 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20498 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20499 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20500 | |
| 20501 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20502 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20503 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20504 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20505 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20506 | echo "${ECHO_T}$ac_res" >&6; } |
| 20507 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20508 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20509 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20510 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20511 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20512 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20513 | done |
| 20514 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20515 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20516 | |
| 20517 | |
| 20518 | |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20519 | for ac_func in dup2 getcwd strdup |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20520 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20521 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20522 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20523 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20524 | 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] | 20525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20526 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20527 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20528 | /* confdefs.h. */ |
| 20529 | _ACEOF |
| 20530 | cat confdefs.h >>conftest.$ac_ext |
| 20531 | cat >>conftest.$ac_ext <<_ACEOF |
| 20532 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20533 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20534 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20535 | #define $ac_func innocuous_$ac_func |
| 20536 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20537 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20538 | which can conflict with char $ac_func (); below. |
| 20539 | 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] | 20540 | <limits.h> exists even on freestanding compilers. */ |
| 20541 | |
| 20542 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20543 | # include <limits.h> |
| 20544 | #else |
| 20545 | # include <assert.h> |
| 20546 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20547 | |
| 20548 | #undef $ac_func |
| 20549 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20550 | /* Override any GCC internal prototype to avoid an error. |
| 20551 | Use char because int might match the return type of a GCC |
| 20552 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20553 | #ifdef __cplusplus |
| 20554 | extern "C" |
| 20555 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20556 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20557 | /* The GNU C library defines this for functions which it implements |
| 20558 | to always fail with ENOSYS. Some functions are actually named |
| 20559 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20560 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20561 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20562 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20563 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20564 | int |
| 20565 | main () |
| 20566 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20567 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20568 | ; |
| 20569 | return 0; |
| 20570 | } |
| 20571 | _ACEOF |
| 20572 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20573 | if { (ac_try="$ac_link" |
| 20574 | case "(($ac_try" in |
| 20575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20576 | *) ac_try_echo=$ac_try;; |
| 20577 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20579 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20580 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20581 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20582 | rm -f conftest.er1 |
| 20583 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20585 | (exit $ac_status); } && { |
| 20586 | test -z "$ac_c_werror_flag" || |
| 20587 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20588 | } && test -s conftest$ac_exeext && |
| 20589 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20590 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20591 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20592 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20593 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20594 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20595 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20596 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20597 | |
| 20598 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20599 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20600 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20601 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20602 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20603 | echo "${ECHO_T}$ac_res" >&6; } |
| 20604 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20605 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20606 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20607 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20608 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20609 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20610 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20611 | *" $ac_func.$ac_objext "* ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20612 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
| 20613 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20614 | esac |
| 20615 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20616 | fi |
| 20617 | done |
| 20618 | |
| 20619 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20620 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20621 | for ac_func in getpgrp |
| 20622 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20623 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20624 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20625 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20626 | 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] | 20627 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20628 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20629 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20630 | /* confdefs.h. */ |
| 20631 | _ACEOF |
| 20632 | cat confdefs.h >>conftest.$ac_ext |
| 20633 | cat >>conftest.$ac_ext <<_ACEOF |
| 20634 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20635 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20636 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20637 | #define $ac_func innocuous_$ac_func |
| 20638 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20639 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20640 | which can conflict with char $ac_func (); below. |
| 20641 | 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] | 20642 | <limits.h> exists even on freestanding compilers. */ |
| 20643 | |
| 20644 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20645 | # include <limits.h> |
| 20646 | #else |
| 20647 | # include <assert.h> |
| 20648 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20649 | |
| 20650 | #undef $ac_func |
| 20651 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20652 | /* Override any GCC internal prototype to avoid an error. |
| 20653 | Use char because int might match the return type of a GCC |
| 20654 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20655 | #ifdef __cplusplus |
| 20656 | extern "C" |
| 20657 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20658 | char $ac_func (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20659 | /* The GNU C library defines this for functions which it implements |
| 20660 | to always fail with ENOSYS. Some functions are actually named |
| 20661 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20662 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20663 | choke me |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20664 | #endif |
| 20665 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20666 | int |
| 20667 | main () |
| 20668 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20669 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20670 | ; |
| 20671 | return 0; |
| 20672 | } |
| 20673 | _ACEOF |
| 20674 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20675 | if { (ac_try="$ac_link" |
| 20676 | case "(($ac_try" in |
| 20677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20678 | *) ac_try_echo=$ac_try;; |
| 20679 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20681 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20682 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20683 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20684 | rm -f conftest.er1 |
| 20685 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20687 | (exit $ac_status); } && { |
| 20688 | test -z "$ac_c_werror_flag" || |
| 20689 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20690 | } && test -s conftest$ac_exeext && |
| 20691 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20692 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20693 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20694 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20695 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20696 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20697 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20698 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20699 | |
| 20700 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20701 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20702 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20703 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20704 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20705 | echo "${ECHO_T}$ac_res" >&6; } |
| 20706 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20707 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20708 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20709 | _ACEOF |
| 20710 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20711 | /* confdefs.h. */ |
| 20712 | _ACEOF |
| 20713 | cat confdefs.h >>conftest.$ac_ext |
| 20714 | cat >>conftest.$ac_ext <<_ACEOF |
| 20715 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20716 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20717 | int |
| 20718 | main () |
| 20719 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20720 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20721 | ; |
| 20722 | return 0; |
| 20723 | } |
| 20724 | _ACEOF |
| 20725 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20726 | if { (ac_try="$ac_compile" |
| 20727 | case "(($ac_try" in |
| 20728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20729 | *) ac_try_echo=$ac_try;; |
| 20730 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20732 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20733 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20734 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20735 | rm -f conftest.er1 |
| 20736 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20738 | (exit $ac_status); } && { |
| 20739 | test -z "$ac_c_werror_flag" || |
| 20740 | test ! -s conftest.err |
| 20741 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20742 | |
| 20743 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20744 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20745 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20746 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20747 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 20748 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20749 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20750 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20751 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20752 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20753 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20754 | |
| 20755 | 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] | 20756 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20757 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20758 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20759 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20760 | |
| 20761 | for ac_func in setpgrp |
| 20762 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20763 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20764 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20765 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20766 | 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] | 20767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20768 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20769 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20770 | /* confdefs.h. */ |
| 20771 | _ACEOF |
| 20772 | cat confdefs.h >>conftest.$ac_ext |
| 20773 | cat >>conftest.$ac_ext <<_ACEOF |
| 20774 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20775 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20776 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20777 | #define $ac_func innocuous_$ac_func |
| 20778 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20779 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20780 | which can conflict with char $ac_func (); below. |
| 20781 | 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] | 20782 | <limits.h> exists even on freestanding compilers. */ |
| 20783 | |
| 20784 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20785 | # include <limits.h> |
| 20786 | #else |
| 20787 | # include <assert.h> |
| 20788 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20789 | |
| 20790 | #undef $ac_func |
| 20791 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20792 | /* Override any GCC internal prototype to avoid an error. |
| 20793 | Use char because int might match the return type of a GCC |
| 20794 | builtin and then its argument prototype would still apply. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20795 | #ifdef __cplusplus |
| 20796 | extern "C" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20797 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20798 | char $ac_func (); |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20799 | /* The GNU C library defines this for functions which it implements |
| 20800 | to always fail with ENOSYS. Some functions are actually named |
| 20801 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20802 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20803 | choke me |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20804 | #endif |
| 20805 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20806 | int |
| 20807 | main () |
| 20808 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20809 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20810 | ; |
| 20811 | return 0; |
| 20812 | } |
| 20813 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20814 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20815 | if { (ac_try="$ac_link" |
| 20816 | case "(($ac_try" in |
| 20817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20818 | *) ac_try_echo=$ac_try;; |
| 20819 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20820 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20821 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20822 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20823 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20824 | rm -f conftest.er1 |
| 20825 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20827 | (exit $ac_status); } && { |
| 20828 | test -z "$ac_c_werror_flag" || |
| 20829 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20830 | } && test -s conftest$ac_exeext && |
| 20831 | $as_test_x conftest$ac_exeext; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20832 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20833 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20834 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20835 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20836 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20837 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20838 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20839 | |
| 20840 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20841 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20842 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20843 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20844 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20845 | echo "${ECHO_T}$ac_res" >&6; } |
| 20846 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20847 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20848 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20849 | _ACEOF |
| 20850 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20851 | /* confdefs.h. */ |
| 20852 | _ACEOF |
| 20853 | cat confdefs.h >>conftest.$ac_ext |
| 20854 | cat >>conftest.$ac_ext <<_ACEOF |
| 20855 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20856 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20857 | int |
| 20858 | main () |
| 20859 | { |
| 20860 | setpgrp(0,0); |
| 20861 | ; |
| 20862 | return 0; |
| 20863 | } |
| 20864 | _ACEOF |
| 20865 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20866 | if { (ac_try="$ac_compile" |
| 20867 | case "(($ac_try" in |
| 20868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20869 | *) ac_try_echo=$ac_try;; |
| 20870 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20872 | (eval "$ac_compile") 2>conftest.er1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20873 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20874 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20875 | rm -f conftest.er1 |
| 20876 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20878 | (exit $ac_status); } && { |
| 20879 | test -z "$ac_c_werror_flag" || |
| 20880 | test ! -s conftest.err |
| 20881 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20882 | |
| 20883 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20884 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20885 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 20886 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20887 | |
| 20888 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20889 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20890 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20891 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20892 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 20893 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20894 | |
| 20895 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20896 | |
| 20897 | fi |
| 20898 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 20899 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20900 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20901 | for ac_func in gettimeofday |
| 20902 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20903 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20904 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20905 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20906 | 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] | 20907 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20908 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20909 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20910 | /* confdefs.h. */ |
| 20911 | _ACEOF |
| 20912 | cat confdefs.h >>conftest.$ac_ext |
| 20913 | cat >>conftest.$ac_ext <<_ACEOF |
| 20914 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20915 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20916 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20917 | #define $ac_func innocuous_$ac_func |
| 20918 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20919 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20920 | which can conflict with char $ac_func (); below. |
| 20921 | 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] | 20922 | <limits.h> exists even on freestanding compilers. */ |
| 20923 | |
| 20924 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20925 | # include <limits.h> |
| 20926 | #else |
| 20927 | # include <assert.h> |
| 20928 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20929 | |
| 20930 | #undef $ac_func |
| 20931 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20932 | /* Override any GCC internal prototype to avoid an error. |
| 20933 | Use char because int might match the return type of a GCC |
| 20934 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20935 | #ifdef __cplusplus |
| 20936 | extern "C" |
| 20937 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20938 | char $ac_func (); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20939 | /* The GNU C library defines this for functions which it implements |
| 20940 | to always fail with ENOSYS. Some functions are actually named |
| 20941 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20942 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20943 | choke me |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20944 | #endif |
| 20945 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20946 | int |
| 20947 | main () |
| 20948 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20949 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20950 | ; |
| 20951 | return 0; |
| 20952 | } |
| 20953 | _ACEOF |
| 20954 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20955 | if { (ac_try="$ac_link" |
| 20956 | case "(($ac_try" in |
| 20957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20958 | *) ac_try_echo=$ac_try;; |
| 20959 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20960 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20961 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20962 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20963 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20964 | rm -f conftest.er1 |
| 20965 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20967 | (exit $ac_status); } && { |
| 20968 | test -z "$ac_c_werror_flag" || |
| 20969 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20970 | } && test -s conftest$ac_exeext && |
| 20971 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20972 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20973 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20974 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20975 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20976 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20977 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20978 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20979 | |
| 20980 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20981 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20982 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20983 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20984 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20985 | echo "${ECHO_T}$ac_res" >&6; } |
| 20986 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20987 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20988 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20989 | _ACEOF |
| 20990 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20991 | /* confdefs.h. */ |
| 20992 | _ACEOF |
| 20993 | cat confdefs.h >>conftest.$ac_ext |
| 20994 | cat >>conftest.$ac_ext <<_ACEOF |
| 20995 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20996 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20997 | int |
| 20998 | main () |
| 20999 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21000 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21001 | ; |
| 21002 | return 0; |
| 21003 | } |
| 21004 | _ACEOF |
| 21005 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21006 | if { (ac_try="$ac_compile" |
| 21007 | case "(($ac_try" in |
| 21008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21009 | *) ac_try_echo=$ac_try;; |
| 21010 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21012 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21013 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21014 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21015 | rm -f conftest.er1 |
| 21016 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21018 | (exit $ac_status); } && { |
| 21019 | test -z "$ac_c_werror_flag" || |
| 21020 | test ! -s conftest.err |
| 21021 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21022 | : |
| 21023 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21024 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21025 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21026 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21027 | |
| 21028 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21029 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21030 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21031 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21032 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21033 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21034 | |
| 21035 | 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] | 21036 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21037 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 21038 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21039 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21040 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21041 | { echo "$as_me:$LINENO: checking for major" >&5 |
| 21042 | echo $ECHO_N "checking for major... $ECHO_C" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21043 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21044 | /* confdefs.h. */ |
| 21045 | _ACEOF |
| 21046 | cat confdefs.h >>conftest.$ac_ext |
| 21047 | cat >>conftest.$ac_ext <<_ACEOF |
| 21048 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21049 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 21050 | #if defined(MAJOR_IN_MKDEV) |
| 21051 | #include <sys/mkdev.h> |
| 21052 | #elif defined(MAJOR_IN_SYSMACROS) |
| 21053 | #include <sys/sysmacros.h> |
| 21054 | #else |
| 21055 | #include <sys/types.h> |
| 21056 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21057 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21058 | int |
| 21059 | main () |
| 21060 | { |
| 21061 | |
| 21062 | makedev(major(0),minor(0)); |
| 21063 | |
| 21064 | ; |
| 21065 | return 0; |
| 21066 | } |
| 21067 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 21068 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21069 | if { (ac_try="$ac_link" |
| 21070 | case "(($ac_try" in |
| 21071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21072 | *) ac_try_echo=$ac_try;; |
| 21073 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21075 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21076 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21077 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21078 | rm -f conftest.er1 |
| 21079 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21081 | (exit $ac_status); } && { |
| 21082 | test -z "$ac_c_werror_flag" || |
| 21083 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21084 | } && test -s conftest$ac_exeext && |
| 21085 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21086 | |
| 21087 | |
| 21088 | cat >>confdefs.h <<\_ACEOF |
| 21089 | #define HAVE_DEVICE_MACROS 1 |
| 21090 | _ACEOF |
| 21091 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21092 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 21093 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21094 | |
| 21095 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21096 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21097 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21098 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21099 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21100 | { echo "$as_me:$LINENO: result: no" >&5 |
| 21101 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21102 | |
| 21103 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21104 | |
| 21105 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21106 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21107 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21108 | # 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] | 21109 | # for [no]getaddrinfo in netdb.h. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21110 | { echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 21111 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21112 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21113 | /* confdefs.h. */ |
| 21114 | _ACEOF |
| 21115 | cat confdefs.h >>conftest.$ac_ext |
| 21116 | cat >>conftest.$ac_ext <<_ACEOF |
| 21117 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21118 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 21119 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21120 | #include <sys/socket.h> |
| 21121 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 21122 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21123 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21124 | int |
| 21125 | main () |
| 21126 | { |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21127 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21128 | ; |
| 21129 | return 0; |
| 21130 | } |
| 21131 | _ACEOF |
| 21132 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21133 | if { (ac_try="$ac_link" |
| 21134 | case "(($ac_try" in |
| 21135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21136 | *) ac_try_echo=$ac_try;; |
| 21137 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21139 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21140 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21141 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21142 | rm -f conftest.er1 |
| 21143 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21145 | (exit $ac_status); } && { |
| 21146 | test -z "$ac_c_werror_flag" || |
| 21147 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21148 | } && test -s conftest$ac_exeext && |
| 21149 | $as_test_x conftest$ac_exeext; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21150 | have_getaddrinfo=yes |
| 21151 | else |
| 21152 | echo "$as_me: failed program was:" >&5 |
| 21153 | sed 's/^/| /' conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21154 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21155 | have_getaddrinfo=no |
| 21156 | fi |
| 21157 | |
| 21158 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 21159 | conftest$ac_exeext conftest.$ac_ext |
| 21160 | { echo "$as_me:$LINENO: result: $have_getaddrinfo" >&5 |
| 21161 | echo "${ECHO_T}$have_getaddrinfo" >&6; } |
| 21162 | if test $have_getaddrinfo = yes |
| 21163 | then |
| 21164 | { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21165 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21166 | if test "${ac_cv_buggy_getaddrinfo+set}" = set; then |
| 21167 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21168 | else |
| 21169 | if test "$cross_compiling" = yes; then |
| 21170 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21171 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21172 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21173 | /* confdefs.h. */ |
| 21174 | _ACEOF |
| 21175 | cat confdefs.h >>conftest.$ac_ext |
| 21176 | cat >>conftest.$ac_ext <<_ACEOF |
| 21177 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21178 | |
| 21179 | #include <sys/types.h> |
| 21180 | #include <netdb.h> |
| 21181 | #include <string.h> |
| 21182 | #include <sys/socket.h> |
| 21183 | #include <netinet/in.h> |
| 21184 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21185 | int main() |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21186 | { |
| 21187 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 21188 | struct addrinfo hints, *ai, *aitop; |
| 21189 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 21190 | |
| 21191 | for (passive = 0; passive <= 1; passive++) { |
| 21192 | memset(&hints, 0, sizeof(hints)); |
| 21193 | hints.ai_family = AF_UNSPEC; |
| 21194 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 21195 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 21196 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21197 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 21198 | (void)gai_strerror(gaierr); |
| 21199 | goto bad; |
| 21200 | } |
| 21201 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 21202 | if (ai->ai_addr == NULL || |
| 21203 | ai->ai_addrlen == 0 || |
| 21204 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 21205 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 21206 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 21207 | goto bad; |
| 21208 | } |
| 21209 | switch (ai->ai_family) { |
| 21210 | case AF_INET: |
| 21211 | if (strcmp(strport, "54321") != 0) { |
| 21212 | goto bad; |
| 21213 | } |
| 21214 | if (passive) { |
| 21215 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 21216 | goto bad; |
| 21217 | } |
| 21218 | } else { |
| 21219 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 21220 | goto bad; |
| 21221 | } |
| 21222 | } |
| 21223 | inet4++; |
| 21224 | break; |
| 21225 | case AF_INET6: |
| 21226 | if (strcmp(strport, "54321") != 0) { |
| 21227 | goto bad; |
| 21228 | } |
| 21229 | if (passive) { |
| 21230 | if (strcmp(straddr, "::") != 0) { |
| 21231 | goto bad; |
| 21232 | } |
| 21233 | } else { |
| 21234 | if (strcmp(straddr, "::1") != 0) { |
| 21235 | goto bad; |
| 21236 | } |
| 21237 | } |
| 21238 | inet6++; |
| 21239 | break; |
| 21240 | case AF_UNSPEC: |
| 21241 | goto bad; |
| 21242 | break; |
| 21243 | default: |
| 21244 | /* another family support? */ |
| 21245 | break; |
| 21246 | } |
| 21247 | } |
| 21248 | } |
| 21249 | |
| 21250 | if (!(inet4 == 0 || inet4 == 2)) |
| 21251 | goto bad; |
| 21252 | if (!(inet6 == 0 || inet6 == 2)) |
| 21253 | goto bad; |
| 21254 | |
| 21255 | if (aitop) |
| 21256 | freeaddrinfo(aitop); |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21257 | return 0; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21258 | |
| 21259 | bad: |
| 21260 | if (aitop) |
| 21261 | freeaddrinfo(aitop); |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21262 | return 1; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21263 | } |
| 21264 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21265 | _ACEOF |
| 21266 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21267 | if { (ac_try="$ac_link" |
| 21268 | case "(($ac_try" in |
| 21269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21270 | *) ac_try_echo=$ac_try;; |
| 21271 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21273 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21274 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21276 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21277 | { (case "(($ac_try" in |
| 21278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21279 | *) ac_try_echo=$ac_try;; |
| 21280 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21282 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21283 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21285 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21286 | ac_cv_buggy_getaddrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21287 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21288 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21289 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21290 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21291 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21292 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21293 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21294 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21295 | 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] | 21296 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21297 | |
| 21298 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21299 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21300 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21301 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21302 | |
Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 21303 | if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21304 | then |
| 21305 | if test $ipv6 = yes |
| 21306 | then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21307 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 21308 | echo ' or you can specify "--disable-ipv6"'. |
| 21309 | exit 1 |
| 21310 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21311 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21312 | |
| 21313 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21314 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21315 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21316 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21317 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21318 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 21319 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21320 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21321 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 21322 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 21323 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21324 | 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] | 21325 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21326 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21327 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21328 | /* confdefs.h. */ |
| 21329 | _ACEOF |
| 21330 | cat confdefs.h >>conftest.$ac_ext |
| 21331 | cat >>conftest.$ac_ext <<_ACEOF |
| 21332 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21333 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 21334 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 21335 | #define $ac_func innocuous_$ac_func |
| 21336 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21337 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21338 | which can conflict with char $ac_func (); below. |
| 21339 | 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] | 21340 | <limits.h> exists even on freestanding compilers. */ |
| 21341 | |
| 21342 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21343 | # include <limits.h> |
| 21344 | #else |
| 21345 | # include <assert.h> |
| 21346 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21347 | |
| 21348 | #undef $ac_func |
| 21349 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21350 | /* Override any GCC internal prototype to avoid an error. |
| 21351 | Use char because int might match the return type of a GCC |
| 21352 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21353 | #ifdef __cplusplus |
| 21354 | extern "C" |
| 21355 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21356 | char $ac_func (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21357 | /* The GNU C library defines this for functions which it implements |
| 21358 | to always fail with ENOSYS. Some functions are actually named |
| 21359 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21360 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21361 | choke me |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21362 | #endif |
| 21363 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21364 | int |
| 21365 | main () |
| 21366 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21367 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21368 | ; |
| 21369 | return 0; |
| 21370 | } |
| 21371 | _ACEOF |
| 21372 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21373 | if { (ac_try="$ac_link" |
| 21374 | case "(($ac_try" in |
| 21375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21376 | *) ac_try_echo=$ac_try;; |
| 21377 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21379 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21380 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21381 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21382 | rm -f conftest.er1 |
| 21383 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21385 | (exit $ac_status); } && { |
| 21386 | test -z "$ac_c_werror_flag" || |
| 21387 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21388 | } && test -s conftest$ac_exeext && |
| 21389 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21390 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21391 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21392 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21393 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21394 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21395 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21396 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21397 | |
| 21398 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21399 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21400 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21401 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 21402 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 21403 | echo "${ECHO_T}$ac_res" >&6; } |
| 21404 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21405 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21406 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21407 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21408 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21409 | fi |
| 21410 | done |
| 21411 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21412 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21413 | # checks for structures |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21414 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 21415 | 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] | 21416 | if test "${ac_cv_header_time+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21418 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21419 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21420 | /* confdefs.h. */ |
| 21421 | _ACEOF |
| 21422 | cat confdefs.h >>conftest.$ac_ext |
| 21423 | cat >>conftest.$ac_ext <<_ACEOF |
| 21424 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21425 | #include <sys/types.h> |
| 21426 | #include <sys/time.h> |
| 21427 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21428 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21429 | int |
| 21430 | main () |
| 21431 | { |
| 21432 | if ((struct tm *) 0) |
| 21433 | return 0; |
| 21434 | ; |
| 21435 | return 0; |
| 21436 | } |
| 21437 | _ACEOF |
| 21438 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21439 | if { (ac_try="$ac_compile" |
| 21440 | case "(($ac_try" in |
| 21441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21442 | *) ac_try_echo=$ac_try;; |
| 21443 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21445 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21446 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21447 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21448 | rm -f conftest.er1 |
| 21449 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21451 | (exit $ac_status); } && { |
| 21452 | test -z "$ac_c_werror_flag" || |
| 21453 | test ! -s conftest.err |
| 21454 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21455 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21456 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21457 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21458 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21459 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21460 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21461 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21462 | |
| 21463 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21464 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21465 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 21466 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21467 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21468 | |
| 21469 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21470 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21471 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21472 | |
| 21473 | fi |
| 21474 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21475 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 21476 | 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] | 21477 | if test "${ac_cv_struct_tm+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21479 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21480 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21481 | /* confdefs.h. */ |
| 21482 | _ACEOF |
| 21483 | cat confdefs.h >>conftest.$ac_ext |
| 21484 | cat >>conftest.$ac_ext <<_ACEOF |
| 21485 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21486 | #include <sys/types.h> |
| 21487 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21488 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21489 | int |
| 21490 | main () |
| 21491 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21492 | struct tm tm; |
| 21493 | int *p = &tm.tm_sec; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21494 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21495 | ; |
| 21496 | return 0; |
| 21497 | } |
| 21498 | _ACEOF |
| 21499 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21500 | if { (ac_try="$ac_compile" |
| 21501 | case "(($ac_try" in |
| 21502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21503 | *) ac_try_echo=$ac_try;; |
| 21504 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21506 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21507 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21508 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21509 | rm -f conftest.er1 |
| 21510 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21512 | (exit $ac_status); } && { |
| 21513 | test -z "$ac_c_werror_flag" || |
| 21514 | test ! -s conftest.err |
| 21515 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21516 | ac_cv_struct_tm=time.h |
| 21517 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21518 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21519 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21520 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21521 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21522 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21523 | |
| 21524 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21525 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21526 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 21527 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21528 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21529 | |
| 21530 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21531 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21532 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21533 | |
| 21534 | fi |
| 21535 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21536 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 21537 | 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] | 21538 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21540 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21541 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21542 | /* confdefs.h. */ |
| 21543 | _ACEOF |
| 21544 | cat confdefs.h >>conftest.$ac_ext |
| 21545 | cat >>conftest.$ac_ext <<_ACEOF |
| 21546 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21547 | #include <sys/types.h> |
| 21548 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21549 | |
| 21550 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21551 | int |
| 21552 | main () |
| 21553 | { |
| 21554 | static struct tm ac_aggr; |
| 21555 | if (ac_aggr.tm_zone) |
| 21556 | return 0; |
| 21557 | ; |
| 21558 | return 0; |
| 21559 | } |
| 21560 | _ACEOF |
| 21561 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21562 | if { (ac_try="$ac_compile" |
| 21563 | case "(($ac_try" in |
| 21564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21565 | *) ac_try_echo=$ac_try;; |
| 21566 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21568 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21569 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21570 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21571 | rm -f conftest.er1 |
| 21572 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21574 | (exit $ac_status); } && { |
| 21575 | test -z "$ac_c_werror_flag" || |
| 21576 | test ! -s conftest.err |
| 21577 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21578 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21579 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21580 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21581 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21582 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21583 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21584 | /* confdefs.h. */ |
| 21585 | _ACEOF |
| 21586 | cat confdefs.h >>conftest.$ac_ext |
| 21587 | cat >>conftest.$ac_ext <<_ACEOF |
| 21588 | /* end confdefs.h. */ |
| 21589 | #include <sys/types.h> |
| 21590 | #include <$ac_cv_struct_tm> |
| 21591 | |
| 21592 | |
| 21593 | int |
| 21594 | main () |
| 21595 | { |
| 21596 | static struct tm ac_aggr; |
| 21597 | if (sizeof ac_aggr.tm_zone) |
| 21598 | return 0; |
| 21599 | ; |
| 21600 | return 0; |
| 21601 | } |
| 21602 | _ACEOF |
| 21603 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21604 | if { (ac_try="$ac_compile" |
| 21605 | case "(($ac_try" in |
| 21606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21607 | *) ac_try_echo=$ac_try;; |
| 21608 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21610 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21611 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21612 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21613 | rm -f conftest.er1 |
| 21614 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21616 | (exit $ac_status); } && { |
| 21617 | test -z "$ac_c_werror_flag" || |
| 21618 | test ! -s conftest.err |
| 21619 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21620 | ac_cv_member_struct_tm_tm_zone=yes |
| 21621 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21622 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21623 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21624 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21625 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21626 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21627 | |
| 21628 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21629 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21630 | |
| 21631 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21632 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21633 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 21634 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } |
| 21635 | 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] | 21636 | |
| 21637 | cat >>confdefs.h <<_ACEOF |
| 21638 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 21639 | _ACEOF |
| 21640 | |
| 21641 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21642 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 21643 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21644 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 21645 | |
| 21646 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21647 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21648 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21649 | |
| 21650 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21651 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 21652 | 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] | 21653 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21655 | else |
| 21656 | cat >conftest.$ac_ext <<_ACEOF |
| 21657 | /* confdefs.h. */ |
| 21658 | _ACEOF |
| 21659 | cat confdefs.h >>conftest.$ac_ext |
| 21660 | cat >>conftest.$ac_ext <<_ACEOF |
| 21661 | /* end confdefs.h. */ |
| 21662 | #include <time.h> |
| 21663 | |
| 21664 | int |
| 21665 | main () |
| 21666 | { |
| 21667 | #ifndef tzname |
| 21668 | (void) tzname; |
| 21669 | #endif |
| 21670 | |
| 21671 | ; |
| 21672 | return 0; |
| 21673 | } |
| 21674 | _ACEOF |
| 21675 | rm -f conftest.$ac_objext |
| 21676 | if { (ac_try="$ac_compile" |
| 21677 | case "(($ac_try" in |
| 21678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21679 | *) ac_try_echo=$ac_try;; |
| 21680 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21682 | (eval "$ac_compile") 2>conftest.er1 |
| 21683 | ac_status=$? |
| 21684 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21685 | rm -f conftest.er1 |
| 21686 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21688 | (exit $ac_status); } && { |
| 21689 | test -z "$ac_c_werror_flag" || |
| 21690 | test ! -s conftest.err |
| 21691 | } && test -s conftest.$ac_objext; then |
| 21692 | ac_cv_have_decl_tzname=yes |
| 21693 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21694 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21695 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21696 | |
| 21697 | ac_cv_have_decl_tzname=no |
| 21698 | fi |
| 21699 | |
| 21700 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21701 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21702 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 21703 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } |
| 21704 | if test $ac_cv_have_decl_tzname = yes; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21705 | |
| 21706 | cat >>confdefs.h <<_ACEOF |
| 21707 | #define HAVE_DECL_TZNAME 1 |
| 21708 | _ACEOF |
| 21709 | |
| 21710 | |
| 21711 | else |
| 21712 | cat >>confdefs.h <<_ACEOF |
| 21713 | #define HAVE_DECL_TZNAME 0 |
| 21714 | _ACEOF |
| 21715 | |
| 21716 | |
| 21717 | fi |
| 21718 | |
| 21719 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21720 | { echo "$as_me:$LINENO: checking for tzname" >&5 |
| 21721 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21722 | if test "${ac_cv_var_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21724 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21725 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21726 | /* confdefs.h. */ |
| 21727 | _ACEOF |
| 21728 | cat confdefs.h >>conftest.$ac_ext |
| 21729 | cat >>conftest.$ac_ext <<_ACEOF |
| 21730 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21731 | #include <time.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21732 | #if !HAVE_DECL_TZNAME |
| 21733 | extern char *tzname[]; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21734 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21735 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21736 | int |
| 21737 | main () |
| 21738 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21739 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21740 | ; |
| 21741 | return 0; |
| 21742 | } |
| 21743 | _ACEOF |
| 21744 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21745 | if { (ac_try="$ac_link" |
| 21746 | case "(($ac_try" in |
| 21747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21748 | *) ac_try_echo=$ac_try;; |
| 21749 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21751 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21752 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21753 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21754 | rm -f conftest.er1 |
| 21755 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21757 | (exit $ac_status); } && { |
| 21758 | test -z "$ac_c_werror_flag" || |
| 21759 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21760 | } && test -s conftest$ac_exeext && |
| 21761 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21762 | ac_cv_var_tzname=yes |
| 21763 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21764 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21765 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21766 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21767 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21768 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21769 | |
| 21770 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21771 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21772 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21773 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 21774 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21775 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21776 | |
| 21777 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21778 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21779 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21780 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21781 | fi |
| 21782 | fi |
| 21783 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21784 | { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 21785 | 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] | 21786 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21787 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21788 | else |
| 21789 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21790 | /* confdefs.h. */ |
| 21791 | _ACEOF |
| 21792 | cat confdefs.h >>conftest.$ac_ext |
| 21793 | cat >>conftest.$ac_ext <<_ACEOF |
| 21794 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21795 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21796 | int |
| 21797 | main () |
| 21798 | { |
| 21799 | static struct stat ac_aggr; |
| 21800 | if (ac_aggr.st_rdev) |
| 21801 | return 0; |
| 21802 | ; |
| 21803 | return 0; |
| 21804 | } |
| 21805 | _ACEOF |
| 21806 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21807 | if { (ac_try="$ac_compile" |
| 21808 | case "(($ac_try" in |
| 21809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21810 | *) ac_try_echo=$ac_try;; |
| 21811 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21813 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21814 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21815 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21816 | rm -f conftest.er1 |
| 21817 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21819 | (exit $ac_status); } && { |
| 21820 | test -z "$ac_c_werror_flag" || |
| 21821 | test ! -s conftest.err |
| 21822 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21823 | ac_cv_member_struct_stat_st_rdev=yes |
| 21824 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21825 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21826 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21827 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21828 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21829 | /* confdefs.h. */ |
| 21830 | _ACEOF |
| 21831 | cat confdefs.h >>conftest.$ac_ext |
| 21832 | cat >>conftest.$ac_ext <<_ACEOF |
| 21833 | /* end confdefs.h. */ |
| 21834 | $ac_includes_default |
| 21835 | int |
| 21836 | main () |
| 21837 | { |
| 21838 | static struct stat ac_aggr; |
| 21839 | if (sizeof ac_aggr.st_rdev) |
| 21840 | return 0; |
| 21841 | ; |
| 21842 | return 0; |
| 21843 | } |
| 21844 | _ACEOF |
| 21845 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21846 | if { (ac_try="$ac_compile" |
| 21847 | case "(($ac_try" in |
| 21848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21849 | *) ac_try_echo=$ac_try;; |
| 21850 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21851 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21852 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21853 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21854 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21855 | rm -f conftest.er1 |
| 21856 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21858 | (exit $ac_status); } && { |
| 21859 | test -z "$ac_c_werror_flag" || |
| 21860 | test ! -s conftest.err |
| 21861 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21862 | ac_cv_member_struct_stat_st_rdev=yes |
| 21863 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21864 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21865 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21866 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21867 | ac_cv_member_struct_stat_st_rdev=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21868 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21869 | |
| 21870 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21871 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21872 | |
| 21873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21874 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21875 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 21876 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; } |
| 21877 | 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] | 21878 | |
| 21879 | cat >>confdefs.h <<_ACEOF |
| 21880 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 21881 | _ACEOF |
| 21882 | |
| 21883 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21884 | fi |
| 21885 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21886 | { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 21887 | 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] | 21888 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21890 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21891 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21892 | /* confdefs.h. */ |
| 21893 | _ACEOF |
| 21894 | cat confdefs.h >>conftest.$ac_ext |
| 21895 | cat >>conftest.$ac_ext <<_ACEOF |
| 21896 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21897 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21898 | int |
| 21899 | main () |
| 21900 | { |
| 21901 | static struct stat ac_aggr; |
| 21902 | if (ac_aggr.st_blksize) |
| 21903 | return 0; |
| 21904 | ; |
| 21905 | return 0; |
| 21906 | } |
| 21907 | _ACEOF |
| 21908 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21909 | if { (ac_try="$ac_compile" |
| 21910 | case "(($ac_try" in |
| 21911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21912 | *) ac_try_echo=$ac_try;; |
| 21913 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21914 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21915 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21916 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21917 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21918 | rm -f conftest.er1 |
| 21919 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21921 | (exit $ac_status); } && { |
| 21922 | test -z "$ac_c_werror_flag" || |
| 21923 | test ! -s conftest.err |
| 21924 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21925 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21926 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21927 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21928 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21929 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21930 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21931 | /* confdefs.h. */ |
| 21932 | _ACEOF |
| 21933 | cat confdefs.h >>conftest.$ac_ext |
| 21934 | cat >>conftest.$ac_ext <<_ACEOF |
| 21935 | /* end confdefs.h. */ |
| 21936 | $ac_includes_default |
| 21937 | int |
| 21938 | main () |
| 21939 | { |
| 21940 | static struct stat ac_aggr; |
| 21941 | if (sizeof ac_aggr.st_blksize) |
| 21942 | return 0; |
| 21943 | ; |
| 21944 | return 0; |
| 21945 | } |
| 21946 | _ACEOF |
| 21947 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21948 | if { (ac_try="$ac_compile" |
| 21949 | case "(($ac_try" in |
| 21950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21951 | *) ac_try_echo=$ac_try;; |
| 21952 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21954 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21955 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21956 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21957 | rm -f conftest.er1 |
| 21958 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21960 | (exit $ac_status); } && { |
| 21961 | test -z "$ac_c_werror_flag" || |
| 21962 | test ! -s conftest.err |
| 21963 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21964 | ac_cv_member_struct_stat_st_blksize=yes |
| 21965 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21966 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21967 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21968 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21969 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21970 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21971 | |
| 21972 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21973 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21974 | |
| 21975 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21976 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21977 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 21978 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; } |
| 21979 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21980 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21981 | cat >>confdefs.h <<_ACEOF |
| 21982 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 21983 | _ACEOF |
| 21984 | |
| 21985 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21986 | fi |
| 21987 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21988 | { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5 |
| 21989 | 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] | 21990 | if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21992 | else |
| 21993 | cat >conftest.$ac_ext <<_ACEOF |
| 21994 | /* confdefs.h. */ |
| 21995 | _ACEOF |
| 21996 | cat confdefs.h >>conftest.$ac_ext |
| 21997 | cat >>conftest.$ac_ext <<_ACEOF |
| 21998 | /* end confdefs.h. */ |
| 21999 | $ac_includes_default |
| 22000 | int |
| 22001 | main () |
| 22002 | { |
| 22003 | static struct stat ac_aggr; |
| 22004 | if (ac_aggr.st_flags) |
| 22005 | return 0; |
| 22006 | ; |
| 22007 | return 0; |
| 22008 | } |
| 22009 | _ACEOF |
| 22010 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22011 | if { (ac_try="$ac_compile" |
| 22012 | case "(($ac_try" in |
| 22013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22014 | *) ac_try_echo=$ac_try;; |
| 22015 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22017 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22018 | ac_status=$? |
| 22019 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22020 | rm -f conftest.er1 |
| 22021 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22023 | (exit $ac_status); } && { |
| 22024 | test -z "$ac_c_werror_flag" || |
| 22025 | test ! -s conftest.err |
| 22026 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22027 | ac_cv_member_struct_stat_st_flags=yes |
| 22028 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22029 | echo "$as_me: failed program was:" >&5 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22030 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22031 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22032 | cat >conftest.$ac_ext <<_ACEOF |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22033 | /* confdefs.h. */ |
| 22034 | _ACEOF |
| 22035 | cat confdefs.h >>conftest.$ac_ext |
| 22036 | cat >>conftest.$ac_ext <<_ACEOF |
| 22037 | /* end confdefs.h. */ |
| 22038 | $ac_includes_default |
| 22039 | int |
| 22040 | main () |
| 22041 | { |
| 22042 | static struct stat ac_aggr; |
| 22043 | if (sizeof ac_aggr.st_flags) |
| 22044 | return 0; |
| 22045 | ; |
| 22046 | return 0; |
| 22047 | } |
| 22048 | _ACEOF |
| 22049 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22050 | if { (ac_try="$ac_compile" |
| 22051 | case "(($ac_try" in |
| 22052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22053 | *) ac_try_echo=$ac_try;; |
| 22054 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22056 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22057 | ac_status=$? |
| 22058 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22059 | rm -f conftest.er1 |
| 22060 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22062 | (exit $ac_status); } && { |
| 22063 | test -z "$ac_c_werror_flag" || |
| 22064 | test ! -s conftest.err |
| 22065 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22066 | ac_cv_member_struct_stat_st_flags=yes |
| 22067 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22068 | echo "$as_me: failed program was:" >&5 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22069 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22070 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22071 | ac_cv_member_struct_stat_st_flags=no |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22072 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22073 | |
| 22074 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22075 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22076 | |
| 22077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22078 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22079 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5 |
| 22080 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; } |
| 22081 | if test $ac_cv_member_struct_stat_st_flags = yes; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22082 | |
| 22083 | cat >>confdefs.h <<_ACEOF |
| 22084 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 22085 | _ACEOF |
| 22086 | |
| 22087 | |
| 22088 | fi |
| 22089 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22090 | { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5 |
| 22091 | 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] | 22092 | if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22094 | else |
| 22095 | cat >conftest.$ac_ext <<_ACEOF |
| 22096 | /* confdefs.h. */ |
| 22097 | _ACEOF |
| 22098 | cat confdefs.h >>conftest.$ac_ext |
| 22099 | cat >>conftest.$ac_ext <<_ACEOF |
| 22100 | /* end confdefs.h. */ |
| 22101 | $ac_includes_default |
| 22102 | int |
| 22103 | main () |
| 22104 | { |
| 22105 | static struct stat ac_aggr; |
| 22106 | if (ac_aggr.st_gen) |
| 22107 | return 0; |
| 22108 | ; |
| 22109 | return 0; |
| 22110 | } |
| 22111 | _ACEOF |
| 22112 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22113 | if { (ac_try="$ac_compile" |
| 22114 | case "(($ac_try" in |
| 22115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22116 | *) ac_try_echo=$ac_try;; |
| 22117 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22119 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22120 | ac_status=$? |
| 22121 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22122 | rm -f conftest.er1 |
| 22123 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22125 | (exit $ac_status); } && { |
| 22126 | test -z "$ac_c_werror_flag" || |
| 22127 | test ! -s conftest.err |
| 22128 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22129 | ac_cv_member_struct_stat_st_gen=yes |
| 22130 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22131 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22132 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22133 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22134 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22135 | /* confdefs.h. */ |
| 22136 | _ACEOF |
| 22137 | cat confdefs.h >>conftest.$ac_ext |
| 22138 | cat >>conftest.$ac_ext <<_ACEOF |
| 22139 | /* end confdefs.h. */ |
| 22140 | $ac_includes_default |
| 22141 | int |
| 22142 | main () |
| 22143 | { |
| 22144 | static struct stat ac_aggr; |
| 22145 | if (sizeof ac_aggr.st_gen) |
| 22146 | return 0; |
| 22147 | ; |
| 22148 | return 0; |
| 22149 | } |
| 22150 | _ACEOF |
| 22151 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22152 | if { (ac_try="$ac_compile" |
| 22153 | case "(($ac_try" in |
| 22154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22155 | *) ac_try_echo=$ac_try;; |
| 22156 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22158 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22159 | ac_status=$? |
| 22160 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22161 | rm -f conftest.er1 |
| 22162 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22164 | (exit $ac_status); } && { |
| 22165 | test -z "$ac_c_werror_flag" || |
| 22166 | test ! -s conftest.err |
| 22167 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22168 | ac_cv_member_struct_stat_st_gen=yes |
| 22169 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22170 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22172 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22173 | ac_cv_member_struct_stat_st_gen=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22174 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22175 | |
| 22176 | 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] | 22177 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22178 | |
| 22179 | 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] | 22180 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22181 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5 |
| 22182 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; } |
| 22183 | 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] | 22184 | |
| 22185 | cat >>confdefs.h <<_ACEOF |
| 22186 | #define HAVE_STRUCT_STAT_ST_GEN 1 |
| 22187 | _ACEOF |
| 22188 | |
| 22189 | |
| 22190 | fi |
| 22191 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22192 | { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5 |
| 22193 | 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] | 22194 | if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22196 | else |
| 22197 | cat >conftest.$ac_ext <<_ACEOF |
| 22198 | /* confdefs.h. */ |
| 22199 | _ACEOF |
| 22200 | cat confdefs.h >>conftest.$ac_ext |
| 22201 | cat >>conftest.$ac_ext <<_ACEOF |
| 22202 | /* end confdefs.h. */ |
| 22203 | $ac_includes_default |
| 22204 | int |
| 22205 | main () |
| 22206 | { |
| 22207 | static struct stat ac_aggr; |
| 22208 | if (ac_aggr.st_birthtime) |
| 22209 | return 0; |
| 22210 | ; |
| 22211 | return 0; |
| 22212 | } |
| 22213 | _ACEOF |
| 22214 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22215 | if { (ac_try="$ac_compile" |
| 22216 | case "(($ac_try" in |
| 22217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22218 | *) ac_try_echo=$ac_try;; |
| 22219 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22221 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22222 | ac_status=$? |
| 22223 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22224 | rm -f conftest.er1 |
| 22225 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22227 | (exit $ac_status); } && { |
| 22228 | test -z "$ac_c_werror_flag" || |
| 22229 | test ! -s conftest.err |
| 22230 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22231 | ac_cv_member_struct_stat_st_birthtime=yes |
| 22232 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22233 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22234 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22235 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22236 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22237 | /* confdefs.h. */ |
| 22238 | _ACEOF |
| 22239 | cat confdefs.h >>conftest.$ac_ext |
| 22240 | cat >>conftest.$ac_ext <<_ACEOF |
| 22241 | /* end confdefs.h. */ |
| 22242 | $ac_includes_default |
| 22243 | int |
| 22244 | main () |
| 22245 | { |
| 22246 | static struct stat ac_aggr; |
| 22247 | if (sizeof ac_aggr.st_birthtime) |
| 22248 | return 0; |
| 22249 | ; |
| 22250 | return 0; |
| 22251 | } |
| 22252 | _ACEOF |
| 22253 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22254 | if { (ac_try="$ac_compile" |
| 22255 | case "(($ac_try" in |
| 22256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22257 | *) ac_try_echo=$ac_try;; |
| 22258 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22260 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22261 | ac_status=$? |
| 22262 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22263 | rm -f conftest.er1 |
| 22264 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22266 | (exit $ac_status); } && { |
| 22267 | test -z "$ac_c_werror_flag" || |
| 22268 | test ! -s conftest.err |
| 22269 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22270 | ac_cv_member_struct_stat_st_birthtime=yes |
| 22271 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22272 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22273 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22274 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22275 | ac_cv_member_struct_stat_st_birthtime=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22276 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22277 | |
| 22278 | 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] | 22279 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22280 | |
| 22281 | 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] | 22282 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22283 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5 |
| 22284 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; } |
| 22285 | 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] | 22286 | |
| 22287 | cat >>confdefs.h <<_ACEOF |
| 22288 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
| 22289 | _ACEOF |
| 22290 | |
| 22291 | |
| 22292 | fi |
| 22293 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22294 | { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 22295 | 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] | 22296 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 22298 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22299 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22300 | /* confdefs.h. */ |
| 22301 | _ACEOF |
| 22302 | cat confdefs.h >>conftest.$ac_ext |
| 22303 | cat >>conftest.$ac_ext <<_ACEOF |
| 22304 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22305 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22306 | int |
| 22307 | main () |
| 22308 | { |
| 22309 | static struct stat ac_aggr; |
| 22310 | if (ac_aggr.st_blocks) |
| 22311 | return 0; |
| 22312 | ; |
| 22313 | return 0; |
| 22314 | } |
| 22315 | _ACEOF |
| 22316 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22317 | if { (ac_try="$ac_compile" |
| 22318 | case "(($ac_try" in |
| 22319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22320 | *) ac_try_echo=$ac_try;; |
| 22321 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22323 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22324 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22325 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22326 | rm -f conftest.er1 |
| 22327 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22329 | (exit $ac_status); } && { |
| 22330 | test -z "$ac_c_werror_flag" || |
| 22331 | test ! -s conftest.err |
| 22332 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22333 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22334 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22335 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22336 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22337 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22338 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22339 | /* confdefs.h. */ |
| 22340 | _ACEOF |
| 22341 | cat confdefs.h >>conftest.$ac_ext |
| 22342 | cat >>conftest.$ac_ext <<_ACEOF |
| 22343 | /* end confdefs.h. */ |
| 22344 | $ac_includes_default |
| 22345 | int |
| 22346 | main () |
| 22347 | { |
| 22348 | static struct stat ac_aggr; |
| 22349 | if (sizeof ac_aggr.st_blocks) |
| 22350 | return 0; |
| 22351 | ; |
| 22352 | return 0; |
| 22353 | } |
| 22354 | _ACEOF |
| 22355 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22356 | if { (ac_try="$ac_compile" |
| 22357 | case "(($ac_try" in |
| 22358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22359 | *) ac_try_echo=$ac_try;; |
| 22360 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22362 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22363 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22364 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22365 | rm -f conftest.er1 |
| 22366 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22368 | (exit $ac_status); } && { |
| 22369 | test -z "$ac_c_werror_flag" || |
| 22370 | test ! -s conftest.err |
| 22371 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22372 | ac_cv_member_struct_stat_st_blocks=yes |
| 22373 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22374 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22375 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22376 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22377 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22378 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22379 | |
| 22380 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22381 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22382 | |
| 22383 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22384 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22385 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 22386 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; } |
| 22387 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22388 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22389 | cat >>confdefs.h <<_ACEOF |
| 22390 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 22391 | _ACEOF |
| 22392 | |
| 22393 | |
| 22394 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 22395 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22396 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 22397 | |
| 22398 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22399 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22400 | *" fileblocks.$ac_objext "* ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22401 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
| 22402 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22403 | esac |
| 22404 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 22405 | fi |
| 22406 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22407 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22408 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22409 | { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 22410 | 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] | 22411 | if test "${ac_cv_header_time_altzone+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22413 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22414 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22415 | /* confdefs.h. */ |
| 22416 | _ACEOF |
| 22417 | cat confdefs.h >>conftest.$ac_ext |
| 22418 | cat >>conftest.$ac_ext <<_ACEOF |
| 22419 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22420 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22421 | int |
| 22422 | main () |
| 22423 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22424 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22425 | ; |
| 22426 | return 0; |
| 22427 | } |
| 22428 | _ACEOF |
| 22429 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22430 | if { (ac_try="$ac_compile" |
| 22431 | case "(($ac_try" in |
| 22432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22433 | *) ac_try_echo=$ac_try;; |
| 22434 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22435 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22436 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22437 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22438 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22439 | rm -f conftest.er1 |
| 22440 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22442 | (exit $ac_status); } && { |
| 22443 | test -z "$ac_c_werror_flag" || |
| 22444 | test ! -s conftest.err |
| 22445 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22446 | ac_cv_header_time_altzone=yes |
| 22447 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22448 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22449 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22450 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22451 | ac_cv_header_time_altzone=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22452 | fi |
| 22453 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22454 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22455 | fi |
| 22456 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22457 | { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 22458 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22459 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22460 | |
| 22461 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22462 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22463 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22464 | |
| 22465 | fi |
| 22466 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22467 | was_it_defined=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22468 | { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 22469 | 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] | 22470 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22471 | /* confdefs.h. */ |
| 22472 | _ACEOF |
| 22473 | cat confdefs.h >>conftest.$ac_ext |
| 22474 | cat >>conftest.$ac_ext <<_ACEOF |
| 22475 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22476 | |
| 22477 | #include <sys/types.h> |
| 22478 | #include <sys/select.h> |
| 22479 | #include <sys/time.h> |
| 22480 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22481 | int |
| 22482 | main () |
| 22483 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22484 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22485 | ; |
| 22486 | return 0; |
| 22487 | } |
| 22488 | _ACEOF |
| 22489 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22490 | if { (ac_try="$ac_compile" |
| 22491 | case "(($ac_try" in |
| 22492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22493 | *) ac_try_echo=$ac_try;; |
| 22494 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22496 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22497 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22498 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22499 | rm -f conftest.er1 |
| 22500 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22502 | (exit $ac_status); } && { |
| 22503 | test -z "$ac_c_werror_flag" || |
| 22504 | test ! -s conftest.err |
| 22505 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22506 | |
| 22507 | |
| 22508 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22509 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22510 | _ACEOF |
| 22511 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22512 | was_it_defined=yes |
| 22513 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 22514 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22515 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22516 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22517 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 22518 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22519 | fi |
| 22520 | |
| 22521 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22522 | { echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 22523 | echo "${ECHO_T}$was_it_defined" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22524 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22525 | { echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 22526 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22527 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22528 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22529 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22530 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22531 | /* confdefs.h. */ |
| 22532 | _ACEOF |
| 22533 | cat confdefs.h >>conftest.$ac_ext |
| 22534 | cat >>conftest.$ac_ext <<_ACEOF |
| 22535 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22536 | |
| 22537 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22538 | int |
| 22539 | main () |
| 22540 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22541 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22542 | ; |
| 22543 | return 0; |
| 22544 | } |
| 22545 | _ACEOF |
| 22546 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22547 | if { (ac_try="$ac_compile" |
| 22548 | case "(($ac_try" in |
| 22549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22550 | *) ac_try_echo=$ac_try;; |
| 22551 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22552 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22553 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22554 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22555 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22556 | rm -f conftest.er1 |
| 22557 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22559 | (exit $ac_status); } && { |
| 22560 | test -z "$ac_c_werror_flag" || |
| 22561 | test ! -s conftest.err |
| 22562 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22563 | ac_cv_struct_addrinfo=yes |
| 22564 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22565 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22566 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22567 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22568 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22569 | fi |
| 22570 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22572 | fi |
| 22573 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22574 | { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 22575 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22576 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22577 | |
| 22578 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22579 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22580 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22581 | |
| 22582 | fi |
| 22583 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22584 | { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 22585 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22586 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22587 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22588 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22589 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22590 | /* confdefs.h. */ |
| 22591 | _ACEOF |
| 22592 | cat confdefs.h >>conftest.$ac_ext |
| 22593 | cat >>conftest.$ac_ext <<_ACEOF |
| 22594 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22595 | |
| 22596 | # include <sys/types.h> |
| 22597 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22598 | int |
| 22599 | main () |
| 22600 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22601 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22602 | ; |
| 22603 | return 0; |
| 22604 | } |
| 22605 | _ACEOF |
| 22606 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22607 | if { (ac_try="$ac_compile" |
| 22608 | case "(($ac_try" in |
| 22609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22610 | *) ac_try_echo=$ac_try;; |
| 22611 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22613 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22614 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22615 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22616 | rm -f conftest.er1 |
| 22617 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22619 | (exit $ac_status); } && { |
| 22620 | test -z "$ac_c_werror_flag" || |
| 22621 | test ! -s conftest.err |
| 22622 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22623 | ac_cv_struct_sockaddr_storage=yes |
| 22624 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22625 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22626 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22627 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22628 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22629 | fi |
| 22630 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22631 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22632 | fi |
| 22633 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22634 | { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 22635 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22636 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22637 | |
| 22638 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22639 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22640 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22641 | |
| 22642 | fi |
| 22643 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22644 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22645 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22646 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22647 | { echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 22648 | 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] | 22649 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22651 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22652 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22653 | /* confdefs.h. */ |
| 22654 | _ACEOF |
| 22655 | cat confdefs.h >>conftest.$ac_ext |
| 22656 | cat >>conftest.$ac_ext <<_ACEOF |
| 22657 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22658 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22659 | int |
| 22660 | main () |
| 22661 | { |
| 22662 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 22663 | test_array [0] = 0 |
| 22664 | |
| 22665 | ; |
| 22666 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22667 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22668 | _ACEOF |
| 22669 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22670 | if { (ac_try="$ac_compile" |
| 22671 | case "(($ac_try" in |
| 22672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22673 | *) ac_try_echo=$ac_try;; |
| 22674 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22675 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22676 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22677 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22678 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22679 | rm -f conftest.er1 |
| 22680 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22682 | (exit $ac_status); } && { |
| 22683 | test -z "$ac_c_werror_flag" || |
| 22684 | test ! -s conftest.err |
| 22685 | } && test -s conftest.$ac_objext; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22686 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22687 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22688 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22689 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22690 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22691 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22692 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22693 | |
| 22694 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22695 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22696 | { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 22697 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22698 | 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] | 22699 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22700 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22701 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22702 | |
| 22703 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22704 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22705 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 22706 | 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] | 22707 | if test "${ac_cv_c_const+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22709 | else |
| 22710 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22711 | /* confdefs.h. */ |
| 22712 | _ACEOF |
| 22713 | cat confdefs.h >>conftest.$ac_ext |
| 22714 | cat >>conftest.$ac_ext <<_ACEOF |
| 22715 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22716 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22717 | int |
| 22718 | main () |
| 22719 | { |
| 22720 | /* FIXME: Include the comments suggested by Paul. */ |
| 22721 | #ifndef __cplusplus |
| 22722 | /* Ultrix mips cc rejects this. */ |
| 22723 | typedef int charset[2]; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22724 | const charset cs; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22725 | /* SunOS 4.1.1 cc rejects this. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22726 | char const *const *pcpcc; |
| 22727 | char **ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22728 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 22729 | struct point {int x, y;}; |
| 22730 | static struct point const zero = {0,0}; |
| 22731 | /* AIX XL C 1.02.0.0 rejects this. |
| 22732 | It does not let you subtract one const X* pointer from another in |
| 22733 | an arm of an if-expression whose if-part is not a constant |
| 22734 | expression */ |
| 22735 | const char *g = "string"; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22736 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22737 | /* HPUX 7.0 cc rejects these. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22738 | ++pcpcc; |
| 22739 | ppc = (char**) pcpcc; |
| 22740 | pcpcc = (char const *const *) ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22741 | { /* SCO 3.2v4 cc rejects this. */ |
| 22742 | char *t; |
| 22743 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22744 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22745 | *t++ = 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22746 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22747 | } |
| 22748 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 22749 | int x[] = {25, 17}; |
| 22750 | const int *foo = &x[0]; |
| 22751 | ++foo; |
| 22752 | } |
| 22753 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 22754 | typedef const int *iptr; |
| 22755 | iptr p = 0; |
| 22756 | ++p; |
| 22757 | } |
| 22758 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 22759 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 22760 | struct s { int j; const int *ap[3]; }; |
| 22761 | struct s *b; b->j = 5; |
| 22762 | } |
| 22763 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 22764 | const int foo = 10; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22765 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22766 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22767 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22768 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22769 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22770 | ; |
| 22771 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22772 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22773 | _ACEOF |
| 22774 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22775 | if { (ac_try="$ac_compile" |
| 22776 | case "(($ac_try" in |
| 22777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22778 | *) ac_try_echo=$ac_try;; |
| 22779 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22781 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22782 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22783 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22784 | rm -f conftest.er1 |
| 22785 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22787 | (exit $ac_status); } && { |
| 22788 | test -z "$ac_c_werror_flag" || |
| 22789 | test ! -s conftest.err |
| 22790 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22791 | ac_cv_c_const=yes |
| 22792 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22793 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22794 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22795 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22796 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22797 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22798 | |
| 22799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22800 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22801 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 22802 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22803 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22804 | |
| 22805 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22806 | #define const |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22807 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22808 | |
| 22809 | fi |
| 22810 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22811 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22812 | works=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22813 | { echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 22814 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22815 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22816 | /* confdefs.h. */ |
| 22817 | _ACEOF |
| 22818 | cat confdefs.h >>conftest.$ac_ext |
| 22819 | cat >>conftest.$ac_ext <<_ACEOF |
| 22820 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22821 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22822 | int |
| 22823 | main () |
| 22824 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22825 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22826 | ; |
| 22827 | return 0; |
| 22828 | } |
| 22829 | _ACEOF |
| 22830 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22831 | if { (ac_try="$ac_compile" |
| 22832 | case "(($ac_try" in |
| 22833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22834 | *) ac_try_echo=$ac_try;; |
| 22835 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22837 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22838 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22839 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22840 | rm -f conftest.er1 |
| 22841 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22843 | (exit $ac_status); } && { |
| 22844 | test -z "$ac_c_werror_flag" || |
| 22845 | test ! -s conftest.err |
| 22846 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22847 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22848 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22849 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22850 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22851 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22852 | |
| 22853 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22854 | #define volatile |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22855 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22856 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22857 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22858 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22859 | |
| 22860 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22861 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 22862 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22863 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22864 | works=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22865 | { echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 22866 | 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] | 22867 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22868 | /* confdefs.h. */ |
| 22869 | _ACEOF |
| 22870 | cat confdefs.h >>conftest.$ac_ext |
| 22871 | cat >>conftest.$ac_ext <<_ACEOF |
| 22872 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 22873 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22874 | int |
| 22875 | main () |
| 22876 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22877 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22878 | ; |
| 22879 | return 0; |
| 22880 | } |
| 22881 | _ACEOF |
| 22882 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22883 | if { (ac_try="$ac_compile" |
| 22884 | case "(($ac_try" in |
| 22885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22886 | *) ac_try_echo=$ac_try;; |
| 22887 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22889 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22890 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22891 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22892 | rm -f conftest.er1 |
| 22893 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22895 | (exit $ac_status); } && { |
| 22896 | test -z "$ac_c_werror_flag" || |
| 22897 | test ! -s conftest.err |
| 22898 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22899 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 22900 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22901 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22902 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22903 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22904 | |
| 22905 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22906 | #define signed |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22907 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22908 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22909 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22910 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22911 | |
| 22912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22913 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 22914 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22915 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22916 | have_prototypes=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22917 | { echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 22918 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22919 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22920 | /* confdefs.h. */ |
| 22921 | _ACEOF |
| 22922 | cat confdefs.h >>conftest.$ac_ext |
| 22923 | cat >>conftest.$ac_ext <<_ACEOF |
| 22924 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22925 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22926 | int |
| 22927 | main () |
| 22928 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22929 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22930 | ; |
| 22931 | return 0; |
| 22932 | } |
| 22933 | _ACEOF |
| 22934 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22935 | if { (ac_try="$ac_compile" |
| 22936 | case "(($ac_try" in |
| 22937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22938 | *) ac_try_echo=$ac_try;; |
| 22939 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22941 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22942 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22943 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22944 | rm -f conftest.er1 |
| 22945 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22947 | (exit $ac_status); } && { |
| 22948 | test -z "$ac_c_werror_flag" || |
| 22949 | test ! -s conftest.err |
| 22950 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22951 | |
| 22952 | |
| 22953 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22954 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22955 | _ACEOF |
| 22956 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22957 | have_prototypes=yes |
| 22958 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 22959 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22960 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22961 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22962 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22963 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22964 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22965 | |
| 22966 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22967 | { echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 22968 | echo "${ECHO_T}$have_prototypes" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22969 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22970 | works=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22971 | { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 22972 | 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] | 22973 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22974 | /* confdefs.h. */ |
| 22975 | _ACEOF |
| 22976 | cat confdefs.h >>conftest.$ac_ext |
| 22977 | cat >>conftest.$ac_ext <<_ACEOF |
| 22978 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22979 | |
| 22980 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 22981 | int foo(int x, ...) { |
| 22982 | va_list va; |
| 22983 | va_start(va, x); |
| 22984 | va_arg(va, int); |
| 22985 | va_arg(va, char *); |
| 22986 | va_arg(va, double); |
| 22987 | return 0; |
| 22988 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22989 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22990 | int |
| 22991 | main () |
| 22992 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 22993 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22994 | ; |
| 22995 | return 0; |
| 22996 | } |
| 22997 | _ACEOF |
| 22998 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22999 | if { (ac_try="$ac_compile" |
| 23000 | case "(($ac_try" in |
| 23001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23002 | *) ac_try_echo=$ac_try;; |
| 23003 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23005 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23006 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23007 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23008 | rm -f conftest.er1 |
| 23009 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23011 | (exit $ac_status); } && { |
| 23012 | test -z "$ac_c_werror_flag" || |
| 23013 | test ! -s conftest.err |
| 23014 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23015 | |
| 23016 | |
| 23017 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23018 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23019 | _ACEOF |
| 23020 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 23021 | works=yes |
| 23022 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 23023 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23024 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23025 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23026 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23027 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23028 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23029 | |
| 23030 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23031 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 23032 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23033 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 23034 | # check for socketpair |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23035 | { echo "$as_me:$LINENO: checking for socketpair" >&5 |
| 23036 | echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 23037 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 23038 | /* confdefs.h. */ |
| 23039 | _ACEOF |
| 23040 | cat confdefs.h >>conftest.$ac_ext |
| 23041 | cat >>conftest.$ac_ext <<_ACEOF |
| 23042 | /* end confdefs.h. */ |
| 23043 | |
| 23044 | #include <sys/types.h> |
| 23045 | #include <sys/socket.h> |
| 23046 | |
| 23047 | int |
| 23048 | main () |
| 23049 | { |
| 23050 | void *x=socketpair |
| 23051 | ; |
| 23052 | return 0; |
| 23053 | } |
| 23054 | _ACEOF |
| 23055 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23056 | if { (ac_try="$ac_compile" |
| 23057 | case "(($ac_try" in |
| 23058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23059 | *) ac_try_echo=$ac_try;; |
| 23060 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23061 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23062 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 23063 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23064 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23065 | rm -f conftest.er1 |
| 23066 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23068 | (exit $ac_status); } && { |
| 23069 | test -z "$ac_c_werror_flag" || |
| 23070 | test ! -s conftest.err |
| 23071 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 23072 | |
| 23073 | cat >>confdefs.h <<\_ACEOF |
| 23074 | #define HAVE_SOCKETPAIR 1 |
| 23075 | _ACEOF |
| 23076 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23077 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23078 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 23079 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23080 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 23081 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23082 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23083 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23084 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 23085 | |
| 23086 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23087 | |
| 23088 | 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] | 23089 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 23090 | # check if sockaddr has sa_len member |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23091 | { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 23092 | 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] | 23093 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23094 | /* confdefs.h. */ |
| 23095 | _ACEOF |
| 23096 | cat confdefs.h >>conftest.$ac_ext |
| 23097 | cat >>conftest.$ac_ext <<_ACEOF |
| 23098 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 23099 | #include <sys/types.h> |
| 23100 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23101 | int |
| 23102 | main () |
| 23103 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 23104 | struct sockaddr x; |
| 23105 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23106 | ; |
| 23107 | return 0; |
| 23108 | } |
| 23109 | _ACEOF |
| 23110 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23111 | if { (ac_try="$ac_compile" |
| 23112 | case "(($ac_try" in |
| 23113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23114 | *) ac_try_echo=$ac_try;; |
| 23115 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23117 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23118 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23119 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23120 | rm -f conftest.er1 |
| 23121 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23123 | (exit $ac_status); } && { |
| 23124 | test -z "$ac_c_werror_flag" || |
| 23125 | test ! -s conftest.err |
| 23126 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23127 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23128 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23129 | |
| 23130 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 23131 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23132 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 23133 | |
| 23134 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23135 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23136 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23137 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23138 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23139 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 23140 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23141 | |
| 23142 | 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] | 23143 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 23144 | va_list_is_array=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23145 | { echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 23146 | 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] | 23147 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23148 | /* confdefs.h. */ |
| 23149 | _ACEOF |
| 23150 | cat confdefs.h >>conftest.$ac_ext |
| 23151 | cat >>conftest.$ac_ext <<_ACEOF |
| 23152 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23153 | |
| 23154 | #ifdef HAVE_STDARG_PROTOTYPES |
| 23155 | #include <stdarg.h> |
| 23156 | #else |
| 23157 | #include <varargs.h> |
| 23158 | #endif |
| 23159 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23160 | int |
| 23161 | main () |
| 23162 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23163 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23164 | ; |
| 23165 | return 0; |
| 23166 | } |
| 23167 | _ACEOF |
| 23168 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23169 | if { (ac_try="$ac_compile" |
| 23170 | case "(($ac_try" in |
| 23171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23172 | *) ac_try_echo=$ac_try;; |
| 23173 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23175 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23176 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23177 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23178 | rm -f conftest.er1 |
| 23179 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23181 | (exit $ac_status); } && { |
| 23182 | test -z "$ac_c_werror_flag" || |
| 23183 | test ! -s conftest.err |
| 23184 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23185 | : |
| 23186 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23187 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23188 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23189 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23190 | |
| 23191 | |
| 23192 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23193 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23194 | _ACEOF |
| 23195 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 23196 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 23197 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23198 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23199 | |
| 23200 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23201 | { echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 23202 | echo "${ECHO_T}$va_list_is_array" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23203 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23204 | # 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] | 23205 | |
| 23206 | |
| 23207 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23208 | { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 23209 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23210 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23212 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23213 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23214 | /* confdefs.h. */ |
| 23215 | _ACEOF |
| 23216 | cat confdefs.h >>conftest.$ac_ext |
| 23217 | cat >>conftest.$ac_ext <<_ACEOF |
| 23218 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23219 | /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r. |
| 23220 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23221 | #define gethostbyname_r innocuous_gethostbyname_r |
| 23222 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23223 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23224 | which can conflict with char gethostbyname_r (); below. |
| 23225 | 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] | 23226 | <limits.h> exists even on freestanding compilers. */ |
| 23227 | |
| 23228 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23229 | # include <limits.h> |
| 23230 | #else |
| 23231 | # include <assert.h> |
| 23232 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23233 | |
| 23234 | #undef gethostbyname_r |
| 23235 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23236 | /* Override any GCC internal prototype to avoid an error. |
| 23237 | Use char because int might match the return type of a GCC |
| 23238 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23239 | #ifdef __cplusplus |
| 23240 | extern "C" |
| 23241 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23242 | char gethostbyname_r (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23243 | /* The GNU C library defines this for functions which it implements |
| 23244 | to always fail with ENOSYS. Some functions are actually named |
| 23245 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23246 | #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23247 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23248 | #endif |
| 23249 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23250 | int |
| 23251 | main () |
| 23252 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23253 | return gethostbyname_r (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23254 | ; |
| 23255 | return 0; |
| 23256 | } |
| 23257 | _ACEOF |
| 23258 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23259 | if { (ac_try="$ac_link" |
| 23260 | case "(($ac_try" in |
| 23261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23262 | *) ac_try_echo=$ac_try;; |
| 23263 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23264 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23265 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23266 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23267 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23268 | rm -f conftest.er1 |
| 23269 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23271 | (exit $ac_status); } && { |
| 23272 | test -z "$ac_c_werror_flag" || |
| 23273 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23274 | } && test -s conftest$ac_exeext && |
| 23275 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23276 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23277 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23278 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23279 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23280 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23281 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23282 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23283 | |
| 23284 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23285 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23286 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23287 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 23288 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; } |
| 23289 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23290 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23291 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23292 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23293 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23294 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23295 | { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 23296 | 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] | 23297 | OLD_CFLAGS=$CFLAGS |
| 23298 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23299 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23300 | /* confdefs.h. */ |
| 23301 | _ACEOF |
| 23302 | cat confdefs.h >>conftest.$ac_ext |
| 23303 | cat >>conftest.$ac_ext <<_ACEOF |
| 23304 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23305 | |
| 23306 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23307 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23308 | int |
| 23309 | main () |
| 23310 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23311 | |
| 23312 | char *name; |
| 23313 | struct hostent *he, *res; |
| 23314 | char buffer[2048]; |
| 23315 | int buflen = 2048; |
| 23316 | int h_errnop; |
| 23317 | |
| 23318 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23319 | |
| 23320 | ; |
| 23321 | return 0; |
| 23322 | } |
| 23323 | _ACEOF |
| 23324 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23325 | if { (ac_try="$ac_compile" |
| 23326 | case "(($ac_try" in |
| 23327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23328 | *) ac_try_echo=$ac_try;; |
| 23329 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23331 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23332 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23333 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23334 | rm -f conftest.er1 |
| 23335 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23337 | (exit $ac_status); } && { |
| 23338 | test -z "$ac_c_werror_flag" || |
| 23339 | test ! -s conftest.err |
| 23340 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23341 | |
| 23342 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23343 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23344 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23345 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23346 | |
| 23347 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23348 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23349 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23350 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23351 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23352 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23353 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23354 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23355 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23356 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23357 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23358 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23359 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23360 | echo "${ECHO_T}no" >&6; } |
| 23361 | { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 23362 | 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] | 23363 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23364 | /* confdefs.h. */ |
| 23365 | _ACEOF |
| 23366 | cat confdefs.h >>conftest.$ac_ext |
| 23367 | cat >>conftest.$ac_ext <<_ACEOF |
| 23368 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23369 | |
| 23370 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23371 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23372 | int |
| 23373 | main () |
| 23374 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23375 | |
| 23376 | char *name; |
| 23377 | struct hostent *he; |
| 23378 | char buffer[2048]; |
| 23379 | int buflen = 2048; |
| 23380 | int h_errnop; |
| 23381 | |
| 23382 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23383 | |
| 23384 | ; |
| 23385 | return 0; |
| 23386 | } |
| 23387 | _ACEOF |
| 23388 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23389 | if { (ac_try="$ac_compile" |
| 23390 | case "(($ac_try" in |
| 23391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23392 | *) ac_try_echo=$ac_try;; |
| 23393 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23395 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23396 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23397 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23398 | rm -f conftest.er1 |
| 23399 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23401 | (exit $ac_status); } && { |
| 23402 | test -z "$ac_c_werror_flag" || |
| 23403 | test ! -s conftest.err |
| 23404 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23405 | |
| 23406 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23407 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23408 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23409 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23410 | |
| 23411 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23412 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23413 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23414 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23415 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23416 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23417 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23418 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23419 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23420 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23421 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23422 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23423 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23424 | echo "${ECHO_T}no" >&6; } |
| 23425 | { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 23426 | 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] | 23427 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23428 | /* confdefs.h. */ |
| 23429 | _ACEOF |
| 23430 | cat confdefs.h >>conftest.$ac_ext |
| 23431 | cat >>conftest.$ac_ext <<_ACEOF |
| 23432 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23433 | |
| 23434 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23435 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23436 | int |
| 23437 | main () |
| 23438 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23439 | |
| 23440 | char *name; |
| 23441 | struct hostent *he; |
| 23442 | struct hostent_data data; |
| 23443 | |
| 23444 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23445 | |
| 23446 | ; |
| 23447 | return 0; |
| 23448 | } |
| 23449 | _ACEOF |
| 23450 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23451 | if { (ac_try="$ac_compile" |
| 23452 | case "(($ac_try" in |
| 23453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23454 | *) ac_try_echo=$ac_try;; |
| 23455 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23457 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23458 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23459 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23460 | rm -f conftest.er1 |
| 23461 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23463 | (exit $ac_status); } && { |
| 23464 | test -z "$ac_c_werror_flag" || |
| 23465 | test ! -s conftest.err |
| 23466 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23467 | |
| 23468 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23469 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23470 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23471 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23472 | |
| 23473 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23474 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23475 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23476 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23477 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23478 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23479 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23480 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23481 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23482 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23483 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23484 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23485 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23486 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23487 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23488 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23489 | |
| 23490 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23491 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23492 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23493 | |
| 23494 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23495 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23496 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23497 | |
| 23498 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23499 | CFLAGS=$OLD_CFLAGS |
| 23500 | |
| 23501 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23502 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23503 | |
| 23504 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 23505 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23506 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 23507 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 23508 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23509 | 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] | 23510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23511 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23512 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23513 | /* confdefs.h. */ |
| 23514 | _ACEOF |
| 23515 | cat confdefs.h >>conftest.$ac_ext |
| 23516 | cat >>conftest.$ac_ext <<_ACEOF |
| 23517 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23518 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 23519 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23520 | #define $ac_func innocuous_$ac_func |
| 23521 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23522 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23523 | which can conflict with char $ac_func (); below. |
| 23524 | 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] | 23525 | <limits.h> exists even on freestanding compilers. */ |
| 23526 | |
| 23527 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23528 | # include <limits.h> |
| 23529 | #else |
| 23530 | # include <assert.h> |
| 23531 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23532 | |
| 23533 | #undef $ac_func |
| 23534 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23535 | /* Override any GCC internal prototype to avoid an error. |
| 23536 | Use char because int might match the return type of a GCC |
| 23537 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23538 | #ifdef __cplusplus |
| 23539 | extern "C" |
| 23540 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23541 | char $ac_func (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23542 | /* The GNU C library defines this for functions which it implements |
| 23543 | to always fail with ENOSYS. Some functions are actually named |
| 23544 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23545 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23546 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23547 | #endif |
| 23548 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23549 | int |
| 23550 | main () |
| 23551 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23552 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23553 | ; |
| 23554 | return 0; |
| 23555 | } |
| 23556 | _ACEOF |
| 23557 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23558 | if { (ac_try="$ac_link" |
| 23559 | case "(($ac_try" in |
| 23560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23561 | *) ac_try_echo=$ac_try;; |
| 23562 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23563 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23564 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23565 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23566 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23567 | rm -f conftest.er1 |
| 23568 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23570 | (exit $ac_status); } && { |
| 23571 | test -z "$ac_c_werror_flag" || |
| 23572 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23573 | } && test -s conftest$ac_exeext && |
| 23574 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23575 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23576 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23577 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23578 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23579 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23580 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23581 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23582 | |
| 23583 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23584 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23585 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23586 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 23587 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 23588 | echo "${ECHO_T}$ac_res" >&6; } |
| 23589 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23590 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23591 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23592 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23593 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23594 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 23595 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23596 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23597 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23598 | fi |
| 23599 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23600 | |
| 23601 | |
| 23602 | |
| 23603 | |
| 23604 | |
| 23605 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23606 | # checks for system services |
| 23607 | # (none yet) |
| 23608 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23609 | # Linux requires this for correct f.p. operations |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23610 | { echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 23611 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23612 | if test "${ac_cv_func___fpu_control+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23614 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23615 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23616 | /* confdefs.h. */ |
| 23617 | _ACEOF |
| 23618 | cat confdefs.h >>conftest.$ac_ext |
| 23619 | cat >>conftest.$ac_ext <<_ACEOF |
| 23620 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23621 | /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control. |
| 23622 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23623 | #define __fpu_control innocuous___fpu_control |
| 23624 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23625 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23626 | which can conflict with char __fpu_control (); below. |
| 23627 | 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] | 23628 | <limits.h> exists even on freestanding compilers. */ |
| 23629 | |
| 23630 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23631 | # include <limits.h> |
| 23632 | #else |
| 23633 | # include <assert.h> |
| 23634 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23635 | |
| 23636 | #undef __fpu_control |
| 23637 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23638 | /* Override any GCC internal prototype to avoid an error. |
| 23639 | Use char because int might match the return type of a GCC |
| 23640 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23641 | #ifdef __cplusplus |
| 23642 | extern "C" |
| 23643 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23644 | char __fpu_control (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23645 | /* The GNU C library defines this for functions which it implements |
| 23646 | to always fail with ENOSYS. Some functions are actually named |
| 23647 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23648 | #if defined __stub___fpu_control || defined __stub_____fpu_control |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23649 | choke me |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23650 | #endif |
| 23651 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23652 | int |
| 23653 | main () |
| 23654 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23655 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23656 | ; |
| 23657 | return 0; |
| 23658 | } |
| 23659 | _ACEOF |
| 23660 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23661 | if { (ac_try="$ac_link" |
| 23662 | case "(($ac_try" in |
| 23663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23664 | *) ac_try_echo=$ac_try;; |
| 23665 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23667 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23668 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23669 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23670 | rm -f conftest.er1 |
| 23671 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23673 | (exit $ac_status); } && { |
| 23674 | test -z "$ac_c_werror_flag" || |
| 23675 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23676 | } && test -s conftest$ac_exeext && |
| 23677 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23678 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23679 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23680 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23681 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23682 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23683 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23684 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23685 | |
| 23686 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23687 | conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23688 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23689 | { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 23690 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; } |
| 23691 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23692 | : |
| 23693 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23694 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23695 | { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 23696 | 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] | 23697 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23699 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23700 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 23701 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23702 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23703 | /* confdefs.h. */ |
| 23704 | _ACEOF |
| 23705 | cat confdefs.h >>conftest.$ac_ext |
| 23706 | cat >>conftest.$ac_ext <<_ACEOF |
| 23707 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23708 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23709 | /* Override any GCC internal prototype to avoid an error. |
| 23710 | Use char because int might match the return type of a GCC |
| 23711 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23712 | #ifdef __cplusplus |
| 23713 | extern "C" |
| 23714 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23715 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23716 | int |
| 23717 | main () |
| 23718 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23719 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23720 | ; |
| 23721 | return 0; |
| 23722 | } |
| 23723 | _ACEOF |
| 23724 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23725 | if { (ac_try="$ac_link" |
| 23726 | case "(($ac_try" in |
| 23727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23728 | *) ac_try_echo=$ac_try;; |
| 23729 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23731 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23732 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23733 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23734 | rm -f conftest.er1 |
| 23735 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23737 | (exit $ac_status); } && { |
| 23738 | test -z "$ac_c_werror_flag" || |
| 23739 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23740 | } && test -s conftest$ac_exeext && |
| 23741 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23742 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23743 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23744 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23745 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23746 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23747 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23748 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23749 | |
| 23750 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23751 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23752 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23753 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23754 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 23755 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; } |
| 23756 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23757 | cat >>confdefs.h <<_ACEOF |
| 23758 | #define HAVE_LIBIEEE 1 |
| 23759 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23760 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 23761 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23762 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23763 | fi |
| 23764 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23765 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23766 | fi |
| 23767 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23768 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23769 | # Check for --with-fpectl |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23770 | { echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 23771 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23772 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23773 | # Check whether --with-fpectl was given. |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23774 | if test "${with_fpectl+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23775 | withval=$with_fpectl; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23776 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23777 | then |
| 23778 | |
| 23779 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23780 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23781 | _ACEOF |
| 23782 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23783 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23784 | echo "${ECHO_T}yes" >&6; } |
| 23785 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 23786 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23787 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23788 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23789 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23790 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23791 | fi |
| 23792 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23793 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23794 | # check for --with-libm=... |
| 23795 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 23796 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 23797 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 23798 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 23799 | *) LIBM=-lm |
| 23800 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23801 | { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 23802 | 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] | 23803 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23804 | # Check whether --with-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 23805 | if test "${with_libm+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23806 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23807 | if test "$withval" = no |
| 23808 | then LIBM= |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23809 | { echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 23810 | echo "${ECHO_T}force LIBM empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23811 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23812 | then LIBM=$withval |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23813 | { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 23814 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6; } |
| 23815 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 23816 | 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] | 23817 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23818 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23819 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23820 | { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 23821 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23822 | fi |
| 23823 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23824 | |
| 23825 | # check for --with-libc=... |
| 23826 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23827 | { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 23828 | 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] | 23829 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23830 | # Check whether --with-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 23831 | if test "${with_libc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23832 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23833 | if test "$withval" = no |
| 23834 | then LIBC= |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23835 | { echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 23836 | echo "${ECHO_T}force LIBC empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23837 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23838 | then LIBC=$withval |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23839 | { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 23840 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6; } |
| 23841 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 23842 | 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] | 23843 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23844 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23845 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23846 | { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 23847 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23848 | fi |
| 23849 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23850 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 23851 | # ************************************************** |
| 23852 | # * Check for various properties of floating point * |
| 23853 | # ************************************************** |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23854 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 23855 | { echo "$as_me:$LINENO: checking whether C doubles are little-endian IEEE 754 binary64" >&5 |
| 23856 | echo $ECHO_N "checking whether C doubles are little-endian IEEE 754 binary64... $ECHO_C" >&6; } |
| 23857 | if test "${ac_cv_little_endian_double+set}" = set; then |
| 23858 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23859 | else |
| 23860 | |
| 23861 | if test "$cross_compiling" = yes; then |
| 23862 | ac_cv_little_endian_double=no |
| 23863 | else |
| 23864 | cat >conftest.$ac_ext <<_ACEOF |
| 23865 | /* confdefs.h. */ |
| 23866 | _ACEOF |
| 23867 | cat confdefs.h >>conftest.$ac_ext |
| 23868 | cat >>conftest.$ac_ext <<_ACEOF |
| 23869 | /* end confdefs.h. */ |
| 23870 | |
| 23871 | #include <string.h> |
| 23872 | int main() { |
| 23873 | double x = 9006104071832581.0; |
| 23874 | if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) |
| 23875 | return 0; |
| 23876 | else |
| 23877 | return 1; |
| 23878 | } |
| 23879 | |
| 23880 | _ACEOF |
| 23881 | rm -f conftest$ac_exeext |
| 23882 | if { (ac_try="$ac_link" |
| 23883 | case "(($ac_try" in |
| 23884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23885 | *) ac_try_echo=$ac_try;; |
| 23886 | esac |
| 23887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23888 | (eval "$ac_link") 2>&5 |
| 23889 | ac_status=$? |
| 23890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23891 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23892 | { (case "(($ac_try" in |
| 23893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23894 | *) ac_try_echo=$ac_try;; |
| 23895 | esac |
| 23896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23897 | (eval "$ac_try") 2>&5 |
| 23898 | ac_status=$? |
| 23899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23900 | (exit $ac_status); }; }; then |
| 23901 | ac_cv_little_endian_double=yes |
| 23902 | else |
| 23903 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23904 | echo "$as_me: failed program was:" >&5 |
| 23905 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23906 | |
| 23907 | ( exit $ac_status ) |
| 23908 | ac_cv_little_endian_double=no |
| 23909 | fi |
| 23910 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23911 | fi |
| 23912 | |
| 23913 | |
| 23914 | fi |
| 23915 | |
| 23916 | { echo "$as_me:$LINENO: result: $ac_cv_little_endian_double" >&5 |
| 23917 | echo "${ECHO_T}$ac_cv_little_endian_double" >&6; } |
| 23918 | if test "$ac_cv_little_endian_double" = yes |
| 23919 | then |
| 23920 | |
| 23921 | cat >>confdefs.h <<\_ACEOF |
| 23922 | #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1 |
| 23923 | _ACEOF |
| 23924 | |
| 23925 | fi |
| 23926 | |
| 23927 | { echo "$as_me:$LINENO: checking whether C doubles are big-endian IEEE 754 binary64" >&5 |
| 23928 | echo $ECHO_N "checking whether C doubles are big-endian IEEE 754 binary64... $ECHO_C" >&6; } |
| 23929 | if test "${ac_cv_big_endian_double+set}" = set; then |
| 23930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23931 | else |
| 23932 | |
| 23933 | if test "$cross_compiling" = yes; then |
| 23934 | ac_cv_big_endian_double=no |
| 23935 | else |
| 23936 | cat >conftest.$ac_ext <<_ACEOF |
| 23937 | /* confdefs.h. */ |
| 23938 | _ACEOF |
| 23939 | cat confdefs.h >>conftest.$ac_ext |
| 23940 | cat >>conftest.$ac_ext <<_ACEOF |
| 23941 | /* end confdefs.h. */ |
| 23942 | |
| 23943 | #include <string.h> |
| 23944 | int main() { |
| 23945 | double x = 9006104071832581.0; |
| 23946 | if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) |
| 23947 | return 0; |
| 23948 | else |
| 23949 | return 1; |
| 23950 | } |
| 23951 | |
| 23952 | _ACEOF |
| 23953 | rm -f conftest$ac_exeext |
| 23954 | if { (ac_try="$ac_link" |
| 23955 | case "(($ac_try" in |
| 23956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23957 | *) ac_try_echo=$ac_try;; |
| 23958 | esac |
| 23959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23960 | (eval "$ac_link") 2>&5 |
| 23961 | ac_status=$? |
| 23962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23963 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23964 | { (case "(($ac_try" in |
| 23965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23966 | *) ac_try_echo=$ac_try;; |
| 23967 | esac |
| 23968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23969 | (eval "$ac_try") 2>&5 |
| 23970 | ac_status=$? |
| 23971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23972 | (exit $ac_status); }; }; then |
| 23973 | ac_cv_big_endian_double=yes |
| 23974 | else |
| 23975 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23976 | echo "$as_me: failed program was:" >&5 |
| 23977 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23978 | |
| 23979 | ( exit $ac_status ) |
| 23980 | ac_cv_big_endian_double=no |
| 23981 | fi |
| 23982 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23983 | fi |
| 23984 | |
| 23985 | |
| 23986 | fi |
| 23987 | |
| 23988 | { echo "$as_me:$LINENO: result: $ac_cv_big_endian_double" >&5 |
| 23989 | echo "${ECHO_T}$ac_cv_big_endian_double" >&6; } |
| 23990 | if test "$ac_cv_big_endian_double" = yes |
| 23991 | then |
| 23992 | |
| 23993 | cat >>confdefs.h <<\_ACEOF |
| 23994 | #define DOUBLE_IS_BIG_ENDIAN_IEEE754 1 |
| 23995 | _ACEOF |
| 23996 | |
| 23997 | fi |
| 23998 | |
| 23999 | # Some ARM platforms use a mixed-endian representation for doubles. |
| 24000 | # While Python doesn't currently have full support for these platforms |
| 24001 | # (see e.g., issue 1762561), we can at least make sure that float <-> string |
| 24002 | # conversions work. |
| 24003 | { echo "$as_me:$LINENO: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 |
| 24004 | echo $ECHO_N "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... $ECHO_C" >&6; } |
| 24005 | if test "${ac_cv_mixed_endian_double+set}" = set; then |
| 24006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24007 | else |
| 24008 | |
| 24009 | if test "$cross_compiling" = yes; then |
| 24010 | ac_cv_mixed_endian_double=no |
| 24011 | else |
| 24012 | cat >conftest.$ac_ext <<_ACEOF |
| 24013 | /* confdefs.h. */ |
| 24014 | _ACEOF |
| 24015 | cat confdefs.h >>conftest.$ac_ext |
| 24016 | cat >>conftest.$ac_ext <<_ACEOF |
| 24017 | /* end confdefs.h. */ |
| 24018 | |
| 24019 | #include <string.h> |
| 24020 | int main() { |
| 24021 | double x = 9006104071832581.0; |
| 24022 | if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) |
| 24023 | return 0; |
| 24024 | else |
| 24025 | return 1; |
| 24026 | } |
| 24027 | |
| 24028 | _ACEOF |
| 24029 | rm -f conftest$ac_exeext |
| 24030 | if { (ac_try="$ac_link" |
| 24031 | case "(($ac_try" in |
| 24032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24033 | *) ac_try_echo=$ac_try;; |
| 24034 | esac |
| 24035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24036 | (eval "$ac_link") 2>&5 |
| 24037 | ac_status=$? |
| 24038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24039 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 24040 | { (case "(($ac_try" in |
| 24041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24042 | *) ac_try_echo=$ac_try;; |
| 24043 | esac |
| 24044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24045 | (eval "$ac_try") 2>&5 |
| 24046 | ac_status=$? |
| 24047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24048 | (exit $ac_status); }; }; then |
| 24049 | ac_cv_mixed_endian_double=yes |
| 24050 | else |
| 24051 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24052 | echo "$as_me: failed program was:" >&5 |
| 24053 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24054 | |
| 24055 | ( exit $ac_status ) |
| 24056 | ac_cv_mixed_endian_double=no |
| 24057 | fi |
| 24058 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 24059 | fi |
| 24060 | |
| 24061 | |
| 24062 | fi |
| 24063 | |
| 24064 | { echo "$as_me:$LINENO: result: $ac_cv_mixed_endian_double" >&5 |
| 24065 | echo "${ECHO_T}$ac_cv_mixed_endian_double" >&6; } |
| 24066 | if test "$ac_cv_mixed_endian_double" = yes |
| 24067 | then |
| 24068 | |
| 24069 | cat >>confdefs.h <<\_ACEOF |
| 24070 | #define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1 |
| 24071 | _ACEOF |
| 24072 | |
| 24073 | fi |
| 24074 | |
| 24075 | # The short float repr introduced in Python 3.1 requires the |
| 24076 | # correctly-rounded string <-> double conversion functions from |
| 24077 | # Python/dtoa.c, which in turn require that the FPU uses 53-bit |
| 24078 | # 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] | 24079 | # 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] | 24080 | # using inline assembler to get and set the x87 FPU control word. |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 24081 | |
| 24082 | # This inline assembler syntax may also work for suncc and icc, |
| 24083 | # so we try it on all platforms. |
| 24084 | |
| 24085 | { 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] | 24086 | 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] | 24087 | cat >conftest.$ac_ext <<_ACEOF |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24088 | /* confdefs.h. */ |
| 24089 | _ACEOF |
| 24090 | cat confdefs.h >>conftest.$ac_ext |
| 24091 | cat >>conftest.$ac_ext <<_ACEOF |
| 24092 | /* end confdefs.h. */ |
| 24093 | |
| 24094 | int |
| 24095 | main () |
| 24096 | { |
| 24097 | |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 24098 | unsigned short cw; |
| 24099 | __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); |
| 24100 | __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24101 | |
| 24102 | ; |
| 24103 | return 0; |
| 24104 | } |
| 24105 | _ACEOF |
| 24106 | rm -f conftest.$ac_objext |
| 24107 | if { (ac_try="$ac_compile" |
| 24108 | case "(($ac_try" in |
| 24109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24110 | *) ac_try_echo=$ac_try;; |
| 24111 | esac |
| 24112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24113 | (eval "$ac_compile") 2>conftest.er1 |
| 24114 | ac_status=$? |
| 24115 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24116 | rm -f conftest.er1 |
| 24117 | cat conftest.err >&5 |
| 24118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24119 | (exit $ac_status); } && { |
| 24120 | test -z "$ac_c_werror_flag" || |
| 24121 | test ! -s conftest.err |
| 24122 | } && test -s conftest.$ac_objext; then |
| 24123 | have_gcc_asm_for_x87=yes |
| 24124 | else |
| 24125 | echo "$as_me: failed program was:" >&5 |
| 24126 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24127 | |
| 24128 | have_gcc_asm_for_x87=no |
| 24129 | fi |
| 24130 | |
| 24131 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 24132 | { echo "$as_me:$LINENO: result: $have_gcc_asm_for_x87" >&5 |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24133 | echo "${ECHO_T}$have_gcc_asm_for_x87" >&6; } |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 24134 | if test "$have_gcc_asm_for_x87" = yes |
| 24135 | then |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24136 | |
| 24137 | cat >>confdefs.h <<\_ACEOF |
| 24138 | #define HAVE_GCC_ASM_FOR_X87 1 |
| 24139 | _ACEOF |
| 24140 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24141 | fi |
Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 24142 | |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24143 | # Detect whether system arithmetic is subject to x87-style double |
| 24144 | # rounding issues. The result of this test has little meaning on non |
| 24145 | # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding |
| 24146 | # mode is round-to-nearest and double rounding issues are present, and |
| 24147 | # 0 otherwise. See http://bugs.python.org/issue2937 for more info. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24148 | { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5 |
| 24149 | echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; } |
Mark Dickinson | 99abd14 | 2009-10-24 13:44:16 +0000 | [diff] [blame] | 24150 | # $BASECFLAGS may affect the result |
| 24151 | ac_save_cc="$CC" |
| 24152 | CC="$CC $BASECFLAGS" |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24153 | if test "$cross_compiling" = yes; then |
| 24154 | ac_cv_x87_double_rounding=no |
| 24155 | else |
| 24156 | cat >conftest.$ac_ext <<_ACEOF |
| 24157 | /* confdefs.h. */ |
| 24158 | _ACEOF |
| 24159 | cat confdefs.h >>conftest.$ac_ext |
| 24160 | cat >>conftest.$ac_ext <<_ACEOF |
| 24161 | /* end confdefs.h. */ |
| 24162 | |
| 24163 | #include <stdlib.h> |
| 24164 | #include <math.h> |
| 24165 | int main() { |
| 24166 | volatile double x, y, z; |
| 24167 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ |
| 24168 | x = 0.99999999999999989; /* 1-2**-53 */ |
| 24169 | y = 1./x; |
| 24170 | if (y != 1.) |
| 24171 | exit(0); |
| 24172 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ |
| 24173 | x = 1e16; |
| 24174 | y = 2.99999; |
| 24175 | z = x + y; |
| 24176 | if (z != 1e16+4.) |
| 24177 | exit(0); |
| 24178 | /* both tests show evidence of double rounding */ |
| 24179 | exit(1); |
| 24180 | } |
| 24181 | |
| 24182 | _ACEOF |
| 24183 | rm -f conftest$ac_exeext |
| 24184 | if { (ac_try="$ac_link" |
| 24185 | case "(($ac_try" in |
| 24186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24187 | *) ac_try_echo=$ac_try;; |
| 24188 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24190 | (eval "$ac_link") 2>&5 |
| 24191 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24193 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 24194 | { (case "(($ac_try" in |
| 24195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24196 | *) ac_try_echo=$ac_try;; |
| 24197 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24199 | (eval "$ac_try") 2>&5 |
| 24200 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24202 | (exit $ac_status); }; }; then |
| 24203 | ac_cv_x87_double_rounding=no |
| 24204 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24205 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24206 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24207 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24208 | |
| 24209 | ( exit $ac_status ) |
| 24210 | ac_cv_x87_double_rounding=yes |
| 24211 | fi |
| 24212 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 24213 | fi |
| 24214 | |
| 24215 | |
Mark Dickinson | 99abd14 | 2009-10-24 13:44:16 +0000 | [diff] [blame] | 24216 | CC="$ac_save_cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24217 | { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5 |
| 24218 | echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; } |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24219 | if test "$ac_cv_x87_double_rounding" = yes |
| 24220 | then |
| 24221 | |
| 24222 | cat >>confdefs.h <<\_ACEOF |
| 24223 | #define X87_DOUBLE_ROUNDING 1 |
| 24224 | _ACEOF |
| 24225 | |
| 24226 | fi |
| 24227 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24228 | # ************************************ |
| 24229 | # * Check for mathematical functions * |
| 24230 | # ************************************ |
| 24231 | |
| 24232 | LIBS_SAVE=$LIBS |
| 24233 | LIBS="$LIBS $LIBM" |
| 24234 | |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24235 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of |
| 24236 | # -0. on some architectures. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24237 | { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5 |
| 24238 | 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] | 24239 | if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24241 | else |
| 24242 | |
| 24243 | if test "$cross_compiling" = yes; then |
| 24244 | ac_cv_tanh_preserves_zero_sign=no |
| 24245 | else |
| 24246 | cat >conftest.$ac_ext <<_ACEOF |
| 24247 | /* confdefs.h. */ |
| 24248 | _ACEOF |
| 24249 | cat confdefs.h >>conftest.$ac_ext |
| 24250 | cat >>conftest.$ac_ext <<_ACEOF |
| 24251 | /* end confdefs.h. */ |
| 24252 | |
| 24253 | #include <math.h> |
Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 24254 | #include <stdlib.h> |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24255 | int main() { |
| 24256 | /* return 0 if either negative zeros don't exist |
| 24257 | on this platform or if negative zeros exist |
| 24258 | and tanh(-0.) == -0. */ |
| 24259 | if (atan2(0., -1.) == atan2(-0., -1.) || |
| 24260 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); |
| 24261 | else exit(1); |
| 24262 | } |
| 24263 | |
| 24264 | _ACEOF |
| 24265 | rm -f conftest$ac_exeext |
| 24266 | if { (ac_try="$ac_link" |
| 24267 | case "(($ac_try" in |
| 24268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24269 | *) ac_try_echo=$ac_try;; |
| 24270 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24272 | (eval "$ac_link") 2>&5 |
| 24273 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24275 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 24276 | { (case "(($ac_try" in |
| 24277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24278 | *) ac_try_echo=$ac_try;; |
| 24279 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24281 | (eval "$ac_try") 2>&5 |
| 24282 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24284 | (exit $ac_status); }; }; then |
| 24285 | ac_cv_tanh_preserves_zero_sign=yes |
| 24286 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24287 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24288 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24289 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24290 | |
| 24291 | ( exit $ac_status ) |
| 24292 | ac_cv_tanh_preserves_zero_sign=no |
| 24293 | fi |
| 24294 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 24295 | fi |
| 24296 | |
| 24297 | |
| 24298 | fi |
| 24299 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24300 | { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5 |
| 24301 | echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; } |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24302 | if test "$ac_cv_tanh_preserves_zero_sign" = yes |
| 24303 | then |
| 24304 | |
| 24305 | cat >>confdefs.h <<\_ACEOF |
| 24306 | #define TANH_PRESERVES_ZERO_SIGN 1 |
| 24307 | _ACEOF |
| 24308 | |
| 24309 | fi |
| 24310 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24311 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 24312 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24313 | |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24314 | |
| 24315 | |
| 24316 | |
| 24317 | |
| 24318 | |
Mark Dickinson | 8e5446f | 2009-04-18 14:41:37 +0000 | [diff] [blame] | 24319 | |
Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 24320 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma |
| 24321 | do |
| 24322 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 24323 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 24324 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 24325 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 24326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24327 | else |
| 24328 | cat >conftest.$ac_ext <<_ACEOF |
| 24329 | /* confdefs.h. */ |
| 24330 | _ACEOF |
| 24331 | cat confdefs.h >>conftest.$ac_ext |
| 24332 | cat >>conftest.$ac_ext <<_ACEOF |
| 24333 | /* end confdefs.h. */ |
| 24334 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 24335 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 24336 | #define $ac_func innocuous_$ac_func |
| 24337 | |
| 24338 | /* System header to define __stub macros and hopefully few prototypes, |
| 24339 | which can conflict with char $ac_func (); below. |
| 24340 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 24341 | <limits.h> exists even on freestanding compilers. */ |
| 24342 | |
| 24343 | #ifdef __STDC__ |
| 24344 | # include <limits.h> |
| 24345 | #else |
| 24346 | # include <assert.h> |
| 24347 | #endif |
| 24348 | |
| 24349 | #undef $ac_func |
| 24350 | |
| 24351 | /* Override any GCC internal prototype to avoid an error. |
| 24352 | Use char because int might match the return type of a GCC |
| 24353 | builtin and then its argument prototype would still apply. */ |
| 24354 | #ifdef __cplusplus |
| 24355 | extern "C" |
| 24356 | #endif |
| 24357 | char $ac_func (); |
| 24358 | /* The GNU C library defines this for functions which it implements |
| 24359 | to always fail with ENOSYS. Some functions are actually named |
| 24360 | something starting with __ and the normal name is an alias. */ |
| 24361 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 24362 | choke me |
| 24363 | #endif |
| 24364 | |
| 24365 | int |
| 24366 | main () |
| 24367 | { |
| 24368 | return $ac_func (); |
| 24369 | ; |
| 24370 | return 0; |
| 24371 | } |
| 24372 | _ACEOF |
| 24373 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24374 | if { (ac_try="$ac_link" |
| 24375 | case "(($ac_try" in |
| 24376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24377 | *) ac_try_echo=$ac_try;; |
| 24378 | esac |
| 24379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24380 | (eval "$ac_link") 2>conftest.er1 |
| 24381 | ac_status=$? |
| 24382 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24383 | rm -f conftest.er1 |
| 24384 | cat conftest.err >&5 |
| 24385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24386 | (exit $ac_status); } && { |
| 24387 | test -z "$ac_c_werror_flag" || |
| 24388 | test ! -s conftest.err |
| 24389 | } && test -s conftest$ac_exeext && |
| 24390 | $as_test_x conftest$ac_exeext; then |
| 24391 | eval "$as_ac_var=yes" |
| 24392 | else |
| 24393 | echo "$as_me: failed program was:" >&5 |
| 24394 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24395 | |
| 24396 | eval "$as_ac_var=no" |
| 24397 | fi |
| 24398 | |
| 24399 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 24400 | conftest$ac_exeext conftest.$ac_ext |
| 24401 | fi |
| 24402 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 24403 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 24404 | echo "${ECHO_T}$ac_res" >&6; } |
| 24405 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 24406 | cat >>confdefs.h <<_ACEOF |
| 24407 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 24408 | _ACEOF |
| 24409 | |
| 24410 | fi |
| 24411 | done |
| 24412 | |
| 24413 | |
| 24414 | |
| 24415 | |
| 24416 | |
| 24417 | |
| 24418 | for ac_func in hypot lgamma log1p round tgamma |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24419 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24420 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 24421 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 24422 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24423 | 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] | 24424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24425 | else |
| 24426 | cat >conftest.$ac_ext <<_ACEOF |
| 24427 | /* confdefs.h. */ |
| 24428 | _ACEOF |
| 24429 | cat confdefs.h >>conftest.$ac_ext |
| 24430 | cat >>conftest.$ac_ext <<_ACEOF |
| 24431 | /* end confdefs.h. */ |
| 24432 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 24433 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 24434 | #define $ac_func innocuous_$ac_func |
| 24435 | |
| 24436 | /* System header to define __stub macros and hopefully few prototypes, |
| 24437 | which can conflict with char $ac_func (); below. |
| 24438 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 24439 | <limits.h> exists even on freestanding compilers. */ |
| 24440 | |
| 24441 | #ifdef __STDC__ |
| 24442 | # include <limits.h> |
| 24443 | #else |
| 24444 | # include <assert.h> |
| 24445 | #endif |
| 24446 | |
| 24447 | #undef $ac_func |
| 24448 | |
| 24449 | /* Override any GCC internal prototype to avoid an error. |
| 24450 | Use char because int might match the return type of a GCC |
| 24451 | builtin and then its argument prototype would still apply. */ |
| 24452 | #ifdef __cplusplus |
| 24453 | extern "C" |
| 24454 | #endif |
| 24455 | char $ac_func (); |
| 24456 | /* The GNU C library defines this for functions which it implements |
| 24457 | to always fail with ENOSYS. Some functions are actually named |
| 24458 | something starting with __ and the normal name is an alias. */ |
| 24459 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 24460 | choke me |
| 24461 | #endif |
| 24462 | |
| 24463 | int |
| 24464 | main () |
| 24465 | { |
| 24466 | return $ac_func (); |
| 24467 | ; |
| 24468 | return 0; |
| 24469 | } |
| 24470 | _ACEOF |
| 24471 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24472 | if { (ac_try="$ac_link" |
| 24473 | case "(($ac_try" in |
| 24474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24475 | *) ac_try_echo=$ac_try;; |
| 24476 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24478 | (eval "$ac_link") 2>conftest.er1 |
| 24479 | ac_status=$? |
| 24480 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24481 | rm -f conftest.er1 |
| 24482 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24484 | (exit $ac_status); } && { |
| 24485 | test -z "$ac_c_werror_flag" || |
| 24486 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24487 | } && test -s conftest$ac_exeext && |
| 24488 | $as_test_x conftest$ac_exeext; then |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24489 | eval "$as_ac_var=yes" |
| 24490 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24491 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24492 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24493 | |
| 24494 | eval "$as_ac_var=no" |
| 24495 | fi |
| 24496 | |
| 24497 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 24498 | conftest$ac_exeext conftest.$ac_ext |
| 24499 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24500 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 24501 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 24502 | echo "${ECHO_T}$ac_res" >&6; } |
| 24503 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24504 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24505 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24506 | _ACEOF |
| 24507 | |
| 24508 | fi |
| 24509 | done |
| 24510 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24511 | { echo "$as_me:$LINENO: checking whether isinf is declared" >&5 |
| 24512 | echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; } |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24513 | if test "${ac_cv_have_decl_isinf+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24515 | else |
| 24516 | cat >conftest.$ac_ext <<_ACEOF |
| 24517 | /* confdefs.h. */ |
| 24518 | _ACEOF |
| 24519 | cat confdefs.h >>conftest.$ac_ext |
| 24520 | cat >>conftest.$ac_ext <<_ACEOF |
| 24521 | /* end confdefs.h. */ |
| 24522 | #include <math.h> |
| 24523 | |
| 24524 | int |
| 24525 | main () |
| 24526 | { |
| 24527 | #ifndef isinf |
| 24528 | (void) isinf; |
| 24529 | #endif |
| 24530 | |
| 24531 | ; |
| 24532 | return 0; |
| 24533 | } |
| 24534 | _ACEOF |
| 24535 | rm -f conftest.$ac_objext |
| 24536 | if { (ac_try="$ac_compile" |
| 24537 | case "(($ac_try" in |
| 24538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24539 | *) ac_try_echo=$ac_try;; |
| 24540 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24542 | (eval "$ac_compile") 2>conftest.er1 |
| 24543 | ac_status=$? |
| 24544 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24545 | rm -f conftest.er1 |
| 24546 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24548 | (exit $ac_status); } && { |
| 24549 | test -z "$ac_c_werror_flag" || |
| 24550 | test ! -s conftest.err |
| 24551 | } && test -s conftest.$ac_objext; then |
| 24552 | ac_cv_have_decl_isinf=yes |
| 24553 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24554 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24555 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24556 | |
| 24557 | ac_cv_have_decl_isinf=no |
| 24558 | fi |
| 24559 | |
| 24560 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24561 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24562 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5 |
| 24563 | echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; } |
| 24564 | if test $ac_cv_have_decl_isinf = yes; then |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24565 | |
| 24566 | cat >>confdefs.h <<_ACEOF |
| 24567 | #define HAVE_DECL_ISINF 1 |
| 24568 | _ACEOF |
| 24569 | |
| 24570 | |
| 24571 | else |
| 24572 | cat >>confdefs.h <<_ACEOF |
| 24573 | #define HAVE_DECL_ISINF 0 |
| 24574 | _ACEOF |
| 24575 | |
| 24576 | |
| 24577 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24578 | { echo "$as_me:$LINENO: checking whether isnan is declared" >&5 |
| 24579 | echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; } |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24580 | if test "${ac_cv_have_decl_isnan+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24582 | else |
| 24583 | cat >conftest.$ac_ext <<_ACEOF |
| 24584 | /* confdefs.h. */ |
| 24585 | _ACEOF |
| 24586 | cat confdefs.h >>conftest.$ac_ext |
| 24587 | cat >>conftest.$ac_ext <<_ACEOF |
| 24588 | /* end confdefs.h. */ |
| 24589 | #include <math.h> |
| 24590 | |
| 24591 | int |
| 24592 | main () |
| 24593 | { |
| 24594 | #ifndef isnan |
| 24595 | (void) isnan; |
| 24596 | #endif |
| 24597 | |
| 24598 | ; |
| 24599 | return 0; |
| 24600 | } |
| 24601 | _ACEOF |
| 24602 | rm -f conftest.$ac_objext |
| 24603 | if { (ac_try="$ac_compile" |
| 24604 | case "(($ac_try" in |
| 24605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24606 | *) ac_try_echo=$ac_try;; |
| 24607 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24608 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24609 | (eval "$ac_compile") 2>conftest.er1 |
| 24610 | ac_status=$? |
| 24611 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24612 | rm -f conftest.er1 |
| 24613 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24615 | (exit $ac_status); } && { |
| 24616 | test -z "$ac_c_werror_flag" || |
| 24617 | test ! -s conftest.err |
| 24618 | } && test -s conftest.$ac_objext; then |
| 24619 | ac_cv_have_decl_isnan=yes |
| 24620 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24621 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24622 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24623 | |
| 24624 | ac_cv_have_decl_isnan=no |
| 24625 | fi |
| 24626 | |
| 24627 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24628 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24629 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5 |
| 24630 | echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; } |
| 24631 | if test $ac_cv_have_decl_isnan = yes; then |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24632 | |
| 24633 | cat >>confdefs.h <<_ACEOF |
| 24634 | #define HAVE_DECL_ISNAN 1 |
| 24635 | _ACEOF |
| 24636 | |
| 24637 | |
| 24638 | else |
| 24639 | cat >>confdefs.h <<_ACEOF |
| 24640 | #define HAVE_DECL_ISNAN 0 |
| 24641 | _ACEOF |
| 24642 | |
| 24643 | |
| 24644 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24645 | { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5 |
| 24646 | echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; } |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24647 | if test "${ac_cv_have_decl_isfinite+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24649 | else |
| 24650 | cat >conftest.$ac_ext <<_ACEOF |
| 24651 | /* confdefs.h. */ |
| 24652 | _ACEOF |
| 24653 | cat confdefs.h >>conftest.$ac_ext |
| 24654 | cat >>conftest.$ac_ext <<_ACEOF |
| 24655 | /* end confdefs.h. */ |
| 24656 | #include <math.h> |
| 24657 | |
| 24658 | int |
| 24659 | main () |
| 24660 | { |
| 24661 | #ifndef isfinite |
| 24662 | (void) isfinite; |
| 24663 | #endif |
| 24664 | |
| 24665 | ; |
| 24666 | return 0; |
| 24667 | } |
| 24668 | _ACEOF |
| 24669 | rm -f conftest.$ac_objext |
| 24670 | if { (ac_try="$ac_compile" |
| 24671 | case "(($ac_try" in |
| 24672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24673 | *) ac_try_echo=$ac_try;; |
| 24674 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24675 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24676 | (eval "$ac_compile") 2>conftest.er1 |
| 24677 | ac_status=$? |
| 24678 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24679 | rm -f conftest.er1 |
| 24680 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24682 | (exit $ac_status); } && { |
| 24683 | test -z "$ac_c_werror_flag" || |
| 24684 | test ! -s conftest.err |
| 24685 | } && test -s conftest.$ac_objext; then |
| 24686 | ac_cv_have_decl_isfinite=yes |
| 24687 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24688 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24689 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24690 | |
| 24691 | ac_cv_have_decl_isfinite=no |
| 24692 | fi |
| 24693 | |
| 24694 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24695 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24696 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5 |
| 24697 | echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; } |
| 24698 | if test $ac_cv_have_decl_isfinite = yes; then |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24699 | |
| 24700 | cat >>confdefs.h <<_ACEOF |
| 24701 | #define HAVE_DECL_ISFINITE 1 |
| 24702 | _ACEOF |
| 24703 | |
| 24704 | |
| 24705 | else |
| 24706 | cat >>confdefs.h <<_ACEOF |
| 24707 | #define HAVE_DECL_ISFINITE 0 |
| 24708 | _ACEOF |
| 24709 | |
| 24710 | |
| 24711 | fi |
| 24712 | |
| 24713 | |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24714 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 24715 | LIBS=$LIBS_SAVE |
| 24716 | |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 24717 | # For multiprocessing module, check that sem_open |
| 24718 | # actually works. For FreeBSD versions <= 7.2, |
| 24719 | # the kernel module that provides POSIX semaphores |
| 24720 | # isn't loaded by default, so an attempt to call |
| 24721 | # sem_open results in a 'Signal 12' error. |
| 24722 | { echo "$as_me:$LINENO: checking whether POSIX semaphores are enabled" >&5 |
| 24723 | echo $ECHO_N "checking whether POSIX semaphores are enabled... $ECHO_C" >&6; } |
| 24724 | if test "${ac_cv_posix_semaphores_enabled+set}" = set; then |
| 24725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24726 | else |
| 24727 | if test "$cross_compiling" = yes; then |
| 24728 | ac_cv_posix_semaphores_enabled=yes |
| 24729 | else |
| 24730 | cat >conftest.$ac_ext <<_ACEOF |
| 24731 | /* confdefs.h. */ |
| 24732 | _ACEOF |
| 24733 | cat confdefs.h >>conftest.$ac_ext |
| 24734 | cat >>conftest.$ac_ext <<_ACEOF |
| 24735 | /* end confdefs.h. */ |
| 24736 | |
| 24737 | #include <unistd.h> |
| 24738 | #include <fcntl.h> |
| 24739 | #include <stdio.h> |
| 24740 | #include <semaphore.h> |
| 24741 | #include <sys/stat.h> |
| 24742 | |
| 24743 | int main(void) { |
| 24744 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); |
| 24745 | if (a == SEM_FAILED) { |
| 24746 | perror("sem_open"); |
| 24747 | return 1; |
| 24748 | } |
| 24749 | sem_close(a); |
Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 24750 | sem_unlink("/autoconf"); |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 24751 | return 0; |
| 24752 | } |
| 24753 | |
| 24754 | _ACEOF |
| 24755 | rm -f conftest$ac_exeext |
| 24756 | if { (ac_try="$ac_link" |
| 24757 | case "(($ac_try" in |
| 24758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24759 | *) ac_try_echo=$ac_try;; |
| 24760 | esac |
| 24761 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24762 | (eval "$ac_link") 2>&5 |
| 24763 | ac_status=$? |
| 24764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24765 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 24766 | { (case "(($ac_try" in |
| 24767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24768 | *) ac_try_echo=$ac_try;; |
| 24769 | esac |
| 24770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24771 | (eval "$ac_try") 2>&5 |
| 24772 | ac_status=$? |
| 24773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24774 | (exit $ac_status); }; }; then |
| 24775 | ac_cv_posix_semaphores_enabled=yes |
| 24776 | else |
| 24777 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24778 | echo "$as_me: failed program was:" >&5 |
| 24779 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24780 | |
| 24781 | ( exit $ac_status ) |
| 24782 | ac_cv_posix_semaphores_enabled=no |
| 24783 | fi |
| 24784 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 24785 | fi |
| 24786 | |
| 24787 | |
| 24788 | |
| 24789 | fi |
| 24790 | |
| 24791 | { echo "$as_me:$LINENO: result: $ac_cv_posix_semaphores_enabled" >&5 |
| 24792 | echo "${ECHO_T}$ac_cv_posix_semaphores_enabled" >&6; } |
| 24793 | if test $ac_cv_posix_semaphores_enabled = no |
| 24794 | then |
| 24795 | |
| 24796 | cat >>confdefs.h <<\_ACEOF |
| 24797 | #define POSIX_SEMAPHORES_NOT_ENABLED 1 |
| 24798 | _ACEOF |
| 24799 | |
| 24800 | fi |
| 24801 | |
| 24802 | # Multiprocessing check for broken sem_getvalue |
| 24803 | { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5 |
| 24804 | echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; } |
| 24805 | if test "${ac_cv_broken_sem_getvalue+set}" = set; then |
| 24806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24807 | else |
| 24808 | if test "$cross_compiling" = yes; then |
| 24809 | ac_cv_broken_sem_getvalue=yes |
| 24810 | else |
| 24811 | cat >conftest.$ac_ext <<_ACEOF |
| 24812 | /* confdefs.h. */ |
| 24813 | _ACEOF |
| 24814 | cat confdefs.h >>conftest.$ac_ext |
| 24815 | cat >>conftest.$ac_ext <<_ACEOF |
| 24816 | /* end confdefs.h. */ |
| 24817 | |
| 24818 | #include <unistd.h> |
| 24819 | #include <fcntl.h> |
| 24820 | #include <stdio.h> |
| 24821 | #include <semaphore.h> |
| 24822 | #include <sys/stat.h> |
| 24823 | |
| 24824 | int main(void){ |
Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 24825 | 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] | 24826 | int count; |
| 24827 | int res; |
| 24828 | if(a==SEM_FAILED){ |
| 24829 | perror("sem_open"); |
| 24830 | return 1; |
| 24831 | |
| 24832 | } |
| 24833 | res = sem_getvalue(a, &count); |
| 24834 | sem_close(a); |
Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 24835 | sem_unlink("/autocftw"); |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 24836 | return res==-1 ? 1 : 0; |
| 24837 | } |
| 24838 | |
| 24839 | _ACEOF |
| 24840 | rm -f conftest$ac_exeext |
| 24841 | if { (ac_try="$ac_link" |
| 24842 | case "(($ac_try" in |
| 24843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24844 | *) ac_try_echo=$ac_try;; |
| 24845 | esac |
| 24846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24847 | (eval "$ac_link") 2>&5 |
| 24848 | ac_status=$? |
| 24849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24850 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 24851 | { (case "(($ac_try" in |
| 24852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24853 | *) ac_try_echo=$ac_try;; |
| 24854 | esac |
| 24855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24856 | (eval "$ac_try") 2>&5 |
| 24857 | ac_status=$? |
| 24858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24859 | (exit $ac_status); }; }; then |
| 24860 | ac_cv_broken_sem_getvalue=no |
| 24861 | else |
| 24862 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24863 | echo "$as_me: failed program was:" >&5 |
| 24864 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24865 | |
| 24866 | ( exit $ac_status ) |
| 24867 | ac_cv_broken_sem_getvalue=yes |
| 24868 | fi |
| 24869 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 24870 | fi |
| 24871 | |
| 24872 | |
| 24873 | |
| 24874 | fi |
| 24875 | |
| 24876 | { echo "$as_me:$LINENO: result: $ac_cv_broken_sem_getvalue" >&5 |
| 24877 | echo "${ECHO_T}$ac_cv_broken_sem_getvalue" >&6; } |
| 24878 | if test $ac_cv_broken_sem_getvalue = yes |
| 24879 | then |
| 24880 | |
| 24881 | cat >>confdefs.h <<\_ACEOF |
| 24882 | #define HAVE_BROKEN_SEM_GETVALUE 1 |
| 24883 | _ACEOF |
| 24884 | |
| 24885 | fi |
| 24886 | |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 24887 | # determine what size digit to use for Python's longs |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24888 | { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5 |
| 24889 | 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] | 24890 | # Check whether --enable-big-digits was given. |
| 24891 | if test "${enable_big_digits+set}" = set; then |
| 24892 | enableval=$enable_big_digits; case $enable_big_digits in |
| 24893 | yes) |
| 24894 | enable_big_digits=30 ;; |
| 24895 | no) |
| 24896 | enable_big_digits=15 ;; |
| 24897 | 15|30) |
| 24898 | ;; |
| 24899 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24900 | { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5 |
| 24901 | 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] | 24902 | { (exit 1); exit 1; }; } ;; |
| 24903 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24904 | { echo "$as_me:$LINENO: result: $enable_big_digits" >&5 |
| 24905 | echo "${ECHO_T}$enable_big_digits" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 24906 | |
| 24907 | cat >>confdefs.h <<_ACEOF |
| 24908 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits |
| 24909 | _ACEOF |
| 24910 | |
| 24911 | |
| 24912 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24913 | { echo "$as_me:$LINENO: result: no value specified" >&5 |
| 24914 | echo "${ECHO_T}no value specified" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 24915 | fi |
| 24916 | |
| 24917 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24918 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24919 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24920 | { echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 24921 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24922 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24924 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24925 | { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 24926 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24927 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24928 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24929 | { echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 24930 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24931 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24932 | /* confdefs.h. */ |
| 24933 | _ACEOF |
| 24934 | cat confdefs.h >>conftest.$ac_ext |
| 24935 | cat >>conftest.$ac_ext <<_ACEOF |
| 24936 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24937 | $ac_includes_default |
| 24938 | #include <wchar.h> |
| 24939 | _ACEOF |
| 24940 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24941 | if { (ac_try="$ac_compile" |
| 24942 | case "(($ac_try" in |
| 24943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24944 | *) ac_try_echo=$ac_try;; |
| 24945 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24947 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24948 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24949 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24950 | rm -f conftest.er1 |
| 24951 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24953 | (exit $ac_status); } && { |
| 24954 | test -z "$ac_c_werror_flag" || |
| 24955 | test ! -s conftest.err |
| 24956 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24957 | ac_header_compiler=yes |
| 24958 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24959 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24960 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24961 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24962 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24963 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24964 | |
| 24965 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24966 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 24967 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24968 | |
| 24969 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24970 | { echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 24971 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24972 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24973 | /* confdefs.h. */ |
| 24974 | _ACEOF |
| 24975 | cat confdefs.h >>conftest.$ac_ext |
| 24976 | cat >>conftest.$ac_ext <<_ACEOF |
| 24977 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24978 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24979 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24980 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 24981 | case "(($ac_try" in |
| 24982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24983 | *) ac_try_echo=$ac_try;; |
| 24984 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24986 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24987 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24988 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24989 | rm -f conftest.er1 |
| 24990 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24992 | (exit $ac_status); } >/dev/null && { |
| 24993 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 24994 | test ! -s conftest.err |
| 24995 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24996 | ac_header_preproc=yes |
| 24997 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24998 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24999 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25000 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25001 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25002 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25003 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25004 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25005 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 25006 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25007 | |
| 25008 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25009 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 25010 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25011 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 25012 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 25013 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 |
| 25014 | 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] | 25015 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25016 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25017 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25018 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 25019 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 25020 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 25021 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 25022 | { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 |
| 25023 | echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} |
| 25024 | { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 25025 | echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 25026 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 25027 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} |
| 25028 | { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 |
| 25029 | 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] | 25030 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 25031 | ## -------------------------------------- ## |
| 25032 | ## Report this to http://bugs.python.org/ ## |
| 25033 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25034 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25035 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25036 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25037 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25038 | { echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 25039 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25040 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25042 | else |
| 25043 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25044 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25045 | { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 25046 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25047 | |
| 25048 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25049 | if test $ac_cv_header_wchar_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25050 | |
| 25051 | |
| 25052 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25053 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25054 | _ACEOF |
| 25055 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 25056 | wchar_h="yes" |
| 25057 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25058 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25059 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25060 | |
| 25061 | fi |
| 25062 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25063 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25064 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25065 | # determine wchar_t size |
| 25066 | if test "$wchar_h" = yes |
| 25067 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25068 | { echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 25069 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } |
| 25070 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 25071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25072 | else |
| 25073 | cat >conftest.$ac_ext <<_ACEOF |
| 25074 | /* confdefs.h. */ |
| 25075 | _ACEOF |
| 25076 | cat confdefs.h >>conftest.$ac_ext |
| 25077 | cat >>conftest.$ac_ext <<_ACEOF |
| 25078 | /* end confdefs.h. */ |
| 25079 | #include <wchar.h> |
| 25080 | |
| 25081 | typedef wchar_t ac__type_new_; |
| 25082 | int |
| 25083 | main () |
| 25084 | { |
| 25085 | if ((ac__type_new_ *) 0) |
| 25086 | return 0; |
| 25087 | if (sizeof (ac__type_new_)) |
| 25088 | return 0; |
| 25089 | ; |
| 25090 | return 0; |
| 25091 | } |
| 25092 | _ACEOF |
| 25093 | rm -f conftest.$ac_objext |
| 25094 | if { (ac_try="$ac_compile" |
| 25095 | case "(($ac_try" in |
| 25096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25097 | *) ac_try_echo=$ac_try;; |
| 25098 | esac |
| 25099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25100 | (eval "$ac_compile") 2>conftest.er1 |
| 25101 | ac_status=$? |
| 25102 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25103 | rm -f conftest.er1 |
| 25104 | cat conftest.err >&5 |
| 25105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25106 | (exit $ac_status); } && { |
| 25107 | test -z "$ac_c_werror_flag" || |
| 25108 | test ! -s conftest.err |
| 25109 | } && test -s conftest.$ac_objext; then |
| 25110 | ac_cv_type_wchar_t=yes |
| 25111 | else |
| 25112 | echo "$as_me: failed program was:" >&5 |
| 25113 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25114 | |
| 25115 | ac_cv_type_wchar_t=no |
| 25116 | fi |
| 25117 | |
| 25118 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25119 | fi |
| 25120 | { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 25121 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; } |
| 25122 | |
| 25123 | # 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] | 25124 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 25125 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 25126 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25127 | { echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 25128 | 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] | 25129 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25131 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25132 | if test "$cross_compiling" = yes; then |
| 25133 | # Depending upon the size, compute the lo and hi bounds. |
| 25134 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25135 | /* confdefs.h. */ |
| 25136 | _ACEOF |
| 25137 | cat confdefs.h >>conftest.$ac_ext |
| 25138 | cat >>conftest.$ac_ext <<_ACEOF |
| 25139 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25140 | #include <wchar.h> |
| 25141 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25142 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25143 | int |
| 25144 | main () |
| 25145 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25146 | 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] | 25147 | test_array [0] = 0 |
| 25148 | |
| 25149 | ; |
| 25150 | return 0; |
| 25151 | } |
| 25152 | _ACEOF |
| 25153 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25154 | if { (ac_try="$ac_compile" |
| 25155 | case "(($ac_try" in |
| 25156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25157 | *) ac_try_echo=$ac_try;; |
| 25158 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25160 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25161 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25162 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25163 | rm -f conftest.er1 |
| 25164 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25166 | (exit $ac_status); } && { |
| 25167 | test -z "$ac_c_werror_flag" || |
| 25168 | test ! -s conftest.err |
| 25169 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25170 | ac_lo=0 ac_mid=0 |
| 25171 | while :; do |
| 25172 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25173 | /* confdefs.h. */ |
| 25174 | _ACEOF |
| 25175 | cat confdefs.h >>conftest.$ac_ext |
| 25176 | cat >>conftest.$ac_ext <<_ACEOF |
| 25177 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25178 | #include <wchar.h> |
| 25179 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25180 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25181 | int |
| 25182 | main () |
| 25183 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25184 | 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] | 25185 | test_array [0] = 0 |
| 25186 | |
| 25187 | ; |
| 25188 | return 0; |
| 25189 | } |
| 25190 | _ACEOF |
| 25191 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25192 | if { (ac_try="$ac_compile" |
| 25193 | case "(($ac_try" in |
| 25194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25195 | *) ac_try_echo=$ac_try;; |
| 25196 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25198 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25199 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25200 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25201 | rm -f conftest.er1 |
| 25202 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25204 | (exit $ac_status); } && { |
| 25205 | test -z "$ac_c_werror_flag" || |
| 25206 | test ! -s conftest.err |
| 25207 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25208 | ac_hi=$ac_mid; break |
| 25209 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25210 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25211 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25212 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25213 | ac_lo=`expr $ac_mid + 1` |
| 25214 | if test $ac_lo -le $ac_mid; then |
| 25215 | ac_lo= ac_hi= |
| 25216 | break |
| 25217 | fi |
| 25218 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25219 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25220 | |
| 25221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25222 | done |
| 25223 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25224 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25225 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25226 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25227 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25228 | /* confdefs.h. */ |
| 25229 | _ACEOF |
| 25230 | cat confdefs.h >>conftest.$ac_ext |
| 25231 | cat >>conftest.$ac_ext <<_ACEOF |
| 25232 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25233 | #include <wchar.h> |
| 25234 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25235 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25236 | int |
| 25237 | main () |
| 25238 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25239 | 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] | 25240 | test_array [0] = 0 |
| 25241 | |
| 25242 | ; |
| 25243 | return 0; |
| 25244 | } |
| 25245 | _ACEOF |
| 25246 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25247 | if { (ac_try="$ac_compile" |
| 25248 | case "(($ac_try" in |
| 25249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25250 | *) ac_try_echo=$ac_try;; |
| 25251 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25253 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25254 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25255 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25256 | rm -f conftest.er1 |
| 25257 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25259 | (exit $ac_status); } && { |
| 25260 | test -z "$ac_c_werror_flag" || |
| 25261 | test ! -s conftest.err |
| 25262 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25263 | ac_hi=-1 ac_mid=-1 |
| 25264 | while :; do |
| 25265 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25266 | /* confdefs.h. */ |
| 25267 | _ACEOF |
| 25268 | cat confdefs.h >>conftest.$ac_ext |
| 25269 | cat >>conftest.$ac_ext <<_ACEOF |
| 25270 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25271 | #include <wchar.h> |
| 25272 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25273 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25274 | int |
| 25275 | main () |
| 25276 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25277 | 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] | 25278 | test_array [0] = 0 |
| 25279 | |
| 25280 | ; |
| 25281 | return 0; |
| 25282 | } |
| 25283 | _ACEOF |
| 25284 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25285 | if { (ac_try="$ac_compile" |
| 25286 | case "(($ac_try" in |
| 25287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25288 | *) ac_try_echo=$ac_try;; |
| 25289 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25290 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25291 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25292 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25293 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25294 | rm -f conftest.er1 |
| 25295 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25297 | (exit $ac_status); } && { |
| 25298 | test -z "$ac_c_werror_flag" || |
| 25299 | test ! -s conftest.err |
| 25300 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25301 | ac_lo=$ac_mid; break |
| 25302 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25303 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25304 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25305 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25306 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 25307 | if test $ac_mid -le $ac_hi; then |
| 25308 | ac_lo= ac_hi= |
| 25309 | break |
| 25310 | fi |
| 25311 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25312 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25313 | |
| 25314 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25315 | done |
| 25316 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25317 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25318 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25319 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25320 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25321 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25322 | |
| 25323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25324 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25325 | |
| 25326 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25327 | # Binary search between lo and hi bounds. |
| 25328 | while test "x$ac_lo" != "x$ac_hi"; do |
| 25329 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 25330 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25331 | /* confdefs.h. */ |
| 25332 | _ACEOF |
| 25333 | cat confdefs.h >>conftest.$ac_ext |
| 25334 | cat >>conftest.$ac_ext <<_ACEOF |
| 25335 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25336 | #include <wchar.h> |
| 25337 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25338 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25339 | int |
| 25340 | main () |
| 25341 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25342 | 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] | 25343 | test_array [0] = 0 |
| 25344 | |
| 25345 | ; |
| 25346 | return 0; |
| 25347 | } |
| 25348 | _ACEOF |
| 25349 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25350 | if { (ac_try="$ac_compile" |
| 25351 | case "(($ac_try" in |
| 25352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25353 | *) ac_try_echo=$ac_try;; |
| 25354 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25355 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25356 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25357 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25358 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25359 | rm -f conftest.er1 |
| 25360 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25362 | (exit $ac_status); } && { |
| 25363 | test -z "$ac_c_werror_flag" || |
| 25364 | test ! -s conftest.err |
| 25365 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25366 | ac_hi=$ac_mid |
| 25367 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25368 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25369 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25370 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25371 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25372 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25373 | |
| 25374 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25375 | done |
| 25376 | case $ac_lo in |
| 25377 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25378 | '') if test "$ac_cv_type_wchar_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25379 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25380 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25381 | echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25382 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25383 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25384 | else |
| 25385 | ac_cv_sizeof_wchar_t=0 |
| 25386 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25387 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25388 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25389 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25390 | /* confdefs.h. */ |
| 25391 | _ACEOF |
| 25392 | cat confdefs.h >>conftest.$ac_ext |
| 25393 | cat >>conftest.$ac_ext <<_ACEOF |
| 25394 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25395 | #include <wchar.h> |
| 25396 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25397 | typedef wchar_t ac__type_sizeof_; |
| 25398 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 25399 | 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] | 25400 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25401 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25402 | int |
| 25403 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25404 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25405 | |
| 25406 | FILE *f = fopen ("conftest.val", "w"); |
| 25407 | if (! f) |
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 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25410 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25411 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25412 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25413 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25414 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25415 | } |
| 25416 | else |
| 25417 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25418 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25419 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25420 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25421 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25422 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25423 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25424 | |
| 25425 | ; |
| 25426 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25427 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25428 | _ACEOF |
| 25429 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25430 | if { (ac_try="$ac_link" |
| 25431 | case "(($ac_try" in |
| 25432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25433 | *) ac_try_echo=$ac_try;; |
| 25434 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25435 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25436 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25437 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25439 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25440 | { (case "(($ac_try" in |
| 25441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25442 | *) ac_try_echo=$ac_try;; |
| 25443 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25445 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25446 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25448 | (exit $ac_status); }; }; then |
| 25449 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25450 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25451 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25452 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25453 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25454 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25455 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25456 | if test "$ac_cv_type_wchar_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25457 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25458 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25459 | echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25460 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25461 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25462 | else |
| 25463 | ac_cv_sizeof_wchar_t=0 |
| 25464 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25465 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25466 | 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] | 25467 | fi |
| 25468 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25469 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25470 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 25471 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25472 | |
| 25473 | |
| 25474 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25475 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25476 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25477 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25478 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25479 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25480 | fi |
| 25481 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25482 | { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5 |
| 25483 | 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] | 25484 | have_ucs4_tcl=no |
| 25485 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25486 | /* confdefs.h. */ |
| 25487 | _ACEOF |
| 25488 | cat confdefs.h >>conftest.$ac_ext |
| 25489 | cat >>conftest.$ac_ext <<_ACEOF |
| 25490 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25491 | |
| 25492 | #include <tcl.h> |
| 25493 | #if TCL_UTF_MAX != 6 |
| 25494 | # error "NOT UCS4_TCL" |
| 25495 | #endif |
| 25496 | int |
| 25497 | main () |
| 25498 | { |
| 25499 | |
| 25500 | ; |
| 25501 | return 0; |
| 25502 | } |
| 25503 | _ACEOF |
| 25504 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25505 | if { (ac_try="$ac_compile" |
| 25506 | case "(($ac_try" in |
| 25507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25508 | *) ac_try_echo=$ac_try;; |
| 25509 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25511 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25512 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25513 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25514 | rm -f conftest.er1 |
| 25515 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25517 | (exit $ac_status); } && { |
| 25518 | test -z "$ac_c_werror_flag" || |
| 25519 | test ! -s conftest.err |
| 25520 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25521 | |
| 25522 | |
| 25523 | cat >>confdefs.h <<\_ACEOF |
| 25524 | #define HAVE_UCS4_TCL 1 |
| 25525 | _ACEOF |
| 25526 | |
| 25527 | have_ucs4_tcl=yes |
| 25528 | |
| 25529 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25530 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25531 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25532 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25533 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25534 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25535 | |
| 25536 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25537 | { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5 |
| 25538 | echo "${ECHO_T}$have_ucs4_tcl" >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25539 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25540 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25541 | if test "$wchar_h" = yes |
| 25542 | then |
| 25543 | # check whether wchar_t is signed or not |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25544 | { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5 |
| 25545 | 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] | 25546 | if test "${ac_cv_wchar_t_signed+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25548 | else |
| 25549 | |
| 25550 | if test "$cross_compiling" = yes; then |
| 25551 | ac_cv_wchar_t_signed=yes |
| 25552 | else |
| 25553 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25554 | /* confdefs.h. */ |
| 25555 | _ACEOF |
| 25556 | cat confdefs.h >>conftest.$ac_ext |
| 25557 | cat >>conftest.$ac_ext <<_ACEOF |
| 25558 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25559 | |
| 25560 | #include <wchar.h> |
| 25561 | int main() |
| 25562 | { |
Martin v. Löwis | 44fe0e4 | 2006-04-11 07:15:30 +0000 | [diff] [blame] | 25563 | /* Success: exit code 0 */ |
| 25564 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25565 | } |
| 25566 | |
| 25567 | _ACEOF |
| 25568 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25569 | if { (ac_try="$ac_link" |
| 25570 | case "(($ac_try" in |
| 25571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25572 | *) ac_try_echo=$ac_try;; |
| 25573 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25575 | (eval "$ac_link") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25576 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25578 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25579 | { (case "(($ac_try" in |
| 25580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25581 | *) ac_try_echo=$ac_try;; |
| 25582 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25584 | (eval "$ac_try") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25585 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25587 | (exit $ac_status); }; }; then |
| 25588 | ac_cv_wchar_t_signed=yes |
| 25589 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25590 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25591 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25592 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25593 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25594 | ( exit $ac_status ) |
| 25595 | ac_cv_wchar_t_signed=no |
| 25596 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25597 | 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] | 25598 | fi |
| 25599 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25600 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25601 | fi |
| 25602 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25603 | { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5 |
| 25604 | echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25605 | fi |
| 25606 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25607 | { echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 25608 | 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] | 25609 | # Check whether --enable-unicode was given. |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25610 | if test "${enable_unicode+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25611 | enableval=$enable_unicode; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25612 | else |
| 25613 | enable_unicode=yes |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25614 | fi |
| 25615 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25616 | |
| 25617 | if test $enable_unicode = yes |
| 25618 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 25619 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25620 | case "$have_ucs4_tcl" in |
| 25621 | yes) enable_unicode="ucs4" |
| 25622 | ;; |
| 25623 | *) enable_unicode="ucs2" |
| 25624 | ;; |
| 25625 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25626 | fi |
| 25627 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 25628 | |
| 25629 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25630 | case "$enable_unicode" in |
| 25631 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25632 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25633 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25634 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25635 | |
| 25636 | ;; |
| 25637 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25638 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25639 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25640 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25641 | |
| 25642 | ;; |
Benjamin Peterson | 8b65054 | 2010-02-27 00:11:42 +0000 | [diff] [blame] | 25643 | *) { { echo "$as_me:$LINENO: error: invalid value for --enable-unicode. Use either ucs2 or ucs4 (lowercase)." >&5 |
| 25644 | echo "$as_me: error: invalid value for --enable-unicode. Use either ucs2 or ucs4 (lowercase)." >&2;} |
| 25645 | { (exit 1); exit 1; }; } ;; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25646 | esac |
| 25647 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25648 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25649 | |
| 25650 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 25651 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25652 | if test "$enable_unicode" = "no" |
| 25653 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 25654 | UNICODE_OBJS="" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25655 | { echo "$as_me:$LINENO: result: not used" >&5 |
| 25656 | echo "${ECHO_T}not used" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25657 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 25658 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25659 | |
| 25660 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25661 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25662 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25663 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25664 | |
| 25665 | # wchar_t is only usable if it maps to an unsigned type |
| 25666 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 25667 | -a "$ac_cv_wchar_t_signed" = "no" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25668 | then |
| 25669 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25670 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25671 | cat >>confdefs.h <<\_ACEOF |
| 25672 | #define HAVE_USABLE_WCHAR_T 1 |
| 25673 | _ACEOF |
| 25674 | |
| 25675 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25676 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25677 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25678 | |
| 25679 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 25680 | then |
| 25681 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25682 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25683 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25684 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25685 | |
| 25686 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 25687 | then |
| 25688 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25689 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25690 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25691 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25692 | |
| 25693 | else |
| 25694 | PY_UNICODE_TYPE="no type found" |
| 25695 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25696 | { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 25697 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25698 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25699 | |
| 25700 | # check for endianness |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25701 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 25702 | 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] | 25703 | if test "${ac_cv_c_bigendian+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25705 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25706 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 25707 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25708 | /* confdefs.h. */ |
| 25709 | _ACEOF |
| 25710 | cat confdefs.h >>conftest.$ac_ext |
| 25711 | cat >>conftest.$ac_ext <<_ACEOF |
| 25712 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25713 | #include <sys/types.h> |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25714 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25715 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25716 | int |
| 25717 | main () |
| 25718 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25719 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
| 25720 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
| 25721 | bogus endian macros |
| 25722 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25723 | |
| 25724 | ; |
| 25725 | return 0; |
| 25726 | } |
| 25727 | _ACEOF |
| 25728 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25729 | if { (ac_try="$ac_compile" |
| 25730 | case "(($ac_try" in |
| 25731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25732 | *) ac_try_echo=$ac_try;; |
| 25733 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25734 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25735 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25736 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25737 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25738 | rm -f conftest.er1 |
| 25739 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25741 | (exit $ac_status); } && { |
| 25742 | test -z "$ac_c_werror_flag" || |
| 25743 | test ! -s conftest.err |
| 25744 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25745 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25746 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25747 | /* confdefs.h. */ |
| 25748 | _ACEOF |
| 25749 | cat confdefs.h >>conftest.$ac_ext |
| 25750 | cat >>conftest.$ac_ext <<_ACEOF |
| 25751 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25752 | #include <sys/types.h> |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25753 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25754 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25755 | int |
| 25756 | main () |
| 25757 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25758 | #if BYTE_ORDER != BIG_ENDIAN |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25759 | not big endian |
| 25760 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25761 | |
| 25762 | ; |
| 25763 | return 0; |
| 25764 | } |
| 25765 | _ACEOF |
| 25766 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25767 | if { (ac_try="$ac_compile" |
| 25768 | case "(($ac_try" in |
| 25769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25770 | *) ac_try_echo=$ac_try;; |
| 25771 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25772 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25773 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25774 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25775 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25776 | rm -f conftest.er1 |
| 25777 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25779 | (exit $ac_status); } && { |
| 25780 | test -z "$ac_c_werror_flag" || |
| 25781 | test ! -s conftest.err |
| 25782 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25783 | ac_cv_c_bigendian=yes |
| 25784 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25785 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25786 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25787 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25788 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25789 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25790 | |
| 25791 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25792 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25793 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25794 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25795 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25796 | # It does not; compile a test program. |
| 25797 | if test "$cross_compiling" = yes; then |
| 25798 | # try to guess the endianness by grepping values into an object file |
| 25799 | ac_cv_c_bigendian=unknown |
| 25800 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25801 | /* confdefs.h. */ |
| 25802 | _ACEOF |
| 25803 | cat confdefs.h >>conftest.$ac_ext |
| 25804 | cat >>conftest.$ac_ext <<_ACEOF |
| 25805 | /* end confdefs.h. */ |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25806 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 25807 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 25808 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 25809 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 25810 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 25811 | 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] | 25812 | int |
| 25813 | main () |
| 25814 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25815 | _ascii (); _ebcdic (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25816 | ; |
| 25817 | return 0; |
| 25818 | } |
| 25819 | _ACEOF |
| 25820 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25821 | if { (ac_try="$ac_compile" |
| 25822 | case "(($ac_try" in |
| 25823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25824 | *) ac_try_echo=$ac_try;; |
| 25825 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25827 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25828 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25829 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25830 | rm -f conftest.er1 |
| 25831 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25833 | (exit $ac_status); } && { |
| 25834 | test -z "$ac_c_werror_flag" || |
| 25835 | test ! -s conftest.err |
| 25836 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25837 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25838 | ac_cv_c_bigendian=yes |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25839 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25840 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 25841 | if test "$ac_cv_c_bigendian" = unknown; then |
| 25842 | ac_cv_c_bigendian=no |
| 25843 | else |
| 25844 | # finding both strings is unlikely to happen, but who knows? |
| 25845 | ac_cv_c_bigendian=unknown |
| 25846 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25847 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25848 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25849 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25850 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25851 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25852 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25853 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25854 | |
| 25855 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25856 | else |
| 25857 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25858 | /* confdefs.h. */ |
| 25859 | _ACEOF |
| 25860 | cat confdefs.h >>conftest.$ac_ext |
| 25861 | cat >>conftest.$ac_ext <<_ACEOF |
| 25862 | /* end confdefs.h. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25863 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25864 | int |
| 25865 | main () |
| 25866 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25867 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25868 | /* Are we little or big endian? From Harbison&Steele. */ |
| 25869 | union |
| 25870 | { |
| 25871 | long int l; |
| 25872 | char c[sizeof (long int)]; |
| 25873 | } u; |
| 25874 | u.l = 1; |
| 25875 | return u.c[sizeof (long int) - 1] == 1; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25876 | |
| 25877 | ; |
| 25878 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25879 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25880 | _ACEOF |
| 25881 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25882 | if { (ac_try="$ac_link" |
| 25883 | case "(($ac_try" in |
| 25884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25885 | *) ac_try_echo=$ac_try;; |
| 25886 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25888 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25889 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25891 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25892 | { (case "(($ac_try" in |
| 25893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25894 | *) ac_try_echo=$ac_try;; |
| 25895 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25897 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25898 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25900 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25901 | ac_cv_c_bigendian=no |
| 25902 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25903 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25904 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25905 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25906 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25907 | ( exit $ac_status ) |
| 25908 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25909 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25910 | 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] | 25911 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25912 | |
| 25913 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25914 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25915 | |
| 25916 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25917 | fi |
| 25918 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 25919 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 25920 | case $ac_cv_c_bigendian in |
| 25921 | yes) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25922 | |
| 25923 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25924 | #define WORDS_BIGENDIAN 1 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25925 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25926 | ;; |
| 25927 | no) |
| 25928 | ;; |
| 25929 | *) |
| 25930 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 25931 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 25932 | echo "$as_me: error: unknown endianness |
| 25933 | 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] | 25934 | { (exit 1); exit 1; }; } ;; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25935 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25936 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25937 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25938 | # Check whether right shifting a negative integer extends the sign bit |
| 25939 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25940 | { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 25941 | 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] | 25942 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25944 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25945 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25946 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 25947 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25948 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25949 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25950 | /* confdefs.h. */ |
| 25951 | _ACEOF |
| 25952 | cat confdefs.h >>conftest.$ac_ext |
| 25953 | cat >>conftest.$ac_ext <<_ACEOF |
| 25954 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25955 | |
| 25956 | int main() |
| 25957 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25958 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25959 | } |
| 25960 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25961 | _ACEOF |
| 25962 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25963 | if { (ac_try="$ac_link" |
| 25964 | case "(($ac_try" in |
| 25965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25966 | *) ac_try_echo=$ac_try;; |
| 25967 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25969 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25970 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25972 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25973 | { (case "(($ac_try" in |
| 25974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25975 | *) ac_try_echo=$ac_try;; |
| 25976 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25978 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25979 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25981 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25982 | ac_cv_rshift_extends_sign=yes |
| 25983 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25984 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25985 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25986 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25987 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25988 | ( exit $ac_status ) |
| 25989 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25990 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25991 | 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] | 25992 | fi |
| 25993 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25994 | |
| 25995 | fi |
| 25996 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25997 | { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 25998 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; } |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25999 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 26000 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26001 | |
| 26002 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 26003 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26004 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 26005 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 26006 | fi |
| 26007 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 26008 | # check for getc_unlocked and related locking functions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26009 | { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 26010 | 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] | 26011 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 26013 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26014 | |
| 26015 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26016 | /* confdefs.h. */ |
| 26017 | _ACEOF |
| 26018 | cat confdefs.h >>conftest.$ac_ext |
| 26019 | cat >>conftest.$ac_ext <<_ACEOF |
| 26020 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 26021 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26022 | int |
| 26023 | main () |
| 26024 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 26025 | |
| 26026 | FILE *f = fopen("/dev/null", "r"); |
| 26027 | flockfile(f); |
| 26028 | getc_unlocked(f); |
| 26029 | funlockfile(f); |
| 26030 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26031 | ; |
| 26032 | return 0; |
| 26033 | } |
| 26034 | _ACEOF |
| 26035 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26036 | if { (ac_try="$ac_link" |
| 26037 | case "(($ac_try" in |
| 26038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26039 | *) ac_try_echo=$ac_try;; |
| 26040 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26042 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26043 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26044 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26045 | rm -f conftest.er1 |
| 26046 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26048 | (exit $ac_status); } && { |
| 26049 | test -z "$ac_c_werror_flag" || |
| 26050 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26051 | } && test -s conftest$ac_exeext && |
| 26052 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 26053 | ac_cv_have_getc_unlocked=yes |
| 26054 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26055 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26056 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26057 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26058 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 26059 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26060 | |
| 26061 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26062 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 26063 | fi |
| 26064 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26065 | { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 26066 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; } |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 26067 | if test "$ac_cv_have_getc_unlocked" = yes |
| 26068 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26069 | |
| 26070 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 26071 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26072 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 26073 | |
| 26074 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 26075 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26076 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 26077 | # save the value of LIBS so we don't actually link Python with readline |
| 26078 | LIBS_no_readline=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26079 | |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 26080 | # On some systems we need to link readline to a termcap compatible |
| 26081 | # library. NOTE: Keep the precedence of listed libraries synchronised |
| 26082 | # with setup.py. |
| 26083 | py_cv_lib_readline=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26084 | { echo "$as_me:$LINENO: checking how to link readline libs" >&5 |
| 26085 | 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] | 26086 | for py_libtermcap in "" ncursesw ncurses curses termcap; do |
| 26087 | if test -z "$py_libtermcap"; then |
| 26088 | READLINE_LIBS="-lreadline" |
| 26089 | else |
| 26090 | READLINE_LIBS="-lreadline -l$py_libtermcap" |
| 26091 | fi |
| 26092 | LIBS="$READLINE_LIBS $LIBS_no_readline" |
| 26093 | cat >conftest.$ac_ext <<_ACEOF |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26094 | /* confdefs.h. */ |
| 26095 | _ACEOF |
| 26096 | cat confdefs.h >>conftest.$ac_ext |
| 26097 | cat >>conftest.$ac_ext <<_ACEOF |
| 26098 | /* end confdefs.h. */ |
| 26099 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26100 | /* Override any GCC internal prototype to avoid an error. |
| 26101 | Use char because int might match the return type of a GCC |
| 26102 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26103 | #ifdef __cplusplus |
| 26104 | extern "C" |
| 26105 | #endif |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26106 | char readline (); |
| 26107 | int |
| 26108 | main () |
| 26109 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26110 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26111 | ; |
| 26112 | return 0; |
| 26113 | } |
| 26114 | _ACEOF |
| 26115 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26116 | if { (ac_try="$ac_link" |
| 26117 | case "(($ac_try" in |
| 26118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26119 | *) ac_try_echo=$ac_try;; |
| 26120 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26122 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26123 | ac_status=$? |
| 26124 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26125 | rm -f conftest.er1 |
| 26126 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26128 | (exit $ac_status); } && { |
| 26129 | test -z "$ac_c_werror_flag" || |
| 26130 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26131 | } && test -s conftest$ac_exeext && |
| 26132 | $as_test_x conftest$ac_exeext; then |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 26133 | py_cv_lib_readline=yes |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26134 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26135 | echo "$as_me: failed program was:" >&5 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26136 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26137 | |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 26138 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26139 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26140 | |
| 26141 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26142 | conftest$ac_exeext conftest.$ac_ext |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 26143 | if test $py_cv_lib_readline = yes; then |
| 26144 | break |
| 26145 | fi |
| 26146 | done |
| 26147 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts |
| 26148 | #AC_SUBST([READLINE_LIBS]) |
Gregory P. Smith | e080cdf | 2008-09-07 19:19:04 +0000 | [diff] [blame] | 26149 | if test $py_cv_lib_readline = no; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26150 | { echo "$as_me:$LINENO: result: none" >&5 |
| 26151 | echo "${ECHO_T}none" >&6; } |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 26152 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26153 | { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5 |
| 26154 | echo "${ECHO_T}$READLINE_LIBS" >&6; } |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 26155 | |
| 26156 | cat >>confdefs.h <<\_ACEOF |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26157 | #define HAVE_LIBREADLINE 1 |
| 26158 | _ACEOF |
| 26159 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26160 | fi |
| 26161 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26162 | # check for readline 2.1 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26163 | { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5 |
| 26164 | 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] | 26165 | 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] | 26166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26167 | else |
| 26168 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 26169 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26170 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26171 | /* confdefs.h. */ |
| 26172 | _ACEOF |
| 26173 | cat confdefs.h >>conftest.$ac_ext |
| 26174 | cat >>conftest.$ac_ext <<_ACEOF |
| 26175 | /* end confdefs.h. */ |
| 26176 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26177 | /* Override any GCC internal prototype to avoid an error. |
| 26178 | Use char because int might match the return type of a GCC |
| 26179 | builtin and then its argument prototype would still apply. */ |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26180 | #ifdef __cplusplus |
| 26181 | extern "C" |
| 26182 | #endif |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26183 | char rl_callback_handler_install (); |
| 26184 | int |
| 26185 | main () |
| 26186 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26187 | return rl_callback_handler_install (); |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26188 | ; |
| 26189 | return 0; |
| 26190 | } |
| 26191 | _ACEOF |
| 26192 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26193 | if { (ac_try="$ac_link" |
| 26194 | case "(($ac_try" in |
| 26195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26196 | *) ac_try_echo=$ac_try;; |
| 26197 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26199 | (eval "$ac_link") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26200 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26201 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26202 | rm -f conftest.er1 |
| 26203 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26205 | (exit $ac_status); } && { |
| 26206 | test -z "$ac_c_werror_flag" || |
| 26207 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26208 | } && test -s conftest$ac_exeext && |
| 26209 | $as_test_x conftest$ac_exeext; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26210 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 26211 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26212 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26213 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26214 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26215 | ac_cv_lib_readline_rl_callback_handler_install=no |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26216 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26217 | |
| 26218 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26219 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26220 | LIBS=$ac_check_lib_save_LIBS |
| 26221 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26222 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
| 26223 | echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; } |
| 26224 | 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] | 26225 | |
| 26226 | cat >>confdefs.h <<\_ACEOF |
| 26227 | #define HAVE_RL_CALLBACK 1 |
| 26228 | _ACEOF |
| 26229 | |
| 26230 | fi |
| 26231 | |
| 26232 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26233 | # check for readline 2.2 |
| 26234 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26235 | /* confdefs.h. */ |
| 26236 | _ACEOF |
| 26237 | cat confdefs.h >>conftest.$ac_ext |
| 26238 | cat >>conftest.$ac_ext <<_ACEOF |
| 26239 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26240 | #include <readline/readline.h> |
| 26241 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26242 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 26243 | case "(($ac_try" in |
| 26244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26245 | *) ac_try_echo=$ac_try;; |
| 26246 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26248 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26249 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26250 | grep -v '^ *+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26251 | rm -f conftest.er1 |
| 26252 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26254 | (exit $ac_status); } >/dev/null && { |
| 26255 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 26256 | test ! -s conftest.err |
| 26257 | }; then |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26258 | have_readline=yes |
| 26259 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26260 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26261 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26262 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26263 | have_readline=no |
| 26264 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26265 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26266 | rm -f conftest.err conftest.$ac_ext |
| 26267 | if test $have_readline = yes |
| 26268 | then |
| 26269 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26270 | /* confdefs.h. */ |
| 26271 | _ACEOF |
| 26272 | cat confdefs.h >>conftest.$ac_ext |
| 26273 | cat >>conftest.$ac_ext <<_ACEOF |
| 26274 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26275 | #include <readline/readline.h> |
| 26276 | |
| 26277 | _ACEOF |
| 26278 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26279 | $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] | 26280 | |
| 26281 | cat >>confdefs.h <<\_ACEOF |
| 26282 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 26283 | _ACEOF |
| 26284 | |
| 26285 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame^] | 26286 | rm -f conftest* |
Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 26287 | |
| 26288 | cat >conftest.$ac_ext <<_ACEOF |
| 26289 | /* confdefs.h. */ |
| 26290 | _ACEOF |
| 26291 | cat confdefs.h >>conftest.$ac_ext |
| 26292 | cat >>conftest.$ac_ext <<_ACEOF |
| 26293 | /* end confdefs.h. */ |
| 26294 | #include <readline/readline.h> |
| 26295 | |
| 26296 | _ACEOF |
| 26297 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 26298 | $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then |
| 26299 | |
| 26300 | cat >>confdefs.h <<\_ACEOF |
| 26301 | #define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1 |
| 26302 | _ACEOF |
| 26303 | |
| 26304 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame^] | 26305 | rm -f conftest* |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26306 | |
| 26307 | fi |
| 26308 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26309 | # check for readline 4.0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26310 | { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 26311 | 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] | 26312 | 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] | 26313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26314 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26315 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 26316 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26317 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26318 | /* confdefs.h. */ |
| 26319 | _ACEOF |
| 26320 | cat confdefs.h >>conftest.$ac_ext |
| 26321 | cat >>conftest.$ac_ext <<_ACEOF |
| 26322 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26323 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26324 | /* Override any GCC internal prototype to avoid an error. |
| 26325 | Use char because int might match the return type of a GCC |
| 26326 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26327 | #ifdef __cplusplus |
| 26328 | extern "C" |
| 26329 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26330 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26331 | int |
| 26332 | main () |
| 26333 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26334 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26335 | ; |
| 26336 | return 0; |
| 26337 | } |
| 26338 | _ACEOF |
| 26339 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26340 | if { (ac_try="$ac_link" |
| 26341 | case "(($ac_try" in |
| 26342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26343 | *) ac_try_echo=$ac_try;; |
| 26344 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26345 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26346 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26347 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26348 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26349 | rm -f conftest.er1 |
| 26350 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26352 | (exit $ac_status); } && { |
| 26353 | test -z "$ac_c_werror_flag" || |
| 26354 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26355 | } && test -s conftest$ac_exeext && |
| 26356 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26357 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26358 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26359 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26360 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26361 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26362 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26363 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26364 | |
| 26365 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26366 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26367 | LIBS=$ac_check_lib_save_LIBS |
| 26368 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26369 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 26370 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; } |
| 26371 | 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] | 26372 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26373 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26374 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26375 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26376 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26377 | fi |
| 26378 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26379 | |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26380 | # also in 4.0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26381 | { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5 |
| 26382 | 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] | 26383 | 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] | 26384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26385 | else |
| 26386 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 26387 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26388 | cat >conftest.$ac_ext <<_ACEOF |
| 26389 | /* confdefs.h. */ |
| 26390 | _ACEOF |
| 26391 | cat confdefs.h >>conftest.$ac_ext |
| 26392 | cat >>conftest.$ac_ext <<_ACEOF |
| 26393 | /* end confdefs.h. */ |
| 26394 | |
| 26395 | /* Override any GCC internal prototype to avoid an error. |
| 26396 | Use char because int might match the return type of a GCC |
| 26397 | builtin and then its argument prototype would still apply. */ |
| 26398 | #ifdef __cplusplus |
| 26399 | extern "C" |
| 26400 | #endif |
| 26401 | char rl_completion_display_matches_hook (); |
| 26402 | int |
| 26403 | main () |
| 26404 | { |
| 26405 | return rl_completion_display_matches_hook (); |
| 26406 | ; |
| 26407 | return 0; |
| 26408 | } |
| 26409 | _ACEOF |
| 26410 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 26411 | if { (ac_try="$ac_link" |
| 26412 | case "(($ac_try" in |
| 26413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26414 | *) ac_try_echo=$ac_try;; |
| 26415 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26417 | (eval "$ac_link") 2>conftest.er1 |
| 26418 | ac_status=$? |
| 26419 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26420 | rm -f conftest.er1 |
| 26421 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26423 | (exit $ac_status); } && { |
| 26424 | test -z "$ac_c_werror_flag" || |
| 26425 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26426 | } && test -s conftest$ac_exeext && |
| 26427 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26428 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes |
| 26429 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26430 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26431 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26432 | |
| 26433 | ac_cv_lib_readline_rl_completion_display_matches_hook=no |
| 26434 | fi |
| 26435 | |
| 26436 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 26437 | conftest$ac_exeext conftest.$ac_ext |
| 26438 | LIBS=$ac_check_lib_save_LIBS |
| 26439 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26440 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 |
| 26441 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } |
| 26442 | 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] | 26443 | |
| 26444 | cat >>confdefs.h <<\_ACEOF |
| 26445 | #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1 |
| 26446 | _ACEOF |
| 26447 | |
| 26448 | fi |
| 26449 | |
| 26450 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26451 | # check for readline 4.2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26452 | { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 26453 | 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] | 26454 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26455 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26456 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26457 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 26458 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26459 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26460 | /* confdefs.h. */ |
| 26461 | _ACEOF |
| 26462 | cat confdefs.h >>conftest.$ac_ext |
| 26463 | cat >>conftest.$ac_ext <<_ACEOF |
| 26464 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26465 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26466 | /* Override any GCC internal prototype to avoid an error. |
| 26467 | Use char because int might match the return type of a GCC |
| 26468 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26469 | #ifdef __cplusplus |
| 26470 | extern "C" |
| 26471 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26472 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26473 | int |
| 26474 | main () |
| 26475 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26476 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26477 | ; |
| 26478 | return 0; |
| 26479 | } |
| 26480 | _ACEOF |
| 26481 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26482 | if { (ac_try="$ac_link" |
| 26483 | case "(($ac_try" in |
| 26484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26485 | *) ac_try_echo=$ac_try;; |
| 26486 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26487 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26488 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26489 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26490 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26491 | rm -f conftest.er1 |
| 26492 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26494 | (exit $ac_status); } && { |
| 26495 | test -z "$ac_c_werror_flag" || |
| 26496 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26497 | } && test -s conftest$ac_exeext && |
| 26498 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26499 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26500 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26501 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26502 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26503 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26504 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26505 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26506 | |
| 26507 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26508 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26509 | LIBS=$ac_check_lib_save_LIBS |
| 26510 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26511 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 26512 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; } |
| 26513 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26514 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26515 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26516 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26517 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26518 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26519 | fi |
| 26520 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 26521 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26522 | # also in readline 4.2 |
| 26523 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26524 | /* confdefs.h. */ |
| 26525 | _ACEOF |
| 26526 | cat confdefs.h >>conftest.$ac_ext |
| 26527 | cat >>conftest.$ac_ext <<_ACEOF |
| 26528 | /* end confdefs.h. */ |
| 26529 | #include <readline/readline.h> |
| 26530 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26531 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 26532 | case "(($ac_try" in |
| 26533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26534 | *) ac_try_echo=$ac_try;; |
| 26535 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26537 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26538 | ac_status=$? |
| 26539 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26540 | rm -f conftest.er1 |
| 26541 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26543 | (exit $ac_status); } >/dev/null && { |
| 26544 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 26545 | test ! -s conftest.err |
| 26546 | }; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26547 | have_readline=yes |
| 26548 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26549 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26550 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26551 | |
| 26552 | have_readline=no |
| 26553 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26554 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26555 | rm -f conftest.err conftest.$ac_ext |
| 26556 | if test $have_readline = yes |
| 26557 | then |
| 26558 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26559 | /* confdefs.h. */ |
| 26560 | _ACEOF |
| 26561 | cat confdefs.h >>conftest.$ac_ext |
| 26562 | cat >>conftest.$ac_ext <<_ACEOF |
| 26563 | /* end confdefs.h. */ |
| 26564 | #include <readline/readline.h> |
| 26565 | |
| 26566 | _ACEOF |
| 26567 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 26568 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then |
| 26569 | |
| 26570 | cat >>confdefs.h <<\_ACEOF |
| 26571 | #define HAVE_RL_CATCH_SIGNAL 1 |
| 26572 | _ACEOF |
| 26573 | |
| 26574 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame^] | 26575 | rm -f conftest* |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26576 | |
| 26577 | fi |
| 26578 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 26579 | # End of readline checks: restore LIBS |
| 26580 | LIBS=$LIBS_no_readline |
| 26581 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26582 | { echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 26583 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26584 | if test "${ac_cv_broken_nice+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26586 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26587 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26588 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 26589 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26590 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26591 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26592 | /* confdefs.h. */ |
| 26593 | _ACEOF |
| 26594 | cat confdefs.h >>conftest.$ac_ext |
| 26595 | cat >>conftest.$ac_ext <<_ACEOF |
| 26596 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26597 | |
| 26598 | int main() |
| 26599 | { |
| 26600 | int val1 = nice(1); |
| 26601 | if (val1 != -1 && val1 == nice(2)) |
| 26602 | exit(0); |
| 26603 | exit(1); |
| 26604 | } |
| 26605 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26606 | _ACEOF |
| 26607 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26608 | if { (ac_try="$ac_link" |
| 26609 | case "(($ac_try" in |
| 26610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26611 | *) ac_try_echo=$ac_try;; |
| 26612 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26614 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26615 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26617 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26618 | { (case "(($ac_try" in |
| 26619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26620 | *) ac_try_echo=$ac_try;; |
| 26621 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26622 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26623 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26624 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26626 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26627 | ac_cv_broken_nice=yes |
| 26628 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26629 | echo "$as_me: program exited with status $ac_status" >&5 |
| 26630 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26631 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26632 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26633 | ( exit $ac_status ) |
| 26634 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26635 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26636 | 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] | 26637 | fi |
| 26638 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26639 | |
| 26640 | fi |
| 26641 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26642 | { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 26643 | echo "${ECHO_T}$ac_cv_broken_nice" >&6; } |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26644 | if test "$ac_cv_broken_nice" = yes |
| 26645 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26646 | |
| 26647 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26648 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26649 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26650 | |
| 26651 | fi |
| 26652 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26653 | { echo "$as_me:$LINENO: checking for broken poll()" >&5 |
| 26654 | echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26655 | if test "${ac_cv_broken_poll+set}" = set; then |
| 26656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26657 | else |
| 26658 | if test "$cross_compiling" = yes; then |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26659 | ac_cv_broken_poll=no |
| 26660 | else |
| 26661 | cat >conftest.$ac_ext <<_ACEOF |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26662 | /* confdefs.h. */ |
| 26663 | _ACEOF |
| 26664 | cat confdefs.h >>conftest.$ac_ext |
| 26665 | cat >>conftest.$ac_ext <<_ACEOF |
| 26666 | /* end confdefs.h. */ |
| 26667 | |
| 26668 | #include <poll.h> |
| 26669 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26670 | int main() |
| 26671 | { |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26672 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26673 | int poll_test; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26674 | |
| 26675 | close (42); |
| 26676 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26677 | poll_test = poll(&poll_struct, 1, 0); |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26678 | if (poll_test < 0) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26679 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26680 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26681 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26682 | else |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26683 | return 1; |
| 26684 | } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26685 | |
| 26686 | _ACEOF |
| 26687 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26688 | if { (ac_try="$ac_link" |
| 26689 | case "(($ac_try" in |
| 26690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26691 | *) ac_try_echo=$ac_try;; |
| 26692 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26693 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26694 | (eval "$ac_link") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26695 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26697 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26698 | { (case "(($ac_try" in |
| 26699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26700 | *) ac_try_echo=$ac_try;; |
| 26701 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26703 | (eval "$ac_try") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26704 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26706 | (exit $ac_status); }; }; then |
| 26707 | ac_cv_broken_poll=yes |
| 26708 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26709 | echo "$as_me: program exited with status $ac_status" >&5 |
| 26710 | echo "$as_me: failed program was:" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26711 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26712 | |
| 26713 | ( exit $ac_status ) |
| 26714 | ac_cv_broken_poll=no |
| 26715 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26716 | 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] | 26717 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26718 | |
| 26719 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26720 | fi |
| 26721 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26722 | { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5 |
| 26723 | echo "${ECHO_T}$ac_cv_broken_poll" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26724 | if test "$ac_cv_broken_poll" = yes |
| 26725 | then |
| 26726 | |
| 26727 | cat >>confdefs.h <<\_ACEOF |
| 26728 | #define HAVE_BROKEN_POLL 1 |
| 26729 | _ACEOF |
| 26730 | |
| 26731 | fi |
| 26732 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26733 | # 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] | 26734 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 26735 | # tzname[] |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26736 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 26737 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26738 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26740 | else |
| 26741 | cat >conftest.$ac_ext <<_ACEOF |
| 26742 | /* confdefs.h. */ |
| 26743 | _ACEOF |
| 26744 | cat confdefs.h >>conftest.$ac_ext |
| 26745 | cat >>conftest.$ac_ext <<_ACEOF |
| 26746 | /* end confdefs.h. */ |
| 26747 | #include <sys/types.h> |
| 26748 | #include <$ac_cv_struct_tm> |
| 26749 | |
| 26750 | |
| 26751 | int |
| 26752 | main () |
| 26753 | { |
| 26754 | static struct tm ac_aggr; |
| 26755 | if (ac_aggr.tm_zone) |
| 26756 | return 0; |
| 26757 | ; |
| 26758 | return 0; |
| 26759 | } |
| 26760 | _ACEOF |
| 26761 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26762 | if { (ac_try="$ac_compile" |
| 26763 | case "(($ac_try" in |
| 26764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26765 | *) ac_try_echo=$ac_try;; |
| 26766 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26768 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26769 | ac_status=$? |
| 26770 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26771 | rm -f conftest.er1 |
| 26772 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26774 | (exit $ac_status); } && { |
| 26775 | test -z "$ac_c_werror_flag" || |
| 26776 | test ! -s conftest.err |
| 26777 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26778 | ac_cv_member_struct_tm_tm_zone=yes |
| 26779 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26780 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26781 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26782 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26783 | cat >conftest.$ac_ext <<_ACEOF |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26784 | /* confdefs.h. */ |
| 26785 | _ACEOF |
| 26786 | cat confdefs.h >>conftest.$ac_ext |
| 26787 | cat >>conftest.$ac_ext <<_ACEOF |
| 26788 | /* end confdefs.h. */ |
| 26789 | #include <sys/types.h> |
| 26790 | #include <$ac_cv_struct_tm> |
| 26791 | |
| 26792 | |
| 26793 | int |
| 26794 | main () |
| 26795 | { |
| 26796 | static struct tm ac_aggr; |
| 26797 | if (sizeof ac_aggr.tm_zone) |
| 26798 | return 0; |
| 26799 | ; |
| 26800 | return 0; |
| 26801 | } |
| 26802 | _ACEOF |
| 26803 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26804 | if { (ac_try="$ac_compile" |
| 26805 | case "(($ac_try" in |
| 26806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26807 | *) ac_try_echo=$ac_try;; |
| 26808 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26810 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26811 | ac_status=$? |
| 26812 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26813 | rm -f conftest.er1 |
| 26814 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26816 | (exit $ac_status); } && { |
| 26817 | test -z "$ac_c_werror_flag" || |
| 26818 | test ! -s conftest.err |
| 26819 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26820 | ac_cv_member_struct_tm_tm_zone=yes |
| 26821 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26822 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26823 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26824 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26825 | ac_cv_member_struct_tm_tm_zone=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26826 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26827 | |
| 26828 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26829 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26830 | |
| 26831 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26832 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26833 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 26834 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } |
| 26835 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26836 | |
| 26837 | cat >>confdefs.h <<_ACEOF |
| 26838 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 26839 | _ACEOF |
| 26840 | |
| 26841 | |
| 26842 | fi |
| 26843 | |
| 26844 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 26845 | |
| 26846 | cat >>confdefs.h <<\_ACEOF |
| 26847 | #define HAVE_TM_ZONE 1 |
| 26848 | _ACEOF |
| 26849 | |
| 26850 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26851 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 26852 | 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] | 26853 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26855 | else |
| 26856 | cat >conftest.$ac_ext <<_ACEOF |
| 26857 | /* confdefs.h. */ |
| 26858 | _ACEOF |
| 26859 | cat confdefs.h >>conftest.$ac_ext |
| 26860 | cat >>conftest.$ac_ext <<_ACEOF |
| 26861 | /* end confdefs.h. */ |
| 26862 | #include <time.h> |
| 26863 | |
| 26864 | int |
| 26865 | main () |
| 26866 | { |
| 26867 | #ifndef tzname |
| 26868 | (void) tzname; |
| 26869 | #endif |
| 26870 | |
| 26871 | ; |
| 26872 | return 0; |
| 26873 | } |
| 26874 | _ACEOF |
| 26875 | rm -f conftest.$ac_objext |
| 26876 | if { (ac_try="$ac_compile" |
| 26877 | case "(($ac_try" in |
| 26878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26879 | *) ac_try_echo=$ac_try;; |
| 26880 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26882 | (eval "$ac_compile") 2>conftest.er1 |
| 26883 | ac_status=$? |
| 26884 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26885 | rm -f conftest.er1 |
| 26886 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26888 | (exit $ac_status); } && { |
| 26889 | test -z "$ac_c_werror_flag" || |
| 26890 | test ! -s conftest.err |
| 26891 | } && test -s conftest.$ac_objext; then |
| 26892 | ac_cv_have_decl_tzname=yes |
| 26893 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26894 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26895 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26896 | |
| 26897 | ac_cv_have_decl_tzname=no |
| 26898 | fi |
| 26899 | |
| 26900 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26901 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26902 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 26903 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } |
| 26904 | if test $ac_cv_have_decl_tzname = yes; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26905 | |
| 26906 | cat >>confdefs.h <<_ACEOF |
| 26907 | #define HAVE_DECL_TZNAME 1 |
| 26908 | _ACEOF |
| 26909 | |
| 26910 | |
| 26911 | else |
| 26912 | cat >>confdefs.h <<_ACEOF |
| 26913 | #define HAVE_DECL_TZNAME 0 |
| 26914 | _ACEOF |
| 26915 | |
| 26916 | |
| 26917 | fi |
| 26918 | |
| 26919 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26920 | { echo "$as_me:$LINENO: checking for tzname" >&5 |
| 26921 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26922 | if test "${ac_cv_var_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26924 | else |
| 26925 | cat >conftest.$ac_ext <<_ACEOF |
| 26926 | /* confdefs.h. */ |
| 26927 | _ACEOF |
| 26928 | cat confdefs.h >>conftest.$ac_ext |
| 26929 | cat >>conftest.$ac_ext <<_ACEOF |
| 26930 | /* end confdefs.h. */ |
| 26931 | #include <time.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26932 | #if !HAVE_DECL_TZNAME |
| 26933 | extern char *tzname[]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26934 | #endif |
| 26935 | |
| 26936 | int |
| 26937 | main () |
| 26938 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26939 | return tzname[0][0]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26940 | ; |
| 26941 | return 0; |
| 26942 | } |
| 26943 | _ACEOF |
| 26944 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26945 | if { (ac_try="$ac_link" |
| 26946 | case "(($ac_try" in |
| 26947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26948 | *) ac_try_echo=$ac_try;; |
| 26949 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26951 | (eval "$ac_link") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26952 | ac_status=$? |
| 26953 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26954 | rm -f conftest.er1 |
| 26955 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26957 | (exit $ac_status); } && { |
| 26958 | test -z "$ac_c_werror_flag" || |
| 26959 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26960 | } && test -s conftest$ac_exeext && |
| 26961 | $as_test_x conftest$ac_exeext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26962 | ac_cv_var_tzname=yes |
| 26963 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26964 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26965 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26966 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26967 | ac_cv_var_tzname=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26968 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26969 | |
| 26970 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26971 | conftest$ac_exeext conftest.$ac_ext |
| 26972 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26973 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 26974 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26975 | if test $ac_cv_var_tzname = yes; then |
| 26976 | |
| 26977 | cat >>confdefs.h <<\_ACEOF |
| 26978 | #define HAVE_TZNAME 1 |
| 26979 | _ACEOF |
| 26980 | |
| 26981 | fi |
| 26982 | fi |
| 26983 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26984 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 26985 | # check tzset(3) exists and works like we expect it to |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26986 | { echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 26987 | echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26988 | if test "${ac_cv_working_tzset+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26990 | else |
| 26991 | |
| 26992 | if test "$cross_compiling" = yes; then |
| 26993 | ac_cv_working_tzset=no |
| 26994 | else |
| 26995 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26996 | /* confdefs.h. */ |
| 26997 | _ACEOF |
| 26998 | cat confdefs.h >>conftest.$ac_ext |
| 26999 | cat >>conftest.$ac_ext <<_ACEOF |
| 27000 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27001 | |
| 27002 | #include <stdlib.h> |
| 27003 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 27004 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 27005 | |
| 27006 | #if HAVE_TZNAME |
| 27007 | extern char *tzname[]; |
| 27008 | #endif |
| 27009 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27010 | int main() |
| 27011 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 27012 | /* Note that we need to ensure that not only does tzset(3) |
| 27013 | do 'something' with localtime, but it works as documented |
| 27014 | 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] | 27015 | This includes making sure that tzname is set properly if |
| 27016 | tm->tm_zone does not exist since it is the alternative way |
| 27017 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 27018 | |
| 27019 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 27020 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 27021 | */ |
| 27022 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 27023 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 27024 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 27025 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 27026 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27027 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 27028 | if (localtime(&groundhogday)->tm_hour != 0) |
| 27029 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 27030 | #if HAVE_TZNAME |
| 27031 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 27032 | if (strcmp(tzname[0], "UTC") || |
| 27033 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 27034 | exit(1); |
| 27035 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 27036 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 27037 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27038 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 27039 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27040 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 27041 | #if HAVE_TZNAME |
| 27042 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 27043 | exit(1); |
| 27044 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 27045 | |
| 27046 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 27047 | tzset(); |
| 27048 | if (localtime(&groundhogday)->tm_hour != 11) |
| 27049 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 27050 | #if HAVE_TZNAME |
| 27051 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 27052 | exit(1); |
| 27053 | #endif |
| 27054 | |
| 27055 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 27056 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 27057 | exit(1); |
| 27058 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 27059 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 27060 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 27061 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27062 | exit(0); |
| 27063 | } |
| 27064 | |
| 27065 | _ACEOF |
| 27066 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27067 | if { (ac_try="$ac_link" |
| 27068 | case "(($ac_try" in |
| 27069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27070 | *) ac_try_echo=$ac_try;; |
| 27071 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27073 | (eval "$ac_link") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27074 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27076 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27077 | { (case "(($ac_try" in |
| 27078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27079 | *) ac_try_echo=$ac_try;; |
| 27080 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27082 | (eval "$ac_try") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27083 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27085 | (exit $ac_status); }; }; then |
| 27086 | ac_cv_working_tzset=yes |
| 27087 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27088 | echo "$as_me: program exited with status $ac_status" >&5 |
| 27089 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27090 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27091 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27092 | ( exit $ac_status ) |
| 27093 | ac_cv_working_tzset=no |
| 27094 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27095 | 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] | 27096 | fi |
| 27097 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27098 | |
| 27099 | fi |
| 27100 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27101 | { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 27102 | echo "${ECHO_T}$ac_cv_working_tzset" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27103 | if test "$ac_cv_working_tzset" = yes |
| 27104 | then |
| 27105 | |
| 27106 | cat >>confdefs.h <<\_ACEOF |
| 27107 | #define HAVE_WORKING_TZSET 1 |
| 27108 | _ACEOF |
| 27109 | |
| 27110 | fi |
| 27111 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27112 | # Look for subsecond timestamps in struct stat |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27113 | { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 27114 | 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] | 27115 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27117 | else |
| 27118 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27119 | /* confdefs.h. */ |
| 27120 | _ACEOF |
| 27121 | cat confdefs.h >>conftest.$ac_ext |
| 27122 | cat >>conftest.$ac_ext <<_ACEOF |
| 27123 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27124 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27125 | int |
| 27126 | main () |
| 27127 | { |
| 27128 | |
| 27129 | struct stat st; |
| 27130 | st.st_mtim.tv_nsec = 1; |
| 27131 | |
| 27132 | ; |
| 27133 | return 0; |
| 27134 | } |
| 27135 | _ACEOF |
| 27136 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27137 | if { (ac_try="$ac_compile" |
| 27138 | case "(($ac_try" in |
| 27139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27140 | *) ac_try_echo=$ac_try;; |
| 27141 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27143 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27144 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27145 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27146 | rm -f conftest.er1 |
| 27147 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27149 | (exit $ac_status); } && { |
| 27150 | test -z "$ac_c_werror_flag" || |
| 27151 | test ! -s conftest.err |
| 27152 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 27153 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27154 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27155 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27156 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27157 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27158 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27159 | fi |
| 27160 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27161 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27162 | fi |
| 27163 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27164 | { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 27165 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; } |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27166 | if test "$ac_cv_stat_tv_nsec" = yes |
| 27167 | then |
| 27168 | |
| 27169 | cat >>confdefs.h <<\_ACEOF |
| 27170 | #define HAVE_STAT_TV_NSEC 1 |
| 27171 | _ACEOF |
| 27172 | |
| 27173 | fi |
| 27174 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27175 | # Look for BSD style subsecond timestamps in struct stat |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27176 | { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5 |
| 27177 | 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] | 27178 | if test "${ac_cv_stat_tv_nsec2+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27180 | else |
| 27181 | cat >conftest.$ac_ext <<_ACEOF |
| 27182 | /* confdefs.h. */ |
| 27183 | _ACEOF |
| 27184 | cat confdefs.h >>conftest.$ac_ext |
| 27185 | cat >>conftest.$ac_ext <<_ACEOF |
| 27186 | /* end confdefs.h. */ |
| 27187 | #include <sys/stat.h> |
| 27188 | int |
| 27189 | main () |
| 27190 | { |
| 27191 | |
| 27192 | struct stat st; |
| 27193 | st.st_mtimespec.tv_nsec = 1; |
| 27194 | |
| 27195 | ; |
| 27196 | return 0; |
| 27197 | } |
| 27198 | _ACEOF |
| 27199 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27200 | if { (ac_try="$ac_compile" |
| 27201 | case "(($ac_try" in |
| 27202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27203 | *) ac_try_echo=$ac_try;; |
| 27204 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27205 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27206 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27207 | ac_status=$? |
| 27208 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27209 | rm -f conftest.er1 |
| 27210 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27212 | (exit $ac_status); } && { |
| 27213 | test -z "$ac_c_werror_flag" || |
| 27214 | test ! -s conftest.err |
| 27215 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27216 | ac_cv_stat_tv_nsec2=yes |
| 27217 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27218 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27219 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27220 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27221 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27222 | fi |
| 27223 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27224 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27225 | fi |
| 27226 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27227 | { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5 |
| 27228 | echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27229 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 27230 | then |
| 27231 | |
| 27232 | cat >>confdefs.h <<\_ACEOF |
| 27233 | #define HAVE_STAT_TV_NSEC2 1 |
| 27234 | _ACEOF |
| 27235 | |
| 27236 | fi |
| 27237 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27238 | # 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] | 27239 | { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 27240 | 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] | 27241 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27243 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27244 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27245 | /* confdefs.h. */ |
| 27246 | _ACEOF |
| 27247 | cat confdefs.h >>conftest.$ac_ext |
| 27248 | cat >>conftest.$ac_ext <<_ACEOF |
| 27249 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27250 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27251 | int |
| 27252 | main () |
| 27253 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27254 | |
| 27255 | int rtn; |
| 27256 | rtn = mvwdelch(0,0,0); |
| 27257 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27258 | ; |
| 27259 | return 0; |
| 27260 | } |
| 27261 | _ACEOF |
| 27262 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27263 | if { (ac_try="$ac_compile" |
| 27264 | case "(($ac_try" in |
| 27265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27266 | *) ac_try_echo=$ac_try;; |
| 27267 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27269 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27270 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27271 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27272 | rm -f conftest.er1 |
| 27273 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27275 | (exit $ac_status); } && { |
| 27276 | test -z "$ac_c_werror_flag" || |
| 27277 | test ! -s conftest.err |
| 27278 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27279 | ac_cv_mvwdelch_is_expression=yes |
| 27280 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27281 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27282 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27283 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27284 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27285 | fi |
| 27286 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27288 | fi |
| 27289 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27290 | { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 27291 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; } |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27292 | |
| 27293 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 27294 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27295 | |
| 27296 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27297 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27298 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27299 | |
| 27300 | fi |
| 27301 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27302 | { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 27303 | 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] | 27304 | if test "${ac_cv_window_has_flags+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27306 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27307 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27308 | /* confdefs.h. */ |
| 27309 | _ACEOF |
| 27310 | cat confdefs.h >>conftest.$ac_ext |
| 27311 | cat >>conftest.$ac_ext <<_ACEOF |
| 27312 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27313 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27314 | int |
| 27315 | main () |
| 27316 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27317 | |
| 27318 | WINDOW *w; |
| 27319 | w->_flags = 0; |
| 27320 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27321 | ; |
| 27322 | return 0; |
| 27323 | } |
| 27324 | _ACEOF |
| 27325 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27326 | if { (ac_try="$ac_compile" |
| 27327 | case "(($ac_try" in |
| 27328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27329 | *) ac_try_echo=$ac_try;; |
| 27330 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27331 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27332 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27333 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27334 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27335 | rm -f conftest.er1 |
| 27336 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27338 | (exit $ac_status); } && { |
| 27339 | test -z "$ac_c_werror_flag" || |
| 27340 | test ! -s conftest.err |
| 27341 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27342 | ac_cv_window_has_flags=yes |
| 27343 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27344 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27345 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27346 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27347 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27348 | fi |
| 27349 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27350 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27351 | fi |
| 27352 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27353 | { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 27354 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27355 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27356 | |
| 27357 | if test "$ac_cv_window_has_flags" = yes |
| 27358 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27359 | |
| 27360 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27361 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27362 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27363 | |
| 27364 | fi |
| 27365 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27366 | { echo "$as_me:$LINENO: checking for is_term_resized" >&5 |
| 27367 | echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27368 | cat >conftest.$ac_ext <<_ACEOF |
| 27369 | /* confdefs.h. */ |
| 27370 | _ACEOF |
| 27371 | cat confdefs.h >>conftest.$ac_ext |
| 27372 | cat >>conftest.$ac_ext <<_ACEOF |
| 27373 | /* end confdefs.h. */ |
| 27374 | #include <curses.h> |
| 27375 | int |
| 27376 | main () |
| 27377 | { |
| 27378 | void *x=is_term_resized |
| 27379 | ; |
| 27380 | return 0; |
| 27381 | } |
| 27382 | _ACEOF |
| 27383 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27384 | if { (ac_try="$ac_compile" |
| 27385 | case "(($ac_try" in |
| 27386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27387 | *) ac_try_echo=$ac_try;; |
| 27388 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27390 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27391 | ac_status=$? |
| 27392 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27393 | rm -f conftest.er1 |
| 27394 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27396 | (exit $ac_status); } && { |
| 27397 | test -z "$ac_c_werror_flag" || |
| 27398 | test ! -s conftest.err |
| 27399 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27400 | |
| 27401 | cat >>confdefs.h <<\_ACEOF |
| 27402 | #define HAVE_CURSES_IS_TERM_RESIZED 1 |
| 27403 | _ACEOF |
| 27404 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27405 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 27406 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27407 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27408 | echo "$as_me: failed program was:" >&5 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27409 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27410 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27411 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27412 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27413 | |
| 27414 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27415 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27416 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27417 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27418 | { echo "$as_me:$LINENO: checking for resize_term" >&5 |
| 27419 | echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27420 | cat >conftest.$ac_ext <<_ACEOF |
| 27421 | /* confdefs.h. */ |
| 27422 | _ACEOF |
| 27423 | cat confdefs.h >>conftest.$ac_ext |
| 27424 | cat >>conftest.$ac_ext <<_ACEOF |
| 27425 | /* end confdefs.h. */ |
| 27426 | #include <curses.h> |
| 27427 | int |
| 27428 | main () |
| 27429 | { |
| 27430 | void *x=resize_term |
| 27431 | ; |
| 27432 | return 0; |
| 27433 | } |
| 27434 | _ACEOF |
| 27435 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27436 | if { (ac_try="$ac_compile" |
| 27437 | case "(($ac_try" in |
| 27438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27439 | *) ac_try_echo=$ac_try;; |
| 27440 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27442 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27443 | ac_status=$? |
| 27444 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27445 | rm -f conftest.er1 |
| 27446 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27448 | (exit $ac_status); } && { |
| 27449 | test -z "$ac_c_werror_flag" || |
| 27450 | test ! -s conftest.err |
| 27451 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27452 | |
| 27453 | cat >>confdefs.h <<\_ACEOF |
| 27454 | #define HAVE_CURSES_RESIZE_TERM 1 |
| 27455 | _ACEOF |
| 27456 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27457 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 27458 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27459 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27460 | echo "$as_me: failed program was:" >&5 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27461 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27462 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27463 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27464 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27465 | |
| 27466 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27467 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27468 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27469 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27470 | { echo "$as_me:$LINENO: checking for resizeterm" >&5 |
| 27471 | echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27472 | cat >conftest.$ac_ext <<_ACEOF |
| 27473 | /* confdefs.h. */ |
| 27474 | _ACEOF |
| 27475 | cat confdefs.h >>conftest.$ac_ext |
| 27476 | cat >>conftest.$ac_ext <<_ACEOF |
| 27477 | /* end confdefs.h. */ |
| 27478 | #include <curses.h> |
| 27479 | int |
| 27480 | main () |
| 27481 | { |
| 27482 | void *x=resizeterm |
| 27483 | ; |
| 27484 | return 0; |
| 27485 | } |
| 27486 | _ACEOF |
| 27487 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27488 | if { (ac_try="$ac_compile" |
| 27489 | case "(($ac_try" in |
| 27490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27491 | *) ac_try_echo=$ac_try;; |
| 27492 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27493 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27494 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27495 | ac_status=$? |
| 27496 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27497 | rm -f conftest.er1 |
| 27498 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27500 | (exit $ac_status); } && { |
| 27501 | test -z "$ac_c_werror_flag" || |
| 27502 | test ! -s conftest.err |
| 27503 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27504 | |
| 27505 | cat >>confdefs.h <<\_ACEOF |
| 27506 | #define HAVE_CURSES_RESIZETERM 1 |
| 27507 | _ACEOF |
| 27508 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27509 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 27510 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27511 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27512 | echo "$as_me: failed program was:" >&5 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27513 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27514 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27515 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27516 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27517 | |
| 27518 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27519 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27520 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27521 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27522 | { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 27523 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; } |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 27524 | |
| 27525 | if test -r /dev/ptmx |
| 27526 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27527 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 27528 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 27529 | |
| 27530 | cat >>confdefs.h <<\_ACEOF |
| 27531 | #define HAVE_DEV_PTMX 1 |
| 27532 | _ACEOF |
| 27533 | |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 27534 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27535 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27536 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 27537 | fi |
| 27538 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27539 | { echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 27540 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; } |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 27541 | |
| 27542 | if test -r /dev/ptc |
| 27543 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27544 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 27545 | echo "${ECHO_T}yes" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 27546 | |
| 27547 | cat >>confdefs.h <<\_ACEOF |
| 27548 | #define HAVE_DEV_PTC 1 |
| 27549 | _ACEOF |
| 27550 | |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 27551 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27552 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27553 | echo "${ECHO_T}no" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 27554 | fi |
| 27555 | |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 27556 | if test "$have_long_long" = yes |
| 27557 | then |
| 27558 | { echo "$as_me:$LINENO: checking for %lld and %llu printf() format support" >&5 |
| 27559 | echo $ECHO_N "checking for %lld and %llu printf() format support... $ECHO_C" >&6; } |
| 27560 | if test "${ac_cv_have_long_long_format+set}" = set; then |
| 27561 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27562 | else |
| 27563 | if test "$cross_compiling" = yes; then |
| 27564 | ac_cv_have_long_long_format=no |
| 27565 | else |
| 27566 | cat >conftest.$ac_ext <<_ACEOF |
| 27567 | /* confdefs.h. */ |
| 27568 | _ACEOF |
| 27569 | cat confdefs.h >>conftest.$ac_ext |
| 27570 | cat >>conftest.$ac_ext <<_ACEOF |
| 27571 | /* end confdefs.h. */ |
| 27572 | |
| 27573 | #include <stdio.h> |
| 27574 | #include <stddef.h> |
| 27575 | #include <string.h> |
| 27576 | |
| 27577 | #ifdef HAVE_SYS_TYPES_H |
| 27578 | #include <sys/types.h> |
| 27579 | #endif |
| 27580 | |
| 27581 | int main() |
| 27582 | { |
| 27583 | char buffer[256]; |
| 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, "%lld", (long long)-123) < 0) |
| 27591 | return 1; |
| 27592 | if (strcmp(buffer, "-123")) |
| 27593 | return 1; |
| 27594 | |
| 27595 | if (sprintf(buffer, "%llu", (unsigned long long)123) < 0) |
| 27596 | return 1; |
| 27597 | if (strcmp(buffer, "123")) |
| 27598 | return 1; |
| 27599 | |
| 27600 | return 0; |
| 27601 | } |
| 27602 | |
| 27603 | _ACEOF |
| 27604 | rm -f conftest$ac_exeext |
| 27605 | if { (ac_try="$ac_link" |
| 27606 | case "(($ac_try" in |
| 27607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27608 | *) ac_try_echo=$ac_try;; |
| 27609 | esac |
| 27610 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27611 | (eval "$ac_link") 2>&5 |
| 27612 | ac_status=$? |
| 27613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27614 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 27615 | { (case "(($ac_try" in |
| 27616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27617 | *) ac_try_echo=$ac_try;; |
| 27618 | esac |
| 27619 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27620 | (eval "$ac_try") 2>&5 |
| 27621 | ac_status=$? |
| 27622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27623 | (exit $ac_status); }; }; then |
| 27624 | ac_cv_have_long_long_format=yes |
| 27625 | else |
| 27626 | echo "$as_me: program exited with status $ac_status" >&5 |
| 27627 | echo "$as_me: failed program was:" >&5 |
| 27628 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27629 | |
| 27630 | ( exit $ac_status ) |
| 27631 | ac_cv_have_long_long_format=no |
| 27632 | fi |
| 27633 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 27634 | fi |
| 27635 | |
| 27636 | |
| 27637 | |
| 27638 | fi |
| 27639 | |
| 27640 | { echo "$as_me:$LINENO: result: $ac_cv_have_long_long_format" >&5 |
| 27641 | echo "${ECHO_T}$ac_cv_have_long_long_format" >&6; } |
| 27642 | fi |
| 27643 | |
Mark Dickinson | 5ce8474 | 2009-12-31 20:48:04 +0000 | [diff] [blame] | 27644 | if test "$ac_cv_have_long_long_format" = yes |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 27645 | then |
| 27646 | |
| 27647 | cat >>confdefs.h <<\_ACEOF |
| 27648 | #define PY_FORMAT_LONG_LONG "ll" |
| 27649 | _ACEOF |
| 27650 | |
| 27651 | fi |
| 27652 | |
Ronald Oussoren | 315cd0c | 2009-11-19 16:25:21 +0000 | [diff] [blame] | 27653 | if test $ac_sys_system = Darwin |
| 27654 | then |
| 27655 | LIBS="$LIBS -framework CoreFoundation" |
| 27656 | fi |
| 27657 | |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 27658 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27659 | { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5 |
| 27660 | echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27661 | if test "${ac_cv_have_size_t_format+set}" = set; then |
| 27662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27663 | else |
| 27664 | if test "$cross_compiling" = yes; then |
Gregory P. Smith | c9ff3a7 | 2009-11-02 02:03:16 +0000 | [diff] [blame] | 27665 | ac_cv_have_size_t_format="cross -- assuming yes" |
| 27666 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27667 | else |
| 27668 | cat >conftest.$ac_ext <<_ACEOF |
| 27669 | /* confdefs.h. */ |
| 27670 | _ACEOF |
| 27671 | cat confdefs.h >>conftest.$ac_ext |
| 27672 | cat >>conftest.$ac_ext <<_ACEOF |
| 27673 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27674 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27675 | #include <stdio.h> |
| 27676 | #include <stddef.h> |
| 27677 | #include <string.h> |
| 27678 | |
Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 27679 | #ifdef HAVE_SYS_TYPES_H |
| 27680 | #include <sys/types.h> |
| 27681 | #endif |
Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 27682 | |
| 27683 | #ifdef HAVE_SSIZE_T |
| 27684 | typedef ssize_t Py_ssize_t; |
| 27685 | #elif SIZEOF_VOID_P == SIZEOF_LONG |
| 27686 | typedef long Py_ssize_t; |
| 27687 | #else |
| 27688 | typedef int Py_ssize_t; |
| 27689 | #endif |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27690 | |
Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 27691 | int main() |
| 27692 | { |
| 27693 | char buffer[256]; |
| 27694 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27695 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
| 27696 | return 1; |
| 27697 | |
Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 27698 | if (strcmp(buffer, "123")) |
| 27699 | return 1; |
| 27700 | |
| 27701 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) |
| 27702 | return 1; |
| 27703 | |
| 27704 | if (strcmp(buffer, "-123")) |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27705 | return 1; |
| 27706 | |
| 27707 | return 0; |
| 27708 | } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27709 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27710 | _ACEOF |
| 27711 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27712 | if { (ac_try="$ac_link" |
| 27713 | case "(($ac_try" in |
| 27714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27715 | *) ac_try_echo=$ac_try;; |
| 27716 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27718 | (eval "$ac_link") 2>&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27719 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27721 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27722 | { (case "(($ac_try" in |
| 27723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27724 | *) ac_try_echo=$ac_try;; |
| 27725 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27727 | (eval "$ac_try") 2>&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27728 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27730 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27731 | ac_cv_have_size_t_format=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27732 | else |
| 27733 | echo "$as_me: program exited with status $ac_status" >&5 |
| 27734 | echo "$as_me: failed program was:" >&5 |
| 27735 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27736 | |
| 27737 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27738 | ac_cv_have_size_t_format=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27739 | fi |
| 27740 | 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] | 27741 | fi |
| 27742 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27743 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27744 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27745 | { echo "$as_me:$LINENO: result: $ac_cv_have_size_t_format" >&5 |
| 27746 | echo "${ECHO_T}$ac_cv_have_size_t_format" >&6; } |
Gregory P. Smith | c9ff3a7 | 2009-11-02 02:03:16 +0000 | [diff] [blame] | 27747 | if test "$ac_cv_have_size_t_format" != no ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27748 | |
| 27749 | cat >>confdefs.h <<\_ACEOF |
| 27750 | #define PY_FORMAT_SIZE_T "z" |
| 27751 | _ACEOF |
| 27752 | |
| 27753 | fi |
| 27754 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27755 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 27756 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27757 | if test "${ac_cv_type_socklen_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27759 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27760 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27761 | /* confdefs.h. */ |
| 27762 | _ACEOF |
| 27763 | cat confdefs.h >>conftest.$ac_ext |
| 27764 | cat >>conftest.$ac_ext <<_ACEOF |
| 27765 | /* end confdefs.h. */ |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 27766 | |
| 27767 | #ifdef HAVE_SYS_TYPES_H |
| 27768 | #include <sys/types.h> |
| 27769 | #endif |
| 27770 | #ifdef HAVE_SYS_SOCKET_H |
| 27771 | #include <sys/socket.h> |
| 27772 | #endif |
| 27773 | |
| 27774 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27775 | typedef socklen_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27776 | int |
| 27777 | main () |
| 27778 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27779 | if ((ac__type_new_ *) 0) |
| 27780 | return 0; |
| 27781 | if (sizeof (ac__type_new_)) |
| 27782 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27783 | ; |
| 27784 | return 0; |
| 27785 | } |
| 27786 | _ACEOF |
| 27787 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27788 | if { (ac_try="$ac_compile" |
| 27789 | case "(($ac_try" in |
| 27790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27791 | *) ac_try_echo=$ac_try;; |
| 27792 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27793 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27794 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27795 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27796 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27797 | rm -f conftest.er1 |
| 27798 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27800 | (exit $ac_status); } && { |
| 27801 | test -z "$ac_c_werror_flag" || |
| 27802 | test ! -s conftest.err |
| 27803 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27804 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27805 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27806 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27807 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27808 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27809 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27810 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27811 | |
| 27812 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27813 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27814 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 27815 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } |
| 27816 | if test $ac_cv_type_socklen_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27817 | : |
| 27818 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27819 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 27820 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27821 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27822 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27823 | |
| 27824 | fi |
| 27825 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27826 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27827 | |
| 27828 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 27829 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 27830 | do |
| 27831 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 27832 | done |
| 27833 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27834 | |
Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 27835 | SRCDIRS="Parser Grammar Objects Python Modules Mac" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27836 | { echo "$as_me:$LINENO: checking for build directories" >&5 |
| 27837 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 27838 | for dir in $SRCDIRS; do |
| 27839 | if test ! -d $dir; then |
| 27840 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 27841 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 27842 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27843 | { echo "$as_me:$LINENO: result: done" >&5 |
| 27844 | echo "${ECHO_T}done" >&6; } |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 27845 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 27846 | # generate output files |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 27847 | 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] | 27848 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27849 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27850 | # This file is a shell script that caches the results of configure |
| 27851 | # 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] | 27852 | # scripts and configure runs, see configure's option --config-cache. |
| 27853 | # It is not useful on other systems. If it contains results you don't |
| 27854 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27855 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27856 | # config.status only pays attention to the cache file if you give it |
| 27857 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27858 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27859 | # `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] | 27860 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 27861 | # following values. |
| 27862 | |
| 27863 | _ACEOF |
| 27864 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 27865 | # The following way of writing the cache mishandles newlines in values, |
| 27866 | # 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] | 27867 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 27868 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 27869 | # 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] | 27870 | ( |
| 27871 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 27872 | eval ac_val=\$$ac_var |
| 27873 | case $ac_val in #( |
| 27874 | *${as_nl}*) |
| 27875 | case $ac_var in #( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27876 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 27877 | 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] | 27878 | esac |
| 27879 | case $ac_var in #( |
| 27880 | _ | IFS | as_nl) ;; #( |
| 27881 | *) $as_unset $ac_var ;; |
| 27882 | esac ;; |
| 27883 | esac |
| 27884 | done |
| 27885 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27886 | (set) 2>&1 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27887 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 27888 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27889 | # `set' does not quote correctly, so add quotes (double-quote |
| 27890 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 27891 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27892 | "s/'/'\\\\''/g; |
| 27893 | 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] | 27894 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27895 | *) |
| 27896 | # `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] | 27897 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27898 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27899 | esac | |
| 27900 | sort |
| 27901 | ) | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27902 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27903 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27904 | t clear |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27905 | :clear |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27906 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 27907 | t end |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27908 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 27909 | :end' >>confcache |
| 27910 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 27911 | if test -w "$cache_file"; then |
| 27912 | test "x$cache_file" != "x/dev/null" && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27913 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 27914 | echo "$as_me: updating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27915 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 27916 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27917 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 27918 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 27919 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27920 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 27921 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 27922 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27923 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 27924 | # Let make expand exec_prefix. |
| 27925 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 27926 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27927 | DEFS=-DHAVE_CONFIG_H |
| 27928 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27929 | ac_libobjs= |
| 27930 | ac_ltlibobjs= |
| 27931 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 27932 | # 1. Remove the extension, and $U if already installed. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27933 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27934 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27935 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 27936 | # will be set to the directory where LIBOBJS objects are built. |
| 27937 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 27938 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27939 | done |
| 27940 | LIBOBJS=$ac_libobjs |
| 27941 | |
| 27942 | LTLIBOBJS=$ac_ltlibobjs |
| 27943 | |
| 27944 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27945 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27946 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27947 | ac_clean_files_save=$ac_clean_files |
| 27948 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27949 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 27950 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 27951 | cat >$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27952 | #! $SHELL |
| 27953 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 27954 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27955 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27956 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 27957 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27958 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27959 | ac_cs_recheck=false |
| 27960 | ac_cs_silent=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27961 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 27962 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 27963 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27964 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27965 | ## --------------------- ## |
| 27966 | ## M4sh Initialization. ## |
| 27967 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 27968 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27969 | # Be more Bourne compatible |
| 27970 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27971 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 27972 | emulate sh |
| 27973 | NULLCMD=: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27974 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27975 | # is contrary to our usage. Disable this feature. |
| 27976 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27977 | setopt NO_GLOB_SUBST |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 27978 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27979 | case `(set -o) 2>/dev/null` in |
| 27980 | *posix*) set -o posix ;; |
| 27981 | esac |
| 27982 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27983 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27984 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27985 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27986 | |
| 27987 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27988 | # PATH needs CR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27989 | # Avoid depending upon Character Ranges. |
| 27990 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 27991 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 27992 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 27993 | as_cr_digits='0123456789' |
| 27994 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 27995 | |
| 27996 | # The user is always right. |
| 27997 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27998 | echo "#! /bin/sh" >conf$$.sh |
| 27999 | echo "exit 0" >>conf$$.sh |
| 28000 | chmod +x conf$$.sh |
| 28001 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 28002 | PATH_SEPARATOR=';' |
| 28003 | else |
| 28004 | PATH_SEPARATOR=: |
| 28005 | fi |
| 28006 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28007 | fi |
| 28008 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28009 | # Support unset when possible. |
| 28010 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 28011 | as_unset=unset |
| 28012 | else |
| 28013 | as_unset=false |
| 28014 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28015 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28016 | |
| 28017 | # IFS |
| 28018 | # We need space, tab and new line, in precisely that order. Quoting is |
| 28019 | # there to prevent editors from complaining about space-tab. |
| 28020 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 28021 | # splitting by setting IFS to empty value.) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28022 | as_nl=' |
| 28023 | ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28024 | IFS=" "" $as_nl" |
| 28025 | |
| 28026 | # Find who we are. Look in the path if we contain no directory separator. |
| 28027 | case $0 in |
| 28028 | *[\\/]* ) as_myself=$0 ;; |
| 28029 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28030 | for as_dir in $PATH |
| 28031 | do |
| 28032 | IFS=$as_save_IFS |
| 28033 | test -z "$as_dir" && as_dir=. |
| 28034 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 28035 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28036 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28037 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28038 | ;; |
| 28039 | esac |
| 28040 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 28041 | # in which case we are not to be found in the path. |
| 28042 | if test "x$as_myself" = x; then |
| 28043 | as_myself=$0 |
| 28044 | fi |
| 28045 | if test ! -f "$as_myself"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28046 | 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] | 28047 | { (exit 1); exit 1; } |
| 28048 | fi |
| 28049 | |
| 28050 | # Work around bugs in pre-3.0 UWIN ksh. |
| 28051 | for as_var in ENV MAIL MAILPATH |
| 28052 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 28053 | done |
| 28054 | PS1='$ ' |
| 28055 | PS2='> ' |
| 28056 | PS4='+ ' |
| 28057 | |
| 28058 | # NLS nuisances. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28059 | for as_var in \ |
| 28060 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 28061 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 28062 | LC_TELEPHONE LC_TIME |
| 28063 | do |
| 28064 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 28065 | eval $as_var=C; export $as_var |
| 28066 | else |
| 28067 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 28068 | fi |
| 28069 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28070 | |
| 28071 | # Required to use basename. |
| 28072 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 28073 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 28074 | as_expr=expr |
| 28075 | else |
| 28076 | as_expr=false |
| 28077 | fi |
| 28078 | |
| 28079 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 28080 | as_basename=basename |
| 28081 | else |
| 28082 | as_basename=false |
| 28083 | fi |
| 28084 | |
| 28085 | |
| 28086 | # Name of the executable. |
| 28087 | as_me=`$as_basename -- "$0" || |
| 28088 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 28089 | X"$0" : 'X\(//\)$' \| \ |
| 28090 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28091 | echo X/"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28092 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 28093 | s//\1/ |
| 28094 | q |
| 28095 | } |
| 28096 | /^X\/\(\/\/\)$/{ |
| 28097 | s//\1/ |
| 28098 | q |
| 28099 | } |
| 28100 | /^X\/\(\/\).*/{ |
| 28101 | s//\1/ |
| 28102 | q |
| 28103 | } |
| 28104 | s/.*/./; q'` |
| 28105 | |
| 28106 | # CDPATH. |
| 28107 | $as_unset CDPATH |
| 28108 | |
| 28109 | |
| 28110 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28111 | as_lineno_1=$LINENO |
| 28112 | as_lineno_2=$LINENO |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28113 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28114 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 28115 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28116 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 28117 | # 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] | 28118 | # line-number line after each line using $LINENO; the second 'sed' |
| 28119 | # does the real work. The second script uses 'N' to pair each |
| 28120 | # line-number line with the line containing $LINENO, and appends |
| 28121 | # trailing '-' during substitution so that $LINENO is not a special |
| 28122 | # case at line end. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28123 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28124 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 28125 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 28126 | sed -n ' |
| 28127 | p |
| 28128 | /[$]LINENO/= |
| 28129 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28130 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28131 | s/[$]LINENO.*/&-/ |
| 28132 | t lineno |
| 28133 | b |
| 28134 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28135 | N |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28136 | :loop |
| 28137 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28138 | t loop |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28139 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28140 | ' >$as_me.lineno && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28141 | chmod +x "$as_me.lineno" || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28142 | { 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] | 28143 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 28144 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28145 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 28146 | # (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] | 28147 | # original and so on. Autoconf is especially sensitive to this). |
| 28148 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28149 | # Exit status is that of the last command. |
| 28150 | exit |
| 28151 | } |
| 28152 | |
| 28153 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28154 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 28155 | as_dirname=dirname |
| 28156 | else |
| 28157 | as_dirname=false |
| 28158 | fi |
| 28159 | |
| 28160 | ECHO_C= ECHO_N= ECHO_T= |
| 28161 | case `echo -n x` in |
| 28162 | -n*) |
| 28163 | case `echo 'x\c'` in |
| 28164 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 28165 | *) ECHO_C='\c';; |
| 28166 | esac;; |
| 28167 | *) |
| 28168 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28169 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28170 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28171 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 28172 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28173 | as_expr=expr |
| 28174 | else |
| 28175 | as_expr=false |
| 28176 | fi |
| 28177 | |
| 28178 | rm -f conf$$ conf$$.exe conf$$.file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28179 | if test -d conf$$.dir; then |
| 28180 | rm -f conf$$.dir/conf$$.file |
| 28181 | else |
| 28182 | rm -f conf$$.dir |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28183 | mkdir conf$$.dir |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28184 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28185 | echo >conf$$.file |
| 28186 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 28187 | as_ln_s='ln -s' |
| 28188 | # ... but there are two gotchas: |
| 28189 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 28190 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 28191 | # In both cases, we have to default to `cp -p'. |
| 28192 | 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] | 28193 | as_ln_s='cp -p' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28194 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 28195 | as_ln_s=ln |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28196 | else |
| 28197 | as_ln_s='cp -p' |
| 28198 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28199 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 28200 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28201 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28202 | if mkdir -p . 2>/dev/null; then |
| 28203 | as_mkdir_p=: |
| 28204 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28205 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28206 | as_mkdir_p=false |
| 28207 | fi |
| 28208 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28209 | if test -x / >/dev/null 2>&1; then |
| 28210 | as_test_x='test -x' |
| 28211 | else |
| 28212 | if ls -dL / >/dev/null 2>&1; then |
| 28213 | as_ls_L_option=L |
| 28214 | else |
| 28215 | as_ls_L_option= |
| 28216 | fi |
| 28217 | as_test_x=' |
| 28218 | eval sh -c '\'' |
| 28219 | if test -d "$1"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28220 | test -d "$1/."; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28221 | else |
| 28222 | case $1 in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28223 | -*)set "./$1";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28224 | esac; |
| 28225 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 28226 | ???[sx]*):;;*)false;;esac;fi |
| 28227 | '\'' sh |
| 28228 | ' |
| 28229 | fi |
| 28230 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28231 | |
| 28232 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28233 | 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] | 28234 | |
| 28235 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28236 | 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] | 28237 | |
| 28238 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28239 | exec 6>&1 |
| 28240 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28241 | # 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] | 28242 | # 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] | 28243 | # values after options handling. |
| 28244 | ac_log=" |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 28245 | This file was extended by python $as_me 2.7, which was |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28246 | generated by GNU Autoconf 2.61. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28247 | |
| 28248 | CONFIG_FILES = $CONFIG_FILES |
| 28249 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 28250 | CONFIG_LINKS = $CONFIG_LINKS |
| 28251 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 28252 | $ $0 $@ |
| 28253 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28254 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 28255 | " |
| 28256 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28257 | _ACEOF |
| 28258 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28259 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28260 | # Files that config.status was made for. |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 28261 | config_files="$ac_config_files" |
| 28262 | config_headers="$ac_config_headers" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28263 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28264 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28265 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28266 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28267 | ac_cs_usage="\ |
| 28268 | \`$as_me' instantiates files from templates according to the |
| 28269 | current configuration. |
| 28270 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28271 | Usage: $0 [OPTIONS] [FILE]... |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28272 | |
| 28273 | -h, --help print this help, then exit |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28274 | -V, --version print version number and configuration settings, then exit |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28275 | -q, --quiet do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28276 | -d, --debug don't remove temporary files |
| 28277 | --recheck update $as_me by reconfiguring in the same conditions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28278 | --file=FILE[:TEMPLATE] |
| 28279 | instantiate the configuration file FILE |
| 28280 | --header=FILE[:TEMPLATE] |
| 28281 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28282 | |
| 28283 | Configuration files: |
| 28284 | $config_files |
| 28285 | |
| 28286 | Configuration headers: |
| 28287 | $config_headers |
| 28288 | |
| 28289 | Report bugs to <bug-autoconf@gnu.org>." |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 28290 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28291 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28292 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28293 | ac_cs_version="\\ |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 28294 | python config.status 2.7 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28295 | configured by $0, generated by GNU Autoconf 2.61, |
| 28296 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28297 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28298 | Copyright (C) 2006 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28299 | This config.status script is free software; the Free Software Foundation |
| 28300 | gives unlimited permission to copy, distribute and modify it." |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28301 | |
| 28302 | ac_pwd='$ac_pwd' |
| 28303 | srcdir='$srcdir' |
| 28304 | INSTALL='$INSTALL' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28305 | _ACEOF |
| 28306 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28307 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 28308 | # If no file are specified by the user, then we need to provide default |
| 28309 | # 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] | 28310 | ac_need_defaults=: |
| 28311 | while test $# != 0 |
| 28312 | do |
| 28313 | case $1 in |
| 28314 | --*=*) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28315 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 28316 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28317 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28318 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28319 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28320 | ac_option=$1 |
| 28321 | ac_optarg=$2 |
| 28322 | ac_shift=shift |
| 28323 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28324 | esac |
| 28325 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28326 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28327 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28328 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 28329 | ac_cs_recheck=: ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28330 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28331 | echo "$ac_cs_version"; exit ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28332 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28333 | debug=: ;; |
| 28334 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28335 | $ac_shift |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28336 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28337 | ac_need_defaults=false;; |
| 28338 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28339 | $ac_shift |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28340 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28341 | ac_need_defaults=false;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28342 | --he | --h) |
| 28343 | # Conflict between --help and --header |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28344 | { echo "$as_me: error: ambiguous option: $1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28345 | Try \`$0 --help' for more information." >&2 |
| 28346 | { (exit 1); exit 1; }; };; |
| 28347 | --help | --hel | -h ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28348 | echo "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28349 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 28350 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 28351 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28352 | |
| 28353 | # This is an error. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28354 | -*) { echo "$as_me: error: unrecognized option: $1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28355 | Try \`$0 --help' for more information." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28356 | { (exit 1); exit 1; }; } ;; |
| 28357 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28358 | *) ac_config_targets="$ac_config_targets $1" |
| 28359 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28360 | |
| 28361 | esac |
| 28362 | shift |
| 28363 | done |
| 28364 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28365 | ac_configure_extra_args= |
| 28366 | |
| 28367 | if $ac_cs_silent; then |
| 28368 | exec 6>/dev/null |
| 28369 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 28370 | fi |
| 28371 | |
| 28372 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28373 | cat >>$CONFIG_STATUS <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28374 | if \$ac_cs_recheck; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28375 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 28376 | CONFIG_SHELL=$SHELL |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28377 | export CONFIG_SHELL |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28378 | 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] | 28379 | fi |
| 28380 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28381 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28382 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28383 | exec 5>>config.log |
| 28384 | { |
| 28385 | echo |
| 28386 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 28387 | ## Running $as_me. ## |
| 28388 | _ASBOX |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28389 | echo "$ac_log" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28390 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28391 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28392 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28393 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28394 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28395 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28396 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28397 | |
| 28398 | # Handling of arguments. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28399 | for ac_config_target in $ac_config_targets |
| 28400 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28401 | case $ac_config_target in |
| 28402 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 28403 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; |
| 28404 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; |
| 28405 | "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;; |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 28406 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; |
| 28407 | "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] | 28408 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 28409 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 28410 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28411 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28412 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 28413 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28414 | { (exit 1); exit 1; }; };; |
| 28415 | esac |
| 28416 | done |
| 28417 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28418 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28419 | # If the user did not use the arguments to specify the items to instantiate, |
| 28420 | # then the envvar interface is used. Set only those that are not. |
| 28421 | # We use the long form for the default assignment because of an extremely |
| 28422 | # bizarre bug on SunOS 4.1.3. |
| 28423 | if $ac_need_defaults; then |
| 28424 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 28425 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 28426 | fi |
| 28427 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28428 | # 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] | 28429 | # 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] | 28430 | # creating and moving files from /tmp can sometimes cause problems. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28431 | # Hook for its removal unless debugging. |
| 28432 | # Note that there is a small window in which the directory will not be cleaned: |
| 28433 | # 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] | 28434 | $debug || |
| 28435 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28436 | tmp= |
| 28437 | trap 'exit_status=$? |
| 28438 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 28439 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28440 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 28441 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28442 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28443 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28444 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28445 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28446 | test -n "$tmp" && test -d "$tmp" |
| 28447 | } || |
| 28448 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28449 | tmp=./conf$$-$RANDOM |
| 28450 | (umask 077 && mkdir "$tmp") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28451 | } || |
| 28452 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28453 | echo "$me: cannot create a temporary directory in ." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28454 | { (exit 1); exit 1; } |
| 28455 | } |
| 28456 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28457 | # |
| 28458 | # Set up the sed scripts for CONFIG_FILES section. |
| 28459 | # |
| 28460 | |
| 28461 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 28462 | # This happens for instance when ./config.status config.h |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28463 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28464 | |
| 28465 | _ACEOF |
| 28466 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28467 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28468 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28469 | ac_delim='%!_!# ' |
| 28470 | for ac_last_try in false false false false false :; do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28471 | cat >conf$$subs.sed <<_ACEOF |
| 28472 | SHELL!$SHELL$ac_delim |
| 28473 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 28474 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 28475 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 28476 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 28477 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 28478 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 28479 | exec_prefix!$exec_prefix$ac_delim |
| 28480 | prefix!$prefix$ac_delim |
| 28481 | program_transform_name!$program_transform_name$ac_delim |
| 28482 | bindir!$bindir$ac_delim |
| 28483 | sbindir!$sbindir$ac_delim |
| 28484 | libexecdir!$libexecdir$ac_delim |
| 28485 | datarootdir!$datarootdir$ac_delim |
| 28486 | datadir!$datadir$ac_delim |
| 28487 | sysconfdir!$sysconfdir$ac_delim |
| 28488 | sharedstatedir!$sharedstatedir$ac_delim |
| 28489 | localstatedir!$localstatedir$ac_delim |
| 28490 | includedir!$includedir$ac_delim |
| 28491 | oldincludedir!$oldincludedir$ac_delim |
| 28492 | docdir!$docdir$ac_delim |
| 28493 | infodir!$infodir$ac_delim |
| 28494 | htmldir!$htmldir$ac_delim |
| 28495 | dvidir!$dvidir$ac_delim |
| 28496 | pdfdir!$pdfdir$ac_delim |
| 28497 | psdir!$psdir$ac_delim |
| 28498 | libdir!$libdir$ac_delim |
| 28499 | localedir!$localedir$ac_delim |
| 28500 | mandir!$mandir$ac_delim |
| 28501 | DEFS!$DEFS$ac_delim |
| 28502 | ECHO_C!$ECHO_C$ac_delim |
| 28503 | ECHO_N!$ECHO_N$ac_delim |
| 28504 | ECHO_T!$ECHO_T$ac_delim |
| 28505 | LIBS!$LIBS$ac_delim |
| 28506 | build_alias!$build_alias$ac_delim |
| 28507 | host_alias!$host_alias$ac_delim |
| 28508 | target_alias!$target_alias$ac_delim |
| 28509 | VERSION!$VERSION$ac_delim |
| 28510 | SOVERSION!$SOVERSION$ac_delim |
| 28511 | CONFIG_ARGS!$CONFIG_ARGS$ac_delim |
| 28512 | UNIVERSALSDK!$UNIVERSALSDK$ac_delim |
| 28513 | ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 28514 | LIPO_32BIT_FLAGS!$LIPO_32BIT_FLAGS$ac_delim |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28515 | PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim |
| 28516 | PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim |
| 28517 | PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim |
| 28518 | PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim |
| 28519 | PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim |
| 28520 | FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim |
| 28521 | FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim |
| 28522 | FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim |
| 28523 | FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim |
| 28524 | FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 28525 | FRAMEWORKINSTALLAPPSPREFIX!$FRAMEWORKINSTALLAPPSPREFIX$ac_delim |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28526 | MACHDEP!$MACHDEP$ac_delim |
| 28527 | SGI_ABI!$SGI_ABI$ac_delim |
| 28528 | EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim |
| 28529 | EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim |
| 28530 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim |
| 28531 | EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim |
| 28532 | CC!$CC$ac_delim |
| 28533 | CFLAGS!$CFLAGS$ac_delim |
| 28534 | LDFLAGS!$LDFLAGS$ac_delim |
| 28535 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 28536 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 28537 | EXEEXT!$EXEEXT$ac_delim |
| 28538 | OBJEXT!$OBJEXT$ac_delim |
| 28539 | CXX!$CXX$ac_delim |
| 28540 | MAINCC!$MAINCC$ac_delim |
| 28541 | CPP!$CPP$ac_delim |
| 28542 | GREP!$GREP$ac_delim |
| 28543 | EGREP!$EGREP$ac_delim |
| 28544 | BUILDEXEEXT!$BUILDEXEEXT$ac_delim |
| 28545 | LIBRARY!$LIBRARY$ac_delim |
| 28546 | LDLIBRARY!$LDLIBRARY$ac_delim |
| 28547 | DLLLIBRARY!$DLLLIBRARY$ac_delim |
| 28548 | BLDLIBRARY!$BLDLIBRARY$ac_delim |
| 28549 | LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim |
| 28550 | INSTSONAME!$INSTSONAME$ac_delim |
| 28551 | RUNSHARED!$RUNSHARED$ac_delim |
| 28552 | LINKCC!$LINKCC$ac_delim |
| 28553 | GNULD!$GNULD$ac_delim |
| 28554 | RANLIB!$RANLIB$ac_delim |
| 28555 | AR!$AR$ac_delim |
| 28556 | ARFLAGS!$ARFLAGS$ac_delim |
| 28557 | SVNVERSION!$SVNVERSION$ac_delim |
| 28558 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 28559 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 28560 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 28561 | LN!$LN$ac_delim |
| 28562 | OPT!$OPT$ac_delim |
| 28563 | BASECFLAGS!$BASECFLAGS$ac_delim |
| 28564 | UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim |
| 28565 | OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim |
| 28566 | LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim |
| 28567 | SO!$SO$ac_delim |
| 28568 | LDSHARED!$LDSHARED$ac_delim |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28569 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28570 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28571 | 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] | 28572 | break |
| 28573 | elif $ac_last_try; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28574 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 28575 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28576 | { (exit 1); exit 1; }; } |
| 28577 | else |
| 28578 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28579 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28580 | done |
| 28581 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28582 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 28583 | if test -n "$ac_eof"; then |
| 28584 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 28585 | ac_eof=`expr $ac_eof + 1` |
| 28586 | fi |
| 28587 | |
| 28588 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28589 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 28590 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28591 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28592 | sed ' |
| 28593 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 28594 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 28595 | :n |
| 28596 | t n |
| 28597 | s/'"$ac_delim"'$/,g/; t |
| 28598 | s/$/\\/; p |
| 28599 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 28600 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 28601 | rm -f conf$$subs.sed |
| 28602 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28603 | CEOF$ac_eof |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28604 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28605 | |
| 28606 | |
| 28607 | ac_delim='%!_!# ' |
| 28608 | for ac_last_try in false false false false false :; do |
| 28609 | cat >conf$$subs.sed <<_ACEOF |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 28610 | LDCXXSHARED!$LDCXXSHARED$ac_delim |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 28611 | BLDSHARED!$BLDSHARED$ac_delim |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 28612 | CCSHARED!$CCSHARED$ac_delim |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28613 | LINKFORSHARED!$LINKFORSHARED$ac_delim |
| 28614 | CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim |
| 28615 | SHLIBS!$SHLIBS$ac_delim |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 28616 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
| 28617 | LIBFFI_INCLUDEDIR!$LIBFFI_INCLUDEDIR$ac_delim |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28618 | USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim |
| 28619 | SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim |
| 28620 | USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim |
| 28621 | LDLAST!$LDLAST$ac_delim |
| 28622 | THREADOBJ!$THREADOBJ$ac_delim |
| 28623 | DLINCLDIR!$DLINCLDIR$ac_delim |
| 28624 | DYNLOADFILE!$DYNLOADFILE$ac_delim |
| 28625 | MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim |
| 28626 | TRUE!$TRUE$ac_delim |
| 28627 | LIBOBJS!$LIBOBJS$ac_delim |
| 28628 | HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim |
| 28629 | HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim |
| 28630 | HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim |
| 28631 | HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim |
| 28632 | HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim |
| 28633 | LIBM!$LIBM$ac_delim |
| 28634 | LIBC!$LIBC$ac_delim |
| 28635 | UNICODE_OBJS!$UNICODE_OBJS$ac_delim |
| 28636 | THREADHEADERS!$THREADHEADERS$ac_delim |
| 28637 | SRCDIRS!$SRCDIRS$ac_delim |
| 28638 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 28639 | _ACEOF |
| 28640 | |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 28641 | 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] | 28642 | break |
| 28643 | elif $ac_last_try; then |
| 28644 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 28645 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28646 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28647 | else |
| 28648 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 28649 | fi |
| 28650 | done |
| 28651 | |
| 28652 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 28653 | if test -n "$ac_eof"; then |
| 28654 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 28655 | ac_eof=`expr $ac_eof + 1` |
| 28656 | fi |
| 28657 | |
| 28658 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28659 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 28660 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28661 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28662 | sed ' |
| 28663 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 28664 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 28665 | :n |
| 28666 | t n |
| 28667 | s/'"$ac_delim"'$/,g/; t |
| 28668 | s/$/\\/; p |
| 28669 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 28670 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 28671 | rm -f conf$$subs.sed |
| 28672 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28673 | :end |
| 28674 | s/|#_!!_#|//g |
| 28675 | CEOF$ac_eof |
| 28676 | _ACEOF |
| 28677 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28678 | |
| 28679 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 28680 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 28681 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 28682 | # (actually we leave an empty line to preserve line numbers). |
| 28683 | if test "x$srcdir" = x.; then |
| 28684 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 28685 | s/:*\$(srcdir):*/:/ |
| 28686 | s/:*\${srcdir}:*/:/ |
| 28687 | s/:*@srcdir@:*/:/ |
| 28688 | s/^\([^=]*=[ ]*\):*/\1/ |
| 28689 | s/:*$// |
| 28690 | s/^[^=]*=[ ]*$// |
| 28691 | }' |
| 28692 | fi |
| 28693 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28694 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28695 | fi # test -n "$CONFIG_FILES" |
| 28696 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28697 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28698 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28699 | do |
| 28700 | case $ac_tag in |
| 28701 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 28702 | esac |
| 28703 | case $ac_mode$ac_tag in |
| 28704 | :[FHL]*:*);; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28705 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 28706 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28707 | { (exit 1); exit 1; }; };; |
| 28708 | :[FH]-) ac_tag=-:-;; |
| 28709 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 28710 | esac |
| 28711 | ac_save_IFS=$IFS |
| 28712 | IFS=: |
| 28713 | set x $ac_tag |
| 28714 | IFS=$ac_save_IFS |
| 28715 | shift |
| 28716 | ac_file=$1 |
| 28717 | shift |
| 28718 | |
| 28719 | case $ac_mode in |
| 28720 | :L) ac_source=$1;; |
| 28721 | :[FH]) |
| 28722 | ac_file_inputs= |
| 28723 | for ac_f |
| 28724 | do |
| 28725 | case $ac_f in |
| 28726 | -) ac_f="$tmp/stdin";; |
| 28727 | *) # Look for the file first in the build tree, then in the source tree |
| 28728 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 28729 | # because $ac_f cannot contain `:'. |
| 28730 | test -f "$ac_f" || |
| 28731 | case $ac_f in |
| 28732 | [\\/$]*) false;; |
| 28733 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 28734 | esac || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28735 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 28736 | 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] | 28737 | { (exit 1); exit 1; }; };; |
| 28738 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28739 | ac_file_inputs="$ac_file_inputs $ac_f" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28740 | done |
| 28741 | |
| 28742 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 28743 | # use $as_me), people would be surprised to read: |
| 28744 | # /* config.h. Generated by config.status. */ |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28745 | configure_input="Generated from "`IFS=: |
| 28746 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28747 | if test x"$ac_file" != x-; then |
| 28748 | configure_input="$ac_file. $configure_input" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28749 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 28750 | echo "$as_me: creating $ac_file" >&6;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28751 | fi |
| 28752 | |
| 28753 | case $ac_tag in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28754 | *:-:* | *:-) cat >"$tmp/stdin";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28755 | esac |
| 28756 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28757 | esac |
| 28758 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28759 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28760 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28761 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 28762 | X"$ac_file" : 'X\(//\)$' \| \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28763 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28764 | echo X"$ac_file" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28765 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 28766 | s//\1/ |
| 28767 | q |
| 28768 | } |
| 28769 | /^X\(\/\/\)[^/].*/{ |
| 28770 | s//\1/ |
| 28771 | q |
| 28772 | } |
| 28773 | /^X\(\/\/\)$/{ |
| 28774 | s//\1/ |
| 28775 | q |
| 28776 | } |
| 28777 | /^X\(\/\).*/{ |
| 28778 | s//\1/ |
| 28779 | q |
| 28780 | } |
| 28781 | s/.*/./; q'` |
| 28782 | { as_dir="$ac_dir" |
| 28783 | case $as_dir in #( |
| 28784 | -*) as_dir=./$as_dir;; |
| 28785 | esac |
| 28786 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28787 | as_dirs= |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28788 | while :; do |
| 28789 | case $as_dir in #( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28790 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28791 | *) as_qdir=$as_dir;; |
| 28792 | esac |
| 28793 | as_dirs="'$as_qdir' $as_dirs" |
| 28794 | as_dir=`$as_dirname -- "$as_dir" || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28795 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28796 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 28797 | X"$as_dir" : 'X\(//\)$' \| \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28798 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28799 | echo X"$as_dir" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28800 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 28801 | s//\1/ |
| 28802 | q |
| 28803 | } |
| 28804 | /^X\(\/\/\)[^/].*/{ |
| 28805 | s//\1/ |
| 28806 | q |
| 28807 | } |
| 28808 | /^X\(\/\/\)$/{ |
| 28809 | s//\1/ |
| 28810 | q |
| 28811 | } |
| 28812 | /^X\(\/\).*/{ |
| 28813 | s//\1/ |
| 28814 | q |
| 28815 | } |
| 28816 | s/.*/./; q'` |
| 28817 | test -d "$as_dir" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28818 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28819 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28820 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 28821 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28822 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28823 | ac_builddir=. |
| 28824 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28825 | case "$ac_dir" in |
| 28826 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 28827 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28828 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28829 | # A ".." for each directory in $ac_dir_suffix. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28830 | 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] | 28831 | case $ac_top_builddir_sub in |
| 28832 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 28833 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 28834 | esac ;; |
| 28835 | esac |
| 28836 | ac_abs_top_builddir=$ac_pwd |
| 28837 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 28838 | # for backward compatibility: |
| 28839 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28840 | |
| 28841 | case $srcdir in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28842 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28843 | ac_srcdir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28844 | ac_top_srcdir=$ac_top_builddir_sub |
| 28845 | ac_abs_top_srcdir=$ac_pwd ;; |
| 28846 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28847 | ac_srcdir=$srcdir$ac_dir_suffix; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28848 | ac_top_srcdir=$srcdir |
| 28849 | ac_abs_top_srcdir=$srcdir ;; |
| 28850 | *) # Relative name. |
| 28851 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 28852 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 28853 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28854 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28855 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28856 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28857 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28858 | case $ac_mode in |
| 28859 | :F) |
| 28860 | # |
| 28861 | # CONFIG_FILE |
| 28862 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28863 | |
| 28864 | case $INSTALL in |
| 28865 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28866 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28867 | esac |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 28868 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28869 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28870 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28871 | # If the template does not know about datarootdir, expand it. |
| 28872 | # FIXME: This hack should be removed a few years after 2.60. |
| 28873 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 28874 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28875 | case `sed -n '/datarootdir/ { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28876 | p |
| 28877 | q |
| 28878 | } |
| 28879 | /@datadir@/p |
| 28880 | /@docdir@/p |
| 28881 | /@infodir@/p |
| 28882 | /@localedir@/p |
| 28883 | /@mandir@/p |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28884 | ' $ac_file_inputs` in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28885 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 28886 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28887 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 28888 | 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] | 28889 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28890 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28891 | ac_datarootdir_hack=' |
| 28892 | s&@datadir@&$datadir&g |
| 28893 | s&@docdir@&$docdir&g |
| 28894 | s&@infodir@&$infodir&g |
| 28895 | s&@localedir@&$localedir&g |
| 28896 | s&@mandir@&$mandir&g |
| 28897 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 28898 | esac |
| 28899 | _ACEOF |
| 28900 | |
| 28901 | # Neutralize VPATH when `$srcdir' = `.'. |
| 28902 | # Shell code in configure.ac might set extrasub. |
| 28903 | # FIXME: do we really want to maintain this feature? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28904 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28905 | sed "$ac_vpsub |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28906 | $extrasub |
| 28907 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28908 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28909 | :t |
| 28910 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28911 | s&@configure_input@&$configure_input&;t t |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28912 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 28913 | s&@srcdir@&$ac_srcdir&;t t |
| 28914 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 28915 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 28916 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 28917 | s&@builddir@&$ac_builddir&;t t |
| 28918 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 28919 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 28920 | s&@INSTALL@&$ac_INSTALL&;t t |
| 28921 | $ac_datarootdir_hack |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28922 | " $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] | 28923 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28924 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 28925 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 28926 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28927 | { 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] | 28928 | which seems to be undefined. Please make sure it is defined." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28929 | 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] | 28930 | 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] | 28931 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28932 | rm -f "$tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28933 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28934 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 28935 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 28936 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28937 | ;; |
| 28938 | :H) |
| 28939 | # |
| 28940 | # CONFIG_HEADER |
| 28941 | # |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28942 | _ACEOF |
| 28943 | |
| 28944 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 28945 | # substitutes the proper values into config.h.in to produce config.h. |
| 28946 | rm -f conftest.defines conftest.tail |
| 28947 | # First, append a space to every undef/define line, to ease matching. |
| 28948 | echo 's/$/ /' >conftest.defines |
| 28949 | # Then, protect against being on the right side of a sed subst, or in |
| 28950 | # an unquoted here document, in config.status. If some macros were |
| 28951 | # called several times there might be several #defines for the same |
| 28952 | # symbol, which is useless. But do not sort them, since the last |
| 28953 | # AC_DEFINE must be honored. |
| 28954 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 28955 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 28956 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 28957 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 28958 | # just an empty string. |
| 28959 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 28960 | ac_dB='\\)[ (].*,\\1define\\2' |
| 28961 | ac_dC=' ' |
| 28962 | ac_dD=' ,' |
| 28963 | |
| 28964 | uniq confdefs.h | |
| 28965 | sed -n ' |
| 28966 | t rset |
| 28967 | :rset |
| 28968 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 28969 | t ok |
| 28970 | d |
| 28971 | :ok |
| 28972 | s/[\\&,]/\\&/g |
| 28973 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 28974 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 28975 | ' >>conftest.defines |
| 28976 | |
| 28977 | # Remove the space that was appended to ease matching. |
| 28978 | # Then replace #undef with comments. This is necessary, for |
| 28979 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 28980 | # on some systems where configure will not decide to define it. |
| 28981 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 28982 | echo 's/ $// |
| 28983 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 28984 | |
| 28985 | # Break up conftest.defines: |
| 28986 | ac_max_sed_lines=50 |
| 28987 | |
| 28988 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 28989 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 28990 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 28991 | # et cetera. |
| 28992 | ac_in='$ac_file_inputs' |
| 28993 | ac_out='"$tmp/out1"' |
| 28994 | ac_nxt='"$tmp/out2"' |
| 28995 | |
| 28996 | while : |
| 28997 | do |
| 28998 | # Write a here document: |
| 28999 | cat >>$CONFIG_STATUS <<_ACEOF |
| 29000 | # First, check the format of the line: |
| 29001 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 29002 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 29003 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 29004 | b |
| 29005 | :def |
| 29006 | _ACEOF |
| 29007 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 29008 | echo 'CEOF |
| 29009 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 29010 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 29011 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 29012 | grep . conftest.tail >/dev/null || break |
| 29013 | rm -f conftest.defines |
| 29014 | mv conftest.tail conftest.defines |
| 29015 | done |
| 29016 | rm -f conftest.defines conftest.tail |
| 29017 | |
| 29018 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 29019 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 29020 | if test x"$ac_file" != x-; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 29021 | echo "/* $configure_input */" >"$tmp/config.h" |
| 29022 | cat "$ac_result" >>"$tmp/config.h" |
| 29023 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 29024 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 29025 | echo "$as_me: $ac_file is unchanged" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 29026 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 29027 | rm -f $ac_file |
| 29028 | mv "$tmp/config.h" $ac_file |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 29029 | fi |
| 29030 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 29031 | echo "/* $configure_input */" |
| 29032 | cat "$ac_result" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 29033 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 29034 | rm -f "$tmp/out12" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 29035 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 29036 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 29037 | |
| 29038 | esac |
| 29039 | |
| 29040 | done # for ac_tag |
| 29041 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 29042 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 29043 | { (exit 0); exit 0; } |
| 29044 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 29045 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 29046 | ac_clean_files=$ac_clean_files_save |
| 29047 | |
| 29048 | |
| 29049 | # configure is writing to config.log, and then calls config.status. |
| 29050 | # config.status does its own redirection, appending to config.log. |
| 29051 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 29052 | # by configure, so config.status won't be able to write to it; its |
| 29053 | # output is simply discarded. So we exec the FD to /dev/null, |
| 29054 | # effectively closing config.log, so it can be properly (re)opened and |
| 29055 | # appended to by config.status. When coming back to configure, we |
| 29056 | # need to make the FD available again. |
| 29057 | if test "$no_create" != yes; then |
| 29058 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 29059 | ac_config_status_args= |
| 29060 | test "$silent" = yes && |
| 29061 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 29062 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 29063 | $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] | 29064 | exec 5>>config.log |
| 29065 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 29066 | # would make configure fail if this is the last instruction. |
| 29067 | $ac_cs_success || { (exit 1); exit 1; } |
| 29068 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 29069 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 29070 | |
Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 29071 | echo "creating Modules/Setup" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 29072 | if test ! -f Modules/Setup |
| 29073 | then |
| 29074 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 29075 | fi |
| 29076 | |
Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 29077 | echo "creating Modules/Setup.local" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 29078 | if test ! -f Modules/Setup.local |
| 29079 | then |
| 29080 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 29081 | fi |
| 29082 | |
| 29083 | echo "creating Makefile" |
| 29084 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 29085 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 29086 | Modules/Setup.local Modules/Setup |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 29087 | |
| 29088 | case $ac_sys_system in |
| 29089 | BeOS) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 29090 | { echo "$as_me:$LINENO: 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 | " >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 29095 | echo "$as_me: WARNING: |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 29096 | |
| 29097 | Support for BeOS is deprecated as of Python 2.6. |
| 29098 | See PEP 11 for the gory details. |
| 29099 | " >&2;} |
| 29100 | ;; |
| 29101 | *) ;; |
| 29102 | esac |
| 29103 | |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 29104 | mv config.c Modules |