Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame^] | 2 | # From configure.in Revision: 77212 . |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.61 for python 2.7. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5 | # |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6 | # Report bugs to <http://bugs.python.org/>. |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 7 | # |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10 | # This configure script is free software; the Free Software Foundation |
| 11 | # gives unlimited permission to copy, distribute and modify it. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12 | ## --------------------- ## |
| 13 | ## M4sh Initialization. ## |
| 14 | ## --------------------- ## |
| 15 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16 | # Be more Bourne compatible |
| 17 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 19 | emulate sh |
| 20 | NULLCMD=: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22 | # is contrary to our usage. Disable this feature. |
| 23 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24 | setopt NO_GLOB_SUBST |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 25 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26 | case `(set -o) 2>/dev/null` in |
| 27 | *posix*) set -o posix ;; |
| 28 | esac |
| 29 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 30 | fi |
| 31 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 32 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 33 | |
| 34 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 35 | # PATH needs CR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 36 | # Avoid depending upon Character Ranges. |
| 37 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 38 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 39 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 40 | as_cr_digits='0123456789' |
| 41 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 42 | |
| 43 | # The user is always right. |
| 44 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 45 | echo "#! /bin/sh" >conf$$.sh |
| 46 | echo "exit 0" >>conf$$.sh |
| 47 | chmod +x conf$$.sh |
| 48 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 49 | PATH_SEPARATOR=';' |
| 50 | else |
| 51 | PATH_SEPARATOR=: |
| 52 | fi |
| 53 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 54 | fi |
| 55 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 56 | # Support unset when possible. |
| 57 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 58 | as_unset=unset |
| 59 | else |
| 60 | as_unset=false |
| 61 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 62 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 63 | |
| 64 | # IFS |
| 65 | # We need space, tab and new line, in precisely that order. Quoting is |
| 66 | # there to prevent editors from complaining about space-tab. |
| 67 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 68 | # splitting by setting IFS to empty value.) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 69 | as_nl=' |
| 70 | ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 71 | IFS=" "" $as_nl" |
| 72 | |
| 73 | # Find who we are. Look in the path if we contain no directory separator. |
| 74 | case $0 in |
| 75 | *[\\/]* ) as_myself=$0 ;; |
| 76 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 77 | for as_dir in $PATH |
| 78 | do |
| 79 | IFS=$as_save_IFS |
| 80 | test -z "$as_dir" && as_dir=. |
| 81 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 82 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 83 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 84 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 85 | ;; |
| 86 | esac |
| 87 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 88 | # in which case we are not to be found in the path. |
| 89 | if test "x$as_myself" = x; then |
| 90 | as_myself=$0 |
| 91 | fi |
| 92 | if test ! -f "$as_myself"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 93 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 94 | { (exit 1); exit 1; } |
| 95 | fi |
| 96 | |
| 97 | # Work around bugs in pre-3.0 UWIN ksh. |
| 98 | for as_var in ENV MAIL MAILPATH |
| 99 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 100 | done |
| 101 | PS1='$ ' |
| 102 | PS2='> ' |
| 103 | PS4='+ ' |
| 104 | |
| 105 | # NLS nuisances. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 106 | for as_var in \ |
| 107 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 108 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 109 | LC_TELEPHONE LC_TIME |
| 110 | do |
| 111 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 112 | eval $as_var=C; export $as_var |
| 113 | else |
| 114 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 115 | fi |
| 116 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 117 | |
| 118 | # Required to use basename. |
| 119 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 120 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 121 | as_expr=expr |
| 122 | else |
| 123 | as_expr=false |
| 124 | fi |
| 125 | |
| 126 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 127 | as_basename=basename |
| 128 | else |
| 129 | as_basename=false |
| 130 | fi |
| 131 | |
| 132 | |
| 133 | # Name of the executable. |
| 134 | as_me=`$as_basename -- "$0" || |
| 135 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 136 | X"$0" : 'X\(//\)$' \| \ |
| 137 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 138 | echo X/"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 139 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 140 | s//\1/ |
| 141 | q |
| 142 | } |
| 143 | /^X\/\(\/\/\)$/{ |
| 144 | s//\1/ |
| 145 | q |
| 146 | } |
| 147 | /^X\/\(\/\).*/{ |
| 148 | s//\1/ |
| 149 | q |
| 150 | } |
| 151 | s/.*/./; q'` |
| 152 | |
| 153 | # CDPATH. |
| 154 | $as_unset CDPATH |
| 155 | |
| 156 | |
| 157 | if test "x$CONFIG_SHELL" = x; then |
| 158 | if (eval ":") 2>/dev/null; then |
| 159 | as_have_required=yes |
| 160 | else |
| 161 | as_have_required=no |
| 162 | fi |
| 163 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 164 | if test $as_have_required = yes && (eval ": |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 165 | (as_func_return () { |
| 166 | (exit \$1) |
| 167 | } |
| 168 | as_func_success () { |
| 169 | as_func_return 0 |
| 170 | } |
| 171 | as_func_failure () { |
| 172 | as_func_return 1 |
| 173 | } |
| 174 | as_func_ret_success () { |
| 175 | return 0 |
| 176 | } |
| 177 | as_func_ret_failure () { |
| 178 | return 1 |
| 179 | } |
| 180 | |
| 181 | exitcode=0 |
| 182 | if as_func_success; then |
| 183 | : |
| 184 | else |
| 185 | exitcode=1 |
| 186 | echo as_func_success failed. |
| 187 | fi |
| 188 | |
| 189 | if as_func_failure; then |
| 190 | exitcode=1 |
| 191 | echo as_func_failure succeeded. |
| 192 | fi |
| 193 | |
| 194 | if as_func_ret_success; then |
| 195 | : |
| 196 | else |
| 197 | exitcode=1 |
| 198 | echo as_func_ret_success failed. |
| 199 | fi |
| 200 | |
| 201 | if as_func_ret_failure; then |
| 202 | exitcode=1 |
| 203 | echo as_func_ret_failure succeeded. |
| 204 | fi |
| 205 | |
| 206 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 207 | : |
| 208 | else |
| 209 | exitcode=1 |
| 210 | echo positional parameters were not saved. |
| 211 | fi |
| 212 | |
| 213 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 214 | |
| 215 | ( |
| 216 | as_lineno_1=\$LINENO |
| 217 | as_lineno_2=\$LINENO |
| 218 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 219 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 220 | ") 2> /dev/null; then |
| 221 | : |
| 222 | else |
| 223 | as_candidate_shells= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 225 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 226 | do |
| 227 | IFS=$as_save_IFS |
| 228 | test -z "$as_dir" && as_dir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 229 | case $as_dir in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 230 | /*) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 231 | for as_base in sh bash ksh sh5; do |
| 232 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 233 | done;; |
| 234 | esac |
| 235 | done |
| 236 | IFS=$as_save_IFS |
| 237 | |
| 238 | |
| 239 | for as_shell in $as_candidate_shells $SHELL; do |
| 240 | # Try only shells that exist, to save several forks. |
| 241 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 242 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
| 243 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 244 | emulate sh |
| 245 | NULLCMD=: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 246 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 247 | # is contrary to our usage. Disable this feature. |
| 248 | alias -g '${1+"$@"}'='"$@"' |
| 249 | setopt NO_GLOB_SUBST |
| 250 | else |
| 251 | case `(set -o) 2>/dev/null` in |
| 252 | *posix*) set -o posix ;; |
| 253 | esac |
| 254 | |
| 255 | fi |
| 256 | |
| 257 | |
| 258 | : |
| 259 | _ASEOF |
| 260 | }; then |
| 261 | CONFIG_SHELL=$as_shell |
| 262 | as_have_required=yes |
| 263 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 264 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 265 | emulate sh |
| 266 | NULLCMD=: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 267 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 268 | # is contrary to our usage. Disable this feature. |
| 269 | alias -g '${1+"$@"}'='"$@"' |
| 270 | setopt NO_GLOB_SUBST |
| 271 | else |
| 272 | case `(set -o) 2>/dev/null` in |
| 273 | *posix*) set -o posix ;; |
| 274 | esac |
| 275 | |
| 276 | fi |
| 277 | |
| 278 | |
| 279 | : |
| 280 | (as_func_return () { |
| 281 | (exit $1) |
| 282 | } |
| 283 | as_func_success () { |
| 284 | as_func_return 0 |
| 285 | } |
| 286 | as_func_failure () { |
| 287 | as_func_return 1 |
| 288 | } |
| 289 | as_func_ret_success () { |
| 290 | return 0 |
| 291 | } |
| 292 | as_func_ret_failure () { |
| 293 | return 1 |
| 294 | } |
| 295 | |
| 296 | exitcode=0 |
| 297 | if as_func_success; then |
| 298 | : |
| 299 | else |
| 300 | exitcode=1 |
| 301 | echo as_func_success failed. |
| 302 | fi |
| 303 | |
| 304 | if as_func_failure; then |
| 305 | exitcode=1 |
| 306 | echo as_func_failure succeeded. |
| 307 | fi |
| 308 | |
| 309 | if as_func_ret_success; then |
| 310 | : |
| 311 | else |
| 312 | exitcode=1 |
| 313 | echo as_func_ret_success failed. |
| 314 | fi |
| 315 | |
| 316 | if as_func_ret_failure; then |
| 317 | exitcode=1 |
| 318 | echo as_func_ret_failure succeeded. |
| 319 | fi |
| 320 | |
| 321 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 322 | : |
| 323 | else |
| 324 | exitcode=1 |
| 325 | echo positional parameters were not saved. |
| 326 | fi |
| 327 | |
| 328 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 329 | |
| 330 | ( |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 331 | as_lineno_1=$LINENO |
| 332 | as_lineno_2=$LINENO |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 333 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 334 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 335 | |
| 336 | _ASEOF |
| 337 | }; then |
| 338 | break |
| 339 | fi |
| 340 | |
| 341 | fi |
| 342 | |
| 343 | done |
| 344 | |
| 345 | if test "x$CONFIG_SHELL" != x; then |
| 346 | for as_var in BASH_ENV ENV |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 347 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 348 | done |
| 349 | export CONFIG_SHELL |
| 350 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 351 | fi |
| 352 | |
| 353 | |
| 354 | if test $as_have_required = no; then |
| 355 | echo This script requires a shell more modern than all the |
| 356 | echo shells that I found on your system. Please install a |
| 357 | echo modern shell, or manually run the script under such a |
| 358 | echo shell if you do have one. |
| 359 | { (exit 1); exit 1; } |
| 360 | fi |
| 361 | |
| 362 | |
| 363 | fi |
| 364 | |
| 365 | fi |
| 366 | |
| 367 | |
| 368 | |
| 369 | (eval "as_func_return () { |
| 370 | (exit \$1) |
| 371 | } |
| 372 | as_func_success () { |
| 373 | as_func_return 0 |
| 374 | } |
| 375 | as_func_failure () { |
| 376 | as_func_return 1 |
| 377 | } |
| 378 | as_func_ret_success () { |
| 379 | return 0 |
| 380 | } |
| 381 | as_func_ret_failure () { |
| 382 | return 1 |
| 383 | } |
| 384 | |
| 385 | exitcode=0 |
| 386 | if as_func_success; then |
| 387 | : |
| 388 | else |
| 389 | exitcode=1 |
| 390 | echo as_func_success failed. |
| 391 | fi |
| 392 | |
| 393 | if as_func_failure; then |
| 394 | exitcode=1 |
| 395 | echo as_func_failure succeeded. |
| 396 | fi |
| 397 | |
| 398 | if as_func_ret_success; then |
| 399 | : |
| 400 | else |
| 401 | exitcode=1 |
| 402 | echo as_func_ret_success failed. |
| 403 | fi |
| 404 | |
| 405 | if as_func_ret_failure; then |
| 406 | exitcode=1 |
| 407 | echo as_func_ret_failure succeeded. |
| 408 | fi |
| 409 | |
| 410 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 411 | : |
| 412 | else |
| 413 | exitcode=1 |
| 414 | echo positional parameters were not saved. |
| 415 | fi |
| 416 | |
| 417 | test \$exitcode = 0") || { |
| 418 | echo No shell found that supports shell functions. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 419 | echo Please tell autoconf@gnu.org about your system, |
| 420 | echo including any error possibly output before this |
| 421 | echo message |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 422 | } |
| 423 | |
| 424 | |
| 425 | |
| 426 | as_lineno_1=$LINENO |
| 427 | as_lineno_2=$LINENO |
| 428 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 429 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 430 | |
| 431 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 432 | # uniformly replaced by the line number. The first 'sed' inserts a |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 433 | # line-number line after each line using $LINENO; the second 'sed' |
| 434 | # does the real work. The second script uses 'N' to pair each |
| 435 | # line-number line with the line containing $LINENO, and appends |
| 436 | # trailing '-' during substitution so that $LINENO is not a special |
| 437 | # case at line end. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 438 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 439 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 440 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 441 | sed -n ' |
| 442 | p |
| 443 | /[$]LINENO/= |
| 444 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 445 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 446 | s/[$]LINENO.*/&-/ |
| 447 | t lineno |
| 448 | b |
| 449 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 450 | N |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 451 | :loop |
| 452 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 453 | t loop |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 454 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 455 | ' >$as_me.lineno && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 456 | chmod +x "$as_me.lineno" || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 457 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 458 | { (exit 1); exit 1; }; } |
| 459 | |
| 460 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 461 | # (the dirname of $[0] is not the place where we might find the |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 462 | # original and so on. Autoconf is especially sensitive to this). |
| 463 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 464 | # Exit status is that of the last command. |
| 465 | exit |
| 466 | } |
| 467 | |
| 468 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 469 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 470 | as_dirname=dirname |
| 471 | else |
| 472 | as_dirname=false |
| 473 | fi |
| 474 | |
| 475 | ECHO_C= ECHO_N= ECHO_T= |
| 476 | case `echo -n x` in |
| 477 | -n*) |
| 478 | case `echo 'x\c'` in |
| 479 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 480 | *) ECHO_C='\c';; |
| 481 | esac;; |
| 482 | *) |
| 483 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 484 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 485 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 486 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 487 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 488 | as_expr=expr |
| 489 | else |
| 490 | as_expr=false |
| 491 | fi |
| 492 | |
| 493 | rm -f conf$$ conf$$.exe conf$$.file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 494 | if test -d conf$$.dir; then |
| 495 | rm -f conf$$.dir/conf$$.file |
| 496 | else |
| 497 | rm -f conf$$.dir |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 498 | mkdir conf$$.dir |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 499 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 500 | echo >conf$$.file |
| 501 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 502 | as_ln_s='ln -s' |
| 503 | # ... but there are two gotchas: |
| 504 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 505 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 506 | # In both cases, we have to default to `cp -p'. |
| 507 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 508 | as_ln_s='cp -p' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 509 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 510 | as_ln_s=ln |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 511 | else |
| 512 | as_ln_s='cp -p' |
| 513 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 514 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 515 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 516 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 517 | if mkdir -p . 2>/dev/null; then |
| 518 | as_mkdir_p=: |
| 519 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 520 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 521 | as_mkdir_p=false |
| 522 | fi |
| 523 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 524 | if test -x / >/dev/null 2>&1; then |
| 525 | as_test_x='test -x' |
| 526 | else |
| 527 | if ls -dL / >/dev/null 2>&1; then |
| 528 | as_ls_L_option=L |
| 529 | else |
| 530 | as_ls_L_option= |
| 531 | fi |
| 532 | as_test_x=' |
| 533 | eval sh -c '\'' |
| 534 | if test -d "$1"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 535 | test -d "$1/."; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 536 | else |
| 537 | case $1 in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 538 | -*)set "./$1";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 539 | esac; |
| 540 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 541 | ???[sx]*):;;*)false;;esac;fi |
| 542 | '\'' sh |
| 543 | ' |
| 544 | fi |
| 545 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 546 | |
| 547 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 548 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 549 | |
| 550 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 551 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 552 | |
| 553 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 554 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 555 | exec 7<&0 </dev/null 6>&1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 556 | |
| 557 | # Name of the host. |
| 558 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 559 | # so uname gets run too. |
| 560 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 561 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 562 | # |
| 563 | # Initializations. |
| 564 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 565 | ac_default_prefix=/usr/local |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 566 | ac_clean_files= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 567 | ac_config_libobj_dir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 568 | LIBOBJS= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 569 | cross_compiling=no |
| 570 | subdirs= |
| 571 | MFLAGS= |
| 572 | MAKEFLAGS= |
| 573 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 574 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 575 | # Identity of this package. |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 576 | PACKAGE_NAME='python' |
| 577 | PACKAGE_TARNAME='python' |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 578 | PACKAGE_VERSION='2.7' |
| 579 | PACKAGE_STRING='python 2.7' |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 580 | PACKAGE_BUGREPORT='http://bugs.python.org/' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 581 | |
| 582 | ac_unique_file="Include/object.h" |
| 583 | # Factoring default headers for most tests. |
| 584 | ac_includes_default="\ |
| 585 | #include <stdio.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 586 | #ifdef HAVE_SYS_TYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 587 | # include <sys/types.h> |
| 588 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 589 | #ifdef HAVE_SYS_STAT_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 590 | # include <sys/stat.h> |
| 591 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 592 | #ifdef STDC_HEADERS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 593 | # include <stdlib.h> |
| 594 | # include <stddef.h> |
| 595 | #else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 596 | # ifdef HAVE_STDLIB_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 597 | # include <stdlib.h> |
| 598 | # endif |
| 599 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 600 | #ifdef HAVE_STRING_H |
| 601 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 602 | # include <memory.h> |
| 603 | # endif |
| 604 | # include <string.h> |
| 605 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 606 | #ifdef HAVE_STRINGS_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 607 | # include <strings.h> |
| 608 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 609 | #ifdef HAVE_INTTYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 610 | # include <inttypes.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 611 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 612 | #ifdef HAVE_STDINT_H |
| 613 | # include <stdint.h> |
| 614 | #endif |
| 615 | #ifdef HAVE_UNISTD_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 616 | # include <unistd.h> |
| 617 | #endif" |
| 618 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 619 | ac_subst_vars='SHELL |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 620 | PATH_SEPARATOR |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 621 | PACKAGE_NAME |
| 622 | PACKAGE_TARNAME |
| 623 | PACKAGE_VERSION |
| 624 | PACKAGE_STRING |
| 625 | PACKAGE_BUGREPORT |
| 626 | exec_prefix |
| 627 | prefix |
| 628 | program_transform_name |
| 629 | bindir |
| 630 | sbindir |
| 631 | libexecdir |
| 632 | datarootdir |
| 633 | datadir |
| 634 | sysconfdir |
| 635 | sharedstatedir |
| 636 | localstatedir |
| 637 | includedir |
| 638 | oldincludedir |
| 639 | docdir |
| 640 | infodir |
| 641 | htmldir |
| 642 | dvidir |
| 643 | pdfdir |
| 644 | psdir |
| 645 | libdir |
| 646 | localedir |
| 647 | mandir |
| 648 | DEFS |
| 649 | ECHO_C |
| 650 | ECHO_N |
| 651 | ECHO_T |
| 652 | LIBS |
| 653 | build_alias |
| 654 | host_alias |
| 655 | target_alias |
| 656 | VERSION |
| 657 | SOVERSION |
| 658 | CONFIG_ARGS |
| 659 | UNIVERSALSDK |
| 660 | ARCH_RUN_32BIT |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 661 | LIPO_32BIT_FLAGS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 662 | PYTHONFRAMEWORK |
| 663 | PYTHONFRAMEWORKIDENTIFIER |
| 664 | PYTHONFRAMEWORKDIR |
| 665 | PYTHONFRAMEWORKPREFIX |
| 666 | PYTHONFRAMEWORKINSTALLDIR |
| 667 | FRAMEWORKINSTALLFIRST |
| 668 | FRAMEWORKINSTALLLAST |
| 669 | FRAMEWORKALTINSTALLFIRST |
| 670 | FRAMEWORKALTINSTALLLAST |
| 671 | FRAMEWORKUNIXTOOLSPREFIX |
| 672 | MACHDEP |
| 673 | SGI_ABI |
| 674 | EXTRAPLATDIR |
| 675 | EXTRAMACHDEPPATH |
| 676 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET |
| 677 | EXPORT_MACOSX_DEPLOYMENT_TARGET |
| 678 | CC |
| 679 | CFLAGS |
| 680 | LDFLAGS |
| 681 | CPPFLAGS |
| 682 | ac_ct_CC |
| 683 | EXEEXT |
| 684 | OBJEXT |
| 685 | CXX |
| 686 | MAINCC |
| 687 | CPP |
| 688 | GREP |
| 689 | EGREP |
| 690 | BUILDEXEEXT |
| 691 | LIBRARY |
| 692 | LDLIBRARY |
| 693 | DLLLIBRARY |
| 694 | BLDLIBRARY |
| 695 | LDLIBRARYDIR |
| 696 | INSTSONAME |
| 697 | RUNSHARED |
| 698 | LINKCC |
| 699 | GNULD |
| 700 | RANLIB |
| 701 | AR |
| 702 | ARFLAGS |
| 703 | SVNVERSION |
| 704 | INSTALL_PROGRAM |
| 705 | INSTALL_SCRIPT |
| 706 | INSTALL_DATA |
| 707 | LN |
| 708 | OPT |
| 709 | BASECFLAGS |
| 710 | UNIVERSAL_ARCH_FLAGS |
| 711 | OTHER_LIBTOOL_OPT |
| 712 | LIBTOOL_CRUFT |
| 713 | SO |
| 714 | LDSHARED |
| 715 | BLDSHARED |
| 716 | CCSHARED |
| 717 | LINKFORSHARED |
| 718 | CFLAGSFORSHARED |
| 719 | SHLIBS |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 720 | PKG_CONFIG |
| 721 | LIBFFI_INCLUDEDIR |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 722 | USE_SIGNAL_MODULE |
| 723 | SIGNAL_OBJS |
| 724 | USE_THREAD_MODULE |
| 725 | LDLAST |
| 726 | THREADOBJ |
| 727 | DLINCLDIR |
| 728 | DYNLOADFILE |
| 729 | MACHDEP_OBJS |
| 730 | TRUE |
| 731 | LIBOBJS |
| 732 | HAVE_GETHOSTBYNAME_R_6_ARG |
| 733 | HAVE_GETHOSTBYNAME_R_5_ARG |
| 734 | HAVE_GETHOSTBYNAME_R_3_ARG |
| 735 | HAVE_GETHOSTBYNAME_R |
| 736 | HAVE_GETHOSTBYNAME |
| 737 | LIBM |
| 738 | LIBC |
| 739 | UNICODE_OBJS |
| 740 | THREADHEADERS |
| 741 | SRCDIRS |
| 742 | LTLIBOBJS' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 743 | ac_subst_files='' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 744 | ac_precious_vars='build_alias |
| 745 | host_alias |
| 746 | target_alias |
| 747 | CC |
| 748 | CFLAGS |
| 749 | LDFLAGS |
| 750 | LIBS |
| 751 | CPPFLAGS |
| 752 | CPP' |
| 753 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 754 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 755 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 756 | ac_init_help= |
| 757 | ac_init_version=false |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 758 | # The variables have the same names as the options, with |
| 759 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 760 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 761 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 762 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 763 | no_recursion= |
| 764 | prefix=NONE |
| 765 | program_prefix=NONE |
| 766 | program_suffix=NONE |
| 767 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 768 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 769 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 770 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 771 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 772 | x_includes=NONE |
| 773 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 774 | |
| 775 | # Installation directory options. |
| 776 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 777 | # and all the variables that are supposed to be based on exec_prefix |
| 778 | # by default will actually change. |
| 779 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 780 | # (The list follows the same order as the GNU Coding Standards.) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 781 | bindir='${exec_prefix}/bin' |
| 782 | sbindir='${exec_prefix}/sbin' |
| 783 | libexecdir='${exec_prefix}/libexec' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 784 | datarootdir='${prefix}/share' |
| 785 | datadir='${datarootdir}' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 786 | sysconfdir='${prefix}/etc' |
| 787 | sharedstatedir='${prefix}/com' |
| 788 | localstatedir='${prefix}/var' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 789 | includedir='${prefix}/include' |
| 790 | oldincludedir='/usr/include' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 791 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 792 | infodir='${datarootdir}/info' |
| 793 | htmldir='${docdir}' |
| 794 | dvidir='${docdir}' |
| 795 | pdfdir='${docdir}' |
| 796 | psdir='${docdir}' |
| 797 | libdir='${exec_prefix}/lib' |
| 798 | localedir='${datarootdir}/locale' |
| 799 | mandir='${datarootdir}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 800 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 801 | ac_prev= |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 802 | ac_dashdash= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 803 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 804 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 805 | # If the previous option needs an argument, assign it. |
| 806 | if test -n "$ac_prev"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 807 | eval $ac_prev=\$ac_option |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 808 | ac_prev= |
| 809 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 810 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 811 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 812 | case $ac_option in |
| 813 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 814 | *) ac_optarg=yes ;; |
| 815 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 816 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 817 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 818 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 819 | case $ac_dashdash$ac_option in |
| 820 | --) |
| 821 | ac_dashdash=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 822 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 823 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 824 | ac_prev=bindir ;; |
| 825 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 826 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 827 | |
| 828 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 829 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 830 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 831 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 832 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 833 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 834 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 835 | ac_prev=cache_file ;; |
| 836 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 837 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 838 | cache_file=$ac_optarg ;; |
| 839 | |
| 840 | --config-cache | -C) |
| 841 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 842 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 843 | -datadir | --datadir | --datadi | --datad) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 844 | ac_prev=datadir ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 845 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 846 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 847 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 848 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 849 | | --dataroo | --dataro | --datar) |
| 850 | ac_prev=datarootdir ;; |
| 851 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 852 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 853 | datarootdir=$ac_optarg ;; |
| 854 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 855 | -disable-* | --disable-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 856 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 857 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 858 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 859 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 860 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 861 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 862 | eval enable_$ac_feature=no ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 863 | |
| 864 | -docdir | --docdir | --docdi | --doc | --do) |
| 865 | ac_prev=docdir ;; |
| 866 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 867 | docdir=$ac_optarg ;; |
| 868 | |
| 869 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 870 | ac_prev=dvidir ;; |
| 871 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 872 | dvidir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 873 | |
| 874 | -enable-* | --enable-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 875 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 876 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 877 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 878 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 879 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 880 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 881 | eval enable_$ac_feature=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 882 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 883 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 884 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 885 | | --exec | --exe | --ex) |
| 886 | ac_prev=exec_prefix ;; |
| 887 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 888 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 889 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 890 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 891 | |
| 892 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 893 | # Obsolete; use --with-gas. |
| 894 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 895 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 896 | -help | --help | --hel | --he | -h) |
| 897 | ac_init_help=long ;; |
| 898 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 899 | ac_init_help=recursive ;; |
| 900 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 901 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 902 | |
| 903 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 904 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 905 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 906 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 907 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 908 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 909 | ac_prev=htmldir ;; |
| 910 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 911 | | --ht=*) |
| 912 | htmldir=$ac_optarg ;; |
| 913 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 914 | -includedir | --includedir | --includedi | --included | --include \ |
| 915 | | --includ | --inclu | --incl | --inc) |
| 916 | ac_prev=includedir ;; |
| 917 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 918 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 919 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 920 | |
| 921 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 922 | ac_prev=infodir ;; |
| 923 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 924 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 925 | |
| 926 | -libdir | --libdir | --libdi | --libd) |
| 927 | ac_prev=libdir ;; |
| 928 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 929 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 930 | |
| 931 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 932 | | --libexe | --libex | --libe) |
| 933 | ac_prev=libexecdir ;; |
| 934 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 935 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 936 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 937 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 938 | -localedir | --localedir | --localedi | --localed | --locale) |
| 939 | ac_prev=localedir ;; |
| 940 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 941 | localedir=$ac_optarg ;; |
| 942 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 943 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 944 | | --localstate | --localstat | --localsta | --localst | --locals) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 945 | ac_prev=localstatedir ;; |
| 946 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 947 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 948 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 949 | |
| 950 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 951 | ac_prev=mandir ;; |
| 952 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 953 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 954 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 955 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 956 | # Obsolete; use --without-fp. |
| 957 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 958 | |
| 959 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 960 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 961 | no_create=yes ;; |
| 962 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 963 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 964 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 965 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 966 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 967 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 968 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 969 | | --oldin | --oldi | --old | --ol | --o) |
| 970 | ac_prev=oldincludedir ;; |
| 971 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 972 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 973 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 974 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 975 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 976 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 977 | ac_prev=prefix ;; |
| 978 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 979 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 980 | |
| 981 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 982 | | --program-pre | --program-pr | --program-p) |
| 983 | ac_prev=program_prefix ;; |
| 984 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 985 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 986 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 987 | |
| 988 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 989 | | --program-suf | --program-su | --program-s) |
| 990 | ac_prev=program_suffix ;; |
| 991 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 992 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 993 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 994 | |
| 995 | -program-transform-name | --program-transform-name \ |
| 996 | | --program-transform-nam | --program-transform-na \ |
| 997 | | --program-transform-n | --program-transform- \ |
| 998 | | --program-transform | --program-transfor \ |
| 999 | | --program-transfo | --program-transf \ |
| 1000 | | --program-trans | --program-tran \ |
| 1001 | | --progr-tra | --program-tr | --program-t) |
| 1002 | ac_prev=program_transform_name ;; |
| 1003 | -program-transform-name=* | --program-transform-name=* \ |
| 1004 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1005 | | --program-transform-n=* | --program-transform-=* \ |
| 1006 | | --program-transform=* | --program-transfor=* \ |
| 1007 | | --program-transfo=* | --program-transf=* \ |
| 1008 | | --program-trans=* | --program-tran=* \ |
| 1009 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1010 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1011 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1012 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1013 | ac_prev=pdfdir ;; |
| 1014 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1015 | pdfdir=$ac_optarg ;; |
| 1016 | |
| 1017 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1018 | ac_prev=psdir ;; |
| 1019 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1020 | psdir=$ac_optarg ;; |
| 1021 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1022 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1023 | | -silent | --silent | --silen | --sile | --sil) |
| 1024 | silent=yes ;; |
| 1025 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1026 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1027 | ac_prev=sbindir ;; |
| 1028 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1029 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1030 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1031 | |
| 1032 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1033 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1034 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1035 | | --sha | --sh) |
| 1036 | ac_prev=sharedstatedir ;; |
| 1037 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1038 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1039 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1040 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1041 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1042 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1043 | -site | --site | --sit) |
| 1044 | ac_prev=site ;; |
| 1045 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1046 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1047 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1048 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1049 | ac_prev=srcdir ;; |
| 1050 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1051 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1052 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1053 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1054 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1055 | ac_prev=sysconfdir ;; |
| 1056 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1057 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1058 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1059 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1060 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1061 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1062 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1063 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1064 | |
| 1065 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1066 | verbose=yes ;; |
| 1067 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1068 | -version | --version | --versio | --versi | --vers | -V) |
| 1069 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1070 | |
| 1071 | -with-* | --with-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1072 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1073 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1074 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1075 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1076 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1077 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1078 | eval with_$ac_package=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1079 | |
| 1080 | -without-* | --without-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1081 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1082 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1083 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1084 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1085 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1086 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1087 | eval with_$ac_package=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1088 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1089 | --x) |
| 1090 | # Obsolete; use --with-x. |
| 1091 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1092 | |
| 1093 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1094 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1095 | ac_prev=x_includes ;; |
| 1096 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1097 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1098 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1099 | |
| 1100 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1101 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1102 | ac_prev=x_libraries ;; |
| 1103 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1104 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1105 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1106 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1107 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1108 | Try \`$0 --help' for more information." >&2 |
| 1109 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1110 | ;; |
| 1111 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1112 | *=*) |
| 1113 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1114 | # Reject names that are not valid shell variable names. |
| 1115 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1116 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1117 | { (exit 1); exit 1; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1118 | eval $ac_envvar=\$ac_optarg |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1119 | export $ac_envvar ;; |
| 1120 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1121 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1122 | # FIXME: should be removed in autoconf 3.0. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1123 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1124 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1125 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1126 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1127 | ;; |
| 1128 | |
| 1129 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1130 | done |
| 1131 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1132 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1133 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1134 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1135 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1136 | fi |
| 1137 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1138 | # Be sure to have absolute directory names. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1139 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1140 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1141 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1142 | libdir localedir mandir |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1143 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1144 | eval ac_val=\$$ac_var |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1145 | case $ac_val in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1146 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1147 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1148 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1149 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1150 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1151 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1152 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1153 | # There might be people who depend on the old broken behavior: `$host' |
| 1154 | # used to hold the argument of --host etc. |
| 1155 | # FIXME: To remove some day. |
| 1156 | build=$build_alias |
| 1157 | host=$host_alias |
| 1158 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1159 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1160 | # FIXME: To remove some day. |
| 1161 | if test "x$host_alias" != x; then |
| 1162 | if test "x$build_alias" = x; then |
| 1163 | cross_compiling=maybe |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1164 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1165 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1166 | elif test "x$build_alias" != "x$host_alias"; then |
| 1167 | cross_compiling=yes |
| 1168 | fi |
| 1169 | fi |
| 1170 | |
| 1171 | ac_tool_prefix= |
| 1172 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1173 | |
| 1174 | test "$silent" = yes && exec 6>/dev/null |
| 1175 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1176 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1177 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1178 | ac_ls_di=`ls -di .` && |
| 1179 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1180 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1181 | { (exit 1); exit 1; }; } |
| 1182 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1183 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1184 | { (exit 1); exit 1; }; } |
| 1185 | |
| 1186 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1187 | # Find the source files, if location was not specified. |
| 1188 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1189 | ac_srcdir_defaulted=yes |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1190 | # Try the directory containing this script, then the parent directory. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1191 | ac_confdir=`$as_dirname -- "$0" || |
| 1192 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1193 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1194 | X"$0" : 'X\(//\)$' \| \ |
| 1195 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 1196 | echo X"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1197 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1198 | s//\1/ |
| 1199 | q |
| 1200 | } |
| 1201 | /^X\(\/\/\)[^/].*/{ |
| 1202 | s//\1/ |
| 1203 | q |
| 1204 | } |
| 1205 | /^X\(\/\/\)$/{ |
| 1206 | s//\1/ |
| 1207 | q |
| 1208 | } |
| 1209 | /^X\(\/\).*/{ |
| 1210 | s//\1/ |
| 1211 | q |
| 1212 | } |
| 1213 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1214 | srcdir=$ac_confdir |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1215 | if test ! -r "$srcdir/$ac_unique_file"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1216 | srcdir=.. |
| 1217 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1218 | else |
| 1219 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1220 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1221 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1222 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1223 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1224 | { (exit 1); exit 1; }; } |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 1225 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1226 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1227 | ac_abs_confdir=`( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1228 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 1229 | { (exit 1); exit 1; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1230 | pwd)` |
| 1231 | # When building in place, set srcdir=. |
| 1232 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1233 | srcdir=. |
| 1234 | fi |
| 1235 | # Remove unnecessary trailing slashes from srcdir. |
| 1236 | # Double slashes in file names in object file debugging info |
| 1237 | # mess up M-x gdb in Emacs. |
| 1238 | case $srcdir in |
| 1239 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1240 | esac |
| 1241 | for ac_var in $ac_precious_vars; do |
| 1242 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1243 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1244 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1245 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1246 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1247 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1248 | # |
| 1249 | # Report the --help message. |
| 1250 | # |
| 1251 | if test "$ac_init_help" = "long"; then |
| 1252 | # Omit some internal or obsolete options to make the list less imposing. |
| 1253 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1254 | cat <<_ACEOF |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1255 | \`configure' configures python 2.7 to adapt to many kinds of systems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1256 | |
| 1257 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1258 | |
| 1259 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1260 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1261 | |
| 1262 | Defaults for the options are specified in brackets. |
| 1263 | |
| 1264 | Configuration: |
| 1265 | -h, --help display this help and exit |
| 1266 | --help=short display options specific to this package |
| 1267 | --help=recursive display the short help of all the included packages |
| 1268 | -V, --version display version information and exit |
| 1269 | -q, --quiet, --silent do not print \`checking...' messages |
| 1270 | --cache-file=FILE cache test results in FILE [disabled] |
| 1271 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1272 | -n, --no-create do not create output files |
| 1273 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1274 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1275 | Installation directories: |
| 1276 | --prefix=PREFIX install architecture-independent files in PREFIX |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1277 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1278 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1279 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1280 | |
| 1281 | By default, \`make install' will install all the files in |
| 1282 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1283 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1284 | for instance \`--prefix=\$HOME'. |
| 1285 | |
| 1286 | For better control, use the options below. |
| 1287 | |
| 1288 | Fine tuning of the installation directories: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1289 | --bindir=DIR user executables [EPREFIX/bin] |
| 1290 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1291 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1292 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1293 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1294 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1295 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1296 | --includedir=DIR C header files [PREFIX/include] |
| 1297 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1298 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1299 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1300 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1301 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1302 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1303 | --docdir=DIR documentation root [DATAROOTDIR/doc/python] |
| 1304 | --htmldir=DIR html documentation [DOCDIR] |
| 1305 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1306 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1307 | --psdir=DIR ps documentation [DOCDIR] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1308 | _ACEOF |
| 1309 | |
| 1310 | cat <<\_ACEOF |
| 1311 | _ACEOF |
| 1312 | fi |
| 1313 | |
| 1314 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1315 | case $ac_init_help in |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1316 | short | recursive ) echo "Configuration of python 2.7:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1317 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1318 | cat <<\_ACEOF |
| 1319 | |
| 1320 | Optional Features: |
| 1321 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1322 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Brett Cannon | 91a1dec | 2008-02-13 19:15:44 +0000 | [diff] [blame] | 1323 | --enable-universalsdk[=SDKDIR] |
Brett Cannon | 9a8bb0e | 2008-02-03 02:07:55 +0000 | [diff] [blame] | 1324 | Build against Mac OS X 10.4u SDK (ppc/i386) |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1325 | --enable-framework[=INSTALLDIR] |
| 1326 | Build (MacOSX|Darwin) framework |
| 1327 | --enable-shared disable/enable building shared python library |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1328 | --enable-profiling enable C-level code profiling |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1329 | --enable-toolbox-glue disable/enable MacOSX glue code for extensions |
| 1330 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 1331 | --disable-ipv6 Disable ipv6 support |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 1332 | --enable-big-digits[=BITS] |
| 1333 | use big digits for Python longs [BITS=30] |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1334 | --enable-unicode[=ucs[24]] |
| 1335 | Enable Unicode strings (default is yes) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1336 | |
| 1337 | Optional Packages: |
| 1338 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1339 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1340 | --with-universal-archs=ARCH |
| 1341 | select architectures for universal build ("32-bit", |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 1342 | "64-bit", "3-way", "intel" or "all") |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1343 | --with-framework-name=FRAMEWORK |
| 1344 | specify an alternate name of the framework built |
| 1345 | with --enable-framework |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1346 | --without-gcc never use gcc |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 1347 | --with-cxx-main=<compiler> |
| 1348 | compile main() and link python executable with C++ |
| 1349 | compiler |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1350 | --with-suffix=.exe set executable suffix |
| 1351 | --with-pydebug build with Py_DEBUG defined |
| 1352 | --with-libs='lib1 ...' link against additional libs |
Benjamin Peterson | 2c19674 | 2009-12-31 03:17:18 +0000 | [diff] [blame] | 1353 | --with-system-expat build pyexpat module using an installed expat |
| 1354 | library |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 1355 | --with-system-ffi build _ctypes module using an installed ffi library |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 1356 | --with-dbmliborder=db1:db2:... |
| 1357 | order to check db backends for dbm. Valid value is a |
| 1358 | colon separated string with the backend names |
| 1359 | `ndbm', `gdbm' and `bdb'. |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1360 | --with-signal-module disable/enable signal module |
| 1361 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 1362 | --with(out)-threads[=DIRECTORY] |
| 1363 | disable/enable thread support |
| 1364 | --with(out)-thread[=DIRECTORY] |
| 1365 | deprecated; use --with(out)-threads |
| 1366 | --with-pth use GNU pth threading libraries |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1367 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1368 | --with(out)-tsc enable/disable timestamp counter profile |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1369 | --with(out)-pymalloc disable/enable specialized mallocs |
Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 1370 | --with-valgrind Enable Valgrind support |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1371 | --with-wctype-functions use wctype.h functions |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1372 | --with-fpectl enable SIGFPE catching |
| 1373 | --with-libm=STRING math library |
| 1374 | --with-libc=STRING C library |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1375 | |
| 1376 | Some influential environment variables: |
| 1377 | CC C compiler command |
| 1378 | CFLAGS C compiler flags |
| 1379 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1380 | nonstandard directory <lib dir> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1381 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1382 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1383 | you have headers in a nonstandard directory <include dir> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1384 | CPP C preprocessor |
| 1385 | |
| 1386 | Use these variables to override the choices made by `configure' or to help |
| 1387 | it to find libraries and programs with nonstandard names/locations. |
| 1388 | |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 1389 | Report bugs to <http://bugs.python.org/>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1390 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1391 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1392 | fi |
| 1393 | |
| 1394 | if test "$ac_init_help" = "recursive"; then |
| 1395 | # If there are subdirs, report their specific --help. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1396 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1397 | test -d "$ac_dir" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1398 | ac_builddir=. |
| 1399 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1400 | case "$ac_dir" in |
| 1401 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1402 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1403 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1404 | # A ".." for each directory in $ac_dir_suffix. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1405 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1406 | case $ac_top_builddir_sub in |
| 1407 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1408 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1409 | esac ;; |
| 1410 | esac |
| 1411 | ac_abs_top_builddir=$ac_pwd |
| 1412 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1413 | # for backward compatibility: |
| 1414 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1415 | |
| 1416 | case $srcdir in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1417 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1418 | ac_srcdir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1419 | ac_top_srcdir=$ac_top_builddir_sub |
| 1420 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1421 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1422 | ac_srcdir=$srcdir$ac_dir_suffix; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1423 | ac_top_srcdir=$srcdir |
| 1424 | ac_abs_top_srcdir=$srcdir ;; |
| 1425 | *) # Relative name. |
| 1426 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1427 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1428 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1429 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1430 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1431 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1432 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1433 | # Check for guested configure. |
| 1434 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1435 | echo && |
| 1436 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1437 | elif test -f "$ac_srcdir/configure"; then |
| 1438 | echo && |
| 1439 | $SHELL "$ac_srcdir/configure" --help=recursive |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1440 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1441 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1442 | fi || ac_status=$? |
| 1443 | cd "$ac_pwd" || { ac_status=$?; break; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1444 | done |
| 1445 | fi |
| 1446 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1447 | test -n "$ac_init_help" && exit $ac_status |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1448 | if $ac_init_version; then |
| 1449 | cat <<\_ACEOF |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1450 | python configure 2.7 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1451 | generated by GNU Autoconf 2.61 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1452 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1453 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1454 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1455 | This configure script is free software; the Free Software Foundation |
| 1456 | gives unlimited permission to copy, distribute and modify it. |
| 1457 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1458 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1459 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1460 | cat >config.log <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1461 | This file contains any messages produced by compilers while |
| 1462 | running configure, to aid debugging if configure makes a mistake. |
| 1463 | |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1464 | It was created by python $as_me 2.7, which was |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1465 | generated by GNU Autoconf 2.61. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1466 | |
| 1467 | $ $0 $@ |
| 1468 | |
| 1469 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1470 | exec 5>>config.log |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1471 | { |
| 1472 | cat <<_ASUNAME |
| 1473 | ## --------- ## |
| 1474 | ## Platform. ## |
| 1475 | ## --------- ## |
| 1476 | |
| 1477 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1478 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1479 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1480 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1481 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1482 | |
| 1483 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1484 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1485 | |
| 1486 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1487 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1488 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1489 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1490 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1491 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1492 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1493 | |
| 1494 | _ASUNAME |
| 1495 | |
| 1496 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1497 | for as_dir in $PATH |
| 1498 | do |
| 1499 | IFS=$as_save_IFS |
| 1500 | test -z "$as_dir" && as_dir=. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1501 | echo "PATH: $as_dir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1502 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1503 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1504 | |
| 1505 | } >&5 |
| 1506 | |
| 1507 | cat >&5 <<_ACEOF |
| 1508 | |
| 1509 | |
| 1510 | ## ----------- ## |
| 1511 | ## Core tests. ## |
| 1512 | ## ----------- ## |
| 1513 | |
| 1514 | _ACEOF |
| 1515 | |
| 1516 | |
| 1517 | # Keep a trace of the command line. |
| 1518 | # Strip out --no-create and --no-recursion so they do not pile up. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1519 | # Strip out --silent because we don't want to record it for future runs. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1520 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1521 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1522 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1523 | ac_configure_args0= |
| 1524 | ac_configure_args1= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1525 | ac_must_keep_next=false |
| 1526 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1527 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1528 | for ac_arg |
| 1529 | do |
| 1530 | case $ac_arg in |
| 1531 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1532 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1533 | | -silent | --silent | --silen | --sile | --sil) |
| 1534 | continue ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1535 | *\'*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1536 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1537 | esac |
| 1538 | case $ac_pass in |
| 1539 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1540 | 2) |
| 1541 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1542 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1543 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1544 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1545 | case $ac_arg in |
| 1546 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1547 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1548 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1549 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1550 | case "$ac_configure_args0 " in |
| 1551 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1552 | esac |
| 1553 | ;; |
| 1554 | -* ) ac_must_keep_next=true ;; |
| 1555 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1556 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1557 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1558 | ;; |
| 1559 | esac |
| 1560 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1561 | done |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1562 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1563 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1564 | |
| 1565 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1566 | # config.log. We remove comments because anyway the quotes in there |
| 1567 | # would cause problems or look ugly. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1568 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1569 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1570 | trap 'exit_status=$? |
| 1571 | # Save into config.log some information that might help in debugging. |
| 1572 | { |
| 1573 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1574 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1575 | cat <<\_ASBOX |
| 1576 | ## ---------------- ## |
| 1577 | ## Cache variables. ## |
| 1578 | ## ---------------- ## |
| 1579 | _ASBOX |
| 1580 | echo |
| 1581 | # The following way of writing the cache mishandles newlines in values, |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1582 | ( |
| 1583 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1584 | eval ac_val=\$$ac_var |
| 1585 | case $ac_val in #( |
| 1586 | *${as_nl}*) |
| 1587 | case $ac_var in #( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1588 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1589 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1590 | esac |
| 1591 | case $ac_var in #( |
| 1592 | _ | IFS | as_nl) ;; #( |
| 1593 | *) $as_unset $ac_var ;; |
| 1594 | esac ;; |
| 1595 | esac |
| 1596 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1597 | (set) 2>&1 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1598 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1599 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1600 | sed -n \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1601 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1602 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1603 | ;; #( |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 1604 | *) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1605 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 1606 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1607 | esac | |
| 1608 | sort |
| 1609 | ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1610 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1611 | |
| 1612 | cat <<\_ASBOX |
| 1613 | ## ----------------- ## |
| 1614 | ## Output variables. ## |
| 1615 | ## ----------------- ## |
| 1616 | _ASBOX |
| 1617 | echo |
| 1618 | for ac_var in $ac_subst_vars |
| 1619 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1620 | eval ac_val=\$$ac_var |
| 1621 | case $ac_val in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1622 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1623 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1624 | echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1625 | done | sort |
| 1626 | echo |
| 1627 | |
| 1628 | if test -n "$ac_subst_files"; then |
| 1629 | cat <<\_ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1630 | ## ------------------- ## |
| 1631 | ## File substitutions. ## |
| 1632 | ## ------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1633 | _ASBOX |
| 1634 | echo |
| 1635 | for ac_var in $ac_subst_files |
| 1636 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1637 | eval ac_val=\$$ac_var |
| 1638 | case $ac_val in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1639 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1640 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1641 | echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1642 | done | sort |
| 1643 | echo |
| 1644 | fi |
| 1645 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1646 | if test -s confdefs.h; then |
| 1647 | cat <<\_ASBOX |
| 1648 | ## ----------- ## |
| 1649 | ## confdefs.h. ## |
| 1650 | ## ----------- ## |
| 1651 | _ASBOX |
| 1652 | echo |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1653 | cat confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1654 | echo |
| 1655 | fi |
| 1656 | test "$ac_signal" != 0 && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1657 | echo "$as_me: caught signal $ac_signal" |
| 1658 | echo "$as_me: exit $exit_status" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1659 | } >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1660 | rm -f core *.core core.conftest.* && |
| 1661 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1662 | exit $exit_status |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1663 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1664 | for ac_signal in 1 2 13 15; do |
| 1665 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1666 | done |
| 1667 | ac_signal=0 |
| 1668 | |
| 1669 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1670 | rm -f -r conftest* confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1671 | |
| 1672 | # Predefined preprocessor variables. |
| 1673 | |
| 1674 | cat >>confdefs.h <<_ACEOF |
| 1675 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1676 | _ACEOF |
| 1677 | |
| 1678 | |
| 1679 | cat >>confdefs.h <<_ACEOF |
| 1680 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1681 | _ACEOF |
| 1682 | |
| 1683 | |
| 1684 | cat >>confdefs.h <<_ACEOF |
| 1685 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1686 | _ACEOF |
| 1687 | |
| 1688 | |
| 1689 | cat >>confdefs.h <<_ACEOF |
| 1690 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1691 | _ACEOF |
| 1692 | |
| 1693 | |
| 1694 | cat >>confdefs.h <<_ACEOF |
| 1695 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1696 | _ACEOF |
| 1697 | |
| 1698 | |
| 1699 | # Let the site file select an alternate cache file if it wants to. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1700 | # Prefer explicitly selected file to automatically selected ones. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1701 | if test -n "$CONFIG_SITE"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1702 | set x "$CONFIG_SITE" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1703 | elif test "x$prefix" != xNONE; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1704 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1705 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1706 | set x "$ac_default_prefix/share/config.site" \ |
| 1707 | "$ac_default_prefix/etc/config.site" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1708 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1709 | shift |
| 1710 | for ac_site_file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1711 | do |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1712 | if test -r "$ac_site_file"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1713 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1714 | echo "$as_me: loading site script $ac_site_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1715 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1716 | . "$ac_site_file" |
| 1717 | fi |
| 1718 | done |
| 1719 | |
| 1720 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1721 | # Some versions of bash will fail to source /dev/null (special |
| 1722 | # files actually), so we avoid doing that. |
| 1723 | if test -f "$cache_file"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1724 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1725 | echo "$as_me: loading cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1726 | case $cache_file in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1727 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1728 | *) . "./$cache_file";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1729 | esac |
| 1730 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1731 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1732 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1733 | echo "$as_me: creating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1734 | >$cache_file |
| 1735 | fi |
| 1736 | |
| 1737 | # Check that the precious variables saved in the cache have kept the same |
| 1738 | # value. |
| 1739 | ac_cache_corrupted=false |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1740 | for ac_var in $ac_precious_vars; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1741 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1742 | eval ac_new_set=\$ac_env_${ac_var}_set |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1743 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1744 | eval ac_new_val=\$ac_env_${ac_var}_value |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1745 | case $ac_old_set,$ac_new_set in |
| 1746 | set,) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1747 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1748 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1749 | ac_cache_corrupted=: ;; |
| 1750 | ,set) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1751 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1752 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1753 | ac_cache_corrupted=: ;; |
| 1754 | ,);; |
| 1755 | *) |
| 1756 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1757 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1758 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1759 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1760 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1761 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1762 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1763 | ac_cache_corrupted=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1764 | fi;; |
| 1765 | esac |
| 1766 | # Pass precious variables to config.status. |
| 1767 | if test "$ac_new_set" = set; then |
| 1768 | case $ac_new_val in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1769 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1770 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1771 | esac |
| 1772 | case " $ac_configure_args " in |
| 1773 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1774 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1775 | esac |
| 1776 | fi |
| 1777 | done |
| 1778 | if $ac_cache_corrupted; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1779 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1780 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1781 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1782 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1783 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1784 | fi |
| 1785 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1786 | |
| 1787 | |
| 1788 | |
| 1789 | |
| 1790 | |
| 1791 | |
| 1792 | |
| 1793 | |
| 1794 | |
| 1795 | |
| 1796 | |
| 1797 | |
| 1798 | |
| 1799 | |
| 1800 | |
| 1801 | |
| 1802 | |
| 1803 | |
| 1804 | |
| 1805 | |
| 1806 | |
| 1807 | |
| 1808 | |
| 1809 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1810 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1811 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1812 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1813 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1814 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1815 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1816 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1817 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1818 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1819 | |
| 1820 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1821 | |
Georg Brandl | bcd64a3 | 2009-03-31 21:45:18 +0000 | [diff] [blame] | 1822 | if test "$prefix" != "/"; then |
| 1823 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` |
| 1824 | fi |
| 1825 | |
| 1826 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1827 | |
| 1828 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1829 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1830 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 1831 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 1832 | # with other autoconf-based packages that include Python.h |
| 1833 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 1834 | rm confdefs.h |
| 1835 | mv confdefs.h.new confdefs.h |
| 1836 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1837 | |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1838 | VERSION=2.7 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1839 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1840 | |
| 1841 | SOVERSION=1.0 |
| 1842 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1843 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1844 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1845 | |
| 1846 | cat >>confdefs.h <<\_ACEOF |
| 1847 | #define _GNU_SOURCE 1 |
| 1848 | _ACEOF |
| 1849 | |
| 1850 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 1851 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1852 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 1853 | # them. |
| 1854 | |
| 1855 | cat >>confdefs.h <<\_ACEOF |
| 1856 | #define _NETBSD_SOURCE 1 |
| 1857 | _ACEOF |
| 1858 | |
| 1859 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 1860 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1861 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 1862 | # them. |
| 1863 | |
| 1864 | cat >>confdefs.h <<\_ACEOF |
| 1865 | #define __BSD_VISIBLE 1 |
| 1866 | _ACEOF |
| 1867 | |
| 1868 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 1869 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1870 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
| 1871 | |
| 1872 | cat >>confdefs.h <<\_ACEOF |
| 1873 | #define _BSD_TYPES 1 |
| 1874 | _ACEOF |
| 1875 | |
| 1876 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1877 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1878 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable |
| 1879 | # them. |
| 1880 | |
| 1881 | cat >>confdefs.h <<\_ACEOF |
| 1882 | #define _DARWIN_C_SOURCE 1 |
| 1883 | _ACEOF |
| 1884 | |
| 1885 | |
| 1886 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1887 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1888 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1889 | # Arguments passed to configure. |
| 1890 | |
| 1891 | CONFIG_ARGS="$ac_configure_args" |
| 1892 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1893 | # Check whether --enable-universalsdk was given. |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1894 | if test "${enable_universalsdk+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1895 | enableval=$enable_universalsdk; |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1896 | case $enableval in |
| 1897 | yes) |
| 1898 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
| 1899 | ;; |
| 1900 | esac |
| 1901 | case $enableval in |
| 1902 | no) |
| 1903 | UNIVERSALSDK= |
| 1904 | enable_universalsdk= |
| 1905 | ;; |
| 1906 | *) |
| 1907 | UNIVERSALSDK=$enableval |
| 1908 | ;; |
| 1909 | esac |
| 1910 | |
| 1911 | else |
| 1912 | |
| 1913 | UNIVERSALSDK= |
| 1914 | enable_universalsdk= |
| 1915 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1916 | fi |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1917 | |
| 1918 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1919 | |
Benjamin Peterson | 0e6ea5d | 2008-07-16 20:17:04 +0000 | [diff] [blame] | 1920 | |
| 1921 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1922 | UNIVERSAL_ARCHS="32-bit" |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 1923 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1924 | { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5 |
| 1925 | echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1926 | |
| 1927 | # Check whether --with-universal-archs was given. |
| 1928 | if test "${with_universal_archs+set}" = set; then |
| 1929 | withval=$with_universal_archs; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1930 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 1931 | echo "${ECHO_T}$withval" >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1932 | UNIVERSAL_ARCHS="$withval" |
Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 1933 | if test "${enable_universalsdk}" ; then |
| 1934 | : |
| 1935 | else |
| 1936 | { { echo "$as_me:$LINENO: error: --with-universal-archs without --enable-universalsdk. See Mac/README" >&5 |
| 1937 | echo "$as_me: error: --with-universal-archs without --enable-universalsdk. See Mac/README" >&2;} |
| 1938 | { (exit 1); exit 1; }; } |
| 1939 | fi |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1940 | |
| 1941 | else |
| 1942 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1943 | { echo "$as_me:$LINENO: result: 32-bit" >&5 |
| 1944 | echo "${ECHO_T}32-bit" >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1945 | |
| 1946 | fi |
| 1947 | |
| 1948 | |
| 1949 | |
| 1950 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1951 | |
| 1952 | # Check whether --with-framework-name was given. |
| 1953 | if test "${with_framework_name+set}" = set; then |
| 1954 | withval=$with_framework_name; |
Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 1955 | if test "${enable_framework}"; then |
| 1956 | : |
| 1957 | else |
| 1958 | { { echo "$as_me:$LINENO: error: --with-framework-name without --enable-framework. See Mac/README" >&5 |
| 1959 | echo "$as_me: error: --with-framework-name without --enable-framework. See Mac/README" >&2;} |
| 1960 | { (exit 1); exit 1; }; } |
| 1961 | fi |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1962 | PYTHONFRAMEWORK=${withval} |
| 1963 | PYTHONFRAMEWORKDIR=${withval}.framework |
| 1964 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` |
| 1965 | |
| 1966 | else |
| 1967 | |
| 1968 | PYTHONFRAMEWORK=Python |
| 1969 | PYTHONFRAMEWORKDIR=Python.framework |
| 1970 | PYTHONFRAMEWORKIDENTIFIER=org.python.python |
| 1971 | |
| 1972 | fi |
| 1973 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1974 | # Check whether --enable-framework was given. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1975 | if test "${enable_framework+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1976 | enableval=$enable_framework; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1977 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1978 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1979 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1980 | esac |
| 1981 | case $enableval in |
| 1982 | no) |
| 1983 | PYTHONFRAMEWORK= |
| 1984 | PYTHONFRAMEWORKDIR=no-framework |
| 1985 | PYTHONFRAMEWORKPREFIX= |
| 1986 | PYTHONFRAMEWORKINSTALLDIR= |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 1987 | FRAMEWORKINSTALLFIRST= |
| 1988 | FRAMEWORKINSTALLLAST= |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 1989 | FRAMEWORKALTINSTALLFIRST= |
| 1990 | FRAMEWORKALTINSTALLLAST= |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 1991 | if test "x${prefix}" = "xNONE"; then |
| 1992 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 1993 | else |
| 1994 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 1995 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1996 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1997 | ;; |
| 1998 | *) |
| 1999 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2000 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2001 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2002 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall" |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 2003 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
| 2004 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2005 | |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2006 | if test "x${prefix}" = "xNONE" ; then |
| 2007 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2008 | else |
| 2009 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2010 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2011 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2012 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2013 | # Add files for Mac specific code to the list of output |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2014 | # files: |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2015 | ac_config_files="$ac_config_files Mac/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2016 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2017 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2018 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2019 | ac_config_files="$ac_config_files Mac/IDLE/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2020 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2021 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" |
| 2022 | |
| 2023 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" |
| 2024 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2025 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2026 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2027 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2028 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2029 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2030 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2031 | PYTHONFRAMEWORKPREFIX= |
| 2032 | PYTHONFRAMEWORKINSTALLDIR= |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2033 | FRAMEWORKINSTALLFIRST= |
| 2034 | FRAMEWORKINSTALLLAST= |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2035 | FRAMEWORKALTINSTALLFIRST= |
| 2036 | FRAMEWORKALTINSTALLLAST= |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2037 | if test "x${prefix}" = "xNONE" ; then |
| 2038 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2039 | else |
| 2040 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2041 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2042 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2043 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2044 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2045 | fi |
| 2046 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2047 | |
| 2048 | |
| 2049 | |
| 2050 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2051 | |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2052 | |
| 2053 | |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2054 | |
| 2055 | |
| 2056 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2057 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2058 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 2059 | ## AC_HELP_STRING(--with-dyld, |
| 2060 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2061 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2062 | # Set name for machine-dependent library files |
| 2063 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2064 | { echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 2065 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2066 | if test -z "$MACHDEP" |
| 2067 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2068 | ac_sys_system=`uname -s` |
Georg Brandl | fe18a11 | 2009-09-04 07:55:14 +0000 | [diff] [blame] | 2069 | if test "$ac_sys_system" = "AIX" \ |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 2070 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2071 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2072 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2073 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2074 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2075 | ac_md_system=`echo $ac_sys_system | |
| 2076 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 2077 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 2078 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2079 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2080 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2081 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 2082 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 2083 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 2084 | atheos*) MACHDEP="atheos";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 2085 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2086 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2087 | esac |
| 2088 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2089 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2090 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 2091 | # disable features if it is defined, without any means to access these |
| 2092 | # features as extensions. For these systems, we skip the definition of |
| 2093 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 2094 | # some feature, make sure there is no alternative way to access this |
| 2095 | # feature. Also, when using wildcards, make sure you have verified the |
| 2096 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 2097 | # wildcard, and that the wildcard does not include future systems |
| 2098 | # (which may remove their limitations). |
| 2099 | case $ac_sys_system/$ac_sys_release in |
| 2100 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 2101 | # 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] | 2102 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 2103 | OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123]) |
Martin v. Löwis | cb78de6 | 2007-12-29 18:49:21 +0000 | [diff] [blame] | 2104 | define_xopen_source=no |
| 2105 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 2106 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 2107 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 2108 | |
| 2109 | cat >>confdefs.h <<\_ACEOF |
| 2110 | #define _BSD_SOURCE 1 |
| 2111 | _ACEOF |
| 2112 | |
| 2113 | ;; |
Martin v. Löwis | 4d542ec | 2006-11-25 15:39:19 +0000 | [diff] [blame] | 2114 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
| 2115 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by |
| 2116 | # Marc Recht |
Benjamin Peterson | eac68f4 | 2008-11-16 17:54:55 +0000 | [diff] [blame] | 2117 | 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] | 2118 | define_xopen_source=no;; |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 2119 | # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| 2120 | # of union __?sigval. Reported by Stuart Bishop. |
| 2121 | SunOS/5.6) |
| 2122 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2123 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 2124 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2125 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 2126 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2127 | define_xopen_source=no;; |
| 2128 | # 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] | 2129 | # 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] | 2130 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 2131 | define_xopen_source=no;; |
Martin v. Löwis | bb86d83 | 2008-11-04 20:40:09 +0000 | [diff] [blame] | 2132 | # On FreeBSD 4, the math functions C89 does not cover are never defined |
| 2133 | # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. |
| 2134 | FreeBSD/4.*) |
| 2135 | define_xopen_source=no;; |
| 2136 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if |
| 2137 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which |
| 2138 | # identifies itself as Darwin/7.* |
| 2139 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 2140 | # disables platform specific features beyond repair. |
| 2141 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 2142 | # has no effect, don't bother defining them |
| 2143 | Darwin/[6789].*) |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 2144 | define_xopen_source=no;; |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame^] | 2145 | Darwin/1[0-9].*) |
| 2146 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2147 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
| 2148 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
| 2149 | # 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] | 2150 | AIX/4) |
| 2151 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2152 | AIX/5) |
| 2153 | if test `uname -r` -eq 1; then |
| 2154 | define_xopen_source=no |
| 2155 | fi |
| 2156 | ;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 2157 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from |
| 2158 | # defining NI_NUMERICHOST. |
| 2159 | QNX/6.3.2) |
| 2160 | define_xopen_source=no |
| 2161 | ;; |
Martin v. Löwis | a058836 | 2006-04-04 06:03:50 +0000 | [diff] [blame] | 2162 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2163 | esac |
| 2164 | |
| 2165 | if test $define_xopen_source = yes |
| 2166 | then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2167 | # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be |
| 2168 | # defined precisely as g++ defines it |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2169 | # Furthermore, on Solaris 10, XPG6 requires the use of a C99 |
| 2170 | # compiler |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2171 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2172 | SunOS/5.8|SunOS/5.9|SunOS/5.10) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2173 | |
| 2174 | cat >>confdefs.h <<\_ACEOF |
| 2175 | #define _XOPEN_SOURCE 500 |
| 2176 | _ACEOF |
| 2177 | |
| 2178 | ;; |
| 2179 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2180 | |
| 2181 | cat >>confdefs.h <<\_ACEOF |
| 2182 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2183 | _ACEOF |
| 2184 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2185 | ;; |
| 2186 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2187 | |
| 2188 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 2189 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 2190 | # several APIs are not declared. Since this is also needed in some |
| 2191 | # cases for HP-UX, we define it globally. |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2192 | # except for Solaris 10, where it must not be defined, |
| 2193 | # as it implies XPG4.2 |
| 2194 | case $ac_sys_system/$ac_sys_release in |
| 2195 | SunOS/5.10) |
| 2196 | ;; |
| 2197 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2198 | |
| 2199 | cat >>confdefs.h <<\_ACEOF |
| 2200 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 2201 | _ACEOF |
| 2202 | |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2203 | ;; |
| 2204 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2205 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 2206 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2207 | cat >>confdefs.h <<\_ACEOF |
| 2208 | #define _POSIX_C_SOURCE 200112L |
| 2209 | _ACEOF |
| 2210 | |
| 2211 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2212 | fi |
| 2213 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2214 | # |
| 2215 | # SGI compilers allow the specification of the both the ABI and the |
| 2216 | # ISA on the command line. Depending on the values of these switches, |
| 2217 | # different and often incompatable code will be generated. |
| 2218 | # |
| 2219 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 2220 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 2221 | # variable is also adjusted. |
| 2222 | # |
| 2223 | |
| 2224 | if test ! -z "$SGI_ABI" |
| 2225 | then |
| 2226 | CC="cc $SGI_ABI" |
| 2227 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 2228 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 2229 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2230 | { echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 2231 | echo "${ECHO_T}$MACHDEP" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2232 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2233 | # And add extra plat-mac for darwin |
| 2234 | |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 2235 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2236 | { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5 |
| 2237 | echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; } |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2238 | if test -z "$EXTRAPLATDIR" |
| 2239 | then |
| 2240 | case $MACHDEP in |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 2241 | darwin) |
| 2242 | EXTRAPLATDIR="\$(PLATMACDIRS)" |
| 2243 | EXTRAMACHDEPPATH="\$(PLATMACPATH)" |
| 2244 | ;; |
| 2245 | *) |
| 2246 | EXTRAPLATDIR="" |
| 2247 | EXTRAMACHDEPPATH="" |
| 2248 | ;; |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2249 | esac |
| 2250 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2251 | { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5 |
| 2252 | echo "${ECHO_T}$EXTRAPLATDIR" >&6; } |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2253 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2254 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 2255 | # it may influence the way we can build extensions, so distutils |
| 2256 | # needs to check it |
| 2257 | |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2258 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2259 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2260 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2261 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2262 | { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5 |
| 2263 | 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] | 2264 | ac_sys_machine=`uname -m` |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2265 | { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5 |
| 2266 | echo "${ECHO_T}$ac_sys_machine" >&6; } |
Mark Dickinson | 6513466 | 2008-04-25 16:11:04 +0000 | [diff] [blame] | 2267 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2268 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2269 | |
| 2270 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 2271 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 2272 | # just to get things to compile and link. Users are free to override OPT |
| 2273 | # when running configure or make. The build should not break if they do. |
| 2274 | # BASECFLAGS should generally not be messed with, however. |
| 2275 | |
| 2276 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 2277 | # on that fiddles with OPT and BASECFLAGS? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2278 | { echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 2279 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2280 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2281 | # Check whether --with-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2282 | if test "${with_gcc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2283 | withval=$with_gcc; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2284 | case $withval in |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 2285 | no) CC=${CC:-cc} |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2286 | without_gcc=yes;; |
| 2287 | yes) CC=gcc |
| 2288 | without_gcc=no;; |
| 2289 | *) CC=$withval |
| 2290 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2291 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2292 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2293 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2294 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2295 | AIX*) CC=cc_r |
| 2296 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2297 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2298 | case $BE_HOST_CPU in |
| 2299 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 2300 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2301 | without_gcc=yes |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2302 | BASECFLAGS="$BASECFLAGS -export pragma" |
| 2303 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2304 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2305 | ;; |
| 2306 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 2307 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2308 | without_gcc=no |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2309 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2310 | ;; |
| 2311 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2312 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 2313 | 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] | 2314 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2315 | ;; |
| 2316 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2317 | AR="\$(srcdir)/Modules/ar_beos" |
| 2318 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2319 | ;; |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 2320 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 2321 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2322 | fi |
| 2323 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2324 | { echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 2325 | echo "${ECHO_T}$without_gcc" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2326 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2327 | # If the user switches compilers, we can't believe the cache |
| 2328 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 2329 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2330 | { { 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] | 2331 | (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] | 2332 | 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] | 2333 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 2334 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2335 | fi |
| 2336 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2337 | ac_ext=c |
| 2338 | ac_cpp='$CPP $CPPFLAGS' |
| 2339 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2340 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2341 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2342 | if test -n "$ac_tool_prefix"; then |
| 2343 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2344 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2345 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2346 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2347 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2349 | else |
| 2350 | if test -n "$CC"; then |
| 2351 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2352 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2353 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2354 | for as_dir in $PATH |
| 2355 | do |
| 2356 | IFS=$as_save_IFS |
| 2357 | test -z "$as_dir" && as_dir=. |
| 2358 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2359 | 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] | 2360 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2361 | 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] | 2362 | break 2 |
| 2363 | fi |
| 2364 | done |
| 2365 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2366 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2367 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2368 | fi |
| 2369 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2370 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2371 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2372 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2373 | echo "${ECHO_T}$CC" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2374 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2375 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2376 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2377 | fi |
| 2378 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2379 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2380 | fi |
| 2381 | if test -z "$ac_cv_prog_CC"; then |
| 2382 | ac_ct_CC=$CC |
| 2383 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2384 | set dummy gcc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2385 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2386 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2387 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2389 | else |
| 2390 | if test -n "$ac_ct_CC"; then |
| 2391 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2392 | else |
| 2393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2394 | for as_dir in $PATH |
| 2395 | do |
| 2396 | IFS=$as_save_IFS |
| 2397 | test -z "$as_dir" && as_dir=. |
| 2398 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2399 | 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] | 2400 | ac_cv_prog_ac_ct_CC="gcc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2401 | 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] | 2402 | break 2 |
| 2403 | fi |
| 2404 | done |
| 2405 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2406 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2407 | |
| 2408 | fi |
| 2409 | fi |
| 2410 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2411 | if test -n "$ac_ct_CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2412 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2413 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2414 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2415 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2416 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2417 | fi |
| 2418 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2419 | if test "x$ac_ct_CC" = x; then |
| 2420 | CC="" |
| 2421 | else |
| 2422 | case $cross_compiling:$ac_tool_warned in |
| 2423 | yes:) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2424 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2425 | whose name does not start with the host triplet. If you think this |
| 2426 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2427 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2428 | whose name does not start with the host triplet. If you think this |
| 2429 | 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] | 2430 | ac_tool_warned=yes ;; |
| 2431 | esac |
| 2432 | CC=$ac_ct_CC |
| 2433 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2434 | else |
| 2435 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2436 | fi |
| 2437 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2438 | if test -z "$CC"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2439 | if test -n "$ac_tool_prefix"; then |
| 2440 | # 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] | 2441 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2442 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2443 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2444 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2446 | else |
| 2447 | if test -n "$CC"; then |
| 2448 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2449 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2450 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2451 | for as_dir in $PATH |
| 2452 | do |
| 2453 | IFS=$as_save_IFS |
| 2454 | test -z "$as_dir" && as_dir=. |
| 2455 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2456 | 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] | 2457 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2458 | 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] | 2459 | break 2 |
| 2460 | fi |
| 2461 | done |
| 2462 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2463 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2464 | |
| 2465 | fi |
| 2466 | fi |
| 2467 | CC=$ac_cv_prog_CC |
| 2468 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2469 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2470 | echo "${ECHO_T}$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2471 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2472 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2473 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2474 | fi |
| 2475 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2476 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2477 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2478 | fi |
| 2479 | if test -z "$CC"; then |
| 2480 | # Extract the first word of "cc", so it can be a program name with args. |
| 2481 | set dummy cc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2482 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2483 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2484 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2486 | else |
| 2487 | if test -n "$CC"; then |
| 2488 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2489 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2490 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2491 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2492 | for as_dir in $PATH |
| 2493 | do |
| 2494 | IFS=$as_save_IFS |
| 2495 | test -z "$as_dir" && as_dir=. |
| 2496 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2497 | 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] | 2498 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2499 | ac_prog_rejected=yes |
| 2500 | continue |
| 2501 | fi |
| 2502 | ac_cv_prog_CC="cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2503 | 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] | 2504 | break 2 |
| 2505 | fi |
| 2506 | done |
| 2507 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2508 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2509 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2510 | if test $ac_prog_rejected = yes; then |
| 2511 | # We found a bogon in the path, so make sure we never use it. |
| 2512 | set dummy $ac_cv_prog_CC |
| 2513 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2514 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2515 | # We chose a different compiler from the bogus one. |
| 2516 | # However, it has the same basename, so the bogon will be chosen |
| 2517 | # first if we set CC to just the basename; use the full file name. |
| 2518 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2519 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2520 | fi |
| 2521 | fi |
| 2522 | fi |
| 2523 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2524 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2525 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2526 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2527 | echo "${ECHO_T}$CC" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2528 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2529 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2530 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2531 | fi |
| 2532 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2533 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2534 | fi |
| 2535 | if test -z "$CC"; then |
| 2536 | if test -n "$ac_tool_prefix"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2537 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2538 | do |
| 2539 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2540 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2541 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2542 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2543 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2545 | else |
| 2546 | if test -n "$CC"; then |
| 2547 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2548 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2550 | for as_dir in $PATH |
| 2551 | do |
| 2552 | IFS=$as_save_IFS |
| 2553 | test -z "$as_dir" && as_dir=. |
| 2554 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2555 | 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] | 2556 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2557 | 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] | 2558 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2559 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2560 | done |
| 2561 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2562 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2563 | |
| 2564 | fi |
| 2565 | fi |
| 2566 | CC=$ac_cv_prog_CC |
| 2567 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2568 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2569 | echo "${ECHO_T}$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2570 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2571 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2572 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2573 | fi |
| 2574 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2575 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2576 | test -n "$CC" && break |
| 2577 | done |
| 2578 | fi |
| 2579 | if test -z "$CC"; then |
| 2580 | ac_ct_CC=$CC |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2581 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2582 | do |
| 2583 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2584 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2585 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2586 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2587 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2589 | else |
| 2590 | if test -n "$ac_ct_CC"; then |
| 2591 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2592 | else |
| 2593 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2594 | for as_dir in $PATH |
| 2595 | do |
| 2596 | IFS=$as_save_IFS |
| 2597 | test -z "$as_dir" && as_dir=. |
| 2598 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2599 | 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] | 2600 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2601 | 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] | 2602 | break 2 |
| 2603 | fi |
| 2604 | done |
| 2605 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2606 | IFS=$as_save_IFS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2607 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2608 | fi |
| 2609 | fi |
| 2610 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2611 | if test -n "$ac_ct_CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2612 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2613 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2614 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2615 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2616 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2617 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2618 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2619 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2620 | test -n "$ac_ct_CC" && break |
| 2621 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2622 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2623 | if test "x$ac_ct_CC" = x; then |
| 2624 | CC="" |
| 2625 | else |
| 2626 | case $cross_compiling:$ac_tool_warned in |
| 2627 | yes:) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2628 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2629 | whose name does not start with the host triplet. If you think this |
| 2630 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2631 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2632 | whose name does not start with the host triplet. If you think this |
| 2633 | 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] | 2634 | ac_tool_warned=yes ;; |
| 2635 | esac |
| 2636 | CC=$ac_ct_CC |
| 2637 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2638 | fi |
| 2639 | |
| 2640 | fi |
| 2641 | |
| 2642 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2643 | 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] | 2644 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2645 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2646 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2647 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2648 | |
| 2649 | # Provide some information about the compiler. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2650 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2651 | ac_compiler=`set X $ac_compile; echo $2` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2652 | { (ac_try="$ac_compiler --version >&5" |
| 2653 | case "(($ac_try" in |
| 2654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2655 | *) ac_try_echo=$ac_try;; |
| 2656 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2658 | (eval "$ac_compiler --version >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2659 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2661 | (exit $ac_status); } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2662 | { (ac_try="$ac_compiler -v >&5" |
| 2663 | case "(($ac_try" in |
| 2664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2665 | *) ac_try_echo=$ac_try;; |
| 2666 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2668 | (eval "$ac_compiler -v >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2669 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2671 | (exit $ac_status); } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2672 | { (ac_try="$ac_compiler -V >&5" |
| 2673 | case "(($ac_try" in |
| 2674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2675 | *) ac_try_echo=$ac_try;; |
| 2676 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2678 | (eval "$ac_compiler -V >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2679 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2681 | (exit $ac_status); } |
| 2682 | |
| 2683 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2684 | /* confdefs.h. */ |
| 2685 | _ACEOF |
| 2686 | cat confdefs.h >>conftest.$ac_ext |
| 2687 | cat >>conftest.$ac_ext <<_ACEOF |
| 2688 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2689 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2690 | int |
| 2691 | main () |
| 2692 | { |
| 2693 | |
| 2694 | ; |
| 2695 | return 0; |
| 2696 | } |
| 2697 | _ACEOF |
| 2698 | ac_clean_files_save=$ac_clean_files |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2699 | 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] | 2700 | # Try to create an executable without -o first, disregard a.out. |
| 2701 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2702 | # of exeext. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2703 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2704 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2705 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2706 | # |
| 2707 | # List of possible output files, starting from the most likely. |
| 2708 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2709 | # only as a last resort. b.out is created by i960 compilers. |
| 2710 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2711 | # |
| 2712 | # The IRIX 6 linker writes into existing files which may not be |
| 2713 | # executable, retaining their permissions. Remove them first so a |
| 2714 | # subsequent execution test works. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2715 | ac_rmfiles= |
| 2716 | for ac_file in $ac_files |
| 2717 | do |
| 2718 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2719 | *.$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] | 2720 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2721 | esac |
| 2722 | done |
| 2723 | rm -f $ac_rmfiles |
| 2724 | |
| 2725 | if { (ac_try="$ac_link_default" |
| 2726 | case "(($ac_try" in |
| 2727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2728 | *) ac_try_echo=$ac_try;; |
| 2729 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2731 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2732 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2734 | (exit $ac_status); }; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2735 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2736 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2737 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2738 | # so that the user can short-circuit this test for compilers unknown to |
| 2739 | # Autoconf. |
| 2740 | for ac_file in $ac_files '' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2741 | do |
| 2742 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2743 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2744 | *.$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] | 2745 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2746 | [ab].out ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2747 | # We found the default executable, but exeext='' is most |
| 2748 | # certainly right. |
| 2749 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2750 | *.* ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2751 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2752 | then :; else |
| 2753 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2754 | fi |
| 2755 | # We set ac_cv_exeext here because the later test for it is not |
| 2756 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2757 | # argument, so we may need to know it at that point already. |
| 2758 | # Even if this section looks crufty: it has the advantage of |
| 2759 | # actually working. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2760 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2761 | * ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2762 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2763 | esac |
| 2764 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2765 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2766 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2767 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2768 | ac_file='' |
| 2769 | fi |
| 2770 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2771 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2772 | echo "${ECHO_T}$ac_file" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2773 | if test -z "$ac_file"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2774 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2776 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2777 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2778 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2779 | echo "$as_me: error: C compiler cannot create executables |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2780 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2781 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2782 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2783 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2784 | ac_exeext=$ac_cv_exeext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2785 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2786 | # 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] | 2787 | # the compiler is broken, or we cross compile. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2788 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2789 | 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] | 2790 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2791 | # If not cross compiling, check that we can run a simple program. |
| 2792 | if test "$cross_compiling" != yes; then |
| 2793 | if { ac_try='./$ac_file' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2794 | { (case "(($ac_try" in |
| 2795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2796 | *) ac_try_echo=$ac_try;; |
| 2797 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2799 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2800 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2802 | (exit $ac_status); }; }; then |
| 2803 | cross_compiling=no |
| 2804 | else |
| 2805 | if test "$cross_compiling" = maybe; then |
| 2806 | cross_compiling=yes |
| 2807 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2808 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2809 | If you meant to cross compile, use \`--host'. |
| 2810 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2811 | echo "$as_me: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2812 | If you meant to cross compile, use \`--host'. |
| 2813 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2814 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2815 | fi |
| 2816 | fi |
| 2817 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2818 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2819 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2820 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2821 | 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] | 2822 | ac_clean_files=$ac_clean_files_save |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2823 | # 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] | 2824 | # the compiler is broken, or we cross compile. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2825 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2826 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2827 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2828 | echo "${ECHO_T}$cross_compiling" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2829 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2830 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2831 | 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] | 2832 | if { (ac_try="$ac_link" |
| 2833 | case "(($ac_try" in |
| 2834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2835 | *) ac_try_echo=$ac_try;; |
| 2836 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2838 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2839 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2841 | (exit $ac_status); }; then |
| 2842 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2843 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2844 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2845 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2846 | for ac_file in conftest.exe conftest conftest.*; do |
| 2847 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2848 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2849 | *.$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] | 2850 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2851 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2852 | * ) break;; |
| 2853 | esac |
| 2854 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2855 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2856 | { { 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] | 2857 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2858 | 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] | 2859 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2860 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2861 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2862 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2863 | rm -f conftest$ac_cv_exeext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2864 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2865 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2866 | |
| 2867 | rm -f conftest.$ac_ext |
| 2868 | EXEEXT=$ac_cv_exeext |
| 2869 | ac_exeext=$EXEEXT |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2870 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2871 | 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] | 2872 | if test "${ac_cv_objext+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2873 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2874 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2875 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2876 | /* confdefs.h. */ |
| 2877 | _ACEOF |
| 2878 | cat confdefs.h >>conftest.$ac_ext |
| 2879 | cat >>conftest.$ac_ext <<_ACEOF |
| 2880 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2881 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2882 | int |
| 2883 | main () |
| 2884 | { |
| 2885 | |
| 2886 | ; |
| 2887 | return 0; |
| 2888 | } |
| 2889 | _ACEOF |
| 2890 | rm -f conftest.o conftest.obj |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2891 | if { (ac_try="$ac_compile" |
| 2892 | case "(($ac_try" in |
| 2893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2894 | *) ac_try_echo=$ac_try;; |
| 2895 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2897 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2898 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2900 | (exit $ac_status); }; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2901 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2902 | test -f "$ac_file" || continue; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2903 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2904 | *.$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] | 2905 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2906 | break;; |
| 2907 | esac |
| 2908 | done |
| 2909 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2910 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2911 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2912 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2913 | { { 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] | 2914 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2915 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2916 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2917 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2918 | fi |
| 2919 | |
| 2920 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2921 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2922 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2923 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2924 | OBJEXT=$ac_cv_objext |
| 2925 | ac_objext=$OBJEXT |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2926 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2927 | 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] | 2928 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2930 | else |
| 2931 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2932 | /* confdefs.h. */ |
| 2933 | _ACEOF |
| 2934 | cat confdefs.h >>conftest.$ac_ext |
| 2935 | cat >>conftest.$ac_ext <<_ACEOF |
| 2936 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2937 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2938 | int |
| 2939 | main () |
| 2940 | { |
| 2941 | #ifndef __GNUC__ |
| 2942 | choke me |
| 2943 | #endif |
| 2944 | |
| 2945 | ; |
| 2946 | return 0; |
| 2947 | } |
| 2948 | _ACEOF |
| 2949 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2950 | if { (ac_try="$ac_compile" |
| 2951 | case "(($ac_try" in |
| 2952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2953 | *) ac_try_echo=$ac_try;; |
| 2954 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2956 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2957 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2958 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2959 | rm -f conftest.er1 |
| 2960 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2962 | (exit $ac_status); } && { |
| 2963 | test -z "$ac_c_werror_flag" || |
| 2964 | test ! -s conftest.err |
| 2965 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2966 | ac_compiler_gnu=yes |
| 2967 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2968 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2969 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2970 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2971 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2972 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2973 | |
| 2974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2975 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2976 | |
| 2977 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2978 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2979 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 2980 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2981 | ac_test_CFLAGS=${CFLAGS+set} |
| 2982 | ac_save_CFLAGS=$CFLAGS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2983 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2984 | 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] | 2985 | if test "${ac_cv_prog_cc_g+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2987 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2988 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2989 | ac_c_werror_flag=yes |
| 2990 | ac_cv_prog_cc_g=no |
| 2991 | CFLAGS="-g" |
| 2992 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2993 | /* confdefs.h. */ |
| 2994 | _ACEOF |
| 2995 | cat confdefs.h >>conftest.$ac_ext |
| 2996 | cat >>conftest.$ac_ext <<_ACEOF |
| 2997 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2998 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2999 | int |
| 3000 | main () |
| 3001 | { |
| 3002 | |
| 3003 | ; |
| 3004 | return 0; |
| 3005 | } |
| 3006 | _ACEOF |
| 3007 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3008 | if { (ac_try="$ac_compile" |
| 3009 | case "(($ac_try" in |
| 3010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3011 | *) ac_try_echo=$ac_try;; |
| 3012 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3014 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3015 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3016 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3017 | rm -f conftest.er1 |
| 3018 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3020 | (exit $ac_status); } && { |
| 3021 | test -z "$ac_c_werror_flag" || |
| 3022 | test ! -s conftest.err |
| 3023 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3024 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3025 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3026 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3027 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3028 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3029 | CFLAGS="" |
| 3030 | cat >conftest.$ac_ext <<_ACEOF |
| 3031 | /* confdefs.h. */ |
| 3032 | _ACEOF |
| 3033 | cat confdefs.h >>conftest.$ac_ext |
| 3034 | cat >>conftest.$ac_ext <<_ACEOF |
| 3035 | /* end confdefs.h. */ |
| 3036 | |
| 3037 | int |
| 3038 | main () |
| 3039 | { |
| 3040 | |
| 3041 | ; |
| 3042 | return 0; |
| 3043 | } |
| 3044 | _ACEOF |
| 3045 | rm -f conftest.$ac_objext |
| 3046 | if { (ac_try="$ac_compile" |
| 3047 | case "(($ac_try" in |
| 3048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3049 | *) ac_try_echo=$ac_try;; |
| 3050 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3052 | (eval "$ac_compile") 2>conftest.er1 |
| 3053 | ac_status=$? |
| 3054 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3055 | rm -f conftest.er1 |
| 3056 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3058 | (exit $ac_status); } && { |
| 3059 | test -z "$ac_c_werror_flag" || |
| 3060 | test ! -s conftest.err |
| 3061 | } && test -s conftest.$ac_objext; then |
| 3062 | : |
| 3063 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3064 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3065 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3066 | |
| 3067 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3068 | CFLAGS="-g" |
| 3069 | cat >conftest.$ac_ext <<_ACEOF |
| 3070 | /* confdefs.h. */ |
| 3071 | _ACEOF |
| 3072 | cat confdefs.h >>conftest.$ac_ext |
| 3073 | cat >>conftest.$ac_ext <<_ACEOF |
| 3074 | /* end confdefs.h. */ |
| 3075 | |
| 3076 | int |
| 3077 | main () |
| 3078 | { |
| 3079 | |
| 3080 | ; |
| 3081 | return 0; |
| 3082 | } |
| 3083 | _ACEOF |
| 3084 | rm -f conftest.$ac_objext |
| 3085 | if { (ac_try="$ac_compile" |
| 3086 | case "(($ac_try" in |
| 3087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3088 | *) ac_try_echo=$ac_try;; |
| 3089 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3091 | (eval "$ac_compile") 2>conftest.er1 |
| 3092 | ac_status=$? |
| 3093 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3094 | rm -f conftest.er1 |
| 3095 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3097 | (exit $ac_status); } && { |
| 3098 | test -z "$ac_c_werror_flag" || |
| 3099 | test ! -s conftest.err |
| 3100 | } && test -s conftest.$ac_objext; then |
| 3101 | ac_cv_prog_cc_g=yes |
| 3102 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3103 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3104 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3105 | |
| 3106 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3107 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3108 | |
| 3109 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3110 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3111 | |
| 3112 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3113 | fi |
| 3114 | |
| 3115 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3116 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3117 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3118 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3119 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3120 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3121 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3122 | elif test $ac_cv_prog_cc_g = yes; then |
| 3123 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3124 | CFLAGS="-g -O2" |
| 3125 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3126 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3127 | fi |
| 3128 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3129 | if test "$GCC" = yes; then |
| 3130 | CFLAGS="-O2" |
| 3131 | else |
| 3132 | CFLAGS= |
| 3133 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3134 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3135 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3136 | 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] | 3137 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3139 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3140 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3141 | ac_save_CC=$CC |
| 3142 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3143 | /* confdefs.h. */ |
| 3144 | _ACEOF |
| 3145 | cat confdefs.h >>conftest.$ac_ext |
| 3146 | cat >>conftest.$ac_ext <<_ACEOF |
| 3147 | /* end confdefs.h. */ |
| 3148 | #include <stdarg.h> |
| 3149 | #include <stdio.h> |
| 3150 | #include <sys/types.h> |
| 3151 | #include <sys/stat.h> |
| 3152 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3153 | struct buf { int x; }; |
| 3154 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3155 | static char *e (p, i) |
| 3156 | char **p; |
| 3157 | int i; |
| 3158 | { |
| 3159 | return p[i]; |
| 3160 | } |
| 3161 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3162 | { |
| 3163 | char *s; |
| 3164 | va_list v; |
| 3165 | va_start (v,p); |
| 3166 | s = g (p, va_arg (v,int)); |
| 3167 | va_end (v); |
| 3168 | return s; |
| 3169 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3170 | |
| 3171 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3172 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3173 | 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] | 3174 | 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] | 3175 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3176 | 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] | 3177 | that's true only with -std. */ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3178 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3179 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3180 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3181 | inside strings and character constants. */ |
| 3182 | #define FOO(x) 'x' |
| 3183 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3184 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3185 | int test (int i, double x); |
| 3186 | struct s1 {int (*f) (int a);}; |
| 3187 | struct s2 {int (*f) (double a);}; |
| 3188 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3189 | int argc; |
| 3190 | char **argv; |
| 3191 | int |
| 3192 | main () |
| 3193 | { |
| 3194 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3195 | ; |
| 3196 | return 0; |
| 3197 | } |
| 3198 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3199 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3200 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3201 | do |
| 3202 | CC="$ac_save_CC $ac_arg" |
| 3203 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3204 | if { (ac_try="$ac_compile" |
| 3205 | case "(($ac_try" in |
| 3206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3207 | *) ac_try_echo=$ac_try;; |
| 3208 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3210 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3211 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3212 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3213 | rm -f conftest.er1 |
| 3214 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3216 | (exit $ac_status); } && { |
| 3217 | test -z "$ac_c_werror_flag" || |
| 3218 | test ! -s conftest.err |
| 3219 | } && test -s conftest.$ac_objext; then |
| 3220 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3221 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3222 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3223 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3224 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3225 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3226 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3227 | |
| 3228 | rm -f core conftest.err conftest.$ac_objext |
| 3229 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3230 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3231 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3232 | CC=$ac_save_CC |
| 3233 | |
| 3234 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3235 | # AC_CACHE_VAL |
| 3236 | case "x$ac_cv_prog_cc_c89" in |
| 3237 | x) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3238 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3239 | echo "${ECHO_T}none needed" >&6; } ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3240 | xno) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3241 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3242 | echo "${ECHO_T}unsupported" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3243 | *) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3244 | CC="$CC $ac_cv_prog_cc_c89" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3245 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3246 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3247 | esac |
| 3248 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3249 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3250 | ac_ext=c |
| 3251 | ac_cpp='$CPP $CPPFLAGS' |
| 3252 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3253 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3254 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3255 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3256 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3257 | |
| 3258 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3259 | { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5 |
| 3260 | 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] | 3261 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3262 | # Check whether --with-cxx_main was given. |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3263 | if test "${with_cxx_main+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3264 | withval=$with_cxx_main; |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3265 | |
| 3266 | case $withval in |
| 3267 | no) with_cxx_main=no |
| 3268 | MAINCC='$(CC)';; |
| 3269 | yes) with_cxx_main=yes |
| 3270 | MAINCC='$(CXX)';; |
| 3271 | *) with_cxx_main=yes |
| 3272 | MAINCC=$withval |
| 3273 | if test -z "$CXX" |
| 3274 | then |
| 3275 | CXX=$withval |
| 3276 | fi;; |
| 3277 | esac |
| 3278 | else |
| 3279 | |
| 3280 | with_cxx_main=no |
| 3281 | MAINCC='$(CC)' |
| 3282 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3283 | fi |
| 3284 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3285 | { echo "$as_me:$LINENO: result: $with_cxx_main" >&5 |
| 3286 | echo "${ECHO_T}$with_cxx_main" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3287 | |
| 3288 | preset_cxx="$CXX" |
| 3289 | if test -z "$CXX" |
| 3290 | then |
| 3291 | case "$CC" in |
| 3292 | gcc) # Extract the first word of "g++", so it can be a program name with args. |
| 3293 | set dummy g++; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3294 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3295 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3296 | if test "${ac_cv_path_CXX+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3298 | else |
| 3299 | case $CXX in |
| 3300 | [\\/]* | ?:[\\/]*) |
| 3301 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3302 | ;; |
| 3303 | *) |
| 3304 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3305 | for as_dir in notfound |
| 3306 | do |
| 3307 | IFS=$as_save_IFS |
| 3308 | test -z "$as_dir" && as_dir=. |
| 3309 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3310 | 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] | 3311 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3312 | 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] | 3313 | break 2 |
| 3314 | fi |
| 3315 | done |
| 3316 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3317 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3318 | |
| 3319 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++" |
| 3320 | ;; |
| 3321 | esac |
| 3322 | fi |
| 3323 | CXX=$ac_cv_path_CXX |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3324 | if test -n "$CXX"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3325 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3326 | echo "${ECHO_T}$CXX" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3327 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3328 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3329 | echo "${ECHO_T}no" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3330 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3331 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3332 | ;; |
| 3333 | cc) # Extract the first word of "c++", so it can be a program name with args. |
| 3334 | set dummy c++; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3335 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3336 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3337 | if test "${ac_cv_path_CXX+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3339 | else |
| 3340 | case $CXX in |
| 3341 | [\\/]* | ?:[\\/]*) |
| 3342 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3343 | ;; |
| 3344 | *) |
| 3345 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3346 | for as_dir in notfound |
| 3347 | do |
| 3348 | IFS=$as_save_IFS |
| 3349 | test -z "$as_dir" && as_dir=. |
| 3350 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3351 | 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] | 3352 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3353 | 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] | 3354 | break 2 |
| 3355 | fi |
| 3356 | done |
| 3357 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3358 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3359 | |
| 3360 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++" |
| 3361 | ;; |
| 3362 | esac |
| 3363 | fi |
| 3364 | CXX=$ac_cv_path_CXX |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3365 | if test -n "$CXX"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3366 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3367 | echo "${ECHO_T}$CXX" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3368 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3369 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3370 | echo "${ECHO_T}no" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3371 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3372 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3373 | ;; |
| 3374 | esac |
| 3375 | if test "$CXX" = "notfound" |
| 3376 | then |
| 3377 | CXX="" |
| 3378 | fi |
| 3379 | fi |
| 3380 | if test -z "$CXX" |
| 3381 | then |
| 3382 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 3383 | do |
| 3384 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3385 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3386 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3387 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3388 | if test "${ac_cv_prog_CXX+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3389 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3390 | else |
| 3391 | if test -n "$CXX"; then |
| 3392 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3393 | else |
| 3394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3395 | for as_dir in $PATH |
| 3396 | do |
| 3397 | IFS=$as_save_IFS |
| 3398 | test -z "$as_dir" && as_dir=. |
| 3399 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3400 | 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] | 3401 | ac_cv_prog_CXX="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3402 | 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] | 3403 | break 2 |
| 3404 | fi |
| 3405 | done |
| 3406 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3407 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3408 | |
| 3409 | fi |
| 3410 | fi |
| 3411 | CXX=$ac_cv_prog_CXX |
| 3412 | if test -n "$CXX"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3413 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3414 | echo "${ECHO_T}$CXX" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3415 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3416 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3417 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3418 | fi |
| 3419 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3420 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3421 | test -n "$CXX" && break |
| 3422 | done |
| 3423 | test -n "$CXX" || CXX="notfound" |
| 3424 | |
| 3425 | if test "$CXX" = "notfound" |
| 3426 | then |
| 3427 | CXX="" |
| 3428 | fi |
| 3429 | fi |
| 3430 | if test "$preset_cxx" != "$CXX" |
| 3431 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3432 | { echo "$as_me:$LINENO: WARNING: |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3433 | |
| 3434 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3435 | If this is not intended, then set CXX on the configure command line. |
| 3436 | " >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3437 | echo "$as_me: WARNING: |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3438 | |
| 3439 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3440 | If this is not intended, then set CXX on the configure command line. |
| 3441 | " >&2;} |
| 3442 | fi |
| 3443 | |
| 3444 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3445 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3446 | |
| 3447 | ac_ext=c |
| 3448 | ac_cpp='$CPP $CPPFLAGS' |
| 3449 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3450 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3451 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3452 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3453 | 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] | 3454 | # On Suns, sometimes $CPP names a directory. |
| 3455 | if test -n "$CPP" && test -d "$CPP"; then |
| 3456 | CPP= |
| 3457 | fi |
| 3458 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3459 | if test "${ac_cv_prog_CPP+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3461 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3462 | # Double quotes because CPP needs to be expanded |
| 3463 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3464 | do |
| 3465 | ac_preproc_ok=false |
| 3466 | for ac_c_preproc_warn_flag in '' yes |
| 3467 | do |
| 3468 | # Use a header file that comes with gcc, so configuring glibc |
| 3469 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3470 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3471 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3472 | # 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] | 3473 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3474 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3475 | /* confdefs.h. */ |
| 3476 | _ACEOF |
| 3477 | cat confdefs.h >>conftest.$ac_ext |
| 3478 | cat >>conftest.$ac_ext <<_ACEOF |
| 3479 | /* end confdefs.h. */ |
| 3480 | #ifdef __STDC__ |
| 3481 | # include <limits.h> |
| 3482 | #else |
| 3483 | # include <assert.h> |
| 3484 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3485 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3486 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3487 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3488 | case "(($ac_try" in |
| 3489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3490 | *) ac_try_echo=$ac_try;; |
| 3491 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3493 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3494 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3495 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3496 | rm -f conftest.er1 |
| 3497 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3499 | (exit $ac_status); } >/dev/null && { |
| 3500 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3501 | test ! -s conftest.err |
| 3502 | }; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3503 | : |
| 3504 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3505 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3506 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3507 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3508 | # Broken: fails on valid input. |
| 3509 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3510 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3511 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3512 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3513 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3514 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3515 | # can be detected and how. |
| 3516 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3517 | /* confdefs.h. */ |
| 3518 | _ACEOF |
| 3519 | cat confdefs.h >>conftest.$ac_ext |
| 3520 | cat >>conftest.$ac_ext <<_ACEOF |
| 3521 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3522 | #include <ac_nonexistent.h> |
| 3523 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3524 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3525 | case "(($ac_try" in |
| 3526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3527 | *) ac_try_echo=$ac_try;; |
| 3528 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3530 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3531 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3532 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3533 | rm -f conftest.er1 |
| 3534 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3536 | (exit $ac_status); } >/dev/null && { |
| 3537 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3538 | test ! -s conftest.err |
| 3539 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3540 | # Broken: success on invalid input. |
| 3541 | continue |
| 3542 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3543 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3544 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3545 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3546 | # Passes both tests. |
| 3547 | ac_preproc_ok=: |
| 3548 | break |
| 3549 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3550 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3551 | rm -f conftest.err conftest.$ac_ext |
| 3552 | |
| 3553 | done |
| 3554 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3555 | rm -f conftest.err conftest.$ac_ext |
| 3556 | if $ac_preproc_ok; then |
| 3557 | break |
| 3558 | fi |
| 3559 | |
| 3560 | done |
| 3561 | ac_cv_prog_CPP=$CPP |
| 3562 | |
| 3563 | fi |
| 3564 | CPP=$ac_cv_prog_CPP |
| 3565 | else |
| 3566 | ac_cv_prog_CPP=$CPP |
| 3567 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3568 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3569 | echo "${ECHO_T}$CPP" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3570 | ac_preproc_ok=false |
| 3571 | for ac_c_preproc_warn_flag in '' yes |
| 3572 | do |
| 3573 | # Use a header file that comes with gcc, so configuring glibc |
| 3574 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3575 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3576 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3577 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3578 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3579 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3580 | /* confdefs.h. */ |
| 3581 | _ACEOF |
| 3582 | cat confdefs.h >>conftest.$ac_ext |
| 3583 | cat >>conftest.$ac_ext <<_ACEOF |
| 3584 | /* end confdefs.h. */ |
| 3585 | #ifdef __STDC__ |
| 3586 | # include <limits.h> |
| 3587 | #else |
| 3588 | # include <assert.h> |
| 3589 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3590 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3591 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3592 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3593 | case "(($ac_try" in |
| 3594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3595 | *) ac_try_echo=$ac_try;; |
| 3596 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3598 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3599 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3600 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3601 | rm -f conftest.er1 |
| 3602 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3604 | (exit $ac_status); } >/dev/null && { |
| 3605 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3606 | test ! -s conftest.err |
| 3607 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3608 | : |
| 3609 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3610 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3612 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3613 | # Broken: fails on valid input. |
| 3614 | continue |
| 3615 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3616 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3617 | rm -f conftest.err conftest.$ac_ext |
| 3618 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3619 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3620 | # can be detected and how. |
| 3621 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3622 | /* confdefs.h. */ |
| 3623 | _ACEOF |
| 3624 | cat confdefs.h >>conftest.$ac_ext |
| 3625 | cat >>conftest.$ac_ext <<_ACEOF |
| 3626 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3627 | #include <ac_nonexistent.h> |
| 3628 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3629 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3630 | case "(($ac_try" in |
| 3631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3632 | *) ac_try_echo=$ac_try;; |
| 3633 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3635 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3636 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3637 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3638 | rm -f conftest.er1 |
| 3639 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3641 | (exit $ac_status); } >/dev/null && { |
| 3642 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3643 | test ! -s conftest.err |
| 3644 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3645 | # Broken: success on invalid input. |
| 3646 | continue |
| 3647 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3648 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3649 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3650 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3651 | # Passes both tests. |
| 3652 | ac_preproc_ok=: |
| 3653 | break |
| 3654 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3655 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3656 | rm -f conftest.err conftest.$ac_ext |
| 3657 | |
| 3658 | done |
| 3659 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3660 | rm -f conftest.err conftest.$ac_ext |
| 3661 | if $ac_preproc_ok; then |
| 3662 | : |
| 3663 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3664 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3665 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3666 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3667 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3668 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3669 | fi |
| 3670 | |
| 3671 | ac_ext=c |
| 3672 | ac_cpp='$CPP $CPPFLAGS' |
| 3673 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3674 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3675 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3676 | |
| 3677 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3678 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3679 | 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] | 3680 | if test "${ac_cv_path_GREP+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3682 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3683 | # Extract the first word of "grep ggrep" to use in msg output |
| 3684 | if test -z "$GREP"; then |
| 3685 | set dummy grep ggrep; ac_prog_name=$2 |
| 3686 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3688 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3689 | ac_path_GREP_found=false |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3690 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3692 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3693 | do |
| 3694 | IFS=$as_save_IFS |
| 3695 | test -z "$as_dir" && as_dir=. |
| 3696 | for ac_prog in grep ggrep; do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3697 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3698 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3699 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 3700 | # 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] | 3701 | # Check for GNU $ac_path_GREP |
| 3702 | case `"$ac_path_GREP" --version 2>&1` in |
| 3703 | *GNU*) |
| 3704 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3705 | *) |
| 3706 | ac_count=0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3707 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3708 | while : |
| 3709 | do |
| 3710 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3711 | mv "conftest.tmp" "conftest.in" |
| 3712 | cp "conftest.in" "conftest.nl" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3713 | echo 'GREP' >> "conftest.nl" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3714 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3715 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3716 | ac_count=`expr $ac_count + 1` |
| 3717 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3718 | # Best one so far, save it but keep looking for a better one |
| 3719 | ac_cv_path_GREP="$ac_path_GREP" |
| 3720 | ac_path_GREP_max=$ac_count |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3721 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3722 | # 10*(2^10) chars as input seems more than enough |
| 3723 | test $ac_count -gt 10 && break |
| 3724 | done |
| 3725 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3726 | esac |
| 3727 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3728 | |
| 3729 | $ac_path_GREP_found && break 3 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3730 | done |
| 3731 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3732 | |
| 3733 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3734 | IFS=$as_save_IFS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3735 | |
| 3736 | |
| 3737 | fi |
| 3738 | |
| 3739 | GREP="$ac_cv_path_GREP" |
| 3740 | if test -z "$GREP"; then |
| 3741 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3742 | 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] | 3743 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3744 | fi |
| 3745 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3746 | else |
| 3747 | ac_cv_path_GREP=$GREP |
| 3748 | fi |
| 3749 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3750 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3751 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3752 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3753 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3754 | GREP="$ac_cv_path_GREP" |
| 3755 | |
| 3756 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3757 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3758 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3759 | if test "${ac_cv_path_EGREP+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3760 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3761 | else |
| 3762 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3763 | then ac_cv_path_EGREP="$GREP -E" |
| 3764 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3765 | # Extract the first word of "egrep" to use in msg output |
| 3766 | if test -z "$EGREP"; then |
| 3767 | set dummy egrep; ac_prog_name=$2 |
| 3768 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3770 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3771 | ac_path_EGREP_found=false |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3772 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3774 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3775 | do |
| 3776 | IFS=$as_save_IFS |
| 3777 | test -z "$as_dir" && as_dir=. |
| 3778 | for ac_prog in egrep; do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3779 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3780 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3781 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 3782 | # 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] | 3783 | # Check for GNU $ac_path_EGREP |
| 3784 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3785 | *GNU*) |
| 3786 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3787 | *) |
| 3788 | ac_count=0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3789 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3790 | while : |
| 3791 | do |
| 3792 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3793 | mv "conftest.tmp" "conftest.in" |
| 3794 | cp "conftest.in" "conftest.nl" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3795 | echo 'EGREP' >> "conftest.nl" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3796 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3797 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3798 | ac_count=`expr $ac_count + 1` |
| 3799 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3800 | # Best one so far, save it but keep looking for a better one |
| 3801 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3802 | ac_path_EGREP_max=$ac_count |
| 3803 | fi |
| 3804 | # 10*(2^10) chars as input seems more than enough |
| 3805 | test $ac_count -gt 10 && break |
| 3806 | done |
| 3807 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3808 | esac |
| 3809 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3810 | |
| 3811 | $ac_path_EGREP_found && break 3 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3812 | done |
| 3813 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3814 | |
| 3815 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3816 | IFS=$as_save_IFS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3817 | |
| 3818 | |
| 3819 | fi |
| 3820 | |
| 3821 | EGREP="$ac_cv_path_EGREP" |
| 3822 | if test -z "$EGREP"; then |
| 3823 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3824 | 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] | 3825 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3826 | fi |
| 3827 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3828 | else |
| 3829 | ac_cv_path_EGREP=$EGREP |
| 3830 | fi |
| 3831 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3832 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3833 | fi |
| 3834 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3835 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3836 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3837 | EGREP="$ac_cv_path_EGREP" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3838 | |
| 3839 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3840 | |
| 3841 | { echo "$as_me:$LINENO: checking for AIX" >&5 |
| 3842 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } |
| 3843 | cat >conftest.$ac_ext <<_ACEOF |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3844 | /* confdefs.h. */ |
| 3845 | _ACEOF |
| 3846 | cat confdefs.h >>conftest.$ac_ext |
| 3847 | cat >>conftest.$ac_ext <<_ACEOF |
| 3848 | /* end confdefs.h. */ |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3849 | #ifdef _AIX |
| 3850 | yes |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3851 | #endif |
| 3852 | |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3853 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3854 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3855 | $EGREP "yes" >/dev/null 2>&1; then |
| 3856 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3857 | echo "${ECHO_T}yes" >&6; } |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3858 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3859 | #define _ALL_SOURCE 1 |
| 3860 | _ACEOF |
| 3861 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3862 | else |
| 3863 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3864 | echo "${ECHO_T}no" >&6; } |
| 3865 | fi |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame^] | 3866 | rm -f -r conftest* |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3867 | |
| 3868 | |
| 3869 | |
| 3870 | # Check for unsupported systems |
| 3871 | case $ac_sys_system/$ac_sys_release in |
| 3872 | atheos*|Linux*/1*) |
| 3873 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3874 | echo See README for details. |
| 3875 | exit 1;; |
| 3876 | esac |
| 3877 | |
| 3878 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3879 | { echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3880 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3881 | |
| 3882 | # Check whether --with-suffix was given. |
| 3883 | if test "${with_suffix+set}" = set; then |
| 3884 | withval=$with_suffix; |
| 3885 | case $withval in |
| 3886 | no) EXEEXT=;; |
| 3887 | yes) EXEEXT=.exe;; |
| 3888 | *) EXEEXT=$withval;; |
| 3889 | esac |
| 3890 | fi |
| 3891 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3892 | { echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3893 | echo "${ECHO_T}$EXEEXT" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3894 | |
| 3895 | # Test whether we're running on a non-case-sensitive system, in which |
| 3896 | # case we give a warning if no ext is given |
| 3897 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3898 | { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3899 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3900 | if test ! -d CaseSensitiveTestDir; then |
| 3901 | mkdir CaseSensitiveTestDir |
| 3902 | fi |
| 3903 | |
| 3904 | if test -d casesensitivetestdir |
| 3905 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3906 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3907 | echo "${ECHO_T}yes" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3908 | BUILDEXEEXT=.exe |
| 3909 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3910 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3911 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3912 | BUILDEXEEXT=$EXEEXT |
| 3913 | fi |
| 3914 | rmdir CaseSensitiveTestDir |
| 3915 | |
| 3916 | case $MACHDEP in |
| 3917 | bsdos*) |
| 3918 | case $CC in |
| 3919 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3920 | esac;; |
| 3921 | esac |
| 3922 | |
| 3923 | case $ac_sys_system in |
| 3924 | hp*|HP*) |
| 3925 | case $CC in |
| 3926 | cc|*/cc) CC="$CC -Ae";; |
| 3927 | esac;; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3928 | SunOS*) |
| 3929 | # Some functions have a prototype only with that define, e.g. confstr |
| 3930 | |
| 3931 | cat >>confdefs.h <<\_ACEOF |
| 3932 | #define __EXTENSIONS__ 1 |
| 3933 | _ACEOF |
| 3934 | |
| 3935 | ;; |
| 3936 | esac |
| 3937 | |
| 3938 | |
| 3939 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3940 | { echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3941 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3942 | if test -z "$LIBRARY" |
| 3943 | then |
| 3944 | LIBRARY='libpython$(VERSION).a' |
| 3945 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3946 | { echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3947 | echo "${ECHO_T}$LIBRARY" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3948 | |
| 3949 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 3950 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3951 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3952 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3953 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3954 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3955 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3956 | # DLLLIBRARY is the shared (i.e., DLL) library. |
| 3957 | # |
| 3958 | # RUNSHARED is used to run shared python without installed libraries |
| 3959 | # |
| 3960 | # INSTSONAME is the name of the shared library that will be use to install |
| 3961 | # on the system - some systems like version suffix, others don't |
| 3962 | |
| 3963 | |
| 3964 | |
| 3965 | |
| 3966 | |
| 3967 | |
| 3968 | LDLIBRARY="$LIBRARY" |
| 3969 | BLDLIBRARY='$(LDLIBRARY)' |
| 3970 | INSTSONAME='$(LDLIBRARY)' |
| 3971 | DLLLIBRARY='' |
| 3972 | LDLIBRARYDIR='' |
| 3973 | RUNSHARED='' |
| 3974 | |
| 3975 | # LINKCC is the command that links the python executable -- default is $(CC). |
| 3976 | # If CXX is set, and if it is needed to link a main function that was |
| 3977 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3978 | # python might then depend on the C++ runtime |
| 3979 | # This is altered for AIX in order to build the export list before |
| 3980 | # linking. |
| 3981 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3982 | { echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3983 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3984 | if test -z "$LINKCC" |
| 3985 | then |
| 3986 | LINKCC='$(PURIFY) $(MAINCC)' |
| 3987 | case $ac_sys_system in |
| 3988 | AIX*) |
| 3989 | exp_extra="\"\"" |
| 3990 | if test $ac_sys_release -ge 5 -o \ |
| 3991 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 3992 | exp_extra="." |
| 3993 | fi |
| 3994 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3995 | QNX*) |
| 3996 | # qcc must be used because the other compilers do not |
| 3997 | # support -N. |
| 3998 | LINKCC=qcc;; |
| 3999 | esac |
| 4000 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4001 | { echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 4002 | echo "${ECHO_T}$LINKCC" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4003 | |
| 4004 | # GNULD is set to "yes" if the GNU linker is used. If this goes wrong |
| 4005 | # make sure we default having it set to "no": this is used by |
| 4006 | # distutils.unixccompiler to know if it should add --enable-new-dtags |
| 4007 | # to linker command lines, and failing to detect GNU ld simply results |
| 4008 | # in the same bahaviour as before. |
| 4009 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4010 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 4011 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4012 | ac_prog=ld |
| 4013 | if test "$GCC" = yes; then |
| 4014 | ac_prog=`$CC -print-prog-name=ld` |
| 4015 | fi |
| 4016 | case `"$ac_prog" -V 2>&1 < /dev/null` in |
| 4017 | *GNU*) |
| 4018 | GNULD=yes;; |
| 4019 | *) |
| 4020 | GNULD=no;; |
| 4021 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4022 | { echo "$as_me:$LINENO: result: $GNULD" >&5 |
| 4023 | echo "${ECHO_T}$GNULD" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4024 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4025 | { echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 4026 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4027 | # Check whether --enable-shared was given. |
| 4028 | if test "${enable_shared+set}" = set; then |
| 4029 | enableval=$enable_shared; |
| 4030 | fi |
| 4031 | |
| 4032 | |
| 4033 | if test -z "$enable_shared" |
| 4034 | then |
| 4035 | case $ac_sys_system in |
| 4036 | CYGWIN* | atheos*) |
| 4037 | enable_shared="yes";; |
| 4038 | *) |
| 4039 | enable_shared="no";; |
| 4040 | esac |
| 4041 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4042 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 4043 | echo "${ECHO_T}$enable_shared" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4044 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4045 | { echo "$as_me:$LINENO: checking for --enable-profiling" >&5 |
| 4046 | echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4047 | # Check whether --enable-profiling was given. |
| 4048 | if test "${enable_profiling+set}" = set; then |
| 4049 | enableval=$enable_profiling; ac_save_cc="$CC" |
| 4050 | CC="$CC -pg" |
| 4051 | if test "$cross_compiling" = yes; then |
| 4052 | ac_enable_profiling="no" |
| 4053 | else |
| 4054 | cat >conftest.$ac_ext <<_ACEOF |
| 4055 | /* confdefs.h. */ |
| 4056 | _ACEOF |
| 4057 | cat confdefs.h >>conftest.$ac_ext |
| 4058 | cat >>conftest.$ac_ext <<_ACEOF |
| 4059 | /* end confdefs.h. */ |
| 4060 | int main() { return 0; } |
| 4061 | _ACEOF |
| 4062 | rm -f conftest$ac_exeext |
| 4063 | if { (ac_try="$ac_link" |
| 4064 | case "(($ac_try" in |
| 4065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4066 | *) ac_try_echo=$ac_try;; |
| 4067 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4069 | (eval "$ac_link") 2>&5 |
| 4070 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4072 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4073 | { (case "(($ac_try" in |
| 4074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4075 | *) ac_try_echo=$ac_try;; |
| 4076 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4078 | (eval "$ac_try") 2>&5 |
| 4079 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4081 | (exit $ac_status); }; }; then |
| 4082 | ac_enable_profiling="yes" |
| 4083 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4084 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4085 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4086 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4087 | |
| 4088 | ( exit $ac_status ) |
| 4089 | ac_enable_profiling="no" |
| 4090 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4091 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4092 | fi |
| 4093 | |
| 4094 | |
| 4095 | CC="$ac_save_cc" |
| 4096 | fi |
| 4097 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4098 | { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5 |
| 4099 | echo "${ECHO_T}$ac_enable_profiling" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4100 | |
| 4101 | case "$ac_enable_profiling" in |
| 4102 | "yes") |
| 4103 | BASECFLAGS="-pg $BASECFLAGS" |
| 4104 | LDFLAGS="-pg $LDFLAGS" |
| 4105 | ;; |
| 4106 | esac |
| 4107 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4108 | { echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 4109 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4110 | |
| 4111 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 4112 | # library that we build, but we do not want to link against it (we |
| 4113 | # will find it with a -framework option). For this reason there is an |
| 4114 | # extra variable BLDLIBRARY against which Python and the extension |
| 4115 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 4116 | # LDLIBRARY, but empty for MacOSX framework builds. |
| 4117 | if test "$enable_framework" |
| 4118 | then |
| 4119 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 4120 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
| 4121 | BLDLIBRARY='' |
| 4122 | else |
| 4123 | BLDLIBRARY='$(LDLIBRARY)' |
| 4124 | fi |
| 4125 | |
| 4126 | # Other platforms follow |
| 4127 | if test $enable_shared = "yes"; then |
| 4128 | |
| 4129 | cat >>confdefs.h <<\_ACEOF |
| 4130 | #define Py_ENABLE_SHARED 1 |
| 4131 | _ACEOF |
| 4132 | |
| 4133 | case $ac_sys_system in |
| 4134 | BeOS*) |
| 4135 | LDLIBRARY='libpython$(VERSION).so' |
| 4136 | ;; |
| 4137 | CYGWIN*) |
| 4138 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4139 | DLLLIBRARY='libpython$(VERSION).dll' |
| 4140 | ;; |
| 4141 | SunOS*) |
| 4142 | LDLIBRARY='libpython$(VERSION).so' |
| 4143 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4144 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4145 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4146 | ;; |
| 4147 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*) |
| 4148 | LDLIBRARY='libpython$(VERSION).so' |
| 4149 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4150 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4151 | case $ac_sys_system in |
| 4152 | FreeBSD*) |
| 4153 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
| 4154 | ;; |
| 4155 | esac |
| 4156 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4157 | ;; |
| 4158 | hp*|HP*) |
| 4159 | case `uname -m` in |
| 4160 | ia64) |
| 4161 | LDLIBRARY='libpython$(VERSION).so' |
| 4162 | ;; |
| 4163 | *) |
| 4164 | LDLIBRARY='libpython$(VERSION).sl' |
| 4165 | ;; |
| 4166 | esac |
| 4167 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4168 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
| 4169 | ;; |
| 4170 | OSF*) |
| 4171 | LDLIBRARY='libpython$(VERSION).so' |
| 4172 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 4173 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4174 | ;; |
| 4175 | atheos*) |
| 4176 | LDLIBRARY='libpython$(VERSION).so' |
| 4177 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4178 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 4179 | ;; |
| 4180 | Darwin*) |
| 4181 | LDLIBRARY='libpython$(VERSION).dylib' |
| 4182 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4183 | RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}' |
| 4184 | ;; |
| 4185 | |
| 4186 | esac |
| 4187 | else # shared is disabled |
| 4188 | case $ac_sys_system in |
| 4189 | CYGWIN*) |
| 4190 | BLDLIBRARY='$(LIBRARY)' |
| 4191 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4192 | ;; |
| 4193 | esac |
| 4194 | fi |
| 4195 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4196 | { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 4197 | echo "${ECHO_T}$LDLIBRARY" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4198 | |
| 4199 | if test -n "$ac_tool_prefix"; then |
| 4200 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4201 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4202 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4203 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4204 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4205 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4206 | else |
| 4207 | if test -n "$RANLIB"; then |
| 4208 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4209 | else |
| 4210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4211 | for as_dir in $PATH |
| 4212 | do |
| 4213 | IFS=$as_save_IFS |
| 4214 | test -z "$as_dir" && as_dir=. |
| 4215 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4216 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4217 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4218 | 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] | 4219 | break 2 |
| 4220 | fi |
| 4221 | done |
| 4222 | done |
| 4223 | IFS=$as_save_IFS |
| 4224 | |
| 4225 | fi |
| 4226 | fi |
| 4227 | RANLIB=$ac_cv_prog_RANLIB |
| 4228 | if test -n "$RANLIB"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4229 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4230 | echo "${ECHO_T}$RANLIB" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4231 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4232 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4233 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4234 | fi |
| 4235 | |
| 4236 | |
| 4237 | fi |
| 4238 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4239 | ac_ct_RANLIB=$RANLIB |
| 4240 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4241 | set dummy ranlib; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4242 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4243 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4244 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4246 | else |
| 4247 | if test -n "$ac_ct_RANLIB"; then |
| 4248 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4249 | else |
| 4250 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4251 | for as_dir in $PATH |
| 4252 | do |
| 4253 | IFS=$as_save_IFS |
| 4254 | test -z "$as_dir" && as_dir=. |
| 4255 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4256 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4257 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4258 | 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] | 4259 | break 2 |
| 4260 | fi |
| 4261 | done |
| 4262 | done |
| 4263 | IFS=$as_save_IFS |
| 4264 | |
| 4265 | fi |
| 4266 | fi |
| 4267 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4268 | if test -n "$ac_ct_RANLIB"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4269 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4270 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4271 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4272 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4273 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4274 | fi |
| 4275 | |
| 4276 | if test "x$ac_ct_RANLIB" = x; then |
| 4277 | RANLIB=":" |
| 4278 | else |
| 4279 | case $cross_compiling:$ac_tool_warned in |
| 4280 | yes:) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4281 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4282 | whose name does not start with the host triplet. If you think this |
| 4283 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4284 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4285 | whose name does not start with the host triplet. If you think this |
| 4286 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4287 | ac_tool_warned=yes ;; |
| 4288 | esac |
| 4289 | RANLIB=$ac_ct_RANLIB |
| 4290 | fi |
| 4291 | else |
| 4292 | RANLIB="$ac_cv_prog_RANLIB" |
| 4293 | fi |
| 4294 | |
| 4295 | |
| 4296 | for ac_prog in ar aal |
| 4297 | do |
| 4298 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4299 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4300 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4301 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4302 | if test "${ac_cv_prog_AR+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4304 | else |
| 4305 | if test -n "$AR"; then |
| 4306 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4307 | else |
| 4308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4309 | for as_dir in $PATH |
| 4310 | do |
| 4311 | IFS=$as_save_IFS |
| 4312 | test -z "$as_dir" && as_dir=. |
| 4313 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4314 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4315 | ac_cv_prog_AR="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4316 | 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] | 4317 | break 2 |
| 4318 | fi |
| 4319 | done |
| 4320 | done |
| 4321 | IFS=$as_save_IFS |
| 4322 | |
| 4323 | fi |
| 4324 | fi |
| 4325 | AR=$ac_cv_prog_AR |
| 4326 | if test -n "$AR"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4327 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 4328 | echo "${ECHO_T}$AR" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4329 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4330 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4331 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4332 | fi |
| 4333 | |
| 4334 | |
| 4335 | test -n "$AR" && break |
| 4336 | done |
| 4337 | test -n "$AR" || AR="ar" |
| 4338 | |
| 4339 | |
| 4340 | # tweak ARFLAGS only if the user didn't set it on the command line |
| 4341 | |
| 4342 | if test -z "$ARFLAGS" |
| 4343 | then |
| 4344 | ARFLAGS="rc" |
| 4345 | fi |
| 4346 | |
| 4347 | |
| 4348 | # Extract the first word of "svnversion", so it can be a program name with args. |
| 4349 | set dummy svnversion; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4350 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4351 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4352 | if test "${ac_cv_prog_SVNVERSION+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4354 | else |
| 4355 | if test -n "$SVNVERSION"; then |
| 4356 | ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. |
| 4357 | else |
| 4358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4359 | for as_dir in $PATH |
| 4360 | do |
| 4361 | IFS=$as_save_IFS |
| 4362 | test -z "$as_dir" && as_dir=. |
| 4363 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4364 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4365 | ac_cv_prog_SVNVERSION="found" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4366 | 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] | 4367 | break 2 |
| 4368 | fi |
| 4369 | done |
| 4370 | done |
| 4371 | IFS=$as_save_IFS |
| 4372 | |
| 4373 | test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found" |
| 4374 | fi |
| 4375 | fi |
| 4376 | SVNVERSION=$ac_cv_prog_SVNVERSION |
| 4377 | if test -n "$SVNVERSION"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4378 | { echo "$as_me:$LINENO: result: $SVNVERSION" >&5 |
| 4379 | echo "${ECHO_T}$SVNVERSION" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4380 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4381 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4382 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4383 | fi |
| 4384 | |
| 4385 | |
| 4386 | if test $SVNVERSION = found |
| 4387 | then |
| 4388 | SVNVERSION="svnversion \$(srcdir)" |
| 4389 | else |
| 4390 | SVNVERSION="echo Unversioned directory" |
| 4391 | fi |
| 4392 | |
| 4393 | case $MACHDEP in |
| 4394 | bsdos*|hp*|HP*) |
| 4395 | # install -d does not work on BSDI or HP-UX |
| 4396 | if test -z "$INSTALL" |
| 4397 | then |
| 4398 | INSTALL="${srcdir}/install-sh -c" |
| 4399 | fi |
| 4400 | esac |
| 4401 | ac_aux_dir= |
| 4402 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 4403 | if test -f "$ac_dir/install-sh"; then |
| 4404 | ac_aux_dir=$ac_dir |
| 4405 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 4406 | break |
| 4407 | elif test -f "$ac_dir/install.sh"; then |
| 4408 | ac_aux_dir=$ac_dir |
| 4409 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 4410 | break |
| 4411 | elif test -f "$ac_dir/shtool"; then |
| 4412 | ac_aux_dir=$ac_dir |
| 4413 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 4414 | break |
| 4415 | fi |
| 4416 | done |
| 4417 | if test -z "$ac_aux_dir"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4418 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
| 4419 | 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] | 4420 | { (exit 1); exit 1; }; } |
| 4421 | fi |
| 4422 | |
| 4423 | # These three variables are undocumented and unsupported, |
| 4424 | # and are intended to be withdrawn in a future Autoconf release. |
| 4425 | # They can cause serious problems if a builder's source tree is in a directory |
| 4426 | # whose full name contains unusual characters. |
| 4427 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 4428 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 4429 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 4430 | |
| 4431 | |
| 4432 | # Find a good install program. We prefer a C program (faster), |
| 4433 | # so one script is as good as another. But avoid the broken or |
| 4434 | # incompatible versions: |
| 4435 | # SysV /etc/install, /usr/sbin/install |
| 4436 | # SunOS /usr/etc/install |
| 4437 | # IRIX /sbin/install |
| 4438 | # AIX /bin/install |
| 4439 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 4440 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4441 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4442 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 4443 | # OS/2's system install, which has a completely different semantic |
| 4444 | # ./install, which can be erroneously created by make from ./install.sh. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4445 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4446 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4447 | if test -z "$INSTALL"; then |
| 4448 | if test "${ac_cv_path_install+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4450 | else |
| 4451 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4452 | for as_dir in $PATH |
| 4453 | do |
| 4454 | IFS=$as_save_IFS |
| 4455 | test -z "$as_dir" && as_dir=. |
| 4456 | # Account for people who put trailing slashes in PATH elements. |
| 4457 | case $as_dir/ in |
| 4458 | ./ | .// | /cC/* | \ |
| 4459 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4460 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 4461 | /usr/ucb/* ) ;; |
| 4462 | *) |
| 4463 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4464 | # Don't use installbsd from OSF since it installs stuff as root |
| 4465 | # by default. |
| 4466 | for ac_prog in ginstall scoinst install; do |
| 4467 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4468 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 4469 | if test $ac_prog = install && |
| 4470 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4471 | # AIX install. It has an incompatible calling convention. |
| 4472 | : |
| 4473 | elif test $ac_prog = install && |
| 4474 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4475 | # program-specific install script used by HP pwplus--don't use. |
| 4476 | : |
| 4477 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4478 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4479 | break 3 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4480 | fi |
| 4481 | fi |
| 4482 | done |
| 4483 | done |
| 4484 | ;; |
| 4485 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4486 | done |
| 4487 | IFS=$as_save_IFS |
| 4488 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4489 | |
| 4490 | fi |
| 4491 | if test "${ac_cv_path_install+set}" = set; then |
| 4492 | INSTALL=$ac_cv_path_install |
| 4493 | else |
| 4494 | # As a last resort, use the slow shell script. Don't cache a |
| 4495 | # value for INSTALL within a source directory, because that will |
| 4496 | # break other packages using the cache if that directory is |
| 4497 | # removed, or if the value is a relative name. |
| 4498 | INSTALL=$ac_install_sh |
| 4499 | fi |
| 4500 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4501 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4502 | echo "${ECHO_T}$INSTALL" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4503 | |
| 4504 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4505 | # It thinks the first close brace ends the variable substitution. |
| 4506 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4507 | |
| 4508 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 4509 | |
| 4510 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4511 | |
| 4512 | |
| 4513 | # Not every filesystem supports hard links |
| 4514 | |
| 4515 | if test -z "$LN" ; then |
| 4516 | case $ac_sys_system in |
| 4517 | BeOS*) LN="ln -s";; |
| 4518 | CYGWIN*) LN="ln -s";; |
| 4519 | atheos*) LN="ln -s";; |
| 4520 | *) LN=ln;; |
| 4521 | esac |
| 4522 | fi |
| 4523 | |
| 4524 | # Check for --with-pydebug |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4525 | { echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 4526 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4527 | |
| 4528 | # Check whether --with-pydebug was given. |
| 4529 | if test "${with_pydebug+set}" = set; then |
| 4530 | withval=$with_pydebug; |
| 4531 | if test "$withval" != no |
| 4532 | then |
| 4533 | |
| 4534 | cat >>confdefs.h <<\_ACEOF |
| 4535 | #define Py_DEBUG 1 |
| 4536 | _ACEOF |
| 4537 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4538 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4539 | echo "${ECHO_T}yes" >&6; }; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4540 | Py_DEBUG='true' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4541 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 4542 | echo "${ECHO_T}no" >&6; }; Py_DEBUG='false' |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4543 | fi |
| 4544 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4545 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4546 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4547 | fi |
| 4548 | |
| 4549 | |
| 4550 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 4551 | # merged with this chunk of code? |
| 4552 | |
| 4553 | # Optimizer/debugger flags |
| 4554 | # ------------------------ |
| 4555 | # (The following bit of code is complicated enough - please keep things |
| 4556 | # indented properly. Just pretend you're editing Python code. ;-) |
| 4557 | |
| 4558 | # There are two parallel sets of case statements below, one that checks to |
| 4559 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 4560 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 4561 | # user set OPT. |
| 4562 | |
| 4563 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 4564 | # it on the command line |
| 4565 | |
| 4566 | if test -z "$OPT" |
| 4567 | then |
| 4568 | case $GCC in |
| 4569 | yes) |
| 4570 | if test "$CC" != 'g++' ; then |
| 4571 | STRICT_PROTO="-Wstrict-prototypes" |
| 4572 | fi |
| 4573 | # For gcc 4.x we need to use -fwrapv so lets check if its supported |
| 4574 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then |
| 4575 | WRAP="-fwrapv" |
| 4576 | fi |
| 4577 | case $ac_cv_prog_cc_g in |
| 4578 | yes) |
| 4579 | if test "$Py_DEBUG" = 'true' ; then |
| 4580 | # Optimization messes up debuggers, so turn it off for |
| 4581 | # debug builds. |
| 4582 | OPT="-g -Wall $STRICT_PROTO" |
| 4583 | else |
| 4584 | OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" |
| 4585 | fi |
| 4586 | ;; |
| 4587 | *) |
| 4588 | OPT="-O3 -Wall $STRICT_PROTO" |
| 4589 | ;; |
| 4590 | esac |
| 4591 | case $ac_sys_system in |
| 4592 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 4593 | ;; |
| 4594 | esac |
| 4595 | ;; |
| 4596 | |
| 4597 | *) |
| 4598 | OPT="-O" |
| 4599 | ;; |
| 4600 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4601 | fi |
| 4602 | |
| 4603 | |
| 4604 | |
| 4605 | # The -arch flags for universal builds on OSX |
| 4606 | UNIVERSAL_ARCH_FLAGS= |
| 4607 | |
| 4608 | |
| 4609 | # tweak BASECFLAGS based on compiler and platform |
| 4610 | case $GCC in |
| 4611 | yes) |
| 4612 | # Python violates C99 rules, by casting between incompatible |
| 4613 | # pointer types. GCC may generate bad code as a result of that, |
| 4614 | # so use -fno-strict-aliasing if supported. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4615 | { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 4616 | 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] | 4617 | ac_save_cc="$CC" |
| 4618 | CC="$CC -fno-strict-aliasing" |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 4619 | if test "${ac_cv_no_strict_aliasing_ok+set}" = set; then |
| 4620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4621 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4622 | cat >conftest.$ac_ext <<_ACEOF |
| 4623 | /* confdefs.h. */ |
| 4624 | _ACEOF |
| 4625 | cat confdefs.h >>conftest.$ac_ext |
| 4626 | cat >>conftest.$ac_ext <<_ACEOF |
| 4627 | /* end confdefs.h. */ |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4628 | |
| 4629 | int |
| 4630 | main () |
| 4631 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4632 | int main() { return 0; } |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4633 | ; |
| 4634 | return 0; |
| 4635 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4636 | _ACEOF |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4637 | rm -f conftest.$ac_objext |
| 4638 | if { (ac_try="$ac_compile" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4639 | case "(($ac_try" in |
| 4640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4641 | *) ac_try_echo=$ac_try;; |
| 4642 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4644 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4645 | ac_status=$? |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4646 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4647 | rm -f conftest.er1 |
| 4648 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4650 | (exit $ac_status); } && { |
| 4651 | test -z "$ac_c_werror_flag" || |
| 4652 | test ! -s conftest.err |
| 4653 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4654 | ac_cv_no_strict_aliasing_ok=yes |
| 4655 | else |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4656 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4657 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4658 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4659 | ac_cv_no_strict_aliasing_ok=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4660 | fi |
| 4661 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4662 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 4663 | fi |
| 4664 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4665 | CC="$ac_save_cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4666 | { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 4667 | echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4668 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 4669 | then |
| 4670 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 4671 | fi |
| 4672 | |
| 4673 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 |
| 4674 | # support. Without this, treatment of subnormals doesn't follow |
| 4675 | # the standard. |
| 4676 | case $ac_sys_machine in |
| 4677 | alpha*) |
| 4678 | BASECFLAGS="$BASECFLAGS -mieee" |
| 4679 | ;; |
| 4680 | esac |
| 4681 | |
| 4682 | case $ac_sys_system in |
| 4683 | SCO_SV*) |
| 4684 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 4685 | ;; |
| 4686 | # is there any other compiler on Darwin besides gcc? |
| 4687 | Darwin*) |
| 4688 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd |
| 4689 | # used to be here, but non-Apple gcc doesn't accept them. |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame^] | 4690 | if test "${CC}" = gcc |
| 4691 | then |
| 4692 | { echo "$as_me:$LINENO: checking which compiler should be used" >&5 |
| 4693 | echo $ECHO_N "checking which compiler should be used... $ECHO_C" >&6; } |
| 4694 | case "${UNIVERSALSDK}" in |
| 4695 | */MacOSX10.4u.sdk) |
| 4696 | # Build using 10.4 SDK, force usage of gcc when the |
| 4697 | # compiler is gcc, otherwise the user will get very |
| 4698 | # confusing error messages when building on OSX 10.6 |
| 4699 | CC=gcc-4.0 |
| 4700 | CPP=cpp-4.0 |
| 4701 | ;; |
| 4702 | esac |
| 4703 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 4704 | echo "${ECHO_T}$CC" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4705 | fi |
| 4706 | |
| 4707 | # Calculate the right deployment target for this build. |
| 4708 | # |
| 4709 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
| 4710 | if test ${cur_target} '>' 10.2; then |
| 4711 | cur_target=10.3 |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 4712 | if test ${enable_universalsdk}; then |
| 4713 | if test "${UNIVERSAL_ARCHS}" = "all"; then |
| 4714 | # Ensure that the default platform for a |
| 4715 | # 4-way universal build is OSX 10.5, |
| 4716 | # that's the first OS release where |
| 4717 | # 4-way builds make sense. |
| 4718 | cur_target='10.5' |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 4719 | |
| 4720 | elif test "${UNIVERSAL_ARCHS}" = "3-way"; then |
| 4721 | cur_target='10.5' |
| 4722 | |
| 4723 | elif test "${UNIVERSAL_ARCHS}" = "intel"; then |
| 4724 | cur_target='10.5' |
| 4725 | |
| 4726 | elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then |
| 4727 | cur_target='10.5' |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 4728 | fi |
| 4729 | else |
| 4730 | if test `arch` = "i386"; then |
| 4731 | # On Intel macs default to a deployment |
| 4732 | # target of 10.4, that's the first OSX |
| 4733 | # release with Intel support. |
| 4734 | cur_target="10.4" |
| 4735 | fi |
| 4736 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4737 | fi |
| 4738 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
| 4739 | |
| 4740 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
| 4741 | # environment with a value that is the same as what we'll use |
| 4742 | # in the Makefile to ensure that we'll get the same compiler |
| 4743 | # environment during configure and build time. |
| 4744 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" |
| 4745 | export MACOSX_DEPLOYMENT_TARGET |
| 4746 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' |
| 4747 | |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame^] | 4748 | if test "${enable_universalsdk}"; then |
| 4749 | UNIVERSAL_ARCH_FLAGS="" |
| 4750 | if test "$UNIVERSAL_ARCHS" = "32-bit" ; then |
| 4751 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" |
| 4752 | ARCH_RUN_32BIT="" |
| 4753 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
| 4754 | |
| 4755 | |
| 4756 | # You have to use different flags on various versions of |
| 4757 | # OSX to extract PPC code from an universal binary, basically |
| 4758 | # '-arch ppc' on OSX 10.4 and '-arch ppc7400' on anything |
| 4759 | # newer. |
| 4760 | # Because '-arch pp7400' works on OSX 10.5 or higher this |
| 4761 | # test is only present in the '32-bit' branch, all other |
| 4762 | # branches require OSX 10.5 to compile. |
| 4763 | |
| 4764 | { echo "$as_me:$LINENO: checking lipo flag for extracting ppc code" >&5 |
| 4765 | echo $ECHO_N "checking lipo flag for extracting ppc code... $ECHO_C" >&6; } |
| 4766 | FN="test.$$" |
| 4767 | cat >${FN}.c <<-EOF |
| 4768 | int main() { return 0; } |
| 4769 | EOF |
| 4770 | ${CC} ${CFLAGS} -arch ppc -arch i386 -o ${FN} ${FN}.c -isysroot ${UNIVERSALSDK} |
| 4771 | if test $? != 0 ; then |
| 4772 | rm ${FN} ${FN}.c |
| 4773 | { echo "$as_me:$LINENO: result: failed, assumee -extract ppc7400" >&5 |
| 4774 | echo "${ECHO_T}failed, assumee -extract ppc7400" >&6; } |
| 4775 | else |
| 4776 | lipo -extract -output "${FN}.out" -arch ppc7400 "${FN}" 2>/dev/null |
| 4777 | if test $? != 0 ; then |
| 4778 | LIPO_32BIT_FLAGS="-extract ppc -extract i386" |
| 4779 | { echo "$as_me:$LINENO: result: \"'-extract ppc'\"" >&5 |
| 4780 | echo "${ECHO_T}\"'-extract ppc'\"" >&6; } |
| 4781 | else |
| 4782 | { echo "$as_me:$LINENO: result: \"'-extract ppc7400'\"" >&5 |
| 4783 | echo "${ECHO_T}\"'-extract ppc7400'\"" >&6; } |
| 4784 | fi |
| 4785 | rm -f ${FN} ${FN}.c ${FN}.out |
| 4786 | fi |
| 4787 | |
| 4788 | elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then |
| 4789 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" |
| 4790 | LIPO_32BIT_FLAGS="" |
| 4791 | ARCH_RUN_32BIT="true" |
| 4792 | |
| 4793 | elif test "$UNIVERSAL_ARCHS" = "all" ; then |
| 4794 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" |
| 4795 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
| 4796 | ARCH_RUN_32BIT="arch -i386 -ppc" |
| 4797 | |
| 4798 | elif test "$UNIVERSAL_ARCHS" = "intel" ; then |
| 4799 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" |
| 4800 | LIPO_32BIT_FLAGS="-extract i386" |
| 4801 | ARCH_RUN_32BIT="arch -i386" |
| 4802 | |
| 4803 | elif test "$UNIVERSAL_ARCHS" = "3-way" ; then |
| 4804 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" |
| 4805 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
| 4806 | ARCH_RUN_32BIT="arch -i386 -ppc7400" |
| 4807 | |
| 4808 | else |
| 4809 | { { echo "$as_me:$LINENO: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&5 |
| 4810 | echo "$as_me: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&2;} |
| 4811 | { (exit 1); exit 1; }; } |
| 4812 | |
| 4813 | fi |
| 4814 | |
| 4815 | |
| 4816 | BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}" |
| 4817 | tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
| 4818 | if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then |
| 4819 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" |
| 4820 | CPPFLAGS="-isysroot ${UNIVERSALSDK}" |
| 4821 | fi |
| 4822 | |
| 4823 | fi |
| 4824 | |
| 4825 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4826 | ;; |
| 4827 | OSF*) |
| 4828 | BASECFLAGS="$BASECFLAGS -mieee" |
| 4829 | ;; |
| 4830 | esac |
| 4831 | ;; |
| 4832 | |
| 4833 | *) |
| 4834 | case $ac_sys_system in |
| 4835 | OpenUNIX*|UnixWare*) |
| 4836 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 4837 | ;; |
| 4838 | OSF*) |
| 4839 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 4840 | ;; |
| 4841 | SCO_SV*) |
| 4842 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 4843 | ;; |
| 4844 | esac |
| 4845 | ;; |
| 4846 | esac |
| 4847 | |
| 4848 | if test "$Py_DEBUG" = 'true'; then |
| 4849 | : |
| 4850 | else |
| 4851 | OPT="-DNDEBUG $OPT" |
| 4852 | fi |
| 4853 | |
| 4854 | if test "$ac_arch_flags" |
| 4855 | then |
| 4856 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
| 4857 | fi |
| 4858 | |
| 4859 | # disable check for icc since it seems to pass, but generates a warning |
| 4860 | if test "$CC" = icc |
| 4861 | then |
| 4862 | ac_cv_opt_olimit_ok=no |
| 4863 | fi |
| 4864 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4865 | { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 4866 | 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] | 4867 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4869 | else |
| 4870 | ac_save_cc="$CC" |
| 4871 | CC="$CC -OPT:Olimit=0" |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4872 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4873 | /* confdefs.h. */ |
| 4874 | _ACEOF |
| 4875 | cat confdefs.h >>conftest.$ac_ext |
| 4876 | cat >>conftest.$ac_ext <<_ACEOF |
| 4877 | /* end confdefs.h. */ |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4878 | |
| 4879 | int |
| 4880 | main () |
| 4881 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4882 | int main() { return 0; } |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4883 | ; |
| 4884 | return 0; |
| 4885 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4886 | _ACEOF |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4887 | rm -f conftest.$ac_objext |
| 4888 | if { (ac_try="$ac_compile" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4889 | case "(($ac_try" in |
| 4890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4891 | *) ac_try_echo=$ac_try;; |
| 4892 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4894 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4895 | ac_status=$? |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4896 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4897 | rm -f conftest.er1 |
| 4898 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4900 | (exit $ac_status); } && { |
| 4901 | test -z "$ac_c_werror_flag" || |
| 4902 | test ! -s conftest.err |
| 4903 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4904 | ac_cv_opt_olimit_ok=yes |
| 4905 | else |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4906 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4907 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4908 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4909 | ac_cv_opt_olimit_ok=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4910 | fi |
| 4911 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4913 | CC="$ac_save_cc" |
| 4914 | fi |
| 4915 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4916 | { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 4917 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4918 | if test $ac_cv_opt_olimit_ok = yes; then |
| 4919 | case $ac_sys_system in |
| 4920 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 4921 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 4922 | # environment? |
| 4923 | Darwin*) |
| 4924 | ;; |
| 4925 | *) |
| 4926 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 4927 | ;; |
| 4928 | esac |
| 4929 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4930 | { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 4931 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4932 | if test "${ac_cv_olimit_ok+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4934 | else |
| 4935 | ac_save_cc="$CC" |
| 4936 | CC="$CC -Olimit 1500" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4937 | cat >conftest.$ac_ext <<_ACEOF |
| 4938 | /* confdefs.h. */ |
| 4939 | _ACEOF |
| 4940 | cat confdefs.h >>conftest.$ac_ext |
| 4941 | cat >>conftest.$ac_ext <<_ACEOF |
| 4942 | /* end confdefs.h. */ |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4943 | |
| 4944 | int |
| 4945 | main () |
| 4946 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4947 | int main() { return 0; } |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4948 | ; |
| 4949 | return 0; |
| 4950 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4951 | _ACEOF |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4952 | rm -f conftest.$ac_objext |
| 4953 | if { (ac_try="$ac_compile" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4954 | case "(($ac_try" in |
| 4955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4956 | *) ac_try_echo=$ac_try;; |
| 4957 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4959 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4960 | ac_status=$? |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4961 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4962 | rm -f conftest.er1 |
| 4963 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4965 | (exit $ac_status); } && { |
| 4966 | test -z "$ac_c_werror_flag" || |
| 4967 | test ! -s conftest.err |
| 4968 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4969 | ac_cv_olimit_ok=yes |
| 4970 | else |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4971 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4972 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4973 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4974 | ac_cv_olimit_ok=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4975 | fi |
| 4976 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4977 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4978 | CC="$ac_save_cc" |
| 4979 | fi |
| 4980 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4981 | { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 4982 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4983 | if test $ac_cv_olimit_ok = yes; then |
| 4984 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
| 4985 | fi |
| 4986 | fi |
| 4987 | |
| 4988 | # Check whether GCC supports PyArg_ParseTuple format |
| 4989 | if test "$GCC" = "yes" |
| 4990 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4991 | { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5 |
| 4992 | echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4993 | save_CFLAGS=$CFLAGS |
| 4994 | CFLAGS="$CFLAGS -Werror" |
| 4995 | cat >conftest.$ac_ext <<_ACEOF |
| 4996 | /* confdefs.h. */ |
| 4997 | _ACEOF |
| 4998 | cat confdefs.h >>conftest.$ac_ext |
| 4999 | cat >>conftest.$ac_ext <<_ACEOF |
| 5000 | /* end confdefs.h. */ |
| 5001 | |
| 5002 | void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); |
| 5003 | |
| 5004 | int |
| 5005 | main () |
| 5006 | { |
| 5007 | |
| 5008 | ; |
| 5009 | return 0; |
| 5010 | } |
| 5011 | _ACEOF |
| 5012 | rm -f conftest.$ac_objext |
| 5013 | if { (ac_try="$ac_compile" |
| 5014 | case "(($ac_try" in |
| 5015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5016 | *) ac_try_echo=$ac_try;; |
| 5017 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5019 | (eval "$ac_compile") 2>conftest.er1 |
| 5020 | ac_status=$? |
| 5021 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5022 | rm -f conftest.er1 |
| 5023 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5025 | (exit $ac_status); } && { |
| 5026 | test -z "$ac_c_werror_flag" || |
| 5027 | test ! -s conftest.err |
| 5028 | } && test -s conftest.$ac_objext; then |
| 5029 | |
| 5030 | cat >>confdefs.h <<\_ACEOF |
| 5031 | #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1 |
| 5032 | _ACEOF |
| 5033 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5034 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 5035 | echo "${ECHO_T}yes" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5036 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5037 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5038 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5039 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5040 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5041 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5042 | |
| 5043 | fi |
| 5044 | |
| 5045 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5046 | CFLAGS=$save_CFLAGS |
| 5047 | fi |
| 5048 | |
| 5049 | # On some compilers, pthreads are available without further options |
| 5050 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 5051 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 5052 | # So we have to see first whether pthreads are available without |
| 5053 | # options before we can check whether -Kpthread improves anything. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5054 | { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 5055 | 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] | 5056 | if test "${ac_cv_pthread_is_default+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5058 | else |
| 5059 | if test "$cross_compiling" = yes; then |
| 5060 | ac_cv_pthread_is_default=no |
| 5061 | else |
| 5062 | cat >conftest.$ac_ext <<_ACEOF |
| 5063 | /* confdefs.h. */ |
| 5064 | _ACEOF |
| 5065 | cat confdefs.h >>conftest.$ac_ext |
| 5066 | cat >>conftest.$ac_ext <<_ACEOF |
| 5067 | /* end confdefs.h. */ |
| 5068 | |
| 5069 | #include <pthread.h> |
| 5070 | |
| 5071 | void* routine(void* p){return NULL;} |
| 5072 | |
| 5073 | int main(){ |
| 5074 | pthread_t p; |
| 5075 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5076 | return 1; |
| 5077 | (void)pthread_detach(p); |
| 5078 | return 0; |
| 5079 | } |
| 5080 | |
| 5081 | _ACEOF |
| 5082 | rm -f conftest$ac_exeext |
| 5083 | if { (ac_try="$ac_link" |
| 5084 | case "(($ac_try" in |
| 5085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5086 | *) ac_try_echo=$ac_try;; |
| 5087 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5089 | (eval "$ac_link") 2>&5 |
| 5090 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5092 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5093 | { (case "(($ac_try" in |
| 5094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5095 | *) ac_try_echo=$ac_try;; |
| 5096 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5098 | (eval "$ac_try") 2>&5 |
| 5099 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5101 | (exit $ac_status); }; }; then |
| 5102 | |
| 5103 | ac_cv_pthread_is_default=yes |
| 5104 | ac_cv_kthread=no |
| 5105 | ac_cv_pthread=no |
| 5106 | |
| 5107 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5108 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5109 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5110 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5111 | |
| 5112 | ( exit $ac_status ) |
| 5113 | ac_cv_pthread_is_default=no |
| 5114 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5115 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5116 | fi |
| 5117 | |
| 5118 | |
| 5119 | |
| 5120 | fi |
| 5121 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5122 | { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 5123 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5124 | |
| 5125 | |
| 5126 | if test $ac_cv_pthread_is_default = yes |
| 5127 | then |
| 5128 | ac_cv_kpthread=no |
| 5129 | else |
| 5130 | # -Kpthread, if available, provides the right #defines |
| 5131 | # and linker options to make pthread_create available |
| 5132 | # Some compilers won't report that they do not support -Kpthread, |
| 5133 | # so we need to run a program to see whether it really made the |
| 5134 | # function available. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5135 | { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 5136 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5137 | if test "${ac_cv_kpthread+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5139 | else |
| 5140 | ac_save_cc="$CC" |
| 5141 | CC="$CC -Kpthread" |
| 5142 | if test "$cross_compiling" = yes; then |
| 5143 | ac_cv_kpthread=no |
| 5144 | else |
| 5145 | cat >conftest.$ac_ext <<_ACEOF |
| 5146 | /* confdefs.h. */ |
| 5147 | _ACEOF |
| 5148 | cat confdefs.h >>conftest.$ac_ext |
| 5149 | cat >>conftest.$ac_ext <<_ACEOF |
| 5150 | /* end confdefs.h. */ |
| 5151 | |
| 5152 | #include <pthread.h> |
| 5153 | |
| 5154 | void* routine(void* p){return NULL;} |
| 5155 | |
| 5156 | int main(){ |
| 5157 | pthread_t p; |
| 5158 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5159 | return 1; |
| 5160 | (void)pthread_detach(p); |
| 5161 | return 0; |
| 5162 | } |
| 5163 | |
| 5164 | _ACEOF |
| 5165 | rm -f conftest$ac_exeext |
| 5166 | if { (ac_try="$ac_link" |
| 5167 | case "(($ac_try" in |
| 5168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5169 | *) ac_try_echo=$ac_try;; |
| 5170 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5172 | (eval "$ac_link") 2>&5 |
| 5173 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5175 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5176 | { (case "(($ac_try" in |
| 5177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5178 | *) ac_try_echo=$ac_try;; |
| 5179 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5180 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5181 | (eval "$ac_try") 2>&5 |
| 5182 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5184 | (exit $ac_status); }; }; then |
| 5185 | ac_cv_kpthread=yes |
| 5186 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5187 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5188 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5190 | |
| 5191 | ( exit $ac_status ) |
| 5192 | ac_cv_kpthread=no |
| 5193 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5194 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5195 | fi |
| 5196 | |
| 5197 | |
| 5198 | CC="$ac_save_cc" |
| 5199 | fi |
| 5200 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5201 | { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 5202 | echo "${ECHO_T}$ac_cv_kpthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5203 | fi |
| 5204 | |
| 5205 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no |
| 5206 | then |
| 5207 | # -Kthread, if available, provides the right #defines |
| 5208 | # and linker options to make pthread_create available |
| 5209 | # Some compilers won't report that they do not support -Kthread, |
| 5210 | # so we need to run a program to see whether it really made the |
| 5211 | # function available. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5212 | { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 5213 | echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5214 | if test "${ac_cv_kthread+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5216 | else |
| 5217 | ac_save_cc="$CC" |
| 5218 | CC="$CC -Kthread" |
| 5219 | if test "$cross_compiling" = yes; then |
| 5220 | ac_cv_kthread=no |
| 5221 | else |
| 5222 | cat >conftest.$ac_ext <<_ACEOF |
| 5223 | /* confdefs.h. */ |
| 5224 | _ACEOF |
| 5225 | cat confdefs.h >>conftest.$ac_ext |
| 5226 | cat >>conftest.$ac_ext <<_ACEOF |
| 5227 | /* end confdefs.h. */ |
| 5228 | |
| 5229 | #include <pthread.h> |
| 5230 | |
| 5231 | void* routine(void* p){return NULL;} |
| 5232 | |
| 5233 | int main(){ |
| 5234 | pthread_t p; |
| 5235 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5236 | return 1; |
| 5237 | (void)pthread_detach(p); |
| 5238 | return 0; |
| 5239 | } |
| 5240 | |
| 5241 | _ACEOF |
| 5242 | rm -f conftest$ac_exeext |
| 5243 | if { (ac_try="$ac_link" |
| 5244 | case "(($ac_try" in |
| 5245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5246 | *) ac_try_echo=$ac_try;; |
| 5247 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5249 | (eval "$ac_link") 2>&5 |
| 5250 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5252 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5253 | { (case "(($ac_try" in |
| 5254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5255 | *) ac_try_echo=$ac_try;; |
| 5256 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5257 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5258 | (eval "$ac_try") 2>&5 |
| 5259 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5261 | (exit $ac_status); }; }; then |
| 5262 | ac_cv_kthread=yes |
| 5263 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5264 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5265 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5266 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5267 | |
| 5268 | ( exit $ac_status ) |
| 5269 | ac_cv_kthread=no |
| 5270 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5271 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5272 | fi |
| 5273 | |
| 5274 | |
| 5275 | CC="$ac_save_cc" |
| 5276 | fi |
| 5277 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5278 | { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 5279 | echo "${ECHO_T}$ac_cv_kthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5280 | fi |
| 5281 | |
| 5282 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no |
| 5283 | then |
| 5284 | # -pthread, if available, provides the right #defines |
| 5285 | # and linker options to make pthread_create available |
| 5286 | # Some compilers won't report that they do not support -pthread, |
| 5287 | # so we need to run a program to see whether it really made the |
| 5288 | # function available. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5289 | { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 5290 | echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5291 | if test "${ac_cv_thread+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5293 | else |
| 5294 | ac_save_cc="$CC" |
| 5295 | CC="$CC -pthread" |
| 5296 | if test "$cross_compiling" = yes; then |
| 5297 | ac_cv_pthread=no |
| 5298 | else |
| 5299 | cat >conftest.$ac_ext <<_ACEOF |
| 5300 | /* confdefs.h. */ |
| 5301 | _ACEOF |
| 5302 | cat confdefs.h >>conftest.$ac_ext |
| 5303 | cat >>conftest.$ac_ext <<_ACEOF |
| 5304 | /* end confdefs.h. */ |
| 5305 | |
| 5306 | #include <pthread.h> |
| 5307 | |
| 5308 | void* routine(void* p){return NULL;} |
| 5309 | |
| 5310 | int main(){ |
| 5311 | pthread_t p; |
| 5312 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5313 | return 1; |
| 5314 | (void)pthread_detach(p); |
| 5315 | return 0; |
| 5316 | } |
| 5317 | |
| 5318 | _ACEOF |
| 5319 | rm -f conftest$ac_exeext |
| 5320 | if { (ac_try="$ac_link" |
| 5321 | case "(($ac_try" in |
| 5322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5323 | *) ac_try_echo=$ac_try;; |
| 5324 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5326 | (eval "$ac_link") 2>&5 |
| 5327 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5329 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5330 | { (case "(($ac_try" in |
| 5331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5332 | *) ac_try_echo=$ac_try;; |
| 5333 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5335 | (eval "$ac_try") 2>&5 |
| 5336 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5338 | (exit $ac_status); }; }; then |
| 5339 | ac_cv_pthread=yes |
| 5340 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5341 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5342 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5343 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5344 | |
| 5345 | ( exit $ac_status ) |
| 5346 | ac_cv_pthread=no |
| 5347 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5348 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5349 | fi |
| 5350 | |
| 5351 | |
| 5352 | CC="$ac_save_cc" |
| 5353 | fi |
| 5354 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5355 | { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 5356 | echo "${ECHO_T}$ac_cv_pthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5357 | fi |
| 5358 | |
| 5359 | # If we have set a CC compiler flag for thread support then |
| 5360 | # check if it works for CXX, too. |
| 5361 | ac_cv_cxx_thread=no |
| 5362 | if test ! -z "$CXX" |
| 5363 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5364 | { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| 5365 | 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] | 5366 | ac_save_cxx="$CXX" |
| 5367 | |
| 5368 | if test "$ac_cv_kpthread" = "yes" |
| 5369 | then |
| 5370 | CXX="$CXX -Kpthread" |
| 5371 | ac_cv_cxx_thread=yes |
| 5372 | elif test "$ac_cv_kthread" = "yes" |
| 5373 | then |
| 5374 | CXX="$CXX -Kthread" |
| 5375 | ac_cv_cxx_thread=yes |
| 5376 | elif test "$ac_cv_pthread" = "yes" |
| 5377 | then |
| 5378 | CXX="$CXX -pthread" |
| 5379 | ac_cv_cxx_thread=yes |
| 5380 | fi |
| 5381 | |
| 5382 | if test $ac_cv_cxx_thread = yes |
| 5383 | then |
| 5384 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 5385 | $CXX -c conftest.$ac_ext 2>&5 |
| 5386 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 5387 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 5388 | then |
| 5389 | ac_cv_cxx_thread=yes |
| 5390 | else |
| 5391 | ac_cv_cxx_thread=no |
| 5392 | fi |
| 5393 | rm -fr conftest* |
| 5394 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5395 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| 5396 | echo "${ECHO_T}$ac_cv_cxx_thread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5397 | fi |
| 5398 | CXX="$ac_save_cxx" |
| 5399 | |
| 5400 | |
| 5401 | # checks for header files |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5402 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5403 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5404 | if test "${ac_cv_header_stdc+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5406 | else |
| 5407 | cat >conftest.$ac_ext <<_ACEOF |
| 5408 | /* confdefs.h. */ |
| 5409 | _ACEOF |
| 5410 | cat confdefs.h >>conftest.$ac_ext |
| 5411 | cat >>conftest.$ac_ext <<_ACEOF |
| 5412 | /* end confdefs.h. */ |
| 5413 | #include <stdlib.h> |
| 5414 | #include <stdarg.h> |
| 5415 | #include <string.h> |
| 5416 | #include <float.h> |
| 5417 | |
| 5418 | int |
| 5419 | main () |
| 5420 | { |
| 5421 | |
| 5422 | ; |
| 5423 | return 0; |
| 5424 | } |
| 5425 | _ACEOF |
| 5426 | rm -f conftest.$ac_objext |
| 5427 | if { (ac_try="$ac_compile" |
| 5428 | case "(($ac_try" in |
| 5429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5430 | *) ac_try_echo=$ac_try;; |
| 5431 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5433 | (eval "$ac_compile") 2>conftest.er1 |
| 5434 | ac_status=$? |
| 5435 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5436 | rm -f conftest.er1 |
| 5437 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5439 | (exit $ac_status); } && { |
| 5440 | test -z "$ac_c_werror_flag" || |
| 5441 | test ! -s conftest.err |
| 5442 | } && test -s conftest.$ac_objext; then |
| 5443 | ac_cv_header_stdc=yes |
| 5444 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5445 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5446 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5447 | |
| 5448 | ac_cv_header_stdc=no |
| 5449 | fi |
| 5450 | |
| 5451 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5452 | |
| 5453 | if test $ac_cv_header_stdc = yes; then |
| 5454 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 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 <string.h> |
| 5462 | |
| 5463 | _ACEOF |
| 5464 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5465 | $EGREP "memchr" >/dev/null 2>&1; then |
| 5466 | : |
| 5467 | else |
| 5468 | ac_cv_header_stdc=no |
| 5469 | fi |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame^] | 5470 | rm -f -r conftest* |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5471 | |
| 5472 | fi |
| 5473 | |
| 5474 | if test $ac_cv_header_stdc = yes; then |
| 5475 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5476 | cat >conftest.$ac_ext <<_ACEOF |
| 5477 | /* confdefs.h. */ |
| 5478 | _ACEOF |
| 5479 | cat confdefs.h >>conftest.$ac_ext |
| 5480 | cat >>conftest.$ac_ext <<_ACEOF |
| 5481 | /* end confdefs.h. */ |
| 5482 | #include <stdlib.h> |
| 5483 | |
| 5484 | _ACEOF |
| 5485 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5486 | $EGREP "free" >/dev/null 2>&1; then |
| 5487 | : |
| 5488 | else |
| 5489 | ac_cv_header_stdc=no |
| 5490 | fi |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame^] | 5491 | rm -f -r conftest* |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5492 | |
| 5493 | fi |
| 5494 | |
| 5495 | if test $ac_cv_header_stdc = yes; then |
| 5496 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5497 | if test "$cross_compiling" = yes; then |
| 5498 | : |
| 5499 | else |
| 5500 | cat >conftest.$ac_ext <<_ACEOF |
| 5501 | /* confdefs.h. */ |
| 5502 | _ACEOF |
| 5503 | cat confdefs.h >>conftest.$ac_ext |
| 5504 | cat >>conftest.$ac_ext <<_ACEOF |
| 5505 | /* end confdefs.h. */ |
| 5506 | #include <ctype.h> |
| 5507 | #include <stdlib.h> |
| 5508 | #if ((' ' & 0x0FF) == 0x020) |
| 5509 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5510 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5511 | #else |
| 5512 | # define ISLOWER(c) \ |
| 5513 | (('a' <= (c) && (c) <= 'i') \ |
| 5514 | || ('j' <= (c) && (c) <= 'r') \ |
| 5515 | || ('s' <= (c) && (c) <= 'z')) |
| 5516 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5517 | #endif |
| 5518 | |
| 5519 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5520 | int |
| 5521 | main () |
| 5522 | { |
| 5523 | int i; |
| 5524 | for (i = 0; i < 256; i++) |
| 5525 | if (XOR (islower (i), ISLOWER (i)) |
| 5526 | || toupper (i) != TOUPPER (i)) |
| 5527 | return 2; |
| 5528 | return 0; |
| 5529 | } |
| 5530 | _ACEOF |
| 5531 | rm -f conftest$ac_exeext |
| 5532 | if { (ac_try="$ac_link" |
| 5533 | case "(($ac_try" in |
| 5534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5535 | *) ac_try_echo=$ac_try;; |
| 5536 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5538 | (eval "$ac_link") 2>&5 |
| 5539 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5541 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5542 | { (case "(($ac_try" in |
| 5543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5544 | *) ac_try_echo=$ac_try;; |
| 5545 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5547 | (eval "$ac_try") 2>&5 |
| 5548 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5550 | (exit $ac_status); }; }; then |
| 5551 | : |
| 5552 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5553 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5554 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5555 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5556 | |
| 5557 | ( exit $ac_status ) |
| 5558 | ac_cv_header_stdc=no |
| 5559 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5560 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5561 | fi |
| 5562 | |
| 5563 | |
| 5564 | fi |
| 5565 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5566 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 5567 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5568 | if test $ac_cv_header_stdc = yes; then |
| 5569 | |
| 5570 | cat >>confdefs.h <<\_ACEOF |
| 5571 | #define STDC_HEADERS 1 |
| 5572 | _ACEOF |
| 5573 | |
| 5574 | fi |
| 5575 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5576 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5577 | |
| 5578 | |
| 5579 | |
| 5580 | |
| 5581 | |
| 5582 | |
| 5583 | |
| 5584 | |
| 5585 | |
| 5586 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 5587 | inttypes.h stdint.h unistd.h |
| 5588 | do |
| 5589 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5590 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5591 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5592 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 5593 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5594 | else |
| 5595 | cat >conftest.$ac_ext <<_ACEOF |
| 5596 | /* confdefs.h. */ |
| 5597 | _ACEOF |
| 5598 | cat confdefs.h >>conftest.$ac_ext |
| 5599 | cat >>conftest.$ac_ext <<_ACEOF |
| 5600 | /* end confdefs.h. */ |
| 5601 | $ac_includes_default |
| 5602 | |
| 5603 | #include <$ac_header> |
| 5604 | _ACEOF |
| 5605 | rm -f conftest.$ac_objext |
| 5606 | if { (ac_try="$ac_compile" |
| 5607 | case "(($ac_try" in |
| 5608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5609 | *) ac_try_echo=$ac_try;; |
| 5610 | esac |
| 5611 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5612 | (eval "$ac_compile") 2>conftest.er1 |
| 5613 | ac_status=$? |
| 5614 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5615 | rm -f conftest.er1 |
| 5616 | cat conftest.err >&5 |
| 5617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5618 | (exit $ac_status); } && { |
| 5619 | test -z "$ac_c_werror_flag" || |
| 5620 | test ! -s conftest.err |
| 5621 | } && test -s conftest.$ac_objext; then |
| 5622 | eval "$as_ac_Header=yes" |
| 5623 | else |
| 5624 | echo "$as_me: failed program was:" >&5 |
| 5625 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5626 | |
| 5627 | eval "$as_ac_Header=no" |
| 5628 | fi |
| 5629 | |
| 5630 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5631 | fi |
| 5632 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5633 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5634 | echo "${ECHO_T}$ac_res" >&6; } |
| 5635 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5636 | cat >>confdefs.h <<_ACEOF |
| 5637 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5638 | _ACEOF |
| 5639 | |
| 5640 | fi |
| 5641 | |
| 5642 | done |
| 5643 | |
| 5644 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5645 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5646 | |
| 5647 | |
| 5648 | |
| 5649 | |
| 5650 | |
| 5651 | |
| 5652 | |
| 5653 | |
| 5654 | |
| 5655 | |
| 5656 | |
| 5657 | |
| 5658 | |
| 5659 | |
| 5660 | |
| 5661 | |
| 5662 | |
| 5663 | |
| 5664 | |
| 5665 | |
| 5666 | |
| 5667 | |
| 5668 | |
| 5669 | |
| 5670 | |
| 5671 | |
| 5672 | |
| 5673 | |
| 5674 | |
| 5675 | |
| 5676 | |
| 5677 | |
| 5678 | |
| 5679 | |
| 5680 | |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 5681 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 5682 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 5683 | |
Martin v. Löwis | 5f5d99c | 2006-05-16 07:05:37 +0000 | [diff] [blame] | 5684 | |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5685 | |
| 5686 | |
| 5687 | |
| 5688 | |
| 5689 | |
| 5690 | |
| 5691 | |
| 5692 | |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 5693 | |
Christian Heimes | fb2d25a | 2008-01-07 16:12:44 +0000 | [diff] [blame] | 5694 | |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 5695 | |
| 5696 | |
Neal Norwitz | 9fdfaaf | 2008-03-28 05:34:59 +0000 | [diff] [blame] | 5697 | |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 5698 | |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame^] | 5699 | |
| 5700 | |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5701 | for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ |
| 5702 | fcntl.h grp.h \ |
Neal Norwitz | 9fdfaaf | 2008-03-28 05:34:59 +0000 | [diff] [blame] | 5703 | 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] | 5704 | 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] | 5705 | unistd.h utime.h \ |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 5706 | sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ |
| 5707 | sys/lock.h sys/mkdev.h sys/modem.h \ |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5708 | 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] | 5709 | sys/termio.h sys/time.h \ |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5710 | 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] | 5711 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame^] | 5712 | bluetooth/bluetooth.h linux/tipc.h spawn.h util.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5713 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5714 | 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] | 5715 | 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] | 5716 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5717 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5718 | 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] | 5719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5720 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5721 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5722 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5723 | echo "${ECHO_T}$ac_res" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5724 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5725 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5726 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5727 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5728 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5729 | /* confdefs.h. */ |
| 5730 | _ACEOF |
| 5731 | cat confdefs.h >>conftest.$ac_ext |
| 5732 | cat >>conftest.$ac_ext <<_ACEOF |
| 5733 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5734 | $ac_includes_default |
| 5735 | #include <$ac_header> |
| 5736 | _ACEOF |
| 5737 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5738 | if { (ac_try="$ac_compile" |
| 5739 | case "(($ac_try" in |
| 5740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5741 | *) ac_try_echo=$ac_try;; |
| 5742 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5744 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5745 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5746 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5747 | rm -f conftest.er1 |
| 5748 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5750 | (exit $ac_status); } && { |
| 5751 | test -z "$ac_c_werror_flag" || |
| 5752 | test ! -s conftest.err |
| 5753 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5754 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5755 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5756 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5757 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5758 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5759 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5760 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5761 | |
| 5762 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5763 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5764 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5765 | |
| 5766 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5767 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5768 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5769 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5770 | /* confdefs.h. */ |
| 5771 | _ACEOF |
| 5772 | cat confdefs.h >>conftest.$ac_ext |
| 5773 | cat >>conftest.$ac_ext <<_ACEOF |
| 5774 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5775 | #include <$ac_header> |
| 5776 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5777 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5778 | case "(($ac_try" in |
| 5779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5780 | *) ac_try_echo=$ac_try;; |
| 5781 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5783 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5784 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5785 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5786 | rm -f conftest.er1 |
| 5787 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5789 | (exit $ac_status); } >/dev/null && { |
| 5790 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5791 | test ! -s conftest.err |
| 5792 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5793 | ac_header_preproc=yes |
| 5794 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5795 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5796 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5797 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5798 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5799 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5800 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5801 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5802 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5803 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5804 | |
| 5805 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5806 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5807 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5808 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5809 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5810 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 5811 | 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] | 5812 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5813 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5814 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5815 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5816 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5817 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5818 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5819 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 5820 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 5821 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 5822 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5823 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5824 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5825 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 5826 | 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] | 5827 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 5828 | ## -------------------------------------- ## |
| 5829 | ## Report this to http://bugs.python.org/ ## |
| 5830 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5831 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5832 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5833 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5834 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5835 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5836 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5837 | 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] | 5838 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5839 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5840 | eval "$as_ac_Header=\$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5841 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5842 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5843 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5844 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5845 | |
| 5846 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5847 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5848 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5849 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5850 | _ACEOF |
| 5851 | |
| 5852 | fi |
| 5853 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5854 | done |
| 5855 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5856 | |
| 5857 | |
| 5858 | |
| 5859 | |
| 5860 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5861 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5862 | 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] | 5863 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 5864 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 5865 | 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] | 5866 | 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] | 5867 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5868 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5869 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5870 | /* confdefs.h. */ |
| 5871 | _ACEOF |
| 5872 | cat confdefs.h >>conftest.$ac_ext |
| 5873 | cat >>conftest.$ac_ext <<_ACEOF |
| 5874 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5875 | #include <sys/types.h> |
| 5876 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5877 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5878 | int |
| 5879 | main () |
| 5880 | { |
| 5881 | if ((DIR *) 0) |
| 5882 | return 0; |
| 5883 | ; |
| 5884 | return 0; |
| 5885 | } |
| 5886 | _ACEOF |
| 5887 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5888 | if { (ac_try="$ac_compile" |
| 5889 | case "(($ac_try" in |
| 5890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5891 | *) ac_try_echo=$ac_try;; |
| 5892 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5894 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5895 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5896 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5897 | rm -f conftest.er1 |
| 5898 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5900 | (exit $ac_status); } && { |
| 5901 | test -z "$ac_c_werror_flag" || |
| 5902 | test ! -s conftest.err |
| 5903 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5904 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5905 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5906 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5907 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5908 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5909 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5910 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5911 | |
| 5912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5913 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5914 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5915 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5916 | echo "${ECHO_T}$ac_res" >&6; } |
| 5917 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5918 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5919 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5920 | _ACEOF |
| 5921 | |
| 5922 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5923 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5924 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5925 | done |
| 5926 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 5927 | if test $ac_header_dirent = dirent.h; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5928 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 5929 | 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] | 5930 | if test "${ac_cv_search_opendir+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5932 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5933 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5934 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5935 | /* confdefs.h. */ |
| 5936 | _ACEOF |
| 5937 | cat confdefs.h >>conftest.$ac_ext |
| 5938 | cat >>conftest.$ac_ext <<_ACEOF |
| 5939 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5940 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5941 | /* Override any GCC internal prototype to avoid an error. |
| 5942 | Use char because int might match the return type of a GCC |
| 5943 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5944 | #ifdef __cplusplus |
| 5945 | extern "C" |
| 5946 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5947 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5948 | int |
| 5949 | main () |
| 5950 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5951 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5952 | ; |
| 5953 | return 0; |
| 5954 | } |
| 5955 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5956 | for ac_lib in '' dir; do |
| 5957 | if test -z "$ac_lib"; then |
| 5958 | ac_res="none required" |
| 5959 | else |
| 5960 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5961 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5962 | fi |
| 5963 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5964 | if { (ac_try="$ac_link" |
| 5965 | case "(($ac_try" in |
| 5966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5967 | *) ac_try_echo=$ac_try;; |
| 5968 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5970 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5971 | ac_status=$? |
| 5972 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5973 | rm -f conftest.er1 |
| 5974 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5976 | (exit $ac_status); } && { |
| 5977 | test -z "$ac_c_werror_flag" || |
| 5978 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5979 | } && test -s conftest$ac_exeext && |
| 5980 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5981 | ac_cv_search_opendir=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 5982 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5983 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5984 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5985 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5986 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 5987 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5988 | |
| 5989 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 5990 | conftest$ac_exeext |
| 5991 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5992 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5993 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5994 | done |
| 5995 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5996 | : |
| 5997 | else |
| 5998 | ac_cv_search_opendir=no |
| 5999 | fi |
| 6000 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6001 | LIBS=$ac_func_search_save_LIBS |
| 6002 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6003 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 6004 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6005 | ac_res=$ac_cv_search_opendir |
| 6006 | if test "$ac_res" != no; then |
| 6007 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6008 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6009 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6010 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6011 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6012 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 6013 | 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] | 6014 | if test "${ac_cv_search_opendir+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6016 | else |
| 6017 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6018 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6019 | /* confdefs.h. */ |
| 6020 | _ACEOF |
| 6021 | cat confdefs.h >>conftest.$ac_ext |
| 6022 | cat >>conftest.$ac_ext <<_ACEOF |
| 6023 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6024 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6025 | /* Override any GCC internal prototype to avoid an error. |
| 6026 | Use char because int might match the return type of a GCC |
| 6027 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6028 | #ifdef __cplusplus |
| 6029 | extern "C" |
| 6030 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6031 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6032 | int |
| 6033 | main () |
| 6034 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6035 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6036 | ; |
| 6037 | return 0; |
| 6038 | } |
| 6039 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6040 | for ac_lib in '' x; do |
| 6041 | if test -z "$ac_lib"; then |
| 6042 | ac_res="none required" |
| 6043 | else |
| 6044 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6045 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6046 | fi |
| 6047 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6048 | if { (ac_try="$ac_link" |
| 6049 | case "(($ac_try" in |
| 6050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6051 | *) ac_try_echo=$ac_try;; |
| 6052 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6054 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6055 | ac_status=$? |
| 6056 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6057 | rm -f conftest.er1 |
| 6058 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6060 | (exit $ac_status); } && { |
| 6061 | test -z "$ac_c_werror_flag" || |
| 6062 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6063 | } && test -s conftest$ac_exeext && |
| 6064 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6065 | ac_cv_search_opendir=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6066 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6067 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6068 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6069 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6070 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6071 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6072 | |
| 6073 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 6074 | conftest$ac_exeext |
| 6075 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6076 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6077 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6078 | done |
| 6079 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6080 | : |
| 6081 | else |
| 6082 | ac_cv_search_opendir=no |
| 6083 | fi |
| 6084 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6085 | LIBS=$ac_func_search_save_LIBS |
| 6086 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6087 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 6088 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6089 | ac_res=$ac_cv_search_opendir |
| 6090 | if test "$ac_res" != no; then |
| 6091 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6092 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6093 | fi |
| 6094 | |
| 6095 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6096 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6097 | { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 6098 | 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] | 6099 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6101 | else |
| 6102 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6103 | /* confdefs.h. */ |
| 6104 | _ACEOF |
| 6105 | cat confdefs.h >>conftest.$ac_ext |
| 6106 | cat >>conftest.$ac_ext <<_ACEOF |
| 6107 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6108 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6109 | int |
| 6110 | main () |
| 6111 | { |
| 6112 | return makedev(0, 0); |
| 6113 | ; |
| 6114 | return 0; |
| 6115 | } |
| 6116 | _ACEOF |
| 6117 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6118 | if { (ac_try="$ac_link" |
| 6119 | case "(($ac_try" in |
| 6120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6121 | *) ac_try_echo=$ac_try;; |
| 6122 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6124 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6125 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6126 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6127 | rm -f conftest.er1 |
| 6128 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6130 | (exit $ac_status); } && { |
| 6131 | test -z "$ac_c_werror_flag" || |
| 6132 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6133 | } && test -s conftest$ac_exeext && |
| 6134 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6135 | ac_cv_header_sys_types_h_makedev=yes |
| 6136 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6137 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6138 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6139 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6140 | ac_cv_header_sys_types_h_makedev=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6141 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6142 | |
| 6143 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6144 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6145 | |
| 6146 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6147 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 6148 | 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] | 6149 | |
| 6150 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 6151 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6152 | { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 6153 | 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] | 6154 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6156 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6157 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 6158 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6159 | else |
| 6160 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6161 | { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 6162 | 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] | 6163 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6164 | /* confdefs.h. */ |
| 6165 | _ACEOF |
| 6166 | cat confdefs.h >>conftest.$ac_ext |
| 6167 | cat >>conftest.$ac_ext <<_ACEOF |
| 6168 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6169 | $ac_includes_default |
| 6170 | #include <sys/mkdev.h> |
| 6171 | _ACEOF |
| 6172 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6173 | if { (ac_try="$ac_compile" |
| 6174 | case "(($ac_try" in |
| 6175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6176 | *) ac_try_echo=$ac_try;; |
| 6177 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6179 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6180 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6181 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6182 | rm -f conftest.er1 |
| 6183 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6185 | (exit $ac_status); } && { |
| 6186 | test -z "$ac_c_werror_flag" || |
| 6187 | test ! -s conftest.err |
| 6188 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6189 | ac_header_compiler=yes |
| 6190 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6191 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6192 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6193 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6194 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6195 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6196 | |
| 6197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6198 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6199 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6200 | |
| 6201 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6202 | { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 6203 | 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] | 6204 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6205 | /* confdefs.h. */ |
| 6206 | _ACEOF |
| 6207 | cat confdefs.h >>conftest.$ac_ext |
| 6208 | cat >>conftest.$ac_ext <<_ACEOF |
| 6209 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6210 | #include <sys/mkdev.h> |
| 6211 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6212 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6213 | case "(($ac_try" in |
| 6214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6215 | *) ac_try_echo=$ac_try;; |
| 6216 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6218 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6219 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6220 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6221 | rm -f conftest.er1 |
| 6222 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6224 | (exit $ac_status); } >/dev/null && { |
| 6225 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6226 | test ! -s conftest.err |
| 6227 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6228 | ac_header_preproc=yes |
| 6229 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6230 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6231 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6232 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6233 | ac_header_preproc=no |
| 6234 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6235 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6236 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6237 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6238 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6239 | |
| 6240 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6241 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6242 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6243 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6244 | echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6245 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 |
| 6246 | 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] | 6247 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6248 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6249 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6250 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 6251 | echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
| 6252 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 6253 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 6254 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 |
| 6255 | echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} |
| 6256 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6257 | echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6258 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 6259 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} |
| 6260 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 |
| 6261 | 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] | 6262 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6263 | ## -------------------------------------- ## |
| 6264 | ## Report this to http://bugs.python.org/ ## |
| 6265 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6266 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6267 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6268 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6269 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6270 | { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 6271 | 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] | 6272 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6274 | else |
| 6275 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 6276 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6277 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 6278 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6279 | |
| 6280 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6281 | if test $ac_cv_header_sys_mkdev_h = yes; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6282 | |
| 6283 | cat >>confdefs.h <<\_ACEOF |
| 6284 | #define MAJOR_IN_MKDEV 1 |
| 6285 | _ACEOF |
| 6286 | |
| 6287 | fi |
| 6288 | |
| 6289 | |
| 6290 | |
| 6291 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 6292 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6293 | { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6294 | 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] | 6295 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6297 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6298 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6299 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6300 | else |
| 6301 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6302 | { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 6303 | 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] | 6304 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6305 | /* confdefs.h. */ |
| 6306 | _ACEOF |
| 6307 | cat confdefs.h >>conftest.$ac_ext |
| 6308 | cat >>conftest.$ac_ext <<_ACEOF |
| 6309 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6310 | $ac_includes_default |
| 6311 | #include <sys/sysmacros.h> |
| 6312 | _ACEOF |
| 6313 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6314 | if { (ac_try="$ac_compile" |
| 6315 | case "(($ac_try" in |
| 6316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6317 | *) ac_try_echo=$ac_try;; |
| 6318 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6320 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6321 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6322 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6323 | rm -f conftest.er1 |
| 6324 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6326 | (exit $ac_status); } && { |
| 6327 | test -z "$ac_c_werror_flag" || |
| 6328 | test ! -s conftest.err |
| 6329 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6330 | ac_header_compiler=yes |
| 6331 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6332 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6333 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6334 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6335 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6336 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6337 | |
| 6338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6339 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6340 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6341 | |
| 6342 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6343 | { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 6344 | 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] | 6345 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6346 | /* confdefs.h. */ |
| 6347 | _ACEOF |
| 6348 | cat confdefs.h >>conftest.$ac_ext |
| 6349 | cat >>conftest.$ac_ext <<_ACEOF |
| 6350 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6351 | #include <sys/sysmacros.h> |
| 6352 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6353 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6354 | case "(($ac_try" in |
| 6355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6356 | *) ac_try_echo=$ac_try;; |
| 6357 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6359 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6360 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6361 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6362 | rm -f conftest.er1 |
| 6363 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6365 | (exit $ac_status); } >/dev/null && { |
| 6366 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6367 | test ! -s conftest.err |
| 6368 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6369 | ac_header_preproc=yes |
| 6370 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6371 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6372 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6373 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6374 | ac_header_preproc=no |
| 6375 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6376 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6377 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6378 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6379 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6380 | |
| 6381 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6382 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6383 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6384 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6385 | echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6386 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 |
| 6387 | 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] | 6388 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6389 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6390 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6391 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 6392 | echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
| 6393 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 6394 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 6395 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 |
| 6396 | echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} |
| 6397 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6398 | echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6399 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 6400 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} |
| 6401 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 |
| 6402 | 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] | 6403 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6404 | ## -------------------------------------- ## |
| 6405 | ## Report this to http://bugs.python.org/ ## |
| 6406 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6407 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6408 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6409 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6410 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6411 | { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6412 | 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] | 6413 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6415 | else |
| 6416 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 6417 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6418 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6419 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6420 | |
| 6421 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6422 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6423 | |
| 6424 | cat >>confdefs.h <<\_ACEOF |
| 6425 | #define MAJOR_IN_SYSMACROS 1 |
| 6426 | _ACEOF |
| 6427 | |
| 6428 | fi |
| 6429 | |
| 6430 | |
| 6431 | fi |
| 6432 | fi |
| 6433 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6434 | |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6435 | # On Solaris, term.h requires curses.h |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6436 | |
| 6437 | for ac_header in term.h |
| 6438 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6439 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6440 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6441 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6442 | 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] | 6443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6444 | else |
| 6445 | cat >conftest.$ac_ext <<_ACEOF |
| 6446 | /* confdefs.h. */ |
| 6447 | _ACEOF |
| 6448 | cat confdefs.h >>conftest.$ac_ext |
| 6449 | cat >>conftest.$ac_ext <<_ACEOF |
| 6450 | /* end confdefs.h. */ |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6451 | |
Martin v. Löwis | 5d52e78 | 2004-09-18 10:07:03 +0000 | [diff] [blame] | 6452 | #ifdef HAVE_CURSES_H |
| 6453 | #include <curses.h> |
| 6454 | #endif |
| 6455 | |
| 6456 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6457 | #include <$ac_header> |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6458 | _ACEOF |
| 6459 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6460 | if { (ac_try="$ac_compile" |
| 6461 | case "(($ac_try" in |
| 6462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6463 | *) ac_try_echo=$ac_try;; |
| 6464 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6465 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6466 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6467 | ac_status=$? |
| 6468 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6469 | rm -f conftest.er1 |
| 6470 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6472 | (exit $ac_status); } && { |
| 6473 | test -z "$ac_c_werror_flag" || |
| 6474 | test ! -s conftest.err |
| 6475 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6476 | eval "$as_ac_Header=yes" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6477 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6478 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6479 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6480 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6481 | eval "$as_ac_Header=no" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6482 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6483 | |
| 6484 | 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] | 6485 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6486 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6487 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6488 | echo "${ECHO_T}$ac_res" >&6; } |
| 6489 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6490 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6491 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6492 | _ACEOF |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6493 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6494 | fi |
| 6495 | |
| 6496 | done |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6497 | |
| 6498 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6499 | # On Linux, netlink.h requires asm/types.h |
| 6500 | |
| 6501 | for ac_header in linux/netlink.h |
| 6502 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6503 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6504 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6505 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6506 | 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] | 6507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6508 | else |
| 6509 | cat >conftest.$ac_ext <<_ACEOF |
| 6510 | /* confdefs.h. */ |
| 6511 | _ACEOF |
| 6512 | cat confdefs.h >>conftest.$ac_ext |
| 6513 | cat >>conftest.$ac_ext <<_ACEOF |
| 6514 | /* end confdefs.h. */ |
| 6515 | |
| 6516 | #ifdef HAVE_ASM_TYPES_H |
| 6517 | #include <asm/types.h> |
| 6518 | #endif |
| 6519 | #ifdef HAVE_SYS_SOCKET_H |
| 6520 | #include <sys/socket.h> |
| 6521 | #endif |
| 6522 | |
| 6523 | |
| 6524 | #include <$ac_header> |
| 6525 | _ACEOF |
| 6526 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6527 | if { (ac_try="$ac_compile" |
| 6528 | case "(($ac_try" in |
| 6529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6530 | *) ac_try_echo=$ac_try;; |
| 6531 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6533 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6534 | ac_status=$? |
| 6535 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6536 | rm -f conftest.er1 |
| 6537 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6539 | (exit $ac_status); } && { |
| 6540 | test -z "$ac_c_werror_flag" || |
| 6541 | test ! -s conftest.err |
| 6542 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6543 | eval "$as_ac_Header=yes" |
| 6544 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6545 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6546 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6547 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6548 | eval "$as_ac_Header=no" |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6549 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6550 | |
| 6551 | 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] | 6552 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6553 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6554 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6555 | echo "${ECHO_T}$ac_res" >&6; } |
| 6556 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6557 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6558 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6559 | _ACEOF |
| 6560 | |
| 6561 | fi |
| 6562 | |
| 6563 | done |
| 6564 | |
| 6565 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6566 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6567 | was_it_defined=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6568 | { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 6569 | 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] | 6570 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6571 | /* confdefs.h. */ |
| 6572 | _ACEOF |
| 6573 | cat confdefs.h >>conftest.$ac_ext |
| 6574 | cat >>conftest.$ac_ext <<_ACEOF |
| 6575 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6576 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6577 | |
| 6578 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6579 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6580 | $EGREP "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6581 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6582 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6583 | |
| 6584 | |
| 6585 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6586 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6587 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6588 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6589 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6590 | fi |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame^] | 6591 | rm -f -r conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6592 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6593 | { echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 6594 | echo "${ECHO_T}$was_it_defined" >&6; } |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6595 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6596 | # Check whether using makedev requires defining _OSF_SOURCE |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6597 | { echo "$as_me:$LINENO: checking for makedev" >&5 |
| 6598 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6599 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6600 | /* confdefs.h. */ |
| 6601 | _ACEOF |
| 6602 | cat confdefs.h >>conftest.$ac_ext |
| 6603 | cat >>conftest.$ac_ext <<_ACEOF |
| 6604 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6605 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6606 | int |
| 6607 | main () |
| 6608 | { |
| 6609 | makedev(0, 0) |
| 6610 | ; |
| 6611 | return 0; |
| 6612 | } |
| 6613 | _ACEOF |
| 6614 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6615 | if { (ac_try="$ac_link" |
| 6616 | case "(($ac_try" in |
| 6617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6618 | *) ac_try_echo=$ac_try;; |
| 6619 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6620 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6621 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6622 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6623 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6624 | rm -f conftest.er1 |
| 6625 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6627 | (exit $ac_status); } && { |
| 6628 | test -z "$ac_c_werror_flag" || |
| 6629 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6630 | } && test -s conftest$ac_exeext && |
| 6631 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6632 | ac_cv_has_makedev=yes |
| 6633 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6634 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6635 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6636 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6637 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6638 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6639 | |
| 6640 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6641 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6642 | if test "$ac_cv_has_makedev" = "no"; then |
| 6643 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 6644 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6645 | /* confdefs.h. */ |
| 6646 | _ACEOF |
| 6647 | cat confdefs.h >>conftest.$ac_ext |
| 6648 | cat >>conftest.$ac_ext <<_ACEOF |
| 6649 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6650 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6651 | #define _OSF_SOURCE 1 |
| 6652 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6653 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6654 | int |
| 6655 | main () |
| 6656 | { |
| 6657 | makedev(0, 0) |
| 6658 | ; |
| 6659 | return 0; |
| 6660 | } |
| 6661 | _ACEOF |
| 6662 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6663 | if { (ac_try="$ac_link" |
| 6664 | case "(($ac_try" in |
| 6665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6666 | *) ac_try_echo=$ac_try;; |
| 6667 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6669 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6670 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6671 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6672 | rm -f conftest.er1 |
| 6673 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6675 | (exit $ac_status); } && { |
| 6676 | test -z "$ac_c_werror_flag" || |
| 6677 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6678 | } && test -s conftest$ac_exeext && |
| 6679 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6680 | ac_cv_has_makedev=yes |
| 6681 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6682 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6683 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6684 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6685 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6686 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6687 | |
| 6688 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6689 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6690 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6691 | |
| 6692 | cat >>confdefs.h <<\_ACEOF |
| 6693 | #define _OSF_SOURCE 1 |
| 6694 | _ACEOF |
| 6695 | |
| 6696 | fi |
| 6697 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6698 | { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 6699 | echo "${ECHO_T}$ac_cv_has_makedev" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6700 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6701 | |
| 6702 | cat >>confdefs.h <<\_ACEOF |
| 6703 | #define HAVE_MAKEDEV 1 |
| 6704 | _ACEOF |
| 6705 | |
| 6706 | fi |
| 6707 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6708 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 6709 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 6710 | # defined, but the compiler does not support pragma redefine_extname, |
| 6711 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 6712 | # structures (such as rlimit64) without declaring them. As a |
| 6713 | # work-around, disable LFS on such configurations |
| 6714 | |
| 6715 | use_lfs=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6716 | { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 6717 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6718 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6719 | /* confdefs.h. */ |
| 6720 | _ACEOF |
| 6721 | cat confdefs.h >>conftest.$ac_ext |
| 6722 | cat >>conftest.$ac_ext <<_ACEOF |
| 6723 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6724 | |
| 6725 | #define _LARGEFILE_SOURCE 1 |
| 6726 | #define _FILE_OFFSET_BITS 64 |
| 6727 | #include <sys/resource.h> |
| 6728 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6729 | int |
| 6730 | main () |
| 6731 | { |
| 6732 | struct rlimit foo; |
| 6733 | ; |
| 6734 | return 0; |
| 6735 | } |
| 6736 | _ACEOF |
| 6737 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6738 | if { (ac_try="$ac_compile" |
| 6739 | case "(($ac_try" in |
| 6740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6741 | *) ac_try_echo=$ac_try;; |
| 6742 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6744 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6745 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6746 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6747 | rm -f conftest.er1 |
| 6748 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6750 | (exit $ac_status); } && { |
| 6751 | test -z "$ac_c_werror_flag" || |
| 6752 | test ! -s conftest.err |
| 6753 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6754 | sol_lfs_bug=no |
| 6755 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6756 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6757 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6758 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6759 | sol_lfs_bug=yes |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6760 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6761 | |
| 6762 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6763 | { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 6764 | echo "${ECHO_T}$sol_lfs_bug" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6765 | if test "$sol_lfs_bug" = "yes"; then |
| 6766 | use_lfs=no |
| 6767 | fi |
| 6768 | |
| 6769 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6770 | # Two defines needed to enable largefile support on various platforms |
| 6771 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6772 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6773 | cat >>confdefs.h <<\_ACEOF |
| 6774 | #define _LARGEFILE_SOURCE 1 |
| 6775 | _ACEOF |
| 6776 | |
| 6777 | |
| 6778 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6779 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6780 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6781 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6782 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6783 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 6784 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 6785 | cat >> confdefs.h <<\EOF |
| 6786 | #if defined(SCO_DS) |
| 6787 | #undef _OFF_T |
| 6788 | #endif |
| 6789 | EOF |
| 6790 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6791 | # Type availability checks |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6792 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 6793 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6794 | if test "${ac_cv_type_mode_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6796 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6797 | cat >conftest.$ac_ext <<_ACEOF |
| 6798 | /* confdefs.h. */ |
| 6799 | _ACEOF |
| 6800 | cat confdefs.h >>conftest.$ac_ext |
| 6801 | cat >>conftest.$ac_ext <<_ACEOF |
| 6802 | /* end confdefs.h. */ |
| 6803 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6804 | typedef mode_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6805 | int |
| 6806 | main () |
| 6807 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6808 | if ((ac__type_new_ *) 0) |
| 6809 | return 0; |
| 6810 | if (sizeof (ac__type_new_)) |
| 6811 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6812 | ; |
| 6813 | return 0; |
| 6814 | } |
| 6815 | _ACEOF |
| 6816 | rm -f conftest.$ac_objext |
| 6817 | if { (ac_try="$ac_compile" |
| 6818 | case "(($ac_try" in |
| 6819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6820 | *) ac_try_echo=$ac_try;; |
| 6821 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6823 | (eval "$ac_compile") 2>conftest.er1 |
| 6824 | ac_status=$? |
| 6825 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6826 | rm -f conftest.er1 |
| 6827 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6829 | (exit $ac_status); } && { |
| 6830 | test -z "$ac_c_werror_flag" || |
| 6831 | test ! -s conftest.err |
| 6832 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6833 | ac_cv_type_mode_t=yes |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6834 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6835 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6836 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6837 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6838 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6839 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6840 | |
| 6841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6842 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6843 | { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 6844 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } |
| 6845 | if test $ac_cv_type_mode_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6846 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6847 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6848 | |
| 6849 | cat >>confdefs.h <<_ACEOF |
| 6850 | #define mode_t int |
| 6851 | _ACEOF |
| 6852 | |
| 6853 | fi |
| 6854 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6855 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 6856 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6857 | if test "${ac_cv_type_off_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6858 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6859 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6860 | cat >conftest.$ac_ext <<_ACEOF |
| 6861 | /* confdefs.h. */ |
| 6862 | _ACEOF |
| 6863 | cat confdefs.h >>conftest.$ac_ext |
| 6864 | cat >>conftest.$ac_ext <<_ACEOF |
| 6865 | /* end confdefs.h. */ |
| 6866 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6867 | typedef off_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6868 | int |
| 6869 | main () |
| 6870 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6871 | if ((ac__type_new_ *) 0) |
| 6872 | return 0; |
| 6873 | if (sizeof (ac__type_new_)) |
| 6874 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6875 | ; |
| 6876 | return 0; |
| 6877 | } |
| 6878 | _ACEOF |
| 6879 | rm -f conftest.$ac_objext |
| 6880 | if { (ac_try="$ac_compile" |
| 6881 | case "(($ac_try" in |
| 6882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6883 | *) ac_try_echo=$ac_try;; |
| 6884 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6886 | (eval "$ac_compile") 2>conftest.er1 |
| 6887 | ac_status=$? |
| 6888 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6889 | rm -f conftest.er1 |
| 6890 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6892 | (exit $ac_status); } && { |
| 6893 | test -z "$ac_c_werror_flag" || |
| 6894 | test ! -s conftest.err |
| 6895 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6896 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6897 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6898 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6899 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6900 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6901 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6902 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6903 | |
| 6904 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6905 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6906 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 6907 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
| 6908 | if test $ac_cv_type_off_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6909 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6910 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6911 | |
| 6912 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6913 | #define off_t long int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6914 | _ACEOF |
| 6915 | |
| 6916 | fi |
| 6917 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6918 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 6919 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6920 | if test "${ac_cv_type_pid_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6922 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6923 | cat >conftest.$ac_ext <<_ACEOF |
| 6924 | /* confdefs.h. */ |
| 6925 | _ACEOF |
| 6926 | cat confdefs.h >>conftest.$ac_ext |
| 6927 | cat >>conftest.$ac_ext <<_ACEOF |
| 6928 | /* end confdefs.h. */ |
| 6929 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6930 | typedef pid_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6931 | int |
| 6932 | main () |
| 6933 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6934 | if ((ac__type_new_ *) 0) |
| 6935 | return 0; |
| 6936 | if (sizeof (ac__type_new_)) |
| 6937 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6938 | ; |
| 6939 | return 0; |
| 6940 | } |
| 6941 | _ACEOF |
| 6942 | rm -f conftest.$ac_objext |
| 6943 | if { (ac_try="$ac_compile" |
| 6944 | case "(($ac_try" in |
| 6945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6946 | *) ac_try_echo=$ac_try;; |
| 6947 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6949 | (eval "$ac_compile") 2>conftest.er1 |
| 6950 | ac_status=$? |
| 6951 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6952 | rm -f conftest.er1 |
| 6953 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6955 | (exit $ac_status); } && { |
| 6956 | test -z "$ac_c_werror_flag" || |
| 6957 | test ! -s conftest.err |
| 6958 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6959 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6960 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6961 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6962 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6963 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6964 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6965 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6966 | |
| 6967 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6968 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6969 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 6970 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 6971 | if test $ac_cv_type_pid_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6972 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6973 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6974 | |
| 6975 | cat >>confdefs.h <<_ACEOF |
| 6976 | #define pid_t int |
| 6977 | _ACEOF |
| 6978 | |
| 6979 | fi |
| 6980 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6981 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 6982 | 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] | 6983 | if test "${ac_cv_type_signal+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6985 | else |
| 6986 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6987 | /* confdefs.h. */ |
| 6988 | _ACEOF |
| 6989 | cat confdefs.h >>conftest.$ac_ext |
| 6990 | cat >>conftest.$ac_ext <<_ACEOF |
| 6991 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6992 | #include <sys/types.h> |
| 6993 | #include <signal.h> |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6994 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6995 | int |
| 6996 | main () |
| 6997 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6998 | return *(signal (0, 0)) (0) == 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6999 | ; |
| 7000 | return 0; |
| 7001 | } |
| 7002 | _ACEOF |
| 7003 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7004 | if { (ac_try="$ac_compile" |
| 7005 | case "(($ac_try" in |
| 7006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7007 | *) ac_try_echo=$ac_try;; |
| 7008 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7010 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7011 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7012 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7013 | rm -f conftest.er1 |
| 7014 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7016 | (exit $ac_status); } && { |
| 7017 | test -z "$ac_c_werror_flag" || |
| 7018 | test ! -s conftest.err |
| 7019 | } && test -s conftest.$ac_objext; then |
| 7020 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7021 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7022 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7023 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7024 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7025 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7026 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7027 | |
| 7028 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7029 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7030 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 7031 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7032 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7033 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7034 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7035 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7036 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7037 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7038 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 7039 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7040 | if test "${ac_cv_type_size_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7042 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7043 | cat >conftest.$ac_ext <<_ACEOF |
| 7044 | /* confdefs.h. */ |
| 7045 | _ACEOF |
| 7046 | cat confdefs.h >>conftest.$ac_ext |
| 7047 | cat >>conftest.$ac_ext <<_ACEOF |
| 7048 | /* end confdefs.h. */ |
| 7049 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7050 | typedef size_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7051 | int |
| 7052 | main () |
| 7053 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7054 | if ((ac__type_new_ *) 0) |
| 7055 | return 0; |
| 7056 | if (sizeof (ac__type_new_)) |
| 7057 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7058 | ; |
| 7059 | return 0; |
| 7060 | } |
| 7061 | _ACEOF |
| 7062 | rm -f conftest.$ac_objext |
| 7063 | if { (ac_try="$ac_compile" |
| 7064 | case "(($ac_try" in |
| 7065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7066 | *) ac_try_echo=$ac_try;; |
| 7067 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7069 | (eval "$ac_compile") 2>conftest.er1 |
| 7070 | ac_status=$? |
| 7071 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7072 | rm -f conftest.er1 |
| 7073 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7075 | (exit $ac_status); } && { |
| 7076 | test -z "$ac_c_werror_flag" || |
| 7077 | test ! -s conftest.err |
| 7078 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7079 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7080 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7081 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7082 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7083 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7084 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7085 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7086 | |
| 7087 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7088 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7089 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 7090 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 7091 | if test $ac_cv_type_size_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7092 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7093 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7094 | |
| 7095 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7096 | #define size_t unsigned int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7097 | _ACEOF |
| 7098 | |
| 7099 | fi |
| 7100 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7101 | { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 7102 | 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] | 7103 | if test "${ac_cv_type_uid_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7105 | else |
| 7106 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7107 | /* confdefs.h. */ |
| 7108 | _ACEOF |
| 7109 | cat confdefs.h >>conftest.$ac_ext |
| 7110 | cat >>conftest.$ac_ext <<_ACEOF |
| 7111 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7112 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7113 | |
| 7114 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7115 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7116 | $EGREP "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7117 | ac_cv_type_uid_t=yes |
| 7118 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7119 | ac_cv_type_uid_t=no |
| 7120 | fi |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame^] | 7121 | rm -f -r conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7122 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7123 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7124 | { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 7125 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7126 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7127 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7128 | cat >>confdefs.h <<\_ACEOF |
| 7129 | #define uid_t int |
| 7130 | _ACEOF |
| 7131 | |
| 7132 | |
| 7133 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7134 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7135 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7136 | |
| 7137 | fi |
| 7138 | |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7139 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7140 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
| 7141 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7142 | if test "${ac_cv_c_uint32_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7144 | else |
| 7145 | ac_cv_c_uint32_t=no |
| 7146 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ |
| 7147 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 7148 | cat >conftest.$ac_ext <<_ACEOF |
| 7149 | /* confdefs.h. */ |
| 7150 | _ACEOF |
| 7151 | cat confdefs.h >>conftest.$ac_ext |
| 7152 | cat >>conftest.$ac_ext <<_ACEOF |
| 7153 | /* end confdefs.h. */ |
| 7154 | $ac_includes_default |
| 7155 | int |
| 7156 | main () |
| 7157 | { |
| 7158 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
| 7159 | test_array [0] = 0 |
| 7160 | |
| 7161 | ; |
| 7162 | return 0; |
| 7163 | } |
| 7164 | _ACEOF |
| 7165 | rm -f conftest.$ac_objext |
| 7166 | if { (ac_try="$ac_compile" |
| 7167 | case "(($ac_try" in |
| 7168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7169 | *) ac_try_echo=$ac_try;; |
| 7170 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7172 | (eval "$ac_compile") 2>conftest.er1 |
| 7173 | ac_status=$? |
| 7174 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7175 | rm -f conftest.er1 |
| 7176 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7178 | (exit $ac_status); } && { |
| 7179 | test -z "$ac_c_werror_flag" || |
| 7180 | test ! -s conftest.err |
| 7181 | } && test -s conftest.$ac_objext; then |
| 7182 | case $ac_type in |
| 7183 | uint32_t) ac_cv_c_uint32_t=yes ;; |
| 7184 | *) ac_cv_c_uint32_t=$ac_type ;; |
| 7185 | esac |
| 7186 | |
| 7187 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7188 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7190 | |
| 7191 | |
| 7192 | fi |
| 7193 | |
| 7194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7195 | test "$ac_cv_c_uint32_t" != no && break |
| 7196 | done |
| 7197 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7198 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 |
| 7199 | echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7200 | case $ac_cv_c_uint32_t in #( |
| 7201 | no|yes) ;; #( |
| 7202 | *) |
| 7203 | |
| 7204 | cat >>confdefs.h <<\_ACEOF |
| 7205 | #define _UINT32_T 1 |
| 7206 | _ACEOF |
| 7207 | |
| 7208 | |
| 7209 | cat >>confdefs.h <<_ACEOF |
| 7210 | #define uint32_t $ac_cv_c_uint32_t |
| 7211 | _ACEOF |
| 7212 | ;; |
| 7213 | esac |
| 7214 | |
| 7215 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7216 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 7217 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7218 | if test "${ac_cv_c_uint64_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7220 | else |
| 7221 | ac_cv_c_uint64_t=no |
| 7222 | for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \ |
| 7223 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 7224 | cat >conftest.$ac_ext <<_ACEOF |
| 7225 | /* confdefs.h. */ |
| 7226 | _ACEOF |
| 7227 | cat confdefs.h >>conftest.$ac_ext |
| 7228 | cat >>conftest.$ac_ext <<_ACEOF |
| 7229 | /* end confdefs.h. */ |
| 7230 | $ac_includes_default |
| 7231 | int |
| 7232 | main () |
| 7233 | { |
| 7234 | static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)]; |
| 7235 | test_array [0] = 0 |
| 7236 | |
| 7237 | ; |
| 7238 | return 0; |
| 7239 | } |
| 7240 | _ACEOF |
| 7241 | rm -f conftest.$ac_objext |
| 7242 | if { (ac_try="$ac_compile" |
| 7243 | case "(($ac_try" in |
| 7244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7245 | *) ac_try_echo=$ac_try;; |
| 7246 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7248 | (eval "$ac_compile") 2>conftest.er1 |
| 7249 | ac_status=$? |
| 7250 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7251 | rm -f conftest.er1 |
| 7252 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7254 | (exit $ac_status); } && { |
| 7255 | test -z "$ac_c_werror_flag" || |
| 7256 | test ! -s conftest.err |
| 7257 | } && test -s conftest.$ac_objext; then |
| 7258 | case $ac_type in |
| 7259 | uint64_t) ac_cv_c_uint64_t=yes ;; |
| 7260 | *) ac_cv_c_uint64_t=$ac_type ;; |
| 7261 | esac |
| 7262 | |
| 7263 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7264 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7265 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7266 | |
| 7267 | |
| 7268 | fi |
| 7269 | |
| 7270 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7271 | test "$ac_cv_c_uint64_t" != no && break |
| 7272 | done |
| 7273 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7274 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5 |
| 7275 | echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7276 | case $ac_cv_c_uint64_t in #( |
| 7277 | no|yes) ;; #( |
| 7278 | *) |
| 7279 | |
| 7280 | cat >>confdefs.h <<\_ACEOF |
| 7281 | #define _UINT64_T 1 |
| 7282 | _ACEOF |
| 7283 | |
| 7284 | |
| 7285 | cat >>confdefs.h <<_ACEOF |
| 7286 | #define uint64_t $ac_cv_c_uint64_t |
| 7287 | _ACEOF |
| 7288 | ;; |
| 7289 | esac |
| 7290 | |
| 7291 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7292 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
| 7293 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7294 | if test "${ac_cv_c_int32_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7295 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7296 | else |
| 7297 | ac_cv_c_int32_t=no |
| 7298 | for ac_type in 'int32_t' 'int' 'long int' \ |
| 7299 | 'long long int' 'short int' 'signed char'; do |
| 7300 | cat >conftest.$ac_ext <<_ACEOF |
| 7301 | /* confdefs.h. */ |
| 7302 | _ACEOF |
| 7303 | cat confdefs.h >>conftest.$ac_ext |
| 7304 | cat >>conftest.$ac_ext <<_ACEOF |
| 7305 | /* end confdefs.h. */ |
| 7306 | $ac_includes_default |
| 7307 | int |
| 7308 | main () |
| 7309 | { |
| 7310 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
| 7311 | test_array [0] = 0 |
| 7312 | |
| 7313 | ; |
| 7314 | return 0; |
| 7315 | } |
| 7316 | _ACEOF |
| 7317 | rm -f conftest.$ac_objext |
| 7318 | if { (ac_try="$ac_compile" |
| 7319 | case "(($ac_try" in |
| 7320 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7321 | *) ac_try_echo=$ac_try;; |
| 7322 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7323 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7324 | (eval "$ac_compile") 2>conftest.er1 |
| 7325 | ac_status=$? |
| 7326 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7327 | rm -f conftest.er1 |
| 7328 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7330 | (exit $ac_status); } && { |
| 7331 | test -z "$ac_c_werror_flag" || |
| 7332 | test ! -s conftest.err |
| 7333 | } && test -s conftest.$ac_objext; then |
| 7334 | cat >conftest.$ac_ext <<_ACEOF |
| 7335 | /* confdefs.h. */ |
| 7336 | _ACEOF |
| 7337 | cat confdefs.h >>conftest.$ac_ext |
| 7338 | cat >>conftest.$ac_ext <<_ACEOF |
| 7339 | /* end confdefs.h. */ |
| 7340 | $ac_includes_default |
| 7341 | int |
| 7342 | main () |
| 7343 | { |
| 7344 | 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] | 7345 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7346 | test_array [0] = 0 |
| 7347 | |
| 7348 | ; |
| 7349 | return 0; |
| 7350 | } |
| 7351 | _ACEOF |
| 7352 | rm -f conftest.$ac_objext |
| 7353 | if { (ac_try="$ac_compile" |
| 7354 | case "(($ac_try" in |
| 7355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7356 | *) ac_try_echo=$ac_try;; |
| 7357 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7359 | (eval "$ac_compile") 2>conftest.er1 |
| 7360 | ac_status=$? |
| 7361 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7362 | rm -f conftest.er1 |
| 7363 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7365 | (exit $ac_status); } && { |
| 7366 | test -z "$ac_c_werror_flag" || |
| 7367 | test ! -s conftest.err |
| 7368 | } && test -s conftest.$ac_objext; then |
| 7369 | : |
| 7370 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7371 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7372 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7373 | |
| 7374 | case $ac_type in |
| 7375 | int32_t) ac_cv_c_int32_t=yes ;; |
| 7376 | *) ac_cv_c_int32_t=$ac_type ;; |
| 7377 | esac |
| 7378 | |
| 7379 | fi |
| 7380 | |
| 7381 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7382 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7383 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7384 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7385 | |
| 7386 | |
| 7387 | fi |
| 7388 | |
| 7389 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7390 | test "$ac_cv_c_int32_t" != no && break |
| 7391 | done |
| 7392 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7393 | { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
| 7394 | echo "${ECHO_T}$ac_cv_c_int32_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7395 | case $ac_cv_c_int32_t in #( |
| 7396 | no|yes) ;; #( |
| 7397 | *) |
| 7398 | |
| 7399 | cat >>confdefs.h <<_ACEOF |
| 7400 | #define int32_t $ac_cv_c_int32_t |
| 7401 | _ACEOF |
| 7402 | ;; |
| 7403 | esac |
| 7404 | |
| 7405 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7406 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 7407 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7408 | if test "${ac_cv_c_int64_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7409 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7410 | else |
| 7411 | ac_cv_c_int64_t=no |
| 7412 | for ac_type in 'int64_t' 'int' 'long int' \ |
| 7413 | 'long long int' 'short int' 'signed char'; do |
| 7414 | cat >conftest.$ac_ext <<_ACEOF |
| 7415 | /* confdefs.h. */ |
| 7416 | _ACEOF |
| 7417 | cat confdefs.h >>conftest.$ac_ext |
| 7418 | cat >>conftest.$ac_ext <<_ACEOF |
| 7419 | /* end confdefs.h. */ |
| 7420 | $ac_includes_default |
| 7421 | int |
| 7422 | main () |
| 7423 | { |
| 7424 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))]; |
| 7425 | test_array [0] = 0 |
| 7426 | |
| 7427 | ; |
| 7428 | return 0; |
| 7429 | } |
| 7430 | _ACEOF |
| 7431 | rm -f conftest.$ac_objext |
| 7432 | if { (ac_try="$ac_compile" |
| 7433 | case "(($ac_try" in |
| 7434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7435 | *) ac_try_echo=$ac_try;; |
| 7436 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7438 | (eval "$ac_compile") 2>conftest.er1 |
| 7439 | ac_status=$? |
| 7440 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7441 | rm -f conftest.er1 |
| 7442 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7444 | (exit $ac_status); } && { |
| 7445 | test -z "$ac_c_werror_flag" || |
| 7446 | test ! -s conftest.err |
| 7447 | } && test -s conftest.$ac_objext; then |
| 7448 | cat >conftest.$ac_ext <<_ACEOF |
| 7449 | /* confdefs.h. */ |
| 7450 | _ACEOF |
| 7451 | cat confdefs.h >>conftest.$ac_ext |
| 7452 | cat >>conftest.$ac_ext <<_ACEOF |
| 7453 | /* end confdefs.h. */ |
| 7454 | $ac_includes_default |
| 7455 | int |
| 7456 | main () |
| 7457 | { |
| 7458 | 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] | 7459 | < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))]; |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7460 | test_array [0] = 0 |
| 7461 | |
| 7462 | ; |
| 7463 | return 0; |
| 7464 | } |
| 7465 | _ACEOF |
| 7466 | rm -f conftest.$ac_objext |
| 7467 | if { (ac_try="$ac_compile" |
| 7468 | case "(($ac_try" in |
| 7469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7470 | *) ac_try_echo=$ac_try;; |
| 7471 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7472 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7473 | (eval "$ac_compile") 2>conftest.er1 |
| 7474 | ac_status=$? |
| 7475 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7476 | rm -f conftest.er1 |
| 7477 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7479 | (exit $ac_status); } && { |
| 7480 | test -z "$ac_c_werror_flag" || |
| 7481 | test ! -s conftest.err |
| 7482 | } && test -s conftest.$ac_objext; then |
| 7483 | : |
| 7484 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7485 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7486 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7487 | |
| 7488 | case $ac_type in |
| 7489 | int64_t) ac_cv_c_int64_t=yes ;; |
| 7490 | *) ac_cv_c_int64_t=$ac_type ;; |
| 7491 | esac |
| 7492 | |
| 7493 | fi |
| 7494 | |
| 7495 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7496 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7497 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7498 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7499 | |
| 7500 | |
| 7501 | fi |
| 7502 | |
| 7503 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7504 | test "$ac_cv_c_int64_t" != no && break |
| 7505 | done |
| 7506 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7507 | { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5 |
| 7508 | echo "${ECHO_T}$ac_cv_c_int64_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7509 | case $ac_cv_c_int64_t in #( |
| 7510 | no|yes) ;; #( |
| 7511 | *) |
| 7512 | |
| 7513 | cat >>confdefs.h <<_ACEOF |
| 7514 | #define int64_t $ac_cv_c_int64_t |
| 7515 | _ACEOF |
| 7516 | ;; |
| 7517 | esac |
| 7518 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7519 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 7520 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7521 | if test "${ac_cv_type_ssize_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7522 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7523 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7524 | cat >conftest.$ac_ext <<_ACEOF |
| 7525 | /* confdefs.h. */ |
| 7526 | _ACEOF |
| 7527 | cat confdefs.h >>conftest.$ac_ext |
| 7528 | cat >>conftest.$ac_ext <<_ACEOF |
| 7529 | /* end confdefs.h. */ |
| 7530 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7531 | typedef ssize_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7532 | int |
| 7533 | main () |
| 7534 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7535 | if ((ac__type_new_ *) 0) |
| 7536 | return 0; |
| 7537 | if (sizeof (ac__type_new_)) |
| 7538 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7539 | ; |
| 7540 | return 0; |
| 7541 | } |
| 7542 | _ACEOF |
| 7543 | rm -f conftest.$ac_objext |
| 7544 | if { (ac_try="$ac_compile" |
| 7545 | case "(($ac_try" in |
| 7546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7547 | *) ac_try_echo=$ac_try;; |
| 7548 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7550 | (eval "$ac_compile") 2>conftest.er1 |
| 7551 | ac_status=$? |
| 7552 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7553 | rm -f conftest.er1 |
| 7554 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7556 | (exit $ac_status); } && { |
| 7557 | test -z "$ac_c_werror_flag" || |
| 7558 | test ! -s conftest.err |
| 7559 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7560 | ac_cv_type_ssize_t=yes |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7561 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7562 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7563 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7564 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7565 | ac_cv_type_ssize_t=no |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7566 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7567 | |
| 7568 | 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] | 7569 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7570 | { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 7571 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } |
| 7572 | if test $ac_cv_type_ssize_t = yes; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7573 | |
| 7574 | cat >>confdefs.h <<\_ACEOF |
| 7575 | #define HAVE_SSIZE_T 1 |
| 7576 | _ACEOF |
| 7577 | |
| 7578 | fi |
| 7579 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7580 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7581 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 7582 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7583 | { echo "$as_me:$LINENO: checking for int" >&5 |
| 7584 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
| 7585 | if test "${ac_cv_type_int+set}" = set; then |
| 7586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7587 | else |
| 7588 | cat >conftest.$ac_ext <<_ACEOF |
| 7589 | /* confdefs.h. */ |
| 7590 | _ACEOF |
| 7591 | cat confdefs.h >>conftest.$ac_ext |
| 7592 | cat >>conftest.$ac_ext <<_ACEOF |
| 7593 | /* end confdefs.h. */ |
| 7594 | $ac_includes_default |
| 7595 | typedef int ac__type_new_; |
| 7596 | int |
| 7597 | main () |
| 7598 | { |
| 7599 | if ((ac__type_new_ *) 0) |
| 7600 | return 0; |
| 7601 | if (sizeof (ac__type_new_)) |
| 7602 | return 0; |
| 7603 | ; |
| 7604 | return 0; |
| 7605 | } |
| 7606 | _ACEOF |
| 7607 | rm -f conftest.$ac_objext |
| 7608 | if { (ac_try="$ac_compile" |
| 7609 | case "(($ac_try" in |
| 7610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7611 | *) ac_try_echo=$ac_try;; |
| 7612 | esac |
| 7613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7614 | (eval "$ac_compile") 2>conftest.er1 |
| 7615 | ac_status=$? |
| 7616 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7617 | rm -f conftest.er1 |
| 7618 | cat conftest.err >&5 |
| 7619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7620 | (exit $ac_status); } && { |
| 7621 | test -z "$ac_c_werror_flag" || |
| 7622 | test ! -s conftest.err |
| 7623 | } && test -s conftest.$ac_objext; then |
| 7624 | ac_cv_type_int=yes |
| 7625 | else |
| 7626 | echo "$as_me: failed program was:" >&5 |
| 7627 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7628 | |
| 7629 | ac_cv_type_int=no |
| 7630 | fi |
| 7631 | |
| 7632 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7633 | fi |
| 7634 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 7635 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
| 7636 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7637 | # The cast to long int works around a bug in the HP C Compiler |
| 7638 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7639 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7640 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7641 | { echo "$as_me:$LINENO: checking size of int" >&5 |
| 7642 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7643 | if test "${ac_cv_sizeof_int+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7645 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7646 | if test "$cross_compiling" = yes; then |
| 7647 | # Depending upon the size, compute the lo and hi bounds. |
| 7648 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7649 | /* confdefs.h. */ |
| 7650 | _ACEOF |
| 7651 | cat confdefs.h >>conftest.$ac_ext |
| 7652 | cat >>conftest.$ac_ext <<_ACEOF |
| 7653 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7654 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7655 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7656 | int |
| 7657 | main () |
| 7658 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7659 | 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] | 7660 | test_array [0] = 0 |
| 7661 | |
| 7662 | ; |
| 7663 | return 0; |
| 7664 | } |
| 7665 | _ACEOF |
| 7666 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7667 | if { (ac_try="$ac_compile" |
| 7668 | case "(($ac_try" in |
| 7669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7670 | *) ac_try_echo=$ac_try;; |
| 7671 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7672 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7673 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7674 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7675 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7676 | rm -f conftest.er1 |
| 7677 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7679 | (exit $ac_status); } && { |
| 7680 | test -z "$ac_c_werror_flag" || |
| 7681 | test ! -s conftest.err |
| 7682 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7683 | ac_lo=0 ac_mid=0 |
| 7684 | while :; do |
| 7685 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7686 | /* confdefs.h. */ |
| 7687 | _ACEOF |
| 7688 | cat confdefs.h >>conftest.$ac_ext |
| 7689 | cat >>conftest.$ac_ext <<_ACEOF |
| 7690 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7691 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7692 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7693 | int |
| 7694 | main () |
| 7695 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7696 | 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] | 7697 | test_array [0] = 0 |
| 7698 | |
| 7699 | ; |
| 7700 | return 0; |
| 7701 | } |
| 7702 | _ACEOF |
| 7703 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7704 | if { (ac_try="$ac_compile" |
| 7705 | case "(($ac_try" in |
| 7706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7707 | *) ac_try_echo=$ac_try;; |
| 7708 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7710 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7711 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7712 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7713 | rm -f conftest.er1 |
| 7714 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7716 | (exit $ac_status); } && { |
| 7717 | test -z "$ac_c_werror_flag" || |
| 7718 | test ! -s conftest.err |
| 7719 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7720 | ac_hi=$ac_mid; break |
| 7721 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7722 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7723 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7724 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7725 | ac_lo=`expr $ac_mid + 1` |
| 7726 | if test $ac_lo -le $ac_mid; then |
| 7727 | ac_lo= ac_hi= |
| 7728 | break |
| 7729 | fi |
| 7730 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7731 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7732 | |
| 7733 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7734 | done |
| 7735 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7736 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7737 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7738 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7739 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7740 | /* confdefs.h. */ |
| 7741 | _ACEOF |
| 7742 | cat confdefs.h >>conftest.$ac_ext |
| 7743 | cat >>conftest.$ac_ext <<_ACEOF |
| 7744 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7745 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7746 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7747 | int |
| 7748 | main () |
| 7749 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7750 | 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] | 7751 | test_array [0] = 0 |
| 7752 | |
| 7753 | ; |
| 7754 | return 0; |
| 7755 | } |
| 7756 | _ACEOF |
| 7757 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7758 | if { (ac_try="$ac_compile" |
| 7759 | case "(($ac_try" in |
| 7760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7761 | *) ac_try_echo=$ac_try;; |
| 7762 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7764 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7765 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7766 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7767 | rm -f conftest.er1 |
| 7768 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7770 | (exit $ac_status); } && { |
| 7771 | test -z "$ac_c_werror_flag" || |
| 7772 | test ! -s conftest.err |
| 7773 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7774 | ac_hi=-1 ac_mid=-1 |
| 7775 | while :; do |
| 7776 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7777 | /* confdefs.h. */ |
| 7778 | _ACEOF |
| 7779 | cat confdefs.h >>conftest.$ac_ext |
| 7780 | cat >>conftest.$ac_ext <<_ACEOF |
| 7781 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7782 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7783 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7784 | int |
| 7785 | main () |
| 7786 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7787 | 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] | 7788 | test_array [0] = 0 |
| 7789 | |
| 7790 | ; |
| 7791 | return 0; |
| 7792 | } |
| 7793 | _ACEOF |
| 7794 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7795 | if { (ac_try="$ac_compile" |
| 7796 | case "(($ac_try" in |
| 7797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7798 | *) ac_try_echo=$ac_try;; |
| 7799 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7801 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7802 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7803 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7804 | rm -f conftest.er1 |
| 7805 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7807 | (exit $ac_status); } && { |
| 7808 | test -z "$ac_c_werror_flag" || |
| 7809 | test ! -s conftest.err |
| 7810 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7811 | ac_lo=$ac_mid; break |
| 7812 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7813 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7814 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7815 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7816 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7817 | if test $ac_mid -le $ac_hi; then |
| 7818 | ac_lo= ac_hi= |
| 7819 | break |
| 7820 | fi |
| 7821 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7822 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7823 | |
| 7824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7825 | done |
| 7826 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7827 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7828 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7829 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7830 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7831 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7832 | |
| 7833 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7834 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7835 | |
| 7836 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7837 | # Binary search between lo and hi bounds. |
| 7838 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7839 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7840 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7841 | /* confdefs.h. */ |
| 7842 | _ACEOF |
| 7843 | cat confdefs.h >>conftest.$ac_ext |
| 7844 | cat >>conftest.$ac_ext <<_ACEOF |
| 7845 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7846 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7847 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7848 | int |
| 7849 | main () |
| 7850 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7851 | 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] | 7852 | test_array [0] = 0 |
| 7853 | |
| 7854 | ; |
| 7855 | return 0; |
| 7856 | } |
| 7857 | _ACEOF |
| 7858 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7859 | if { (ac_try="$ac_compile" |
| 7860 | case "(($ac_try" in |
| 7861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7862 | *) ac_try_echo=$ac_try;; |
| 7863 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7864 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7865 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7866 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7867 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7868 | rm -f conftest.er1 |
| 7869 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7871 | (exit $ac_status); } && { |
| 7872 | test -z "$ac_c_werror_flag" || |
| 7873 | test ! -s conftest.err |
| 7874 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7875 | ac_hi=$ac_mid |
| 7876 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7877 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7878 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7879 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7880 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7881 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7882 | |
| 7883 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7884 | done |
| 7885 | case $ac_lo in |
| 7886 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7887 | '') if test "$ac_cv_type_int" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7888 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7889 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7890 | echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7891 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7892 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7893 | else |
| 7894 | ac_cv_sizeof_int=0 |
| 7895 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7896 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7897 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7898 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7899 | /* confdefs.h. */ |
| 7900 | _ACEOF |
| 7901 | cat confdefs.h >>conftest.$ac_ext |
| 7902 | cat >>conftest.$ac_ext <<_ACEOF |
| 7903 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7904 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7905 | typedef int ac__type_sizeof_; |
| 7906 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 7907 | 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] | 7908 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7909 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7910 | int |
| 7911 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7912 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7913 | |
| 7914 | FILE *f = fopen ("conftest.val", "w"); |
| 7915 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7916 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7917 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7918 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7919 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7920 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7921 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7922 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7923 | } |
| 7924 | else |
| 7925 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7926 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7927 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7928 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7929 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7930 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7931 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7932 | |
| 7933 | ; |
| 7934 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7935 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7936 | _ACEOF |
| 7937 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7938 | if { (ac_try="$ac_link" |
| 7939 | case "(($ac_try" in |
| 7940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7941 | *) ac_try_echo=$ac_try;; |
| 7942 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7943 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7944 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7945 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7947 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7948 | { (case "(($ac_try" in |
| 7949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7950 | *) ac_try_echo=$ac_try;; |
| 7951 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7953 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7954 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7956 | (exit $ac_status); }; }; then |
| 7957 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7958 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7959 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7960 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7961 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7962 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7963 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7964 | if test "$ac_cv_type_int" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7965 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7966 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7967 | echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7968 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7969 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7970 | else |
| 7971 | ac_cv_sizeof_int=0 |
| 7972 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7973 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7974 | 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] | 7975 | fi |
| 7976 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7977 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7978 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 7979 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7980 | |
| 7981 | |
| 7982 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7983 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7984 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7985 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7986 | |
| 7987 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7988 | { echo "$as_me:$LINENO: checking for long" >&5 |
| 7989 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } |
| 7990 | if test "${ac_cv_type_long+set}" = set; then |
| 7991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7992 | else |
| 7993 | cat >conftest.$ac_ext <<_ACEOF |
| 7994 | /* confdefs.h. */ |
| 7995 | _ACEOF |
| 7996 | cat confdefs.h >>conftest.$ac_ext |
| 7997 | cat >>conftest.$ac_ext <<_ACEOF |
| 7998 | /* end confdefs.h. */ |
| 7999 | $ac_includes_default |
| 8000 | typedef long ac__type_new_; |
| 8001 | int |
| 8002 | main () |
| 8003 | { |
| 8004 | if ((ac__type_new_ *) 0) |
| 8005 | return 0; |
| 8006 | if (sizeof (ac__type_new_)) |
| 8007 | return 0; |
| 8008 | ; |
| 8009 | return 0; |
| 8010 | } |
| 8011 | _ACEOF |
| 8012 | rm -f conftest.$ac_objext |
| 8013 | if { (ac_try="$ac_compile" |
| 8014 | case "(($ac_try" in |
| 8015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8016 | *) ac_try_echo=$ac_try;; |
| 8017 | esac |
| 8018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8019 | (eval "$ac_compile") 2>conftest.er1 |
| 8020 | ac_status=$? |
| 8021 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8022 | rm -f conftest.er1 |
| 8023 | cat conftest.err >&5 |
| 8024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8025 | (exit $ac_status); } && { |
| 8026 | test -z "$ac_c_werror_flag" || |
| 8027 | test ! -s conftest.err |
| 8028 | } && test -s conftest.$ac_objext; then |
| 8029 | ac_cv_type_long=yes |
| 8030 | else |
| 8031 | echo "$as_me: failed program was:" >&5 |
| 8032 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8033 | |
| 8034 | ac_cv_type_long=no |
| 8035 | fi |
| 8036 | |
| 8037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8038 | fi |
| 8039 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 8040 | echo "${ECHO_T}$ac_cv_type_long" >&6; } |
| 8041 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8042 | # The cast to long int works around a bug in the HP C Compiler |
| 8043 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8044 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8045 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8046 | { echo "$as_me:$LINENO: checking size of long" >&5 |
| 8047 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8048 | if test "${ac_cv_sizeof_long+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8050 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8051 | if test "$cross_compiling" = yes; then |
| 8052 | # Depending upon the size, compute the lo and hi bounds. |
| 8053 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8054 | /* confdefs.h. */ |
| 8055 | _ACEOF |
| 8056 | cat confdefs.h >>conftest.$ac_ext |
| 8057 | cat >>conftest.$ac_ext <<_ACEOF |
| 8058 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8059 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8060 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8061 | int |
| 8062 | main () |
| 8063 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8064 | 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] | 8065 | test_array [0] = 0 |
| 8066 | |
| 8067 | ; |
| 8068 | return 0; |
| 8069 | } |
| 8070 | _ACEOF |
| 8071 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8072 | if { (ac_try="$ac_compile" |
| 8073 | case "(($ac_try" in |
| 8074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8075 | *) ac_try_echo=$ac_try;; |
| 8076 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8078 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8079 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8080 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8081 | rm -f conftest.er1 |
| 8082 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8084 | (exit $ac_status); } && { |
| 8085 | test -z "$ac_c_werror_flag" || |
| 8086 | test ! -s conftest.err |
| 8087 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8088 | ac_lo=0 ac_mid=0 |
| 8089 | while :; do |
| 8090 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8091 | /* confdefs.h. */ |
| 8092 | _ACEOF |
| 8093 | cat confdefs.h >>conftest.$ac_ext |
| 8094 | cat >>conftest.$ac_ext <<_ACEOF |
| 8095 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8096 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8097 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8098 | int |
| 8099 | main () |
| 8100 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8101 | 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] | 8102 | test_array [0] = 0 |
| 8103 | |
| 8104 | ; |
| 8105 | return 0; |
| 8106 | } |
| 8107 | _ACEOF |
| 8108 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8109 | if { (ac_try="$ac_compile" |
| 8110 | case "(($ac_try" in |
| 8111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8112 | *) ac_try_echo=$ac_try;; |
| 8113 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8114 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8115 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8116 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8117 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8118 | rm -f conftest.er1 |
| 8119 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8121 | (exit $ac_status); } && { |
| 8122 | test -z "$ac_c_werror_flag" || |
| 8123 | test ! -s conftest.err |
| 8124 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8125 | ac_hi=$ac_mid; break |
| 8126 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8127 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8128 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8129 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8130 | ac_lo=`expr $ac_mid + 1` |
| 8131 | if test $ac_lo -le $ac_mid; then |
| 8132 | ac_lo= ac_hi= |
| 8133 | break |
| 8134 | fi |
| 8135 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8136 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8137 | |
| 8138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8139 | done |
| 8140 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8141 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8142 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8143 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8144 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8145 | /* confdefs.h. */ |
| 8146 | _ACEOF |
| 8147 | cat confdefs.h >>conftest.$ac_ext |
| 8148 | cat >>conftest.$ac_ext <<_ACEOF |
| 8149 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8150 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8151 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8152 | int |
| 8153 | main () |
| 8154 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8155 | 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] | 8156 | test_array [0] = 0 |
| 8157 | |
| 8158 | ; |
| 8159 | return 0; |
| 8160 | } |
| 8161 | _ACEOF |
| 8162 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8163 | if { (ac_try="$ac_compile" |
| 8164 | case "(($ac_try" in |
| 8165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8166 | *) ac_try_echo=$ac_try;; |
| 8167 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8168 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8169 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8170 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8171 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8172 | rm -f conftest.er1 |
| 8173 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8175 | (exit $ac_status); } && { |
| 8176 | test -z "$ac_c_werror_flag" || |
| 8177 | test ! -s conftest.err |
| 8178 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8179 | ac_hi=-1 ac_mid=-1 |
| 8180 | while :; do |
| 8181 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8182 | /* confdefs.h. */ |
| 8183 | _ACEOF |
| 8184 | cat confdefs.h >>conftest.$ac_ext |
| 8185 | cat >>conftest.$ac_ext <<_ACEOF |
| 8186 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8187 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8188 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8189 | int |
| 8190 | main () |
| 8191 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8192 | 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] | 8193 | test_array [0] = 0 |
| 8194 | |
| 8195 | ; |
| 8196 | return 0; |
| 8197 | } |
| 8198 | _ACEOF |
| 8199 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8200 | if { (ac_try="$ac_compile" |
| 8201 | case "(($ac_try" in |
| 8202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8203 | *) ac_try_echo=$ac_try;; |
| 8204 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8205 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8206 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8207 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8208 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8209 | rm -f conftest.er1 |
| 8210 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8212 | (exit $ac_status); } && { |
| 8213 | test -z "$ac_c_werror_flag" || |
| 8214 | test ! -s conftest.err |
| 8215 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8216 | ac_lo=$ac_mid; break |
| 8217 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8218 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8219 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8220 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8221 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8222 | if test $ac_mid -le $ac_hi; then |
| 8223 | ac_lo= ac_hi= |
| 8224 | break |
| 8225 | fi |
| 8226 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8227 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8228 | |
| 8229 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8230 | done |
| 8231 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8232 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8233 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8234 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8235 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8236 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8237 | |
| 8238 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8239 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8240 | |
| 8241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8242 | # Binary search between lo and hi bounds. |
| 8243 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8244 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8245 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8246 | /* confdefs.h. */ |
| 8247 | _ACEOF |
| 8248 | cat confdefs.h >>conftest.$ac_ext |
| 8249 | cat >>conftest.$ac_ext <<_ACEOF |
| 8250 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8251 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8252 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8253 | int |
| 8254 | main () |
| 8255 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8256 | 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] | 8257 | test_array [0] = 0 |
| 8258 | |
| 8259 | ; |
| 8260 | return 0; |
| 8261 | } |
| 8262 | _ACEOF |
| 8263 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8264 | if { (ac_try="$ac_compile" |
| 8265 | case "(($ac_try" in |
| 8266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8267 | *) ac_try_echo=$ac_try;; |
| 8268 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8270 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8271 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8272 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8273 | rm -f conftest.er1 |
| 8274 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8276 | (exit $ac_status); } && { |
| 8277 | test -z "$ac_c_werror_flag" || |
| 8278 | test ! -s conftest.err |
| 8279 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8280 | ac_hi=$ac_mid |
| 8281 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8282 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8283 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8284 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8285 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8286 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8287 | |
| 8288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8289 | done |
| 8290 | case $ac_lo in |
| 8291 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8292 | '') if test "$ac_cv_type_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8293 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8294 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8295 | echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8296 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8297 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8298 | else |
| 8299 | ac_cv_sizeof_long=0 |
| 8300 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8301 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8302 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8303 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8304 | /* confdefs.h. */ |
| 8305 | _ACEOF |
| 8306 | cat confdefs.h >>conftest.$ac_ext |
| 8307 | cat >>conftest.$ac_ext <<_ACEOF |
| 8308 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8309 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8310 | typedef long ac__type_sizeof_; |
| 8311 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8312 | 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] | 8313 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8314 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8315 | int |
| 8316 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8317 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8318 | |
| 8319 | FILE *f = fopen ("conftest.val", "w"); |
| 8320 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8321 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8322 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8323 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8324 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8325 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8326 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8327 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8328 | } |
| 8329 | else |
| 8330 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8331 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8332 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8333 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8334 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8335 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8336 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8337 | |
| 8338 | ; |
| 8339 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8340 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8341 | _ACEOF |
| 8342 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8343 | if { (ac_try="$ac_link" |
| 8344 | case "(($ac_try" in |
| 8345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8346 | *) ac_try_echo=$ac_try;; |
| 8347 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8348 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8349 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8350 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8352 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8353 | { (case "(($ac_try" in |
| 8354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8355 | *) ac_try_echo=$ac_try;; |
| 8356 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8358 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8359 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8361 | (exit $ac_status); }; }; then |
| 8362 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8363 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8364 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8365 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8366 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8367 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8368 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8369 | if test "$ac_cv_type_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8370 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8371 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8372 | echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8373 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8374 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8375 | else |
| 8376 | ac_cv_sizeof_long=0 |
| 8377 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8378 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8379 | 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] | 8380 | fi |
| 8381 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8382 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8383 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 8384 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8385 | |
| 8386 | |
| 8387 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8388 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8389 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8390 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8391 | |
| 8392 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8393 | { echo "$as_me:$LINENO: checking for void *" >&5 |
| 8394 | echo $ECHO_N "checking for void *... $ECHO_C" >&6; } |
| 8395 | if test "${ac_cv_type_void_p+set}" = set; then |
| 8396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8397 | else |
| 8398 | cat >conftest.$ac_ext <<_ACEOF |
| 8399 | /* confdefs.h. */ |
| 8400 | _ACEOF |
| 8401 | cat confdefs.h >>conftest.$ac_ext |
| 8402 | cat >>conftest.$ac_ext <<_ACEOF |
| 8403 | /* end confdefs.h. */ |
| 8404 | $ac_includes_default |
| 8405 | typedef void * ac__type_new_; |
| 8406 | int |
| 8407 | main () |
| 8408 | { |
| 8409 | if ((ac__type_new_ *) 0) |
| 8410 | return 0; |
| 8411 | if (sizeof (ac__type_new_)) |
| 8412 | return 0; |
| 8413 | ; |
| 8414 | return 0; |
| 8415 | } |
| 8416 | _ACEOF |
| 8417 | rm -f conftest.$ac_objext |
| 8418 | if { (ac_try="$ac_compile" |
| 8419 | case "(($ac_try" in |
| 8420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8421 | *) ac_try_echo=$ac_try;; |
| 8422 | esac |
| 8423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8424 | (eval "$ac_compile") 2>conftest.er1 |
| 8425 | ac_status=$? |
| 8426 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8427 | rm -f conftest.er1 |
| 8428 | cat conftest.err >&5 |
| 8429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8430 | (exit $ac_status); } && { |
| 8431 | test -z "$ac_c_werror_flag" || |
| 8432 | test ! -s conftest.err |
| 8433 | } && test -s conftest.$ac_objext; then |
| 8434 | ac_cv_type_void_p=yes |
| 8435 | else |
| 8436 | echo "$as_me: failed program was:" >&5 |
| 8437 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8438 | |
| 8439 | ac_cv_type_void_p=no |
| 8440 | fi |
| 8441 | |
| 8442 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8443 | fi |
| 8444 | { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 8445 | echo "${ECHO_T}$ac_cv_type_void_p" >&6; } |
| 8446 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8447 | # The cast to long int works around a bug in the HP C Compiler |
| 8448 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8449 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8450 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8451 | { echo "$as_me:$LINENO: checking size of void *" >&5 |
| 8452 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8453 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8454 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8455 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8456 | if test "$cross_compiling" = yes; then |
| 8457 | # Depending upon the size, compute the lo and hi bounds. |
| 8458 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8459 | /* confdefs.h. */ |
| 8460 | _ACEOF |
| 8461 | cat confdefs.h >>conftest.$ac_ext |
| 8462 | cat >>conftest.$ac_ext <<_ACEOF |
| 8463 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8464 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8465 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8466 | int |
| 8467 | main () |
| 8468 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8469 | 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] | 8470 | test_array [0] = 0 |
| 8471 | |
| 8472 | ; |
| 8473 | return 0; |
| 8474 | } |
| 8475 | _ACEOF |
| 8476 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8477 | if { (ac_try="$ac_compile" |
| 8478 | case "(($ac_try" in |
| 8479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8480 | *) ac_try_echo=$ac_try;; |
| 8481 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8482 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8483 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8484 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8485 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8486 | rm -f conftest.er1 |
| 8487 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8489 | (exit $ac_status); } && { |
| 8490 | test -z "$ac_c_werror_flag" || |
| 8491 | test ! -s conftest.err |
| 8492 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8493 | ac_lo=0 ac_mid=0 |
| 8494 | while :; do |
| 8495 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8496 | /* confdefs.h. */ |
| 8497 | _ACEOF |
| 8498 | cat confdefs.h >>conftest.$ac_ext |
| 8499 | cat >>conftest.$ac_ext <<_ACEOF |
| 8500 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8501 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8502 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8503 | int |
| 8504 | main () |
| 8505 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8506 | 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] | 8507 | test_array [0] = 0 |
| 8508 | |
| 8509 | ; |
| 8510 | return 0; |
| 8511 | } |
| 8512 | _ACEOF |
| 8513 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8514 | if { (ac_try="$ac_compile" |
| 8515 | case "(($ac_try" in |
| 8516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8517 | *) ac_try_echo=$ac_try;; |
| 8518 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8520 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8521 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8522 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8523 | rm -f conftest.er1 |
| 8524 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8526 | (exit $ac_status); } && { |
| 8527 | test -z "$ac_c_werror_flag" || |
| 8528 | test ! -s conftest.err |
| 8529 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8530 | ac_hi=$ac_mid; break |
| 8531 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8532 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8533 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8534 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8535 | ac_lo=`expr $ac_mid + 1` |
| 8536 | if test $ac_lo -le $ac_mid; then |
| 8537 | ac_lo= ac_hi= |
| 8538 | break |
| 8539 | fi |
| 8540 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8541 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8542 | |
| 8543 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8544 | done |
| 8545 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8546 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8547 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8548 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8549 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8550 | /* confdefs.h. */ |
| 8551 | _ACEOF |
| 8552 | cat confdefs.h >>conftest.$ac_ext |
| 8553 | cat >>conftest.$ac_ext <<_ACEOF |
| 8554 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8555 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8556 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8557 | int |
| 8558 | main () |
| 8559 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8560 | 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] | 8561 | test_array [0] = 0 |
| 8562 | |
| 8563 | ; |
| 8564 | return 0; |
| 8565 | } |
| 8566 | _ACEOF |
| 8567 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8568 | if { (ac_try="$ac_compile" |
| 8569 | case "(($ac_try" in |
| 8570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8571 | *) ac_try_echo=$ac_try;; |
| 8572 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8574 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8575 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8576 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8577 | rm -f conftest.er1 |
| 8578 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8580 | (exit $ac_status); } && { |
| 8581 | test -z "$ac_c_werror_flag" || |
| 8582 | test ! -s conftest.err |
| 8583 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8584 | ac_hi=-1 ac_mid=-1 |
| 8585 | while :; do |
| 8586 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8587 | /* confdefs.h. */ |
| 8588 | _ACEOF |
| 8589 | cat confdefs.h >>conftest.$ac_ext |
| 8590 | cat >>conftest.$ac_ext <<_ACEOF |
| 8591 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8592 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8593 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8594 | int |
| 8595 | main () |
| 8596 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8597 | 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] | 8598 | test_array [0] = 0 |
| 8599 | |
| 8600 | ; |
| 8601 | return 0; |
| 8602 | } |
| 8603 | _ACEOF |
| 8604 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8605 | if { (ac_try="$ac_compile" |
| 8606 | case "(($ac_try" in |
| 8607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8608 | *) ac_try_echo=$ac_try;; |
| 8609 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8610 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8611 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8612 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8613 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8614 | rm -f conftest.er1 |
| 8615 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8617 | (exit $ac_status); } && { |
| 8618 | test -z "$ac_c_werror_flag" || |
| 8619 | test ! -s conftest.err |
| 8620 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8621 | ac_lo=$ac_mid; break |
| 8622 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8623 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8624 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8625 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8626 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8627 | if test $ac_mid -le $ac_hi; then |
| 8628 | ac_lo= ac_hi= |
| 8629 | break |
| 8630 | fi |
| 8631 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8632 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8633 | |
| 8634 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8635 | done |
| 8636 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8637 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8638 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8639 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8640 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8641 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8642 | |
| 8643 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8644 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8645 | |
| 8646 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8647 | # Binary search between lo and hi bounds. |
| 8648 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8649 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8650 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8651 | /* confdefs.h. */ |
| 8652 | _ACEOF |
| 8653 | cat confdefs.h >>conftest.$ac_ext |
| 8654 | cat >>conftest.$ac_ext <<_ACEOF |
| 8655 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8656 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8657 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8658 | int |
| 8659 | main () |
| 8660 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8661 | 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] | 8662 | test_array [0] = 0 |
| 8663 | |
| 8664 | ; |
| 8665 | return 0; |
| 8666 | } |
| 8667 | _ACEOF |
| 8668 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8669 | if { (ac_try="$ac_compile" |
| 8670 | case "(($ac_try" in |
| 8671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8672 | *) ac_try_echo=$ac_try;; |
| 8673 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8675 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8676 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8677 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8678 | rm -f conftest.er1 |
| 8679 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8681 | (exit $ac_status); } && { |
| 8682 | test -z "$ac_c_werror_flag" || |
| 8683 | test ! -s conftest.err |
| 8684 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8685 | ac_hi=$ac_mid |
| 8686 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8687 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8688 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8689 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8690 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8691 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8692 | |
| 8693 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8694 | done |
| 8695 | case $ac_lo in |
| 8696 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8697 | '') if test "$ac_cv_type_void_p" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8698 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8699 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8700 | echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8701 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8702 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8703 | else |
| 8704 | ac_cv_sizeof_void_p=0 |
| 8705 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8706 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8707 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8708 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8709 | /* confdefs.h. */ |
| 8710 | _ACEOF |
| 8711 | cat confdefs.h >>conftest.$ac_ext |
| 8712 | cat >>conftest.$ac_ext <<_ACEOF |
| 8713 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8714 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8715 | typedef void * ac__type_sizeof_; |
| 8716 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8717 | 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] | 8718 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8719 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8720 | int |
| 8721 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8722 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8723 | |
| 8724 | FILE *f = fopen ("conftest.val", "w"); |
| 8725 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8726 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8727 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8728 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8729 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8730 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8731 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8732 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8733 | } |
| 8734 | else |
| 8735 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8736 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8737 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8738 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8739 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8740 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8741 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8742 | |
| 8743 | ; |
| 8744 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8745 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8746 | _ACEOF |
| 8747 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8748 | if { (ac_try="$ac_link" |
| 8749 | case "(($ac_try" in |
| 8750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8751 | *) ac_try_echo=$ac_try;; |
| 8752 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8754 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8755 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8757 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8758 | { (case "(($ac_try" in |
| 8759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8760 | *) ac_try_echo=$ac_try;; |
| 8761 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8763 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8764 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8766 | (exit $ac_status); }; }; then |
| 8767 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8768 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8769 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8770 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8771 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8772 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8773 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8774 | if test "$ac_cv_type_void_p" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8775 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8776 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8777 | echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8778 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8779 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8780 | else |
| 8781 | ac_cv_sizeof_void_p=0 |
| 8782 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8783 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8784 | 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] | 8785 | fi |
| 8786 | rm -f conftest.val |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8787 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8788 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 8789 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8790 | |
| 8791 | |
| 8792 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8793 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8794 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8795 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8796 | |
| 8797 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8798 | { echo "$as_me:$LINENO: checking for short" >&5 |
| 8799 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
| 8800 | if test "${ac_cv_type_short+set}" = set; then |
| 8801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8802 | else |
| 8803 | cat >conftest.$ac_ext <<_ACEOF |
| 8804 | /* confdefs.h. */ |
| 8805 | _ACEOF |
| 8806 | cat confdefs.h >>conftest.$ac_ext |
| 8807 | cat >>conftest.$ac_ext <<_ACEOF |
| 8808 | /* end confdefs.h. */ |
| 8809 | $ac_includes_default |
| 8810 | typedef short ac__type_new_; |
| 8811 | int |
| 8812 | main () |
| 8813 | { |
| 8814 | if ((ac__type_new_ *) 0) |
| 8815 | return 0; |
| 8816 | if (sizeof (ac__type_new_)) |
| 8817 | return 0; |
| 8818 | ; |
| 8819 | return 0; |
| 8820 | } |
| 8821 | _ACEOF |
| 8822 | rm -f conftest.$ac_objext |
| 8823 | if { (ac_try="$ac_compile" |
| 8824 | case "(($ac_try" in |
| 8825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8826 | *) ac_try_echo=$ac_try;; |
| 8827 | esac |
| 8828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8829 | (eval "$ac_compile") 2>conftest.er1 |
| 8830 | ac_status=$? |
| 8831 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8832 | rm -f conftest.er1 |
| 8833 | cat conftest.err >&5 |
| 8834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8835 | (exit $ac_status); } && { |
| 8836 | test -z "$ac_c_werror_flag" || |
| 8837 | test ! -s conftest.err |
| 8838 | } && test -s conftest.$ac_objext; then |
| 8839 | ac_cv_type_short=yes |
| 8840 | else |
| 8841 | echo "$as_me: failed program was:" >&5 |
| 8842 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8843 | |
| 8844 | ac_cv_type_short=no |
| 8845 | fi |
| 8846 | |
| 8847 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8848 | fi |
| 8849 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 8850 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
| 8851 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8852 | # The cast to long int works around a bug in the HP C Compiler |
| 8853 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8854 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8855 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8856 | { echo "$as_me:$LINENO: checking size of short" >&5 |
| 8857 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8858 | if test "${ac_cv_sizeof_short+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8859 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8860 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8861 | if test "$cross_compiling" = yes; then |
| 8862 | # Depending upon the size, compute the lo and hi bounds. |
| 8863 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8864 | /* confdefs.h. */ |
| 8865 | _ACEOF |
| 8866 | cat confdefs.h >>conftest.$ac_ext |
| 8867 | cat >>conftest.$ac_ext <<_ACEOF |
| 8868 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8869 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8870 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8871 | int |
| 8872 | main () |
| 8873 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8874 | 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] | 8875 | test_array [0] = 0 |
| 8876 | |
| 8877 | ; |
| 8878 | return 0; |
| 8879 | } |
| 8880 | _ACEOF |
| 8881 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8882 | if { (ac_try="$ac_compile" |
| 8883 | case "(($ac_try" in |
| 8884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8885 | *) ac_try_echo=$ac_try;; |
| 8886 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8888 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8889 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8890 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8891 | rm -f conftest.er1 |
| 8892 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8894 | (exit $ac_status); } && { |
| 8895 | test -z "$ac_c_werror_flag" || |
| 8896 | test ! -s conftest.err |
| 8897 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8898 | ac_lo=0 ac_mid=0 |
| 8899 | while :; do |
| 8900 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8901 | /* confdefs.h. */ |
| 8902 | _ACEOF |
| 8903 | cat confdefs.h >>conftest.$ac_ext |
| 8904 | cat >>conftest.$ac_ext <<_ACEOF |
| 8905 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8906 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8907 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8908 | int |
| 8909 | main () |
| 8910 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8911 | 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] | 8912 | test_array [0] = 0 |
| 8913 | |
| 8914 | ; |
| 8915 | return 0; |
| 8916 | } |
| 8917 | _ACEOF |
| 8918 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8919 | if { (ac_try="$ac_compile" |
| 8920 | case "(($ac_try" in |
| 8921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8922 | *) ac_try_echo=$ac_try;; |
| 8923 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8925 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8926 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8927 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8928 | rm -f conftest.er1 |
| 8929 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8931 | (exit $ac_status); } && { |
| 8932 | test -z "$ac_c_werror_flag" || |
| 8933 | test ! -s conftest.err |
| 8934 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8935 | ac_hi=$ac_mid; break |
| 8936 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8937 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8938 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8939 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8940 | ac_lo=`expr $ac_mid + 1` |
| 8941 | if test $ac_lo -le $ac_mid; then |
| 8942 | ac_lo= ac_hi= |
| 8943 | break |
| 8944 | fi |
| 8945 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8946 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8947 | |
| 8948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8949 | done |
| 8950 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8951 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8952 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8953 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8954 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8955 | /* confdefs.h. */ |
| 8956 | _ACEOF |
| 8957 | cat confdefs.h >>conftest.$ac_ext |
| 8958 | cat >>conftest.$ac_ext <<_ACEOF |
| 8959 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8960 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8961 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8962 | int |
| 8963 | main () |
| 8964 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8965 | 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] | 8966 | test_array [0] = 0 |
| 8967 | |
| 8968 | ; |
| 8969 | return 0; |
| 8970 | } |
| 8971 | _ACEOF |
| 8972 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8973 | if { (ac_try="$ac_compile" |
| 8974 | case "(($ac_try" in |
| 8975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8976 | *) ac_try_echo=$ac_try;; |
| 8977 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8979 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8980 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8981 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8982 | rm -f conftest.er1 |
| 8983 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8985 | (exit $ac_status); } && { |
| 8986 | test -z "$ac_c_werror_flag" || |
| 8987 | test ! -s conftest.err |
| 8988 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8989 | ac_hi=-1 ac_mid=-1 |
| 8990 | while :; do |
| 8991 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8992 | /* confdefs.h. */ |
| 8993 | _ACEOF |
| 8994 | cat confdefs.h >>conftest.$ac_ext |
| 8995 | cat >>conftest.$ac_ext <<_ACEOF |
| 8996 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8997 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8998 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8999 | int |
| 9000 | main () |
| 9001 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9002 | 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] | 9003 | test_array [0] = 0 |
| 9004 | |
| 9005 | ; |
| 9006 | return 0; |
| 9007 | } |
| 9008 | _ACEOF |
| 9009 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9010 | if { (ac_try="$ac_compile" |
| 9011 | case "(($ac_try" in |
| 9012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9013 | *) ac_try_echo=$ac_try;; |
| 9014 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9016 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9017 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9018 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9019 | rm -f conftest.er1 |
| 9020 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9022 | (exit $ac_status); } && { |
| 9023 | test -z "$ac_c_werror_flag" || |
| 9024 | test ! -s conftest.err |
| 9025 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9026 | ac_lo=$ac_mid; break |
| 9027 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9028 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9029 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9030 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9031 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9032 | if test $ac_mid -le $ac_hi; then |
| 9033 | ac_lo= ac_hi= |
| 9034 | break |
| 9035 | fi |
| 9036 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9037 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9038 | |
| 9039 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9040 | done |
| 9041 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9042 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9043 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9044 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9045 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9046 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9047 | |
| 9048 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9049 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9050 | |
| 9051 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9052 | # Binary search between lo and hi bounds. |
| 9053 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9054 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9055 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9056 | /* confdefs.h. */ |
| 9057 | _ACEOF |
| 9058 | cat confdefs.h >>conftest.$ac_ext |
| 9059 | cat >>conftest.$ac_ext <<_ACEOF |
| 9060 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9061 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9062 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9063 | int |
| 9064 | main () |
| 9065 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9066 | 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] | 9067 | test_array [0] = 0 |
| 9068 | |
| 9069 | ; |
| 9070 | return 0; |
| 9071 | } |
| 9072 | _ACEOF |
| 9073 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9074 | if { (ac_try="$ac_compile" |
| 9075 | case "(($ac_try" in |
| 9076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9077 | *) ac_try_echo=$ac_try;; |
| 9078 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9080 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9081 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9082 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9083 | rm -f conftest.er1 |
| 9084 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9086 | (exit $ac_status); } && { |
| 9087 | test -z "$ac_c_werror_flag" || |
| 9088 | test ! -s conftest.err |
| 9089 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9090 | ac_hi=$ac_mid |
| 9091 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9092 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9093 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9094 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9095 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9096 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9097 | |
| 9098 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9099 | done |
| 9100 | case $ac_lo in |
| 9101 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9102 | '') if test "$ac_cv_type_short" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9103 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9104 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9105 | echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9106 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9107 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9108 | else |
| 9109 | ac_cv_sizeof_short=0 |
| 9110 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9111 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9112 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9113 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9114 | /* confdefs.h. */ |
| 9115 | _ACEOF |
| 9116 | cat confdefs.h >>conftest.$ac_ext |
| 9117 | cat >>conftest.$ac_ext <<_ACEOF |
| 9118 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9119 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9120 | typedef short ac__type_sizeof_; |
| 9121 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9122 | 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] | 9123 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9124 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9125 | int |
| 9126 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9127 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9128 | |
| 9129 | FILE *f = fopen ("conftest.val", "w"); |
| 9130 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9131 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9132 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9133 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9134 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9135 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9136 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9137 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9138 | } |
| 9139 | else |
| 9140 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9141 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9142 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9143 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9144 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9145 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9146 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9147 | |
| 9148 | ; |
| 9149 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9150 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9151 | _ACEOF |
| 9152 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9153 | if { (ac_try="$ac_link" |
| 9154 | case "(($ac_try" in |
| 9155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9156 | *) ac_try_echo=$ac_try;; |
| 9157 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9159 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9160 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9162 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9163 | { (case "(($ac_try" in |
| 9164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9165 | *) ac_try_echo=$ac_try;; |
| 9166 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9167 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9168 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9169 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9171 | (exit $ac_status); }; }; then |
| 9172 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9173 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9174 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9175 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9176 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9177 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9178 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9179 | if test "$ac_cv_type_short" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9180 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9181 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9182 | echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9183 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9184 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9185 | else |
| 9186 | ac_cv_sizeof_short=0 |
| 9187 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9188 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9189 | 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] | 9190 | fi |
| 9191 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9192 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9193 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 9194 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9195 | |
| 9196 | |
| 9197 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9198 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9199 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9200 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9201 | |
| 9202 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9203 | { echo "$as_me:$LINENO: checking for float" >&5 |
| 9204 | echo $ECHO_N "checking for float... $ECHO_C" >&6; } |
| 9205 | if test "${ac_cv_type_float+set}" = set; then |
| 9206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9207 | else |
| 9208 | cat >conftest.$ac_ext <<_ACEOF |
| 9209 | /* confdefs.h. */ |
| 9210 | _ACEOF |
| 9211 | cat confdefs.h >>conftest.$ac_ext |
| 9212 | cat >>conftest.$ac_ext <<_ACEOF |
| 9213 | /* end confdefs.h. */ |
| 9214 | $ac_includes_default |
| 9215 | typedef float ac__type_new_; |
| 9216 | int |
| 9217 | main () |
| 9218 | { |
| 9219 | if ((ac__type_new_ *) 0) |
| 9220 | return 0; |
| 9221 | if (sizeof (ac__type_new_)) |
| 9222 | return 0; |
| 9223 | ; |
| 9224 | return 0; |
| 9225 | } |
| 9226 | _ACEOF |
| 9227 | rm -f conftest.$ac_objext |
| 9228 | if { (ac_try="$ac_compile" |
| 9229 | case "(($ac_try" in |
| 9230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9231 | *) ac_try_echo=$ac_try;; |
| 9232 | esac |
| 9233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9234 | (eval "$ac_compile") 2>conftest.er1 |
| 9235 | ac_status=$? |
| 9236 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9237 | rm -f conftest.er1 |
| 9238 | cat conftest.err >&5 |
| 9239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9240 | (exit $ac_status); } && { |
| 9241 | test -z "$ac_c_werror_flag" || |
| 9242 | test ! -s conftest.err |
| 9243 | } && test -s conftest.$ac_objext; then |
| 9244 | ac_cv_type_float=yes |
| 9245 | else |
| 9246 | echo "$as_me: failed program was:" >&5 |
| 9247 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9248 | |
| 9249 | ac_cv_type_float=no |
| 9250 | fi |
| 9251 | |
| 9252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9253 | fi |
| 9254 | { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 9255 | echo "${ECHO_T}$ac_cv_type_float" >&6; } |
| 9256 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9257 | # The cast to long int works around a bug in the HP C Compiler |
| 9258 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9259 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9260 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9261 | { echo "$as_me:$LINENO: checking size of float" >&5 |
| 9262 | echo $ECHO_N "checking size of float... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9263 | if test "${ac_cv_sizeof_float+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9265 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9266 | if test "$cross_compiling" = yes; then |
| 9267 | # Depending upon the size, compute the lo and hi bounds. |
| 9268 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9269 | /* confdefs.h. */ |
| 9270 | _ACEOF |
| 9271 | cat confdefs.h >>conftest.$ac_ext |
| 9272 | cat >>conftest.$ac_ext <<_ACEOF |
| 9273 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9274 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9275 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9276 | int |
| 9277 | main () |
| 9278 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9279 | 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] | 9280 | test_array [0] = 0 |
| 9281 | |
| 9282 | ; |
| 9283 | return 0; |
| 9284 | } |
| 9285 | _ACEOF |
| 9286 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9287 | if { (ac_try="$ac_compile" |
| 9288 | case "(($ac_try" in |
| 9289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9290 | *) ac_try_echo=$ac_try;; |
| 9291 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9292 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9293 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9294 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9295 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9296 | rm -f conftest.er1 |
| 9297 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9299 | (exit $ac_status); } && { |
| 9300 | test -z "$ac_c_werror_flag" || |
| 9301 | test ! -s conftest.err |
| 9302 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9303 | ac_lo=0 ac_mid=0 |
| 9304 | while :; do |
| 9305 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9306 | /* confdefs.h. */ |
| 9307 | _ACEOF |
| 9308 | cat confdefs.h >>conftest.$ac_ext |
| 9309 | cat >>conftest.$ac_ext <<_ACEOF |
| 9310 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9311 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9312 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9313 | int |
| 9314 | main () |
| 9315 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9316 | 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] | 9317 | test_array [0] = 0 |
| 9318 | |
| 9319 | ; |
| 9320 | return 0; |
| 9321 | } |
| 9322 | _ACEOF |
| 9323 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9324 | if { (ac_try="$ac_compile" |
| 9325 | case "(($ac_try" in |
| 9326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9327 | *) ac_try_echo=$ac_try;; |
| 9328 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9330 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9331 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9332 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9333 | rm -f conftest.er1 |
| 9334 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9336 | (exit $ac_status); } && { |
| 9337 | test -z "$ac_c_werror_flag" || |
| 9338 | test ! -s conftest.err |
| 9339 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9340 | ac_hi=$ac_mid; break |
| 9341 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9342 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9343 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9344 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9345 | ac_lo=`expr $ac_mid + 1` |
| 9346 | if test $ac_lo -le $ac_mid; then |
| 9347 | ac_lo= ac_hi= |
| 9348 | break |
| 9349 | fi |
| 9350 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9351 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9352 | |
| 9353 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9354 | done |
| 9355 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9356 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9357 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9358 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9359 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9360 | /* confdefs.h. */ |
| 9361 | _ACEOF |
| 9362 | cat confdefs.h >>conftest.$ac_ext |
| 9363 | cat >>conftest.$ac_ext <<_ACEOF |
| 9364 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9365 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9366 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9367 | int |
| 9368 | main () |
| 9369 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9370 | 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] | 9371 | test_array [0] = 0 |
| 9372 | |
| 9373 | ; |
| 9374 | return 0; |
| 9375 | } |
| 9376 | _ACEOF |
| 9377 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9378 | if { (ac_try="$ac_compile" |
| 9379 | case "(($ac_try" in |
| 9380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9381 | *) ac_try_echo=$ac_try;; |
| 9382 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9383 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9384 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9385 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9386 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9387 | rm -f conftest.er1 |
| 9388 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9390 | (exit $ac_status); } && { |
| 9391 | test -z "$ac_c_werror_flag" || |
| 9392 | test ! -s conftest.err |
| 9393 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9394 | ac_hi=-1 ac_mid=-1 |
| 9395 | while :; do |
| 9396 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9397 | /* confdefs.h. */ |
| 9398 | _ACEOF |
| 9399 | cat confdefs.h >>conftest.$ac_ext |
| 9400 | cat >>conftest.$ac_ext <<_ACEOF |
| 9401 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9402 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9403 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9404 | int |
| 9405 | main () |
| 9406 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9407 | 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] | 9408 | test_array [0] = 0 |
| 9409 | |
| 9410 | ; |
| 9411 | return 0; |
| 9412 | } |
| 9413 | _ACEOF |
| 9414 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9415 | if { (ac_try="$ac_compile" |
| 9416 | case "(($ac_try" in |
| 9417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9418 | *) ac_try_echo=$ac_try;; |
| 9419 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9421 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9422 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9423 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9424 | rm -f conftest.er1 |
| 9425 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9427 | (exit $ac_status); } && { |
| 9428 | test -z "$ac_c_werror_flag" || |
| 9429 | test ! -s conftest.err |
| 9430 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9431 | ac_lo=$ac_mid; break |
| 9432 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9433 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9434 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9435 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9436 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9437 | if test $ac_mid -le $ac_hi; then |
| 9438 | ac_lo= ac_hi= |
| 9439 | break |
| 9440 | fi |
| 9441 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9442 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9443 | |
| 9444 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9445 | done |
| 9446 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9447 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9448 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9449 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9450 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9451 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9452 | |
| 9453 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9454 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9455 | |
| 9456 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9457 | # Binary search between lo and hi bounds. |
| 9458 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9459 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9460 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9461 | /* confdefs.h. */ |
| 9462 | _ACEOF |
| 9463 | cat confdefs.h >>conftest.$ac_ext |
| 9464 | cat >>conftest.$ac_ext <<_ACEOF |
| 9465 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9466 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9467 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9468 | int |
| 9469 | main () |
| 9470 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9471 | 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] | 9472 | test_array [0] = 0 |
| 9473 | |
| 9474 | ; |
| 9475 | return 0; |
| 9476 | } |
| 9477 | _ACEOF |
| 9478 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9479 | if { (ac_try="$ac_compile" |
| 9480 | case "(($ac_try" in |
| 9481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9482 | *) ac_try_echo=$ac_try;; |
| 9483 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9484 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9485 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9486 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9487 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9488 | rm -f conftest.er1 |
| 9489 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9491 | (exit $ac_status); } && { |
| 9492 | test -z "$ac_c_werror_flag" || |
| 9493 | test ! -s conftest.err |
| 9494 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9495 | ac_hi=$ac_mid |
| 9496 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9497 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9498 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9499 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9500 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9501 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9502 | |
| 9503 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9504 | done |
| 9505 | case $ac_lo in |
| 9506 | ?*) ac_cv_sizeof_float=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9507 | '') if test "$ac_cv_type_float" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9508 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9509 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9510 | echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9511 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9512 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9513 | else |
| 9514 | ac_cv_sizeof_float=0 |
| 9515 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9516 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9517 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9518 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9519 | /* confdefs.h. */ |
| 9520 | _ACEOF |
| 9521 | cat confdefs.h >>conftest.$ac_ext |
| 9522 | cat >>conftest.$ac_ext <<_ACEOF |
| 9523 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9524 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9525 | typedef float ac__type_sizeof_; |
| 9526 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9527 | 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] | 9528 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9529 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9530 | int |
| 9531 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9532 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9533 | |
| 9534 | FILE *f = fopen ("conftest.val", "w"); |
| 9535 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9536 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9537 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9538 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9539 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9540 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9541 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9542 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9543 | } |
| 9544 | else |
| 9545 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9546 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9547 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9548 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9549 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9550 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9551 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9552 | |
| 9553 | ; |
| 9554 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9555 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9556 | _ACEOF |
| 9557 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9558 | if { (ac_try="$ac_link" |
| 9559 | case "(($ac_try" in |
| 9560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9561 | *) ac_try_echo=$ac_try;; |
| 9562 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9563 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9564 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9565 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9567 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9568 | { (case "(($ac_try" in |
| 9569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9570 | *) ac_try_echo=$ac_try;; |
| 9571 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9572 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9573 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9574 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9576 | (exit $ac_status); }; }; then |
| 9577 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9578 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9579 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9580 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9581 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9582 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9583 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9584 | if test "$ac_cv_type_float" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9585 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9586 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9587 | echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9588 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9589 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9590 | else |
| 9591 | ac_cv_sizeof_float=0 |
| 9592 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9593 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9594 | 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] | 9595 | fi |
| 9596 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9597 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9598 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 9599 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9600 | |
| 9601 | |
| 9602 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9603 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9604 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9605 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9606 | |
| 9607 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9608 | { echo "$as_me:$LINENO: checking for double" >&5 |
| 9609 | echo $ECHO_N "checking for double... $ECHO_C" >&6; } |
| 9610 | if test "${ac_cv_type_double+set}" = set; then |
| 9611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9612 | else |
| 9613 | cat >conftest.$ac_ext <<_ACEOF |
| 9614 | /* confdefs.h. */ |
| 9615 | _ACEOF |
| 9616 | cat confdefs.h >>conftest.$ac_ext |
| 9617 | cat >>conftest.$ac_ext <<_ACEOF |
| 9618 | /* end confdefs.h. */ |
| 9619 | $ac_includes_default |
| 9620 | typedef double ac__type_new_; |
| 9621 | int |
| 9622 | main () |
| 9623 | { |
| 9624 | if ((ac__type_new_ *) 0) |
| 9625 | return 0; |
| 9626 | if (sizeof (ac__type_new_)) |
| 9627 | return 0; |
| 9628 | ; |
| 9629 | return 0; |
| 9630 | } |
| 9631 | _ACEOF |
| 9632 | rm -f conftest.$ac_objext |
| 9633 | if { (ac_try="$ac_compile" |
| 9634 | case "(($ac_try" in |
| 9635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9636 | *) ac_try_echo=$ac_try;; |
| 9637 | esac |
| 9638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9639 | (eval "$ac_compile") 2>conftest.er1 |
| 9640 | ac_status=$? |
| 9641 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9642 | rm -f conftest.er1 |
| 9643 | cat conftest.err >&5 |
| 9644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9645 | (exit $ac_status); } && { |
| 9646 | test -z "$ac_c_werror_flag" || |
| 9647 | test ! -s conftest.err |
| 9648 | } && test -s conftest.$ac_objext; then |
| 9649 | ac_cv_type_double=yes |
| 9650 | else |
| 9651 | echo "$as_me: failed program was:" >&5 |
| 9652 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9653 | |
| 9654 | ac_cv_type_double=no |
| 9655 | fi |
| 9656 | |
| 9657 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9658 | fi |
| 9659 | { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 9660 | echo "${ECHO_T}$ac_cv_type_double" >&6; } |
| 9661 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9662 | # The cast to long int works around a bug in the HP C Compiler |
| 9663 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9664 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9665 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9666 | { echo "$as_me:$LINENO: checking size of double" >&5 |
| 9667 | echo $ECHO_N "checking size of double... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9668 | if test "${ac_cv_sizeof_double+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9670 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9671 | if test "$cross_compiling" = yes; then |
| 9672 | # Depending upon the size, compute the lo and hi bounds. |
| 9673 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9674 | /* confdefs.h. */ |
| 9675 | _ACEOF |
| 9676 | cat confdefs.h >>conftest.$ac_ext |
| 9677 | cat >>conftest.$ac_ext <<_ACEOF |
| 9678 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9679 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9680 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9681 | int |
| 9682 | main () |
| 9683 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9684 | 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] | 9685 | test_array [0] = 0 |
| 9686 | |
| 9687 | ; |
| 9688 | return 0; |
| 9689 | } |
| 9690 | _ACEOF |
| 9691 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9692 | if { (ac_try="$ac_compile" |
| 9693 | case "(($ac_try" in |
| 9694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9695 | *) ac_try_echo=$ac_try;; |
| 9696 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9698 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9699 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9700 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9701 | rm -f conftest.er1 |
| 9702 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9704 | (exit $ac_status); } && { |
| 9705 | test -z "$ac_c_werror_flag" || |
| 9706 | test ! -s conftest.err |
| 9707 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9708 | ac_lo=0 ac_mid=0 |
| 9709 | while :; do |
| 9710 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9711 | /* confdefs.h. */ |
| 9712 | _ACEOF |
| 9713 | cat confdefs.h >>conftest.$ac_ext |
| 9714 | cat >>conftest.$ac_ext <<_ACEOF |
| 9715 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9716 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9717 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9718 | int |
| 9719 | main () |
| 9720 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9721 | 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] | 9722 | test_array [0] = 0 |
| 9723 | |
| 9724 | ; |
| 9725 | return 0; |
| 9726 | } |
| 9727 | _ACEOF |
| 9728 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9729 | if { (ac_try="$ac_compile" |
| 9730 | case "(($ac_try" in |
| 9731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9732 | *) ac_try_echo=$ac_try;; |
| 9733 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9734 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9735 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9736 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9737 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9738 | rm -f conftest.er1 |
| 9739 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9741 | (exit $ac_status); } && { |
| 9742 | test -z "$ac_c_werror_flag" || |
| 9743 | test ! -s conftest.err |
| 9744 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9745 | ac_hi=$ac_mid; break |
| 9746 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9747 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9748 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9749 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9750 | ac_lo=`expr $ac_mid + 1` |
| 9751 | if test $ac_lo -le $ac_mid; then |
| 9752 | ac_lo= ac_hi= |
| 9753 | break |
| 9754 | fi |
| 9755 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9756 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9757 | |
| 9758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9759 | done |
| 9760 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9761 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9762 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9763 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9764 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9765 | /* confdefs.h. */ |
| 9766 | _ACEOF |
| 9767 | cat confdefs.h >>conftest.$ac_ext |
| 9768 | cat >>conftest.$ac_ext <<_ACEOF |
| 9769 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9770 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9771 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9772 | int |
| 9773 | main () |
| 9774 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9775 | 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] | 9776 | test_array [0] = 0 |
| 9777 | |
| 9778 | ; |
| 9779 | return 0; |
| 9780 | } |
| 9781 | _ACEOF |
| 9782 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9783 | if { (ac_try="$ac_compile" |
| 9784 | case "(($ac_try" in |
| 9785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9786 | *) ac_try_echo=$ac_try;; |
| 9787 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9788 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9789 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9790 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9791 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9792 | rm -f conftest.er1 |
| 9793 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9795 | (exit $ac_status); } && { |
| 9796 | test -z "$ac_c_werror_flag" || |
| 9797 | test ! -s conftest.err |
| 9798 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9799 | ac_hi=-1 ac_mid=-1 |
| 9800 | while :; do |
| 9801 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9802 | /* confdefs.h. */ |
| 9803 | _ACEOF |
| 9804 | cat confdefs.h >>conftest.$ac_ext |
| 9805 | cat >>conftest.$ac_ext <<_ACEOF |
| 9806 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9807 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9808 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9809 | int |
| 9810 | main () |
| 9811 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9812 | 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] | 9813 | test_array [0] = 0 |
| 9814 | |
| 9815 | ; |
| 9816 | return 0; |
| 9817 | } |
| 9818 | _ACEOF |
| 9819 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9820 | if { (ac_try="$ac_compile" |
| 9821 | case "(($ac_try" in |
| 9822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9823 | *) ac_try_echo=$ac_try;; |
| 9824 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9826 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9827 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9828 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9829 | rm -f conftest.er1 |
| 9830 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9832 | (exit $ac_status); } && { |
| 9833 | test -z "$ac_c_werror_flag" || |
| 9834 | test ! -s conftest.err |
| 9835 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9836 | ac_lo=$ac_mid; break |
| 9837 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9838 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9839 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9840 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9841 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9842 | if test $ac_mid -le $ac_hi; then |
| 9843 | ac_lo= ac_hi= |
| 9844 | break |
| 9845 | fi |
| 9846 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9847 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9848 | |
| 9849 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9850 | done |
| 9851 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9852 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9853 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9854 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9855 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9856 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9857 | |
| 9858 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9859 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9860 | |
| 9861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9862 | # Binary search between lo and hi bounds. |
| 9863 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9864 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9865 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9866 | /* confdefs.h. */ |
| 9867 | _ACEOF |
| 9868 | cat confdefs.h >>conftest.$ac_ext |
| 9869 | cat >>conftest.$ac_ext <<_ACEOF |
| 9870 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9871 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9872 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9873 | int |
| 9874 | main () |
| 9875 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9876 | 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] | 9877 | test_array [0] = 0 |
| 9878 | |
| 9879 | ; |
| 9880 | return 0; |
| 9881 | } |
| 9882 | _ACEOF |
| 9883 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9884 | if { (ac_try="$ac_compile" |
| 9885 | case "(($ac_try" in |
| 9886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9887 | *) ac_try_echo=$ac_try;; |
| 9888 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9890 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9891 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9892 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9893 | rm -f conftest.er1 |
| 9894 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9896 | (exit $ac_status); } && { |
| 9897 | test -z "$ac_c_werror_flag" || |
| 9898 | test ! -s conftest.err |
| 9899 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9900 | ac_hi=$ac_mid |
| 9901 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9902 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9903 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9904 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9905 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9906 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9907 | |
| 9908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9909 | done |
| 9910 | case $ac_lo in |
| 9911 | ?*) ac_cv_sizeof_double=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9912 | '') if test "$ac_cv_type_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9913 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9914 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9915 | echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9916 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9917 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9918 | else |
| 9919 | ac_cv_sizeof_double=0 |
| 9920 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9921 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9922 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9923 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9924 | /* confdefs.h. */ |
| 9925 | _ACEOF |
| 9926 | cat confdefs.h >>conftest.$ac_ext |
| 9927 | cat >>conftest.$ac_ext <<_ACEOF |
| 9928 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9929 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9930 | typedef double ac__type_sizeof_; |
| 9931 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9932 | 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] | 9933 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9934 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9935 | int |
| 9936 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9937 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9938 | |
| 9939 | FILE *f = fopen ("conftest.val", "w"); |
| 9940 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9941 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9942 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9943 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9944 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9945 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9946 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9947 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9948 | } |
| 9949 | else |
| 9950 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9951 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9952 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9953 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9954 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9955 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9956 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9957 | |
| 9958 | ; |
| 9959 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9960 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9961 | _ACEOF |
| 9962 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9963 | if { (ac_try="$ac_link" |
| 9964 | case "(($ac_try" in |
| 9965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9966 | *) ac_try_echo=$ac_try;; |
| 9967 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9969 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9970 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9972 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9973 | { (case "(($ac_try" in |
| 9974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9975 | *) ac_try_echo=$ac_try;; |
| 9976 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9978 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9979 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9981 | (exit $ac_status); }; }; then |
| 9982 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9983 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9984 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9985 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9986 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9987 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9988 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9989 | if test "$ac_cv_type_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9990 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9991 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9992 | echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9993 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9994 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9995 | else |
| 9996 | ac_cv_sizeof_double=0 |
| 9997 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9998 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9999 | 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] | 10000 | fi |
| 10001 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10002 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10003 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 10004 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10005 | |
| 10006 | |
| 10007 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10008 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10009 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10010 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10011 | |
| 10012 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10013 | { echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 10014 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; } |
| 10015 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 10016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10017 | else |
| 10018 | cat >conftest.$ac_ext <<_ACEOF |
| 10019 | /* confdefs.h. */ |
| 10020 | _ACEOF |
| 10021 | cat confdefs.h >>conftest.$ac_ext |
| 10022 | cat >>conftest.$ac_ext <<_ACEOF |
| 10023 | /* end confdefs.h. */ |
| 10024 | $ac_includes_default |
| 10025 | typedef fpos_t ac__type_new_; |
| 10026 | int |
| 10027 | main () |
| 10028 | { |
| 10029 | if ((ac__type_new_ *) 0) |
| 10030 | return 0; |
| 10031 | if (sizeof (ac__type_new_)) |
| 10032 | return 0; |
| 10033 | ; |
| 10034 | return 0; |
| 10035 | } |
| 10036 | _ACEOF |
| 10037 | rm -f conftest.$ac_objext |
| 10038 | if { (ac_try="$ac_compile" |
| 10039 | case "(($ac_try" in |
| 10040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10041 | *) ac_try_echo=$ac_try;; |
| 10042 | esac |
| 10043 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10044 | (eval "$ac_compile") 2>conftest.er1 |
| 10045 | ac_status=$? |
| 10046 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10047 | rm -f conftest.er1 |
| 10048 | cat conftest.err >&5 |
| 10049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10050 | (exit $ac_status); } && { |
| 10051 | test -z "$ac_c_werror_flag" || |
| 10052 | test ! -s conftest.err |
| 10053 | } && test -s conftest.$ac_objext; then |
| 10054 | ac_cv_type_fpos_t=yes |
| 10055 | else |
| 10056 | echo "$as_me: failed program was:" >&5 |
| 10057 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10058 | |
| 10059 | ac_cv_type_fpos_t=no |
| 10060 | fi |
| 10061 | |
| 10062 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10063 | fi |
| 10064 | { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 10065 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; } |
| 10066 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10067 | # The cast to long int works around a bug in the HP C Compiler |
| 10068 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10069 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10070 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10071 | { echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 10072 | 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] | 10073 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10074 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10075 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10076 | if test "$cross_compiling" = yes; then |
| 10077 | # Depending upon the size, compute the lo and hi bounds. |
| 10078 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10079 | /* confdefs.h. */ |
| 10080 | _ACEOF |
| 10081 | cat confdefs.h >>conftest.$ac_ext |
| 10082 | cat >>conftest.$ac_ext <<_ACEOF |
| 10083 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10084 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10085 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10086 | int |
| 10087 | main () |
| 10088 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10089 | 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] | 10090 | test_array [0] = 0 |
| 10091 | |
| 10092 | ; |
| 10093 | return 0; |
| 10094 | } |
| 10095 | _ACEOF |
| 10096 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10097 | if { (ac_try="$ac_compile" |
| 10098 | case "(($ac_try" in |
| 10099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10100 | *) ac_try_echo=$ac_try;; |
| 10101 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10103 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10104 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10105 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10106 | rm -f conftest.er1 |
| 10107 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10109 | (exit $ac_status); } && { |
| 10110 | test -z "$ac_c_werror_flag" || |
| 10111 | test ! -s conftest.err |
| 10112 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10113 | ac_lo=0 ac_mid=0 |
| 10114 | while :; do |
| 10115 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10116 | /* confdefs.h. */ |
| 10117 | _ACEOF |
| 10118 | cat confdefs.h >>conftest.$ac_ext |
| 10119 | cat >>conftest.$ac_ext <<_ACEOF |
| 10120 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10121 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10122 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10123 | int |
| 10124 | main () |
| 10125 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10126 | 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] | 10127 | test_array [0] = 0 |
| 10128 | |
| 10129 | ; |
| 10130 | return 0; |
| 10131 | } |
| 10132 | _ACEOF |
| 10133 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10134 | if { (ac_try="$ac_compile" |
| 10135 | case "(($ac_try" in |
| 10136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10137 | *) ac_try_echo=$ac_try;; |
| 10138 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10140 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10141 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10142 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10143 | rm -f conftest.er1 |
| 10144 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10146 | (exit $ac_status); } && { |
| 10147 | test -z "$ac_c_werror_flag" || |
| 10148 | test ! -s conftest.err |
| 10149 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10150 | ac_hi=$ac_mid; break |
| 10151 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10152 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10153 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10154 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10155 | ac_lo=`expr $ac_mid + 1` |
| 10156 | if test $ac_lo -le $ac_mid; then |
| 10157 | ac_lo= ac_hi= |
| 10158 | break |
| 10159 | fi |
| 10160 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10161 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10162 | |
| 10163 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10164 | done |
| 10165 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10166 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10167 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10168 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10169 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10170 | /* confdefs.h. */ |
| 10171 | _ACEOF |
| 10172 | cat confdefs.h >>conftest.$ac_ext |
| 10173 | cat >>conftest.$ac_ext <<_ACEOF |
| 10174 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10175 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10176 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10177 | int |
| 10178 | main () |
| 10179 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10180 | 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] | 10181 | test_array [0] = 0 |
| 10182 | |
| 10183 | ; |
| 10184 | return 0; |
| 10185 | } |
| 10186 | _ACEOF |
| 10187 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10188 | if { (ac_try="$ac_compile" |
| 10189 | case "(($ac_try" in |
| 10190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10191 | *) ac_try_echo=$ac_try;; |
| 10192 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10194 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10195 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10196 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10197 | rm -f conftest.er1 |
| 10198 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10200 | (exit $ac_status); } && { |
| 10201 | test -z "$ac_c_werror_flag" || |
| 10202 | test ! -s conftest.err |
| 10203 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10204 | ac_hi=-1 ac_mid=-1 |
| 10205 | while :; do |
| 10206 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10207 | /* confdefs.h. */ |
| 10208 | _ACEOF |
| 10209 | cat confdefs.h >>conftest.$ac_ext |
| 10210 | cat >>conftest.$ac_ext <<_ACEOF |
| 10211 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10212 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10213 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10214 | int |
| 10215 | main () |
| 10216 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10217 | 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] | 10218 | test_array [0] = 0 |
| 10219 | |
| 10220 | ; |
| 10221 | return 0; |
| 10222 | } |
| 10223 | _ACEOF |
| 10224 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10225 | if { (ac_try="$ac_compile" |
| 10226 | case "(($ac_try" in |
| 10227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10228 | *) ac_try_echo=$ac_try;; |
| 10229 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10231 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10232 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10233 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10234 | rm -f conftest.er1 |
| 10235 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10237 | (exit $ac_status); } && { |
| 10238 | test -z "$ac_c_werror_flag" || |
| 10239 | test ! -s conftest.err |
| 10240 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10241 | ac_lo=$ac_mid; break |
| 10242 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10243 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10244 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10245 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10246 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10247 | if test $ac_mid -le $ac_hi; then |
| 10248 | ac_lo= ac_hi= |
| 10249 | break |
| 10250 | fi |
| 10251 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10252 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10253 | |
| 10254 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10255 | done |
| 10256 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10257 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10258 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10259 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10260 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10261 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10262 | |
| 10263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10264 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10265 | |
| 10266 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10267 | # Binary search between lo and hi bounds. |
| 10268 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10269 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10270 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10271 | /* confdefs.h. */ |
| 10272 | _ACEOF |
| 10273 | cat confdefs.h >>conftest.$ac_ext |
| 10274 | cat >>conftest.$ac_ext <<_ACEOF |
| 10275 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10276 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10277 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10278 | int |
| 10279 | main () |
| 10280 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10281 | 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] | 10282 | test_array [0] = 0 |
| 10283 | |
| 10284 | ; |
| 10285 | return 0; |
| 10286 | } |
| 10287 | _ACEOF |
| 10288 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10289 | if { (ac_try="$ac_compile" |
| 10290 | case "(($ac_try" in |
| 10291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10292 | *) ac_try_echo=$ac_try;; |
| 10293 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10295 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10296 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10297 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10298 | rm -f conftest.er1 |
| 10299 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10301 | (exit $ac_status); } && { |
| 10302 | test -z "$ac_c_werror_flag" || |
| 10303 | test ! -s conftest.err |
| 10304 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10305 | ac_hi=$ac_mid |
| 10306 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10307 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10308 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10309 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10310 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10311 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10312 | |
| 10313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10314 | done |
| 10315 | case $ac_lo in |
| 10316 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10317 | '') if test "$ac_cv_type_fpos_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10318 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10319 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10320 | echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10321 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10322 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10323 | else |
| 10324 | ac_cv_sizeof_fpos_t=0 |
| 10325 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10326 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10327 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10328 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10329 | /* confdefs.h. */ |
| 10330 | _ACEOF |
| 10331 | cat confdefs.h >>conftest.$ac_ext |
| 10332 | cat >>conftest.$ac_ext <<_ACEOF |
| 10333 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10334 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10335 | typedef fpos_t ac__type_sizeof_; |
| 10336 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10337 | 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] | 10338 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10339 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10340 | int |
| 10341 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10342 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10343 | |
| 10344 | FILE *f = fopen ("conftest.val", "w"); |
| 10345 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10346 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10347 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10348 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10349 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10350 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10351 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10352 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10353 | } |
| 10354 | else |
| 10355 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10356 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10357 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10358 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10359 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10360 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10361 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10362 | |
| 10363 | ; |
| 10364 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10365 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10366 | _ACEOF |
| 10367 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10368 | if { (ac_try="$ac_link" |
| 10369 | case "(($ac_try" in |
| 10370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10371 | *) ac_try_echo=$ac_try;; |
| 10372 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10374 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10375 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10377 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10378 | { (case "(($ac_try" in |
| 10379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10380 | *) ac_try_echo=$ac_try;; |
| 10381 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10383 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10384 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10386 | (exit $ac_status); }; }; then |
| 10387 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10388 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10389 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10390 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10391 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10392 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10393 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10394 | if test "$ac_cv_type_fpos_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10395 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10396 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10397 | echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10398 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10399 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10400 | else |
| 10401 | ac_cv_sizeof_fpos_t=0 |
| 10402 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10403 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10404 | 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] | 10405 | fi |
| 10406 | rm -f conftest.val |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10407 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10408 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 10409 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10410 | |
| 10411 | |
| 10412 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10413 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10414 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10415 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10416 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10417 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10418 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 10419 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
| 10420 | if test "${ac_cv_type_size_t+set}" = set; then |
| 10421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10422 | else |
| 10423 | cat >conftest.$ac_ext <<_ACEOF |
| 10424 | /* confdefs.h. */ |
| 10425 | _ACEOF |
| 10426 | cat confdefs.h >>conftest.$ac_ext |
| 10427 | cat >>conftest.$ac_ext <<_ACEOF |
| 10428 | /* end confdefs.h. */ |
| 10429 | $ac_includes_default |
| 10430 | typedef size_t ac__type_new_; |
| 10431 | int |
| 10432 | main () |
| 10433 | { |
| 10434 | if ((ac__type_new_ *) 0) |
| 10435 | return 0; |
| 10436 | if (sizeof (ac__type_new_)) |
| 10437 | return 0; |
| 10438 | ; |
| 10439 | return 0; |
| 10440 | } |
| 10441 | _ACEOF |
| 10442 | rm -f conftest.$ac_objext |
| 10443 | if { (ac_try="$ac_compile" |
| 10444 | case "(($ac_try" in |
| 10445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10446 | *) ac_try_echo=$ac_try;; |
| 10447 | esac |
| 10448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10449 | (eval "$ac_compile") 2>conftest.er1 |
| 10450 | ac_status=$? |
| 10451 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10452 | rm -f conftest.er1 |
| 10453 | cat conftest.err >&5 |
| 10454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10455 | (exit $ac_status); } && { |
| 10456 | test -z "$ac_c_werror_flag" || |
| 10457 | test ! -s conftest.err |
| 10458 | } && test -s conftest.$ac_objext; then |
| 10459 | ac_cv_type_size_t=yes |
| 10460 | else |
| 10461 | echo "$as_me: failed program was:" >&5 |
| 10462 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10463 | |
| 10464 | ac_cv_type_size_t=no |
| 10465 | fi |
| 10466 | |
| 10467 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10468 | fi |
| 10469 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 10470 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 10471 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10472 | # The cast to long int works around a bug in the HP C Compiler |
| 10473 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10474 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10475 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10476 | { echo "$as_me:$LINENO: checking size of size_t" >&5 |
| 10477 | 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] | 10478 | if test "${ac_cv_sizeof_size_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10480 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10481 | if test "$cross_compiling" = yes; then |
| 10482 | # Depending upon the size, compute the lo and hi bounds. |
| 10483 | cat >conftest.$ac_ext <<_ACEOF |
| 10484 | /* confdefs.h. */ |
| 10485 | _ACEOF |
| 10486 | cat confdefs.h >>conftest.$ac_ext |
| 10487 | cat >>conftest.$ac_ext <<_ACEOF |
| 10488 | /* end confdefs.h. */ |
| 10489 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10490 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10491 | int |
| 10492 | main () |
| 10493 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10494 | 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] | 10495 | test_array [0] = 0 |
| 10496 | |
| 10497 | ; |
| 10498 | return 0; |
| 10499 | } |
| 10500 | _ACEOF |
| 10501 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10502 | if { (ac_try="$ac_compile" |
| 10503 | case "(($ac_try" in |
| 10504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10505 | *) ac_try_echo=$ac_try;; |
| 10506 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10508 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10509 | ac_status=$? |
| 10510 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10511 | rm -f conftest.er1 |
| 10512 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10514 | (exit $ac_status); } && { |
| 10515 | test -z "$ac_c_werror_flag" || |
| 10516 | test ! -s conftest.err |
| 10517 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10518 | ac_lo=0 ac_mid=0 |
| 10519 | while :; do |
| 10520 | cat >conftest.$ac_ext <<_ACEOF |
| 10521 | /* confdefs.h. */ |
| 10522 | _ACEOF |
| 10523 | cat confdefs.h >>conftest.$ac_ext |
| 10524 | cat >>conftest.$ac_ext <<_ACEOF |
| 10525 | /* end confdefs.h. */ |
| 10526 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10527 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10528 | int |
| 10529 | main () |
| 10530 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10531 | 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] | 10532 | test_array [0] = 0 |
| 10533 | |
| 10534 | ; |
| 10535 | return 0; |
| 10536 | } |
| 10537 | _ACEOF |
| 10538 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10539 | if { (ac_try="$ac_compile" |
| 10540 | case "(($ac_try" in |
| 10541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10542 | *) ac_try_echo=$ac_try;; |
| 10543 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10544 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10545 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10546 | ac_status=$? |
| 10547 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10548 | rm -f conftest.er1 |
| 10549 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10551 | (exit $ac_status); } && { |
| 10552 | test -z "$ac_c_werror_flag" || |
| 10553 | test ! -s conftest.err |
| 10554 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10555 | ac_hi=$ac_mid; break |
| 10556 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10557 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10558 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10559 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10560 | ac_lo=`expr $ac_mid + 1` |
| 10561 | if test $ac_lo -le $ac_mid; then |
| 10562 | ac_lo= ac_hi= |
| 10563 | break |
| 10564 | fi |
| 10565 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10566 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10567 | |
| 10568 | 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] | 10569 | done |
| 10570 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10571 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10572 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10573 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10574 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10575 | /* confdefs.h. */ |
| 10576 | _ACEOF |
| 10577 | cat confdefs.h >>conftest.$ac_ext |
| 10578 | cat >>conftest.$ac_ext <<_ACEOF |
| 10579 | /* end confdefs.h. */ |
| 10580 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10581 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10582 | int |
| 10583 | main () |
| 10584 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10585 | 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] | 10586 | test_array [0] = 0 |
| 10587 | |
| 10588 | ; |
| 10589 | return 0; |
| 10590 | } |
| 10591 | _ACEOF |
| 10592 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10593 | if { (ac_try="$ac_compile" |
| 10594 | case "(($ac_try" in |
| 10595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10596 | *) ac_try_echo=$ac_try;; |
| 10597 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10598 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10599 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10600 | ac_status=$? |
| 10601 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10602 | rm -f conftest.er1 |
| 10603 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10605 | (exit $ac_status); } && { |
| 10606 | test -z "$ac_c_werror_flag" || |
| 10607 | test ! -s conftest.err |
| 10608 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10609 | ac_hi=-1 ac_mid=-1 |
| 10610 | while :; do |
| 10611 | cat >conftest.$ac_ext <<_ACEOF |
| 10612 | /* confdefs.h. */ |
| 10613 | _ACEOF |
| 10614 | cat confdefs.h >>conftest.$ac_ext |
| 10615 | cat >>conftest.$ac_ext <<_ACEOF |
| 10616 | /* end confdefs.h. */ |
| 10617 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10618 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10619 | int |
| 10620 | main () |
| 10621 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10622 | 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] | 10623 | test_array [0] = 0 |
| 10624 | |
| 10625 | ; |
| 10626 | return 0; |
| 10627 | } |
| 10628 | _ACEOF |
| 10629 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10630 | if { (ac_try="$ac_compile" |
| 10631 | case "(($ac_try" in |
| 10632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10633 | *) ac_try_echo=$ac_try;; |
| 10634 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10636 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10637 | ac_status=$? |
| 10638 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10639 | rm -f conftest.er1 |
| 10640 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10642 | (exit $ac_status); } && { |
| 10643 | test -z "$ac_c_werror_flag" || |
| 10644 | test ! -s conftest.err |
| 10645 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10646 | ac_lo=$ac_mid; break |
| 10647 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10648 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10649 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10650 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10651 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10652 | if test $ac_mid -le $ac_hi; then |
| 10653 | ac_lo= ac_hi= |
| 10654 | break |
| 10655 | fi |
| 10656 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10657 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10658 | |
| 10659 | 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] | 10660 | done |
| 10661 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10662 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10663 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10664 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10665 | ac_lo= ac_hi= |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10666 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10667 | |
| 10668 | 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] | 10669 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10670 | |
| 10671 | 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] | 10672 | # Binary search between lo and hi bounds. |
| 10673 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10674 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10675 | cat >conftest.$ac_ext <<_ACEOF |
| 10676 | /* confdefs.h. */ |
| 10677 | _ACEOF |
| 10678 | cat confdefs.h >>conftest.$ac_ext |
| 10679 | cat >>conftest.$ac_ext <<_ACEOF |
| 10680 | /* end confdefs.h. */ |
| 10681 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10682 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10683 | int |
| 10684 | main () |
| 10685 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10686 | 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] | 10687 | test_array [0] = 0 |
| 10688 | |
| 10689 | ; |
| 10690 | return 0; |
| 10691 | } |
| 10692 | _ACEOF |
| 10693 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10694 | if { (ac_try="$ac_compile" |
| 10695 | case "(($ac_try" in |
| 10696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10697 | *) ac_try_echo=$ac_try;; |
| 10698 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10700 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10701 | ac_status=$? |
| 10702 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10703 | rm -f conftest.er1 |
| 10704 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10706 | (exit $ac_status); } && { |
| 10707 | test -z "$ac_c_werror_flag" || |
| 10708 | test ! -s conftest.err |
| 10709 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10710 | ac_hi=$ac_mid |
| 10711 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10712 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10713 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10714 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10715 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10716 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10717 | |
| 10718 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10719 | done |
| 10720 | case $ac_lo in |
| 10721 | ?*) ac_cv_sizeof_size_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10722 | '') if test "$ac_cv_type_size_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10723 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10724 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10725 | echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10726 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10727 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10728 | else |
| 10729 | ac_cv_sizeof_size_t=0 |
| 10730 | fi ;; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10731 | esac |
| 10732 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10733 | cat >conftest.$ac_ext <<_ACEOF |
| 10734 | /* confdefs.h. */ |
| 10735 | _ACEOF |
| 10736 | cat confdefs.h >>conftest.$ac_ext |
| 10737 | cat >>conftest.$ac_ext <<_ACEOF |
| 10738 | /* end confdefs.h. */ |
| 10739 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10740 | typedef size_t ac__type_sizeof_; |
| 10741 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10742 | 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] | 10743 | #include <stdio.h> |
| 10744 | #include <stdlib.h> |
| 10745 | int |
| 10746 | main () |
| 10747 | { |
| 10748 | |
| 10749 | FILE *f = fopen ("conftest.val", "w"); |
| 10750 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10751 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10752 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10753 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10754 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10755 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10756 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10757 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10758 | } |
| 10759 | else |
| 10760 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10761 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10762 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10763 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10764 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10765 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10766 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10767 | |
| 10768 | ; |
| 10769 | return 0; |
| 10770 | } |
| 10771 | _ACEOF |
| 10772 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10773 | if { (ac_try="$ac_link" |
| 10774 | case "(($ac_try" in |
| 10775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10776 | *) ac_try_echo=$ac_try;; |
| 10777 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10779 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10780 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10782 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10783 | { (case "(($ac_try" in |
| 10784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10785 | *) ac_try_echo=$ac_try;; |
| 10786 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10788 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10789 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10791 | (exit $ac_status); }; }; then |
| 10792 | ac_cv_sizeof_size_t=`cat conftest.val` |
| 10793 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10794 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10795 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10796 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10797 | |
| 10798 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10799 | if test "$ac_cv_type_size_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10800 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10801 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10802 | echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10803 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10804 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10805 | else |
| 10806 | ac_cv_sizeof_size_t=0 |
| 10807 | fi |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10808 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10809 | 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] | 10810 | fi |
| 10811 | rm -f conftest.val |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10812 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10813 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 |
| 10814 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10815 | |
| 10816 | |
| 10817 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10818 | cat >>confdefs.h <<_ACEOF |
| 10819 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 10820 | _ACEOF |
| 10821 | |
| 10822 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10823 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 10824 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
| 10825 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 10826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10827 | else |
| 10828 | cat >conftest.$ac_ext <<_ACEOF |
| 10829 | /* confdefs.h. */ |
| 10830 | _ACEOF |
| 10831 | cat confdefs.h >>conftest.$ac_ext |
| 10832 | cat >>conftest.$ac_ext <<_ACEOF |
| 10833 | /* end confdefs.h. */ |
| 10834 | $ac_includes_default |
| 10835 | typedef pid_t ac__type_new_; |
| 10836 | int |
| 10837 | main () |
| 10838 | { |
| 10839 | if ((ac__type_new_ *) 0) |
| 10840 | return 0; |
| 10841 | if (sizeof (ac__type_new_)) |
| 10842 | return 0; |
| 10843 | ; |
| 10844 | return 0; |
| 10845 | } |
| 10846 | _ACEOF |
| 10847 | rm -f conftest.$ac_objext |
| 10848 | if { (ac_try="$ac_compile" |
| 10849 | case "(($ac_try" in |
| 10850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10851 | *) ac_try_echo=$ac_try;; |
| 10852 | esac |
| 10853 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10854 | (eval "$ac_compile") 2>conftest.er1 |
| 10855 | ac_status=$? |
| 10856 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10857 | rm -f conftest.er1 |
| 10858 | cat conftest.err >&5 |
| 10859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10860 | (exit $ac_status); } && { |
| 10861 | test -z "$ac_c_werror_flag" || |
| 10862 | test ! -s conftest.err |
| 10863 | } && test -s conftest.$ac_objext; then |
| 10864 | ac_cv_type_pid_t=yes |
| 10865 | else |
| 10866 | echo "$as_me: failed program was:" >&5 |
| 10867 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10868 | |
| 10869 | ac_cv_type_pid_t=no |
| 10870 | fi |
| 10871 | |
| 10872 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10873 | fi |
| 10874 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 10875 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 10876 | |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10877 | # The cast to long int works around a bug in the HP C Compiler |
| 10878 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10879 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10880 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10881 | { echo "$as_me:$LINENO: checking size of pid_t" >&5 |
| 10882 | echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10883 | if test "${ac_cv_sizeof_pid_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10884 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10885 | else |
| 10886 | if test "$cross_compiling" = yes; then |
| 10887 | # Depending upon the size, compute the lo and hi bounds. |
| 10888 | cat >conftest.$ac_ext <<_ACEOF |
| 10889 | /* confdefs.h. */ |
| 10890 | _ACEOF |
| 10891 | cat confdefs.h >>conftest.$ac_ext |
| 10892 | cat >>conftest.$ac_ext <<_ACEOF |
| 10893 | /* end confdefs.h. */ |
| 10894 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10895 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10896 | int |
| 10897 | main () |
| 10898 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10899 | 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] | 10900 | test_array [0] = 0 |
| 10901 | |
| 10902 | ; |
| 10903 | return 0; |
| 10904 | } |
| 10905 | _ACEOF |
| 10906 | rm -f conftest.$ac_objext |
| 10907 | if { (ac_try="$ac_compile" |
| 10908 | case "(($ac_try" in |
| 10909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10910 | *) ac_try_echo=$ac_try;; |
| 10911 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10913 | (eval "$ac_compile") 2>conftest.er1 |
| 10914 | ac_status=$? |
| 10915 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10916 | rm -f conftest.er1 |
| 10917 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10919 | (exit $ac_status); } && { |
| 10920 | test -z "$ac_c_werror_flag" || |
| 10921 | test ! -s conftest.err |
| 10922 | } && test -s conftest.$ac_objext; then |
| 10923 | ac_lo=0 ac_mid=0 |
| 10924 | while :; do |
| 10925 | cat >conftest.$ac_ext <<_ACEOF |
| 10926 | /* confdefs.h. */ |
| 10927 | _ACEOF |
| 10928 | cat confdefs.h >>conftest.$ac_ext |
| 10929 | cat >>conftest.$ac_ext <<_ACEOF |
| 10930 | /* end confdefs.h. */ |
| 10931 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10932 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10933 | int |
| 10934 | main () |
| 10935 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10936 | 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] | 10937 | test_array [0] = 0 |
| 10938 | |
| 10939 | ; |
| 10940 | return 0; |
| 10941 | } |
| 10942 | _ACEOF |
| 10943 | rm -f conftest.$ac_objext |
| 10944 | if { (ac_try="$ac_compile" |
| 10945 | case "(($ac_try" in |
| 10946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10947 | *) ac_try_echo=$ac_try;; |
| 10948 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10949 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10950 | (eval "$ac_compile") 2>conftest.er1 |
| 10951 | ac_status=$? |
| 10952 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10953 | rm -f conftest.er1 |
| 10954 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10956 | (exit $ac_status); } && { |
| 10957 | test -z "$ac_c_werror_flag" || |
| 10958 | test ! -s conftest.err |
| 10959 | } && test -s conftest.$ac_objext; then |
| 10960 | ac_hi=$ac_mid; break |
| 10961 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10962 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10963 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10964 | |
| 10965 | ac_lo=`expr $ac_mid + 1` |
| 10966 | if test $ac_lo -le $ac_mid; then |
| 10967 | ac_lo= ac_hi= |
| 10968 | break |
| 10969 | fi |
| 10970 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 10971 | fi |
| 10972 | |
| 10973 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10974 | done |
| 10975 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10976 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10977 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10978 | |
| 10979 | cat >conftest.$ac_ext <<_ACEOF |
| 10980 | /* confdefs.h. */ |
| 10981 | _ACEOF |
| 10982 | cat confdefs.h >>conftest.$ac_ext |
| 10983 | cat >>conftest.$ac_ext <<_ACEOF |
| 10984 | /* end confdefs.h. */ |
| 10985 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10986 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10987 | int |
| 10988 | main () |
| 10989 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10990 | 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] | 10991 | test_array [0] = 0 |
| 10992 | |
| 10993 | ; |
| 10994 | return 0; |
| 10995 | } |
| 10996 | _ACEOF |
| 10997 | rm -f conftest.$ac_objext |
| 10998 | if { (ac_try="$ac_compile" |
| 10999 | case "(($ac_try" in |
| 11000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11001 | *) ac_try_echo=$ac_try;; |
| 11002 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11003 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11004 | (eval "$ac_compile") 2>conftest.er1 |
| 11005 | ac_status=$? |
| 11006 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11007 | rm -f conftest.er1 |
| 11008 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11010 | (exit $ac_status); } && { |
| 11011 | test -z "$ac_c_werror_flag" || |
| 11012 | test ! -s conftest.err |
| 11013 | } && test -s conftest.$ac_objext; then |
| 11014 | ac_hi=-1 ac_mid=-1 |
| 11015 | while :; do |
| 11016 | cat >conftest.$ac_ext <<_ACEOF |
| 11017 | /* confdefs.h. */ |
| 11018 | _ACEOF |
| 11019 | cat confdefs.h >>conftest.$ac_ext |
| 11020 | cat >>conftest.$ac_ext <<_ACEOF |
| 11021 | /* end confdefs.h. */ |
| 11022 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11023 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11024 | int |
| 11025 | main () |
| 11026 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11027 | 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] | 11028 | test_array [0] = 0 |
| 11029 | |
| 11030 | ; |
| 11031 | return 0; |
| 11032 | } |
| 11033 | _ACEOF |
| 11034 | rm -f conftest.$ac_objext |
| 11035 | if { (ac_try="$ac_compile" |
| 11036 | case "(($ac_try" in |
| 11037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11038 | *) ac_try_echo=$ac_try;; |
| 11039 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11041 | (eval "$ac_compile") 2>conftest.er1 |
| 11042 | ac_status=$? |
| 11043 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11044 | rm -f conftest.er1 |
| 11045 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11047 | (exit $ac_status); } && { |
| 11048 | test -z "$ac_c_werror_flag" || |
| 11049 | test ! -s conftest.err |
| 11050 | } && test -s conftest.$ac_objext; then |
| 11051 | ac_lo=$ac_mid; break |
| 11052 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11053 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11054 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11055 | |
| 11056 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11057 | if test $ac_mid -le $ac_hi; then |
| 11058 | ac_lo= ac_hi= |
| 11059 | break |
| 11060 | fi |
| 11061 | ac_mid=`expr 2 '*' $ac_mid` |
| 11062 | fi |
| 11063 | |
| 11064 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11065 | done |
| 11066 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11067 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11068 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11069 | |
| 11070 | ac_lo= ac_hi= |
| 11071 | fi |
| 11072 | |
| 11073 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11074 | fi |
| 11075 | |
| 11076 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11077 | # Binary search between lo and hi bounds. |
| 11078 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11079 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11080 | cat >conftest.$ac_ext <<_ACEOF |
| 11081 | /* confdefs.h. */ |
| 11082 | _ACEOF |
| 11083 | cat confdefs.h >>conftest.$ac_ext |
| 11084 | cat >>conftest.$ac_ext <<_ACEOF |
| 11085 | /* end confdefs.h. */ |
| 11086 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11087 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11088 | int |
| 11089 | main () |
| 11090 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11091 | 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] | 11092 | test_array [0] = 0 |
| 11093 | |
| 11094 | ; |
| 11095 | return 0; |
| 11096 | } |
| 11097 | _ACEOF |
| 11098 | rm -f conftest.$ac_objext |
| 11099 | if { (ac_try="$ac_compile" |
| 11100 | case "(($ac_try" in |
| 11101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11102 | *) ac_try_echo=$ac_try;; |
| 11103 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11105 | (eval "$ac_compile") 2>conftest.er1 |
| 11106 | ac_status=$? |
| 11107 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11108 | rm -f conftest.er1 |
| 11109 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11111 | (exit $ac_status); } && { |
| 11112 | test -z "$ac_c_werror_flag" || |
| 11113 | test ! -s conftest.err |
| 11114 | } && test -s conftest.$ac_objext; then |
| 11115 | ac_hi=$ac_mid |
| 11116 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11117 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11118 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11119 | |
| 11120 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 11121 | fi |
| 11122 | |
| 11123 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11124 | done |
| 11125 | case $ac_lo in |
| 11126 | ?*) ac_cv_sizeof_pid_t=$ac_lo;; |
| 11127 | '') if test "$ac_cv_type_pid_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11128 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11129 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11130 | echo "$as_me: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11131 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11132 | { (exit 77); exit 77; }; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11133 | else |
| 11134 | ac_cv_sizeof_pid_t=0 |
| 11135 | fi ;; |
| 11136 | esac |
| 11137 | else |
| 11138 | cat >conftest.$ac_ext <<_ACEOF |
| 11139 | /* confdefs.h. */ |
| 11140 | _ACEOF |
| 11141 | cat confdefs.h >>conftest.$ac_ext |
| 11142 | cat >>conftest.$ac_ext <<_ACEOF |
| 11143 | /* end confdefs.h. */ |
| 11144 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11145 | typedef pid_t ac__type_sizeof_; |
| 11146 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11147 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11148 | #include <stdio.h> |
| 11149 | #include <stdlib.h> |
| 11150 | int |
| 11151 | main () |
| 11152 | { |
| 11153 | |
| 11154 | FILE *f = fopen ("conftest.val", "w"); |
| 11155 | if (! f) |
| 11156 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11157 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11158 | { |
| 11159 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11160 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11161 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11162 | fprintf (f, "%ld\n", i); |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11163 | } |
| 11164 | else |
| 11165 | { |
| 11166 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11167 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11168 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11169 | fprintf (f, "%lu\n", i); |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11170 | } |
| 11171 | return ferror (f) || fclose (f) != 0; |
| 11172 | |
| 11173 | ; |
| 11174 | return 0; |
| 11175 | } |
| 11176 | _ACEOF |
| 11177 | rm -f conftest$ac_exeext |
| 11178 | if { (ac_try="$ac_link" |
| 11179 | case "(($ac_try" in |
| 11180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11181 | *) ac_try_echo=$ac_try;; |
| 11182 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11183 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11184 | (eval "$ac_link") 2>&5 |
| 11185 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11187 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11188 | { (case "(($ac_try" in |
| 11189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11190 | *) ac_try_echo=$ac_try;; |
| 11191 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11192 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11193 | (eval "$ac_try") 2>&5 |
| 11194 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11196 | (exit $ac_status); }; }; then |
| 11197 | ac_cv_sizeof_pid_t=`cat conftest.val` |
| 11198 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11199 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11200 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11201 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11202 | |
| 11203 | ( exit $ac_status ) |
| 11204 | if test "$ac_cv_type_pid_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11205 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11206 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11207 | echo "$as_me: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11208 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11209 | { (exit 77); exit 77; }; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11210 | else |
| 11211 | ac_cv_sizeof_pid_t=0 |
| 11212 | fi |
| 11213 | fi |
| 11214 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11215 | fi |
| 11216 | rm -f conftest.val |
| 11217 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11218 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5 |
| 11219 | echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11220 | |
| 11221 | |
| 11222 | |
| 11223 | cat >>confdefs.h <<_ACEOF |
| 11224 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t |
| 11225 | _ACEOF |
| 11226 | |
| 11227 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11228 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11229 | { echo "$as_me:$LINENO: checking for long long support" >&5 |
| 11230 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11231 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11232 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11233 | /* confdefs.h. */ |
| 11234 | _ACEOF |
| 11235 | cat confdefs.h >>conftest.$ac_ext |
| 11236 | cat >>conftest.$ac_ext <<_ACEOF |
| 11237 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11238 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11239 | int |
| 11240 | main () |
| 11241 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11242 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11243 | ; |
| 11244 | return 0; |
| 11245 | } |
| 11246 | _ACEOF |
| 11247 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11248 | if { (ac_try="$ac_compile" |
| 11249 | case "(($ac_try" in |
| 11250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11251 | *) ac_try_echo=$ac_try;; |
| 11252 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11254 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11255 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11256 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11257 | rm -f conftest.er1 |
| 11258 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11260 | (exit $ac_status); } && { |
| 11261 | test -z "$ac_c_werror_flag" || |
| 11262 | test ! -s conftest.err |
| 11263 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11264 | |
| 11265 | |
| 11266 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11267 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11268 | _ACEOF |
| 11269 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11270 | have_long_long=yes |
| 11271 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11272 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11273 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11274 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11275 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11276 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11277 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11278 | |
| 11279 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11280 | { echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 11281 | echo "${ECHO_T}$have_long_long" >&6; } |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 11282 | if test "$have_long_long" = yes ; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11283 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 11284 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
| 11285 | if test "${ac_cv_type_long_long+set}" = set; then |
| 11286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11287 | else |
| 11288 | cat >conftest.$ac_ext <<_ACEOF |
| 11289 | /* confdefs.h. */ |
| 11290 | _ACEOF |
| 11291 | cat confdefs.h >>conftest.$ac_ext |
| 11292 | cat >>conftest.$ac_ext <<_ACEOF |
| 11293 | /* end confdefs.h. */ |
| 11294 | $ac_includes_default |
| 11295 | typedef long long ac__type_new_; |
| 11296 | int |
| 11297 | main () |
| 11298 | { |
| 11299 | if ((ac__type_new_ *) 0) |
| 11300 | return 0; |
| 11301 | if (sizeof (ac__type_new_)) |
| 11302 | return 0; |
| 11303 | ; |
| 11304 | return 0; |
| 11305 | } |
| 11306 | _ACEOF |
| 11307 | rm -f conftest.$ac_objext |
| 11308 | if { (ac_try="$ac_compile" |
| 11309 | case "(($ac_try" in |
| 11310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11311 | *) ac_try_echo=$ac_try;; |
| 11312 | esac |
| 11313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11314 | (eval "$ac_compile") 2>conftest.er1 |
| 11315 | ac_status=$? |
| 11316 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11317 | rm -f conftest.er1 |
| 11318 | cat conftest.err >&5 |
| 11319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11320 | (exit $ac_status); } && { |
| 11321 | test -z "$ac_c_werror_flag" || |
| 11322 | test ! -s conftest.err |
| 11323 | } && test -s conftest.$ac_objext; then |
| 11324 | ac_cv_type_long_long=yes |
| 11325 | else |
| 11326 | echo "$as_me: failed program was:" >&5 |
| 11327 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11328 | |
| 11329 | ac_cv_type_long_long=no |
| 11330 | fi |
| 11331 | |
| 11332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11333 | fi |
| 11334 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 11335 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
| 11336 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11337 | # The cast to long int works around a bug in the HP C Compiler |
| 11338 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11339 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11340 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11341 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
| 11342 | 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] | 11343 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11345 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11346 | if test "$cross_compiling" = yes; then |
| 11347 | # Depending upon the size, compute the lo and hi bounds. |
| 11348 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11349 | /* confdefs.h. */ |
| 11350 | _ACEOF |
| 11351 | cat confdefs.h >>conftest.$ac_ext |
| 11352 | cat >>conftest.$ac_ext <<_ACEOF |
| 11353 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11354 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11355 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11356 | int |
| 11357 | main () |
| 11358 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11359 | 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] | 11360 | test_array [0] = 0 |
| 11361 | |
| 11362 | ; |
| 11363 | return 0; |
| 11364 | } |
| 11365 | _ACEOF |
| 11366 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11367 | if { (ac_try="$ac_compile" |
| 11368 | case "(($ac_try" in |
| 11369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11370 | *) ac_try_echo=$ac_try;; |
| 11371 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11373 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11374 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11375 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11376 | rm -f conftest.er1 |
| 11377 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11379 | (exit $ac_status); } && { |
| 11380 | test -z "$ac_c_werror_flag" || |
| 11381 | test ! -s conftest.err |
| 11382 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11383 | ac_lo=0 ac_mid=0 |
| 11384 | while :; do |
| 11385 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11386 | /* confdefs.h. */ |
| 11387 | _ACEOF |
| 11388 | cat confdefs.h >>conftest.$ac_ext |
| 11389 | cat >>conftest.$ac_ext <<_ACEOF |
| 11390 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11391 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11392 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11393 | int |
| 11394 | main () |
| 11395 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11396 | 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] | 11397 | test_array [0] = 0 |
| 11398 | |
| 11399 | ; |
| 11400 | return 0; |
| 11401 | } |
| 11402 | _ACEOF |
| 11403 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11404 | if { (ac_try="$ac_compile" |
| 11405 | case "(($ac_try" in |
| 11406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11407 | *) ac_try_echo=$ac_try;; |
| 11408 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11410 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11411 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11412 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11413 | rm -f conftest.er1 |
| 11414 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11416 | (exit $ac_status); } && { |
| 11417 | test -z "$ac_c_werror_flag" || |
| 11418 | test ! -s conftest.err |
| 11419 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11420 | ac_hi=$ac_mid; break |
| 11421 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11422 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11424 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11425 | ac_lo=`expr $ac_mid + 1` |
| 11426 | if test $ac_lo -le $ac_mid; then |
| 11427 | ac_lo= ac_hi= |
| 11428 | break |
| 11429 | fi |
| 11430 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11431 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11432 | |
| 11433 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11434 | done |
| 11435 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11436 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11437 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11438 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11439 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11440 | /* confdefs.h. */ |
| 11441 | _ACEOF |
| 11442 | cat confdefs.h >>conftest.$ac_ext |
| 11443 | cat >>conftest.$ac_ext <<_ACEOF |
| 11444 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11445 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11446 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11447 | int |
| 11448 | main () |
| 11449 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11450 | 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] | 11451 | test_array [0] = 0 |
| 11452 | |
| 11453 | ; |
| 11454 | return 0; |
| 11455 | } |
| 11456 | _ACEOF |
| 11457 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11458 | if { (ac_try="$ac_compile" |
| 11459 | case "(($ac_try" in |
| 11460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11461 | *) ac_try_echo=$ac_try;; |
| 11462 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11463 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11464 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11465 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11466 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11467 | rm -f conftest.er1 |
| 11468 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11470 | (exit $ac_status); } && { |
| 11471 | test -z "$ac_c_werror_flag" || |
| 11472 | test ! -s conftest.err |
| 11473 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11474 | ac_hi=-1 ac_mid=-1 |
| 11475 | while :; do |
| 11476 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11477 | /* confdefs.h. */ |
| 11478 | _ACEOF |
| 11479 | cat confdefs.h >>conftest.$ac_ext |
| 11480 | cat >>conftest.$ac_ext <<_ACEOF |
| 11481 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11482 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11483 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11484 | int |
| 11485 | main () |
| 11486 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11487 | 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] | 11488 | test_array [0] = 0 |
| 11489 | |
| 11490 | ; |
| 11491 | return 0; |
| 11492 | } |
| 11493 | _ACEOF |
| 11494 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11495 | if { (ac_try="$ac_compile" |
| 11496 | case "(($ac_try" in |
| 11497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11498 | *) ac_try_echo=$ac_try;; |
| 11499 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11501 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11502 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11503 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11504 | rm -f conftest.er1 |
| 11505 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11507 | (exit $ac_status); } && { |
| 11508 | test -z "$ac_c_werror_flag" || |
| 11509 | test ! -s conftest.err |
| 11510 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11511 | ac_lo=$ac_mid; break |
| 11512 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11513 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11514 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11515 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11516 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11517 | if test $ac_mid -le $ac_hi; then |
| 11518 | ac_lo= ac_hi= |
| 11519 | break |
| 11520 | fi |
| 11521 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11522 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11523 | |
| 11524 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11525 | done |
| 11526 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11527 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11528 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11529 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11530 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11531 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11532 | |
| 11533 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11534 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11535 | |
| 11536 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11537 | # Binary search between lo and hi bounds. |
| 11538 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11539 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11540 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11541 | /* confdefs.h. */ |
| 11542 | _ACEOF |
| 11543 | cat confdefs.h >>conftest.$ac_ext |
| 11544 | cat >>conftest.$ac_ext <<_ACEOF |
| 11545 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11546 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11547 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11548 | int |
| 11549 | main () |
| 11550 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11551 | 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] | 11552 | test_array [0] = 0 |
| 11553 | |
| 11554 | ; |
| 11555 | return 0; |
| 11556 | } |
| 11557 | _ACEOF |
| 11558 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11559 | if { (ac_try="$ac_compile" |
| 11560 | case "(($ac_try" in |
| 11561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11562 | *) ac_try_echo=$ac_try;; |
| 11563 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11565 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11566 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11567 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11568 | rm -f conftest.er1 |
| 11569 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11571 | (exit $ac_status); } && { |
| 11572 | test -z "$ac_c_werror_flag" || |
| 11573 | test ! -s conftest.err |
| 11574 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11575 | ac_hi=$ac_mid |
| 11576 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11577 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11578 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11579 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11580 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11581 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11582 | |
| 11583 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11584 | done |
| 11585 | case $ac_lo in |
| 11586 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11587 | '') if test "$ac_cv_type_long_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11588 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11589 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11590 | echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11591 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11592 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11593 | else |
| 11594 | ac_cv_sizeof_long_long=0 |
| 11595 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11596 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11597 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11598 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11599 | /* confdefs.h. */ |
| 11600 | _ACEOF |
| 11601 | cat confdefs.h >>conftest.$ac_ext |
| 11602 | cat >>conftest.$ac_ext <<_ACEOF |
| 11603 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11604 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11605 | typedef long long ac__type_sizeof_; |
| 11606 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11607 | 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] | 11608 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11609 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11610 | int |
| 11611 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11612 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11613 | |
| 11614 | FILE *f = fopen ("conftest.val", "w"); |
| 11615 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11616 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11617 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11618 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11619 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11620 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11621 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11622 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11623 | } |
| 11624 | else |
| 11625 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11626 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11627 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11628 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11629 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11630 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11631 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11632 | |
| 11633 | ; |
| 11634 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11635 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11636 | _ACEOF |
| 11637 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11638 | if { (ac_try="$ac_link" |
| 11639 | case "(($ac_try" in |
| 11640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11641 | *) ac_try_echo=$ac_try;; |
| 11642 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11644 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11645 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11647 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11648 | { (case "(($ac_try" in |
| 11649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11650 | *) ac_try_echo=$ac_try;; |
| 11651 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11652 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11653 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11654 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11656 | (exit $ac_status); }; }; then |
| 11657 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11658 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11659 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11660 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11662 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11663 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11664 | if test "$ac_cv_type_long_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11665 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11666 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11667 | echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11668 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11669 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11670 | else |
| 11671 | ac_cv_sizeof_long_long=0 |
| 11672 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11673 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11674 | 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] | 11675 | fi |
| 11676 | rm -f conftest.val |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11677 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11678 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 11679 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11680 | |
| 11681 | |
| 11682 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11683 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11684 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11685 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11686 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11687 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11688 | fi |
| 11689 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11690 | { echo "$as_me:$LINENO: checking for long double support" >&5 |
| 11691 | echo $ECHO_N "checking for long double support... $ECHO_C" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11692 | have_long_double=no |
| 11693 | cat >conftest.$ac_ext <<_ACEOF |
| 11694 | /* confdefs.h. */ |
| 11695 | _ACEOF |
| 11696 | cat confdefs.h >>conftest.$ac_ext |
| 11697 | cat >>conftest.$ac_ext <<_ACEOF |
| 11698 | /* end confdefs.h. */ |
| 11699 | |
| 11700 | int |
| 11701 | main () |
| 11702 | { |
| 11703 | long double x; x = (long double)0.; |
| 11704 | ; |
| 11705 | return 0; |
| 11706 | } |
| 11707 | _ACEOF |
| 11708 | rm -f conftest.$ac_objext |
| 11709 | if { (ac_try="$ac_compile" |
| 11710 | case "(($ac_try" in |
| 11711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11712 | *) ac_try_echo=$ac_try;; |
| 11713 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11715 | (eval "$ac_compile") 2>conftest.er1 |
| 11716 | ac_status=$? |
| 11717 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11718 | rm -f conftest.er1 |
| 11719 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11721 | (exit $ac_status); } && { |
| 11722 | test -z "$ac_c_werror_flag" || |
| 11723 | test ! -s conftest.err |
| 11724 | } && test -s conftest.$ac_objext; then |
| 11725 | |
| 11726 | |
| 11727 | cat >>confdefs.h <<\_ACEOF |
| 11728 | #define HAVE_LONG_DOUBLE 1 |
| 11729 | _ACEOF |
| 11730 | |
| 11731 | have_long_double=yes |
| 11732 | |
| 11733 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11734 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11735 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11736 | |
| 11737 | |
| 11738 | fi |
| 11739 | |
| 11740 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11741 | { echo "$as_me:$LINENO: result: $have_long_double" >&5 |
| 11742 | echo "${ECHO_T}$have_long_double" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11743 | if test "$have_long_double" = yes ; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11744 | { echo "$as_me:$LINENO: checking for long double" >&5 |
| 11745 | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } |
| 11746 | if test "${ac_cv_type_long_double+set}" = set; then |
| 11747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11748 | else |
| 11749 | cat >conftest.$ac_ext <<_ACEOF |
| 11750 | /* confdefs.h. */ |
| 11751 | _ACEOF |
| 11752 | cat confdefs.h >>conftest.$ac_ext |
| 11753 | cat >>conftest.$ac_ext <<_ACEOF |
| 11754 | /* end confdefs.h. */ |
| 11755 | $ac_includes_default |
| 11756 | typedef long double ac__type_new_; |
| 11757 | int |
| 11758 | main () |
| 11759 | { |
| 11760 | if ((ac__type_new_ *) 0) |
| 11761 | return 0; |
| 11762 | if (sizeof (ac__type_new_)) |
| 11763 | return 0; |
| 11764 | ; |
| 11765 | return 0; |
| 11766 | } |
| 11767 | _ACEOF |
| 11768 | rm -f conftest.$ac_objext |
| 11769 | if { (ac_try="$ac_compile" |
| 11770 | case "(($ac_try" in |
| 11771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11772 | *) ac_try_echo=$ac_try;; |
| 11773 | esac |
| 11774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11775 | (eval "$ac_compile") 2>conftest.er1 |
| 11776 | ac_status=$? |
| 11777 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11778 | rm -f conftest.er1 |
| 11779 | cat conftest.err >&5 |
| 11780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11781 | (exit $ac_status); } && { |
| 11782 | test -z "$ac_c_werror_flag" || |
| 11783 | test ! -s conftest.err |
| 11784 | } && test -s conftest.$ac_objext; then |
| 11785 | ac_cv_type_long_double=yes |
| 11786 | else |
| 11787 | echo "$as_me: failed program was:" >&5 |
| 11788 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11789 | |
| 11790 | ac_cv_type_long_double=no |
| 11791 | fi |
| 11792 | |
| 11793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11794 | fi |
| 11795 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 |
| 11796 | echo "${ECHO_T}$ac_cv_type_long_double" >&6; } |
| 11797 | |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11798 | # The cast to long int works around a bug in the HP C Compiler |
| 11799 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11800 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11801 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11802 | { echo "$as_me:$LINENO: checking size of long double" >&5 |
| 11803 | echo $ECHO_N "checking size of long double... $ECHO_C" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11804 | if test "${ac_cv_sizeof_long_double+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11806 | else |
| 11807 | if test "$cross_compiling" = yes; then |
| 11808 | # Depending upon the size, compute the lo and hi bounds. |
| 11809 | cat >conftest.$ac_ext <<_ACEOF |
| 11810 | /* confdefs.h. */ |
| 11811 | _ACEOF |
| 11812 | cat confdefs.h >>conftest.$ac_ext |
| 11813 | cat >>conftest.$ac_ext <<_ACEOF |
| 11814 | /* end confdefs.h. */ |
| 11815 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11816 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11817 | int |
| 11818 | main () |
| 11819 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11820 | 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] | 11821 | test_array [0] = 0 |
| 11822 | |
| 11823 | ; |
| 11824 | return 0; |
| 11825 | } |
| 11826 | _ACEOF |
| 11827 | rm -f conftest.$ac_objext |
| 11828 | if { (ac_try="$ac_compile" |
| 11829 | case "(($ac_try" in |
| 11830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11831 | *) ac_try_echo=$ac_try;; |
| 11832 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11834 | (eval "$ac_compile") 2>conftest.er1 |
| 11835 | ac_status=$? |
| 11836 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11837 | rm -f conftest.er1 |
| 11838 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11840 | (exit $ac_status); } && { |
| 11841 | test -z "$ac_c_werror_flag" || |
| 11842 | test ! -s conftest.err |
| 11843 | } && test -s conftest.$ac_objext; then |
| 11844 | ac_lo=0 ac_mid=0 |
| 11845 | while :; do |
| 11846 | cat >conftest.$ac_ext <<_ACEOF |
| 11847 | /* confdefs.h. */ |
| 11848 | _ACEOF |
| 11849 | cat confdefs.h >>conftest.$ac_ext |
| 11850 | cat >>conftest.$ac_ext <<_ACEOF |
| 11851 | /* end confdefs.h. */ |
| 11852 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11853 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11854 | int |
| 11855 | main () |
| 11856 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11857 | 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] | 11858 | test_array [0] = 0 |
| 11859 | |
| 11860 | ; |
| 11861 | return 0; |
| 11862 | } |
| 11863 | _ACEOF |
| 11864 | rm -f conftest.$ac_objext |
| 11865 | if { (ac_try="$ac_compile" |
| 11866 | case "(($ac_try" in |
| 11867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11868 | *) ac_try_echo=$ac_try;; |
| 11869 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11870 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11871 | (eval "$ac_compile") 2>conftest.er1 |
| 11872 | ac_status=$? |
| 11873 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11874 | rm -f conftest.er1 |
| 11875 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11877 | (exit $ac_status); } && { |
| 11878 | test -z "$ac_c_werror_flag" || |
| 11879 | test ! -s conftest.err |
| 11880 | } && test -s conftest.$ac_objext; then |
| 11881 | ac_hi=$ac_mid; break |
| 11882 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11883 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11884 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11885 | |
| 11886 | ac_lo=`expr $ac_mid + 1` |
| 11887 | if test $ac_lo -le $ac_mid; then |
| 11888 | ac_lo= ac_hi= |
| 11889 | break |
| 11890 | fi |
| 11891 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 11892 | fi |
| 11893 | |
| 11894 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11895 | done |
| 11896 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11897 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11898 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11899 | |
| 11900 | cat >conftest.$ac_ext <<_ACEOF |
| 11901 | /* confdefs.h. */ |
| 11902 | _ACEOF |
| 11903 | cat confdefs.h >>conftest.$ac_ext |
| 11904 | cat >>conftest.$ac_ext <<_ACEOF |
| 11905 | /* end confdefs.h. */ |
| 11906 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11907 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11908 | int |
| 11909 | main () |
| 11910 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11911 | 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] | 11912 | test_array [0] = 0 |
| 11913 | |
| 11914 | ; |
| 11915 | return 0; |
| 11916 | } |
| 11917 | _ACEOF |
| 11918 | rm -f conftest.$ac_objext |
| 11919 | if { (ac_try="$ac_compile" |
| 11920 | case "(($ac_try" in |
| 11921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11922 | *) ac_try_echo=$ac_try;; |
| 11923 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11925 | (eval "$ac_compile") 2>conftest.er1 |
| 11926 | ac_status=$? |
| 11927 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11928 | rm -f conftest.er1 |
| 11929 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11931 | (exit $ac_status); } && { |
| 11932 | test -z "$ac_c_werror_flag" || |
| 11933 | test ! -s conftest.err |
| 11934 | } && test -s conftest.$ac_objext; then |
| 11935 | ac_hi=-1 ac_mid=-1 |
| 11936 | while :; do |
| 11937 | cat >conftest.$ac_ext <<_ACEOF |
| 11938 | /* confdefs.h. */ |
| 11939 | _ACEOF |
| 11940 | cat confdefs.h >>conftest.$ac_ext |
| 11941 | cat >>conftest.$ac_ext <<_ACEOF |
| 11942 | /* end confdefs.h. */ |
| 11943 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11944 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11945 | int |
| 11946 | main () |
| 11947 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11948 | 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] | 11949 | test_array [0] = 0 |
| 11950 | |
| 11951 | ; |
| 11952 | return 0; |
| 11953 | } |
| 11954 | _ACEOF |
| 11955 | rm -f conftest.$ac_objext |
| 11956 | if { (ac_try="$ac_compile" |
| 11957 | case "(($ac_try" in |
| 11958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11959 | *) ac_try_echo=$ac_try;; |
| 11960 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11962 | (eval "$ac_compile") 2>conftest.er1 |
| 11963 | ac_status=$? |
| 11964 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11965 | rm -f conftest.er1 |
| 11966 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11968 | (exit $ac_status); } && { |
| 11969 | test -z "$ac_c_werror_flag" || |
| 11970 | test ! -s conftest.err |
| 11971 | } && test -s conftest.$ac_objext; then |
| 11972 | ac_lo=$ac_mid; break |
| 11973 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11974 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11975 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11976 | |
| 11977 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11978 | if test $ac_mid -le $ac_hi; then |
| 11979 | ac_lo= ac_hi= |
| 11980 | break |
| 11981 | fi |
| 11982 | ac_mid=`expr 2 '*' $ac_mid` |
| 11983 | fi |
| 11984 | |
| 11985 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11986 | done |
| 11987 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11988 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11989 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11990 | |
| 11991 | ac_lo= ac_hi= |
| 11992 | fi |
| 11993 | |
| 11994 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11995 | fi |
| 11996 | |
| 11997 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11998 | # Binary search between lo and hi bounds. |
| 11999 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12000 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12001 | cat >conftest.$ac_ext <<_ACEOF |
| 12002 | /* confdefs.h. */ |
| 12003 | _ACEOF |
| 12004 | cat confdefs.h >>conftest.$ac_ext |
| 12005 | cat >>conftest.$ac_ext <<_ACEOF |
| 12006 | /* end confdefs.h. */ |
| 12007 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12008 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12009 | int |
| 12010 | main () |
| 12011 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12012 | 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] | 12013 | test_array [0] = 0 |
| 12014 | |
| 12015 | ; |
| 12016 | return 0; |
| 12017 | } |
| 12018 | _ACEOF |
| 12019 | rm -f conftest.$ac_objext |
| 12020 | if { (ac_try="$ac_compile" |
| 12021 | case "(($ac_try" in |
| 12022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12023 | *) ac_try_echo=$ac_try;; |
| 12024 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12026 | (eval "$ac_compile") 2>conftest.er1 |
| 12027 | ac_status=$? |
| 12028 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12029 | rm -f conftest.er1 |
| 12030 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12032 | (exit $ac_status); } && { |
| 12033 | test -z "$ac_c_werror_flag" || |
| 12034 | test ! -s conftest.err |
| 12035 | } && test -s conftest.$ac_objext; then |
| 12036 | ac_hi=$ac_mid |
| 12037 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12038 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12039 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12040 | |
| 12041 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 12042 | fi |
| 12043 | |
| 12044 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12045 | done |
| 12046 | case $ac_lo in |
| 12047 | ?*) ac_cv_sizeof_long_double=$ac_lo;; |
| 12048 | '') if test "$ac_cv_type_long_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12049 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12050 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12051 | echo "$as_me: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12052 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12053 | { (exit 77); exit 77; }; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12054 | else |
| 12055 | ac_cv_sizeof_long_double=0 |
| 12056 | fi ;; |
| 12057 | esac |
| 12058 | else |
| 12059 | cat >conftest.$ac_ext <<_ACEOF |
| 12060 | /* confdefs.h. */ |
| 12061 | _ACEOF |
| 12062 | cat confdefs.h >>conftest.$ac_ext |
| 12063 | cat >>conftest.$ac_ext <<_ACEOF |
| 12064 | /* end confdefs.h. */ |
| 12065 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12066 | typedef long double ac__type_sizeof_; |
| 12067 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12068 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12069 | #include <stdio.h> |
| 12070 | #include <stdlib.h> |
| 12071 | int |
| 12072 | main () |
| 12073 | { |
| 12074 | |
| 12075 | FILE *f = fopen ("conftest.val", "w"); |
| 12076 | if (! f) |
| 12077 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12078 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12079 | { |
| 12080 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12081 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12082 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12083 | fprintf (f, "%ld\n", i); |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12084 | } |
| 12085 | else |
| 12086 | { |
| 12087 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12088 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12089 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12090 | fprintf (f, "%lu\n", i); |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12091 | } |
| 12092 | return ferror (f) || fclose (f) != 0; |
| 12093 | |
| 12094 | ; |
| 12095 | return 0; |
| 12096 | } |
| 12097 | _ACEOF |
| 12098 | rm -f conftest$ac_exeext |
| 12099 | if { (ac_try="$ac_link" |
| 12100 | case "(($ac_try" in |
| 12101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12102 | *) ac_try_echo=$ac_try;; |
| 12103 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12105 | (eval "$ac_link") 2>&5 |
| 12106 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12108 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12109 | { (case "(($ac_try" in |
| 12110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12111 | *) ac_try_echo=$ac_try;; |
| 12112 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12114 | (eval "$ac_try") 2>&5 |
| 12115 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12117 | (exit $ac_status); }; }; then |
| 12118 | ac_cv_sizeof_long_double=`cat conftest.val` |
| 12119 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12120 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12121 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12122 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12123 | |
| 12124 | ( exit $ac_status ) |
| 12125 | if test "$ac_cv_type_long_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12126 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12127 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12128 | echo "$as_me: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12129 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12130 | { (exit 77); exit 77; }; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12131 | else |
| 12132 | ac_cv_sizeof_long_double=0 |
| 12133 | fi |
| 12134 | fi |
| 12135 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 12136 | fi |
| 12137 | rm -f conftest.val |
| 12138 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12139 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5 |
| 12140 | echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12141 | |
| 12142 | |
| 12143 | |
| 12144 | cat >>confdefs.h <<_ACEOF |
| 12145 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double |
| 12146 | _ACEOF |
| 12147 | |
| 12148 | |
| 12149 | fi |
| 12150 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12151 | { echo "$as_me:$LINENO: checking for _Bool support" >&5 |
| 12152 | echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12153 | have_c99_bool=no |
| 12154 | cat >conftest.$ac_ext <<_ACEOF |
| 12155 | /* confdefs.h. */ |
| 12156 | _ACEOF |
| 12157 | cat confdefs.h >>conftest.$ac_ext |
| 12158 | cat >>conftest.$ac_ext <<_ACEOF |
| 12159 | /* end confdefs.h. */ |
| 12160 | |
| 12161 | int |
| 12162 | main () |
| 12163 | { |
| 12164 | _Bool x; x = (_Bool)0; |
| 12165 | ; |
| 12166 | return 0; |
| 12167 | } |
| 12168 | _ACEOF |
| 12169 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12170 | if { (ac_try="$ac_compile" |
| 12171 | case "(($ac_try" in |
| 12172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12173 | *) ac_try_echo=$ac_try;; |
| 12174 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12176 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12177 | ac_status=$? |
| 12178 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12179 | rm -f conftest.er1 |
| 12180 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12182 | (exit $ac_status); } && { |
| 12183 | test -z "$ac_c_werror_flag" || |
| 12184 | test ! -s conftest.err |
| 12185 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12186 | |
| 12187 | |
| 12188 | cat >>confdefs.h <<\_ACEOF |
| 12189 | #define HAVE_C99_BOOL 1 |
| 12190 | _ACEOF |
| 12191 | |
| 12192 | have_c99_bool=yes |
| 12193 | |
| 12194 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12195 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12196 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12197 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12198 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12199 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12200 | |
| 12201 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12202 | { echo "$as_me:$LINENO: result: $have_c99_bool" >&5 |
| 12203 | echo "${ECHO_T}$have_c99_bool" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12204 | if test "$have_c99_bool" = yes ; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12205 | { echo "$as_me:$LINENO: checking for _Bool" >&5 |
| 12206 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; } |
| 12207 | if test "${ac_cv_type__Bool+set}" = set; then |
| 12208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12209 | else |
| 12210 | cat >conftest.$ac_ext <<_ACEOF |
| 12211 | /* confdefs.h. */ |
| 12212 | _ACEOF |
| 12213 | cat confdefs.h >>conftest.$ac_ext |
| 12214 | cat >>conftest.$ac_ext <<_ACEOF |
| 12215 | /* end confdefs.h. */ |
| 12216 | $ac_includes_default |
| 12217 | typedef _Bool ac__type_new_; |
| 12218 | int |
| 12219 | main () |
| 12220 | { |
| 12221 | if ((ac__type_new_ *) 0) |
| 12222 | return 0; |
| 12223 | if (sizeof (ac__type_new_)) |
| 12224 | return 0; |
| 12225 | ; |
| 12226 | return 0; |
| 12227 | } |
| 12228 | _ACEOF |
| 12229 | rm -f conftest.$ac_objext |
| 12230 | if { (ac_try="$ac_compile" |
| 12231 | case "(($ac_try" in |
| 12232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12233 | *) ac_try_echo=$ac_try;; |
| 12234 | esac |
| 12235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12236 | (eval "$ac_compile") 2>conftest.er1 |
| 12237 | ac_status=$? |
| 12238 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12239 | rm -f conftest.er1 |
| 12240 | cat conftest.err >&5 |
| 12241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12242 | (exit $ac_status); } && { |
| 12243 | test -z "$ac_c_werror_flag" || |
| 12244 | test ! -s conftest.err |
| 12245 | } && test -s conftest.$ac_objext; then |
| 12246 | ac_cv_type__Bool=yes |
| 12247 | else |
| 12248 | echo "$as_me: failed program was:" >&5 |
| 12249 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12250 | |
| 12251 | ac_cv_type__Bool=no |
| 12252 | fi |
| 12253 | |
| 12254 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12255 | fi |
| 12256 | { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
| 12257 | echo "${ECHO_T}$ac_cv_type__Bool" >&6; } |
| 12258 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12259 | # The cast to long int works around a bug in the HP C Compiler |
| 12260 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12261 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12262 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12263 | { echo "$as_me:$LINENO: checking size of _Bool" >&5 |
| 12264 | echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12265 | if test "${ac_cv_sizeof__Bool+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12266 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12267 | else |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12268 | if test "$cross_compiling" = yes; then |
| 12269 | # Depending upon the size, compute the lo and hi bounds. |
| 12270 | cat >conftest.$ac_ext <<_ACEOF |
| 12271 | /* confdefs.h. */ |
| 12272 | _ACEOF |
| 12273 | cat confdefs.h >>conftest.$ac_ext |
| 12274 | cat >>conftest.$ac_ext <<_ACEOF |
| 12275 | /* end confdefs.h. */ |
| 12276 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12277 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12278 | int |
| 12279 | main () |
| 12280 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12281 | 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] | 12282 | test_array [0] = 0 |
| 12283 | |
| 12284 | ; |
| 12285 | return 0; |
| 12286 | } |
| 12287 | _ACEOF |
| 12288 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12289 | if { (ac_try="$ac_compile" |
| 12290 | case "(($ac_try" in |
| 12291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12292 | *) ac_try_echo=$ac_try;; |
| 12293 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12295 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12296 | ac_status=$? |
| 12297 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12298 | rm -f conftest.er1 |
| 12299 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12301 | (exit $ac_status); } && { |
| 12302 | test -z "$ac_c_werror_flag" || |
| 12303 | test ! -s conftest.err |
| 12304 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12305 | ac_lo=0 ac_mid=0 |
| 12306 | while :; do |
| 12307 | cat >conftest.$ac_ext <<_ACEOF |
| 12308 | /* confdefs.h. */ |
| 12309 | _ACEOF |
| 12310 | cat confdefs.h >>conftest.$ac_ext |
| 12311 | cat >>conftest.$ac_ext <<_ACEOF |
| 12312 | /* end confdefs.h. */ |
| 12313 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12314 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12315 | int |
| 12316 | main () |
| 12317 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12318 | 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] | 12319 | test_array [0] = 0 |
| 12320 | |
| 12321 | ; |
| 12322 | return 0; |
| 12323 | } |
| 12324 | _ACEOF |
| 12325 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12326 | if { (ac_try="$ac_compile" |
| 12327 | case "(($ac_try" in |
| 12328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12329 | *) ac_try_echo=$ac_try;; |
| 12330 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12331 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12332 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12333 | ac_status=$? |
| 12334 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12335 | rm -f conftest.er1 |
| 12336 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12338 | (exit $ac_status); } && { |
| 12339 | test -z "$ac_c_werror_flag" || |
| 12340 | test ! -s conftest.err |
| 12341 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12342 | ac_hi=$ac_mid; break |
| 12343 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12344 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12345 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12346 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12347 | ac_lo=`expr $ac_mid + 1` |
| 12348 | if test $ac_lo -le $ac_mid; then |
| 12349 | ac_lo= ac_hi= |
| 12350 | break |
| 12351 | fi |
| 12352 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12353 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12354 | |
| 12355 | 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] | 12356 | done |
| 12357 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12358 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12359 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12360 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12361 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12362 | /* confdefs.h. */ |
| 12363 | _ACEOF |
| 12364 | cat confdefs.h >>conftest.$ac_ext |
| 12365 | cat >>conftest.$ac_ext <<_ACEOF |
| 12366 | /* end confdefs.h. */ |
| 12367 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12368 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12369 | int |
| 12370 | main () |
| 12371 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12372 | 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] | 12373 | test_array [0] = 0 |
| 12374 | |
| 12375 | ; |
| 12376 | return 0; |
| 12377 | } |
| 12378 | _ACEOF |
| 12379 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12380 | if { (ac_try="$ac_compile" |
| 12381 | case "(($ac_try" in |
| 12382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12383 | *) ac_try_echo=$ac_try;; |
| 12384 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12386 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12387 | ac_status=$? |
| 12388 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12389 | rm -f conftest.er1 |
| 12390 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12392 | (exit $ac_status); } && { |
| 12393 | test -z "$ac_c_werror_flag" || |
| 12394 | test ! -s conftest.err |
| 12395 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12396 | ac_hi=-1 ac_mid=-1 |
| 12397 | while :; do |
| 12398 | cat >conftest.$ac_ext <<_ACEOF |
| 12399 | /* confdefs.h. */ |
| 12400 | _ACEOF |
| 12401 | cat confdefs.h >>conftest.$ac_ext |
| 12402 | cat >>conftest.$ac_ext <<_ACEOF |
| 12403 | /* end confdefs.h. */ |
| 12404 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12405 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12406 | int |
| 12407 | main () |
| 12408 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12409 | 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] | 12410 | test_array [0] = 0 |
| 12411 | |
| 12412 | ; |
| 12413 | return 0; |
| 12414 | } |
| 12415 | _ACEOF |
| 12416 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12417 | if { (ac_try="$ac_compile" |
| 12418 | case "(($ac_try" in |
| 12419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12420 | *) ac_try_echo=$ac_try;; |
| 12421 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12422 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12423 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12424 | ac_status=$? |
| 12425 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12426 | rm -f conftest.er1 |
| 12427 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12429 | (exit $ac_status); } && { |
| 12430 | test -z "$ac_c_werror_flag" || |
| 12431 | test ! -s conftest.err |
| 12432 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12433 | ac_lo=$ac_mid; break |
| 12434 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12435 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12436 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12437 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12438 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12439 | if test $ac_mid -le $ac_hi; then |
| 12440 | ac_lo= ac_hi= |
| 12441 | break |
| 12442 | fi |
| 12443 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12444 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12445 | |
| 12446 | 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] | 12447 | done |
| 12448 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12449 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12450 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12451 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12452 | ac_lo= ac_hi= |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12453 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12454 | |
| 12455 | 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] | 12456 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12457 | |
| 12458 | 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] | 12459 | # Binary search between lo and hi bounds. |
| 12460 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12461 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12462 | cat >conftest.$ac_ext <<_ACEOF |
| 12463 | /* confdefs.h. */ |
| 12464 | _ACEOF |
| 12465 | cat confdefs.h >>conftest.$ac_ext |
| 12466 | cat >>conftest.$ac_ext <<_ACEOF |
| 12467 | /* end confdefs.h. */ |
| 12468 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12469 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12470 | int |
| 12471 | main () |
| 12472 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12473 | 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] | 12474 | test_array [0] = 0 |
| 12475 | |
| 12476 | ; |
| 12477 | return 0; |
| 12478 | } |
| 12479 | _ACEOF |
| 12480 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12481 | if { (ac_try="$ac_compile" |
| 12482 | case "(($ac_try" in |
| 12483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12484 | *) ac_try_echo=$ac_try;; |
| 12485 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12487 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12488 | ac_status=$? |
| 12489 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12490 | rm -f conftest.er1 |
| 12491 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12493 | (exit $ac_status); } && { |
| 12494 | test -z "$ac_c_werror_flag" || |
| 12495 | test ! -s conftest.err |
| 12496 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12497 | ac_hi=$ac_mid |
| 12498 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12499 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12500 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12501 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12502 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12503 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12504 | |
| 12505 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12506 | done |
| 12507 | case $ac_lo in |
| 12508 | ?*) ac_cv_sizeof__Bool=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12509 | '') if test "$ac_cv_type__Bool" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12510 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12511 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12512 | echo "$as_me: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12513 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12514 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12515 | else |
| 12516 | ac_cv_sizeof__Bool=0 |
| 12517 | fi ;; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12518 | esac |
| 12519 | else |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12520 | cat >conftest.$ac_ext <<_ACEOF |
| 12521 | /* confdefs.h. */ |
| 12522 | _ACEOF |
| 12523 | cat confdefs.h >>conftest.$ac_ext |
| 12524 | cat >>conftest.$ac_ext <<_ACEOF |
| 12525 | /* end confdefs.h. */ |
| 12526 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12527 | typedef _Bool ac__type_sizeof_; |
| 12528 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12529 | 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] | 12530 | #include <stdio.h> |
| 12531 | #include <stdlib.h> |
| 12532 | int |
| 12533 | main () |
| 12534 | { |
| 12535 | |
| 12536 | FILE *f = fopen ("conftest.val", "w"); |
| 12537 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12538 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12539 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12540 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12541 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12542 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12543 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12544 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12545 | } |
| 12546 | else |
| 12547 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12548 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12549 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12550 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12551 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12552 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12553 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12554 | |
| 12555 | ; |
| 12556 | return 0; |
| 12557 | } |
| 12558 | _ACEOF |
| 12559 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12560 | if { (ac_try="$ac_link" |
| 12561 | case "(($ac_try" in |
| 12562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12563 | *) ac_try_echo=$ac_try;; |
| 12564 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12565 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12566 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12567 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12569 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12570 | { (case "(($ac_try" in |
| 12571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12572 | *) ac_try_echo=$ac_try;; |
| 12573 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12575 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12576 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12578 | (exit $ac_status); }; }; then |
| 12579 | ac_cv_sizeof__Bool=`cat conftest.val` |
| 12580 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12581 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12582 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12583 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12584 | |
| 12585 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12586 | if test "$ac_cv_type__Bool" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12587 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12588 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12589 | echo "$as_me: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12590 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12591 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12592 | else |
| 12593 | ac_cv_sizeof__Bool=0 |
| 12594 | fi |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12595 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12596 | 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] | 12597 | fi |
| 12598 | rm -f conftest.val |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12599 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12600 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5 |
| 12601 | echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12602 | |
| 12603 | |
| 12604 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12605 | cat >>confdefs.h <<_ACEOF |
| 12606 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool |
| 12607 | _ACEOF |
| 12608 | |
| 12609 | |
| 12610 | fi |
| 12611 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12612 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 12613 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12614 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12616 | else |
| 12617 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12618 | /* confdefs.h. */ |
| 12619 | _ACEOF |
| 12620 | cat confdefs.h >>conftest.$ac_ext |
| 12621 | cat >>conftest.$ac_ext <<_ACEOF |
| 12622 | /* end confdefs.h. */ |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 12623 | #ifdef HAVE_STDINT_H |
| 12624 | #include <stdint.h> |
| 12625 | #endif |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12626 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12627 | typedef uintptr_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12628 | int |
| 12629 | main () |
| 12630 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12631 | if ((ac__type_new_ *) 0) |
| 12632 | return 0; |
| 12633 | if (sizeof (ac__type_new_)) |
| 12634 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12635 | ; |
| 12636 | return 0; |
| 12637 | } |
| 12638 | _ACEOF |
| 12639 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12640 | if { (ac_try="$ac_compile" |
| 12641 | case "(($ac_try" in |
| 12642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12643 | *) ac_try_echo=$ac_try;; |
| 12644 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12645 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12646 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12647 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12648 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12649 | rm -f conftest.er1 |
| 12650 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12652 | (exit $ac_status); } && { |
| 12653 | test -z "$ac_c_werror_flag" || |
| 12654 | test ! -s conftest.err |
| 12655 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12656 | ac_cv_type_uintptr_t=yes |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12657 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12658 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12660 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12661 | ac_cv_type_uintptr_t=no |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12662 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12663 | |
| 12664 | 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] | 12665 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12666 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 12667 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } |
| 12668 | if test $ac_cv_type_uintptr_t = yes; then |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12669 | |
| 12670 | cat >>confdefs.h <<_ACEOF |
| 12671 | #define HAVE_UINTPTR_T 1 |
| 12672 | _ACEOF |
| 12673 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12674 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 12675 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } |
| 12676 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 12677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12678 | else |
| 12679 | cat >conftest.$ac_ext <<_ACEOF |
| 12680 | /* confdefs.h. */ |
| 12681 | _ACEOF |
| 12682 | cat confdefs.h >>conftest.$ac_ext |
| 12683 | cat >>conftest.$ac_ext <<_ACEOF |
| 12684 | /* end confdefs.h. */ |
| 12685 | $ac_includes_default |
| 12686 | typedef uintptr_t ac__type_new_; |
| 12687 | int |
| 12688 | main () |
| 12689 | { |
| 12690 | if ((ac__type_new_ *) 0) |
| 12691 | return 0; |
| 12692 | if (sizeof (ac__type_new_)) |
| 12693 | return 0; |
| 12694 | ; |
| 12695 | return 0; |
| 12696 | } |
| 12697 | _ACEOF |
| 12698 | rm -f conftest.$ac_objext |
| 12699 | if { (ac_try="$ac_compile" |
| 12700 | case "(($ac_try" in |
| 12701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12702 | *) ac_try_echo=$ac_try;; |
| 12703 | esac |
| 12704 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12705 | (eval "$ac_compile") 2>conftest.er1 |
| 12706 | ac_status=$? |
| 12707 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12708 | rm -f conftest.er1 |
| 12709 | cat conftest.err >&5 |
| 12710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12711 | (exit $ac_status); } && { |
| 12712 | test -z "$ac_c_werror_flag" || |
| 12713 | test ! -s conftest.err |
| 12714 | } && test -s conftest.$ac_objext; then |
| 12715 | ac_cv_type_uintptr_t=yes |
| 12716 | else |
| 12717 | echo "$as_me: failed program was:" >&5 |
| 12718 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12719 | |
| 12720 | ac_cv_type_uintptr_t=no |
| 12721 | fi |
| 12722 | |
| 12723 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12724 | fi |
| 12725 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 12726 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } |
| 12727 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12728 | # The cast to long int works around a bug in the HP C Compiler |
| 12729 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12730 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12731 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12732 | { echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 12733 | 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] | 12734 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12736 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12737 | if test "$cross_compiling" = yes; then |
| 12738 | # Depending upon the size, compute the lo and hi bounds. |
| 12739 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12740 | /* confdefs.h. */ |
| 12741 | _ACEOF |
| 12742 | cat confdefs.h >>conftest.$ac_ext |
| 12743 | cat >>conftest.$ac_ext <<_ACEOF |
| 12744 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12745 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12746 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12747 | int |
| 12748 | main () |
| 12749 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12750 | 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] | 12751 | test_array [0] = 0 |
| 12752 | |
| 12753 | ; |
| 12754 | return 0; |
| 12755 | } |
| 12756 | _ACEOF |
| 12757 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12758 | if { (ac_try="$ac_compile" |
| 12759 | case "(($ac_try" in |
| 12760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12761 | *) ac_try_echo=$ac_try;; |
| 12762 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12764 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12765 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12766 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12767 | rm -f conftest.er1 |
| 12768 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12770 | (exit $ac_status); } && { |
| 12771 | test -z "$ac_c_werror_flag" || |
| 12772 | test ! -s conftest.err |
| 12773 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12774 | ac_lo=0 ac_mid=0 |
| 12775 | while :; do |
| 12776 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12777 | /* confdefs.h. */ |
| 12778 | _ACEOF |
| 12779 | cat confdefs.h >>conftest.$ac_ext |
| 12780 | cat >>conftest.$ac_ext <<_ACEOF |
| 12781 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12782 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12783 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12784 | int |
| 12785 | main () |
| 12786 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12787 | 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] | 12788 | test_array [0] = 0 |
| 12789 | |
| 12790 | ; |
| 12791 | return 0; |
| 12792 | } |
| 12793 | _ACEOF |
| 12794 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12795 | if { (ac_try="$ac_compile" |
| 12796 | case "(($ac_try" in |
| 12797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12798 | *) ac_try_echo=$ac_try;; |
| 12799 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12801 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12802 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12803 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12804 | rm -f conftest.er1 |
| 12805 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12807 | (exit $ac_status); } && { |
| 12808 | test -z "$ac_c_werror_flag" || |
| 12809 | test ! -s conftest.err |
| 12810 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12811 | ac_hi=$ac_mid; break |
| 12812 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12813 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12814 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12815 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12816 | ac_lo=`expr $ac_mid + 1` |
| 12817 | if test $ac_lo -le $ac_mid; then |
| 12818 | ac_lo= ac_hi= |
| 12819 | break |
| 12820 | fi |
| 12821 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12822 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12823 | |
| 12824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12825 | done |
| 12826 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12827 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12828 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12829 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12830 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12831 | /* confdefs.h. */ |
| 12832 | _ACEOF |
| 12833 | cat confdefs.h >>conftest.$ac_ext |
| 12834 | cat >>conftest.$ac_ext <<_ACEOF |
| 12835 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12836 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12837 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12838 | int |
| 12839 | main () |
| 12840 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12841 | 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] | 12842 | test_array [0] = 0 |
| 12843 | |
| 12844 | ; |
| 12845 | return 0; |
| 12846 | } |
| 12847 | _ACEOF |
| 12848 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12849 | if { (ac_try="$ac_compile" |
| 12850 | case "(($ac_try" in |
| 12851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12852 | *) ac_try_echo=$ac_try;; |
| 12853 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12855 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12856 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12857 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12858 | rm -f conftest.er1 |
| 12859 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12861 | (exit $ac_status); } && { |
| 12862 | test -z "$ac_c_werror_flag" || |
| 12863 | test ! -s conftest.err |
| 12864 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12865 | ac_hi=-1 ac_mid=-1 |
| 12866 | while :; do |
| 12867 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12868 | /* confdefs.h. */ |
| 12869 | _ACEOF |
| 12870 | cat confdefs.h >>conftest.$ac_ext |
| 12871 | cat >>conftest.$ac_ext <<_ACEOF |
| 12872 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12873 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12874 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12875 | int |
| 12876 | main () |
| 12877 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12878 | 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] | 12879 | test_array [0] = 0 |
| 12880 | |
| 12881 | ; |
| 12882 | return 0; |
| 12883 | } |
| 12884 | _ACEOF |
| 12885 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12886 | if { (ac_try="$ac_compile" |
| 12887 | case "(($ac_try" in |
| 12888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12889 | *) ac_try_echo=$ac_try;; |
| 12890 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12892 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12893 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12894 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12895 | rm -f conftest.er1 |
| 12896 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12898 | (exit $ac_status); } && { |
| 12899 | test -z "$ac_c_werror_flag" || |
| 12900 | test ! -s conftest.err |
| 12901 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12902 | ac_lo=$ac_mid; break |
| 12903 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12904 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12905 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12906 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12907 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12908 | if test $ac_mid -le $ac_hi; then |
| 12909 | ac_lo= ac_hi= |
| 12910 | break |
| 12911 | fi |
| 12912 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12913 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12914 | |
| 12915 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12916 | done |
| 12917 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12918 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12919 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12920 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12921 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12922 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12923 | |
| 12924 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12925 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12926 | |
| 12927 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12928 | # Binary search between lo and hi bounds. |
| 12929 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12930 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12931 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12932 | /* confdefs.h. */ |
| 12933 | _ACEOF |
| 12934 | cat confdefs.h >>conftest.$ac_ext |
| 12935 | cat >>conftest.$ac_ext <<_ACEOF |
| 12936 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12937 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12938 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12939 | int |
| 12940 | main () |
| 12941 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12942 | 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] | 12943 | test_array [0] = 0 |
| 12944 | |
| 12945 | ; |
| 12946 | return 0; |
| 12947 | } |
| 12948 | _ACEOF |
| 12949 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12950 | if { (ac_try="$ac_compile" |
| 12951 | case "(($ac_try" in |
| 12952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12953 | *) ac_try_echo=$ac_try;; |
| 12954 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12956 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12957 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12958 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12959 | rm -f conftest.er1 |
| 12960 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12962 | (exit $ac_status); } && { |
| 12963 | test -z "$ac_c_werror_flag" || |
| 12964 | test ! -s conftest.err |
| 12965 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12966 | ac_hi=$ac_mid |
| 12967 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12968 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12969 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12970 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12971 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12972 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12973 | |
| 12974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12975 | done |
| 12976 | case $ac_lo in |
| 12977 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12978 | '') if test "$ac_cv_type_uintptr_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12979 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12980 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12981 | echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12982 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12983 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12984 | else |
| 12985 | ac_cv_sizeof_uintptr_t=0 |
| 12986 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12987 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12988 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12989 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12990 | /* confdefs.h. */ |
| 12991 | _ACEOF |
| 12992 | cat confdefs.h >>conftest.$ac_ext |
| 12993 | cat >>conftest.$ac_ext <<_ACEOF |
| 12994 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12995 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12996 | typedef uintptr_t ac__type_sizeof_; |
| 12997 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12998 | 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] | 12999 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13000 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13001 | int |
| 13002 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13003 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13004 | |
| 13005 | FILE *f = fopen ("conftest.val", "w"); |
| 13006 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13007 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13008 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13009 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13010 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13011 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13012 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13013 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13014 | } |
| 13015 | else |
| 13016 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13017 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13018 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13019 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13020 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13021 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13022 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13023 | |
| 13024 | ; |
| 13025 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13026 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13027 | _ACEOF |
| 13028 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13029 | if { (ac_try="$ac_link" |
| 13030 | case "(($ac_try" in |
| 13031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13032 | *) ac_try_echo=$ac_try;; |
| 13033 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13035 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13036 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13038 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13039 | { (case "(($ac_try" in |
| 13040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13041 | *) ac_try_echo=$ac_try;; |
| 13042 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13043 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13044 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13045 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13047 | (exit $ac_status); }; }; then |
| 13048 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13049 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13050 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13051 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13052 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13053 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13054 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13055 | if test "$ac_cv_type_uintptr_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13056 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13057 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13058 | echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13059 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13060 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13061 | else |
| 13062 | ac_cv_sizeof_uintptr_t=0 |
| 13063 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13064 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13065 | 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] | 13066 | fi |
| 13067 | rm -f conftest.val |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13068 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13069 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 13070 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13071 | |
| 13072 | |
| 13073 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13074 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13075 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13076 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13077 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13078 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13079 | fi |
| 13080 | |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 13081 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13082 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 13083 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
| 13084 | if test "${ac_cv_type_off_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13086 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13087 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13088 | /* confdefs.h. */ |
| 13089 | _ACEOF |
| 13090 | cat confdefs.h >>conftest.$ac_ext |
| 13091 | cat >>conftest.$ac_ext <<_ACEOF |
| 13092 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13093 | |
| 13094 | #ifdef HAVE_SYS_TYPES_H |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13095 | #include <sys/types.h> |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13096 | #endif |
| 13097 | |
| 13098 | |
| 13099 | typedef off_t ac__type_new_; |
| 13100 | int |
| 13101 | main () |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13102 | { |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13103 | if ((ac__type_new_ *) 0) |
| 13104 | return 0; |
| 13105 | if (sizeof (ac__type_new_)) |
| 13106 | return 0; |
| 13107 | ; |
| 13108 | return 0; |
| 13109 | } |
| 13110 | _ACEOF |
| 13111 | rm -f conftest.$ac_objext |
| 13112 | if { (ac_try="$ac_compile" |
| 13113 | case "(($ac_try" in |
| 13114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13115 | *) ac_try_echo=$ac_try;; |
| 13116 | esac |
| 13117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13118 | (eval "$ac_compile") 2>conftest.er1 |
| 13119 | ac_status=$? |
| 13120 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13121 | rm -f conftest.er1 |
| 13122 | cat conftest.err >&5 |
| 13123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13124 | (exit $ac_status); } && { |
| 13125 | test -z "$ac_c_werror_flag" || |
| 13126 | test ! -s conftest.err |
| 13127 | } && test -s conftest.$ac_objext; then |
| 13128 | ac_cv_type_off_t=yes |
| 13129 | else |
| 13130 | echo "$as_me: failed program was:" >&5 |
| 13131 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13132 | |
| 13133 | ac_cv_type_off_t=no |
| 13134 | fi |
| 13135 | |
| 13136 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13137 | fi |
| 13138 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 13139 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
| 13140 | |
| 13141 | # The cast to long int works around a bug in the HP C Compiler |
| 13142 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13143 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13144 | # This bug is HP SR number 8606223364. |
| 13145 | { echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 13146 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; } |
| 13147 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 13148 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13149 | else |
| 13150 | if test "$cross_compiling" = yes; then |
| 13151 | # Depending upon the size, compute the lo and hi bounds. |
| 13152 | cat >conftest.$ac_ext <<_ACEOF |
| 13153 | /* confdefs.h. */ |
| 13154 | _ACEOF |
| 13155 | cat confdefs.h >>conftest.$ac_ext |
| 13156 | cat >>conftest.$ac_ext <<_ACEOF |
| 13157 | /* end confdefs.h. */ |
| 13158 | |
| 13159 | #ifdef HAVE_SYS_TYPES_H |
| 13160 | #include <sys/types.h> |
| 13161 | #endif |
| 13162 | |
| 13163 | |
| 13164 | typedef off_t ac__type_sizeof_; |
| 13165 | int |
| 13166 | main () |
| 13167 | { |
| 13168 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 13169 | test_array [0] = 0 |
| 13170 | |
| 13171 | ; |
| 13172 | return 0; |
| 13173 | } |
| 13174 | _ACEOF |
| 13175 | rm -f conftest.$ac_objext |
| 13176 | if { (ac_try="$ac_compile" |
| 13177 | case "(($ac_try" in |
| 13178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13179 | *) ac_try_echo=$ac_try;; |
| 13180 | esac |
| 13181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13182 | (eval "$ac_compile") 2>conftest.er1 |
| 13183 | ac_status=$? |
| 13184 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13185 | rm -f conftest.er1 |
| 13186 | cat conftest.err >&5 |
| 13187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13188 | (exit $ac_status); } && { |
| 13189 | test -z "$ac_c_werror_flag" || |
| 13190 | test ! -s conftest.err |
| 13191 | } && test -s conftest.$ac_objext; then |
| 13192 | ac_lo=0 ac_mid=0 |
| 13193 | while :; do |
| 13194 | cat >conftest.$ac_ext <<_ACEOF |
| 13195 | /* confdefs.h. */ |
| 13196 | _ACEOF |
| 13197 | cat confdefs.h >>conftest.$ac_ext |
| 13198 | cat >>conftest.$ac_ext <<_ACEOF |
| 13199 | /* end confdefs.h. */ |
| 13200 | |
| 13201 | #ifdef HAVE_SYS_TYPES_H |
| 13202 | #include <sys/types.h> |
| 13203 | #endif |
| 13204 | |
| 13205 | |
| 13206 | typedef off_t ac__type_sizeof_; |
| 13207 | int |
| 13208 | main () |
| 13209 | { |
| 13210 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13211 | test_array [0] = 0 |
| 13212 | |
| 13213 | ; |
| 13214 | return 0; |
| 13215 | } |
| 13216 | _ACEOF |
| 13217 | rm -f conftest.$ac_objext |
| 13218 | if { (ac_try="$ac_compile" |
| 13219 | case "(($ac_try" in |
| 13220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13221 | *) ac_try_echo=$ac_try;; |
| 13222 | esac |
| 13223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13224 | (eval "$ac_compile") 2>conftest.er1 |
| 13225 | ac_status=$? |
| 13226 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13227 | rm -f conftest.er1 |
| 13228 | cat conftest.err >&5 |
| 13229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13230 | (exit $ac_status); } && { |
| 13231 | test -z "$ac_c_werror_flag" || |
| 13232 | test ! -s conftest.err |
| 13233 | } && test -s conftest.$ac_objext; then |
| 13234 | ac_hi=$ac_mid; break |
| 13235 | else |
| 13236 | echo "$as_me: failed program was:" >&5 |
| 13237 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13238 | |
| 13239 | ac_lo=`expr $ac_mid + 1` |
| 13240 | if test $ac_lo -le $ac_mid; then |
| 13241 | ac_lo= ac_hi= |
| 13242 | break |
| 13243 | fi |
| 13244 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 13245 | fi |
| 13246 | |
| 13247 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13248 | done |
| 13249 | else |
| 13250 | echo "$as_me: failed program was:" >&5 |
| 13251 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13252 | |
| 13253 | cat >conftest.$ac_ext <<_ACEOF |
| 13254 | /* confdefs.h. */ |
| 13255 | _ACEOF |
| 13256 | cat confdefs.h >>conftest.$ac_ext |
| 13257 | cat >>conftest.$ac_ext <<_ACEOF |
| 13258 | /* end confdefs.h. */ |
| 13259 | |
| 13260 | #ifdef HAVE_SYS_TYPES_H |
| 13261 | #include <sys/types.h> |
| 13262 | #endif |
| 13263 | |
| 13264 | |
| 13265 | typedef off_t ac__type_sizeof_; |
| 13266 | int |
| 13267 | main () |
| 13268 | { |
| 13269 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
| 13270 | test_array [0] = 0 |
| 13271 | |
| 13272 | ; |
| 13273 | return 0; |
| 13274 | } |
| 13275 | _ACEOF |
| 13276 | rm -f conftest.$ac_objext |
| 13277 | if { (ac_try="$ac_compile" |
| 13278 | case "(($ac_try" in |
| 13279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13280 | *) ac_try_echo=$ac_try;; |
| 13281 | esac |
| 13282 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13283 | (eval "$ac_compile") 2>conftest.er1 |
| 13284 | ac_status=$? |
| 13285 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13286 | rm -f conftest.er1 |
| 13287 | cat conftest.err >&5 |
| 13288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13289 | (exit $ac_status); } && { |
| 13290 | test -z "$ac_c_werror_flag" || |
| 13291 | test ! -s conftest.err |
| 13292 | } && test -s conftest.$ac_objext; then |
| 13293 | ac_hi=-1 ac_mid=-1 |
| 13294 | while :; do |
| 13295 | cat >conftest.$ac_ext <<_ACEOF |
| 13296 | /* confdefs.h. */ |
| 13297 | _ACEOF |
| 13298 | cat confdefs.h >>conftest.$ac_ext |
| 13299 | cat >>conftest.$ac_ext <<_ACEOF |
| 13300 | /* end confdefs.h. */ |
| 13301 | |
| 13302 | #ifdef HAVE_SYS_TYPES_H |
| 13303 | #include <sys/types.h> |
| 13304 | #endif |
| 13305 | |
| 13306 | |
| 13307 | typedef off_t ac__type_sizeof_; |
| 13308 | int |
| 13309 | main () |
| 13310 | { |
| 13311 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 13312 | test_array [0] = 0 |
| 13313 | |
| 13314 | ; |
| 13315 | return 0; |
| 13316 | } |
| 13317 | _ACEOF |
| 13318 | rm -f conftest.$ac_objext |
| 13319 | if { (ac_try="$ac_compile" |
| 13320 | case "(($ac_try" in |
| 13321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13322 | *) ac_try_echo=$ac_try;; |
| 13323 | esac |
| 13324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13325 | (eval "$ac_compile") 2>conftest.er1 |
| 13326 | ac_status=$? |
| 13327 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13328 | rm -f conftest.er1 |
| 13329 | cat conftest.err >&5 |
| 13330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13331 | (exit $ac_status); } && { |
| 13332 | test -z "$ac_c_werror_flag" || |
| 13333 | test ! -s conftest.err |
| 13334 | } && test -s conftest.$ac_objext; then |
| 13335 | ac_lo=$ac_mid; break |
| 13336 | else |
| 13337 | echo "$as_me: failed program was:" >&5 |
| 13338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13339 | |
| 13340 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13341 | if test $ac_mid -le $ac_hi; then |
| 13342 | ac_lo= ac_hi= |
| 13343 | break |
| 13344 | fi |
| 13345 | ac_mid=`expr 2 '*' $ac_mid` |
| 13346 | fi |
| 13347 | |
| 13348 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13349 | done |
| 13350 | else |
| 13351 | echo "$as_me: failed program was:" >&5 |
| 13352 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13353 | |
| 13354 | ac_lo= ac_hi= |
| 13355 | fi |
| 13356 | |
| 13357 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13358 | fi |
| 13359 | |
| 13360 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13361 | # Binary search between lo and hi bounds. |
| 13362 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13363 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13364 | cat >conftest.$ac_ext <<_ACEOF |
| 13365 | /* confdefs.h. */ |
| 13366 | _ACEOF |
| 13367 | cat confdefs.h >>conftest.$ac_ext |
| 13368 | cat >>conftest.$ac_ext <<_ACEOF |
| 13369 | /* end confdefs.h. */ |
| 13370 | |
| 13371 | #ifdef HAVE_SYS_TYPES_H |
| 13372 | #include <sys/types.h> |
| 13373 | #endif |
| 13374 | |
| 13375 | |
| 13376 | typedef off_t ac__type_sizeof_; |
| 13377 | int |
| 13378 | main () |
| 13379 | { |
| 13380 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13381 | test_array [0] = 0 |
| 13382 | |
| 13383 | ; |
| 13384 | return 0; |
| 13385 | } |
| 13386 | _ACEOF |
| 13387 | rm -f conftest.$ac_objext |
| 13388 | if { (ac_try="$ac_compile" |
| 13389 | case "(($ac_try" in |
| 13390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13391 | *) ac_try_echo=$ac_try;; |
| 13392 | esac |
| 13393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13394 | (eval "$ac_compile") 2>conftest.er1 |
| 13395 | ac_status=$? |
| 13396 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13397 | rm -f conftest.er1 |
| 13398 | cat conftest.err >&5 |
| 13399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13400 | (exit $ac_status); } && { |
| 13401 | test -z "$ac_c_werror_flag" || |
| 13402 | test ! -s conftest.err |
| 13403 | } && test -s conftest.$ac_objext; then |
| 13404 | ac_hi=$ac_mid |
| 13405 | else |
| 13406 | echo "$as_me: failed program was:" >&5 |
| 13407 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13408 | |
| 13409 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 13410 | fi |
| 13411 | |
| 13412 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13413 | done |
| 13414 | case $ac_lo in |
| 13415 | ?*) ac_cv_sizeof_off_t=$ac_lo;; |
| 13416 | '') if test "$ac_cv_type_off_t" = yes; then |
| 13417 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t) |
| 13418 | See \`config.log' for more details." >&5 |
| 13419 | echo "$as_me: error: cannot compute sizeof (off_t) |
| 13420 | See \`config.log' for more details." >&2;} |
| 13421 | { (exit 77); exit 77; }; } |
| 13422 | else |
| 13423 | ac_cv_sizeof_off_t=0 |
| 13424 | fi ;; |
| 13425 | esac |
| 13426 | else |
| 13427 | cat >conftest.$ac_ext <<_ACEOF |
| 13428 | /* confdefs.h. */ |
| 13429 | _ACEOF |
| 13430 | cat confdefs.h >>conftest.$ac_ext |
| 13431 | cat >>conftest.$ac_ext <<_ACEOF |
| 13432 | /* end confdefs.h. */ |
| 13433 | |
| 13434 | #ifdef HAVE_SYS_TYPES_H |
| 13435 | #include <sys/types.h> |
| 13436 | #endif |
| 13437 | |
| 13438 | |
| 13439 | typedef off_t ac__type_sizeof_; |
| 13440 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13441 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13442 | #include <stdio.h> |
| 13443 | #include <stdlib.h> |
| 13444 | int |
| 13445 | main () |
| 13446 | { |
| 13447 | |
| 13448 | FILE *f = fopen ("conftest.val", "w"); |
| 13449 | if (! f) |
| 13450 | return 1; |
| 13451 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 13452 | { |
| 13453 | long int i = longval (); |
| 13454 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13455 | return 1; |
| 13456 | fprintf (f, "%ld\n", i); |
| 13457 | } |
| 13458 | else |
| 13459 | { |
| 13460 | unsigned long int i = ulongval (); |
| 13461 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13462 | return 1; |
| 13463 | fprintf (f, "%lu\n", i); |
| 13464 | } |
| 13465 | return ferror (f) || fclose (f) != 0; |
| 13466 | |
| 13467 | ; |
| 13468 | return 0; |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13469 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13470 | _ACEOF |
| 13471 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13472 | if { (ac_try="$ac_link" |
| 13473 | case "(($ac_try" in |
| 13474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13475 | *) ac_try_echo=$ac_try;; |
| 13476 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13478 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13479 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13481 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13482 | { (case "(($ac_try" in |
| 13483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13484 | *) ac_try_echo=$ac_try;; |
| 13485 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13487 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13488 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13490 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13491 | ac_cv_sizeof_off_t=`cat conftest.val` |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13492 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13493 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13494 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13495 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13496 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13497 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13498 | if test "$ac_cv_type_off_t" = yes; then |
| 13499 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t) |
| 13500 | See \`config.log' for more details." >&5 |
| 13501 | echo "$as_me: error: cannot compute sizeof (off_t) |
| 13502 | See \`config.log' for more details." >&2;} |
| 13503 | { (exit 77); exit 77; }; } |
| 13504 | else |
| 13505 | ac_cv_sizeof_off_t=0 |
| 13506 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13507 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13508 | 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] | 13509 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13510 | rm -f conftest.val |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13511 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13512 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 13513 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13514 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13515 | |
| 13516 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13517 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13518 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13519 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13520 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13521 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13522 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13523 | { echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 13524 | 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] | 13525 | if test "$have_long_long" = yes |
| 13526 | then |
| 13527 | 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] | 13528 | "$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] | 13529 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13530 | cat >>confdefs.h <<\_ACEOF |
| 13531 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 13532 | _ACEOF |
| 13533 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13534 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 13535 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13536 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13537 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13538 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13539 | fi |
Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 13540 | else |
| 13541 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13542 | echo "${ECHO_T}no" >&6; } |
| 13543 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13544 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13545 | { echo "$as_me:$LINENO: checking for time_t" >&5 |
| 13546 | echo $ECHO_N "checking for time_t... $ECHO_C" >&6; } |
| 13547 | if test "${ac_cv_type_time_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13549 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13550 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13551 | /* confdefs.h. */ |
| 13552 | _ACEOF |
| 13553 | cat confdefs.h >>conftest.$ac_ext |
| 13554 | cat >>conftest.$ac_ext <<_ACEOF |
| 13555 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13556 | |
| 13557 | #ifdef HAVE_SYS_TYPES_H |
| 13558 | #include <sys/types.h> |
| 13559 | #endif |
| 13560 | #ifdef HAVE_TIME_H |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13561 | #include <time.h> |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13562 | #endif |
| 13563 | |
| 13564 | |
| 13565 | typedef time_t ac__type_new_; |
| 13566 | int |
| 13567 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13568 | { |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13569 | if ((ac__type_new_ *) 0) |
| 13570 | return 0; |
| 13571 | if (sizeof (ac__type_new_)) |
| 13572 | return 0; |
| 13573 | ; |
| 13574 | return 0; |
| 13575 | } |
| 13576 | _ACEOF |
| 13577 | rm -f conftest.$ac_objext |
| 13578 | if { (ac_try="$ac_compile" |
| 13579 | case "(($ac_try" in |
| 13580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13581 | *) ac_try_echo=$ac_try;; |
| 13582 | esac |
| 13583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13584 | (eval "$ac_compile") 2>conftest.er1 |
| 13585 | ac_status=$? |
| 13586 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13587 | rm -f conftest.er1 |
| 13588 | cat conftest.err >&5 |
| 13589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13590 | (exit $ac_status); } && { |
| 13591 | test -z "$ac_c_werror_flag" || |
| 13592 | test ! -s conftest.err |
| 13593 | } && test -s conftest.$ac_objext; then |
| 13594 | ac_cv_type_time_t=yes |
| 13595 | else |
| 13596 | echo "$as_me: failed program was:" >&5 |
| 13597 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13598 | |
| 13599 | ac_cv_type_time_t=no |
| 13600 | fi |
| 13601 | |
| 13602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13603 | fi |
| 13604 | { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5 |
| 13605 | echo "${ECHO_T}$ac_cv_type_time_t" >&6; } |
| 13606 | |
| 13607 | # The cast to long int works around a bug in the HP C Compiler |
| 13608 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13609 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13610 | # This bug is HP SR number 8606223364. |
| 13611 | { echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 13612 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; } |
| 13613 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 13614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13615 | else |
| 13616 | if test "$cross_compiling" = yes; then |
| 13617 | # Depending upon the size, compute the lo and hi bounds. |
| 13618 | cat >conftest.$ac_ext <<_ACEOF |
| 13619 | /* confdefs.h. */ |
| 13620 | _ACEOF |
| 13621 | cat confdefs.h >>conftest.$ac_ext |
| 13622 | cat >>conftest.$ac_ext <<_ACEOF |
| 13623 | /* end confdefs.h. */ |
| 13624 | |
| 13625 | #ifdef HAVE_SYS_TYPES_H |
| 13626 | #include <sys/types.h> |
| 13627 | #endif |
| 13628 | #ifdef HAVE_TIME_H |
| 13629 | #include <time.h> |
| 13630 | #endif |
| 13631 | |
| 13632 | |
| 13633 | typedef time_t ac__type_sizeof_; |
| 13634 | int |
| 13635 | main () |
| 13636 | { |
| 13637 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 13638 | test_array [0] = 0 |
| 13639 | |
| 13640 | ; |
| 13641 | return 0; |
| 13642 | } |
| 13643 | _ACEOF |
| 13644 | rm -f conftest.$ac_objext |
| 13645 | if { (ac_try="$ac_compile" |
| 13646 | case "(($ac_try" in |
| 13647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13648 | *) ac_try_echo=$ac_try;; |
| 13649 | esac |
| 13650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13651 | (eval "$ac_compile") 2>conftest.er1 |
| 13652 | ac_status=$? |
| 13653 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13654 | rm -f conftest.er1 |
| 13655 | cat conftest.err >&5 |
| 13656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13657 | (exit $ac_status); } && { |
| 13658 | test -z "$ac_c_werror_flag" || |
| 13659 | test ! -s conftest.err |
| 13660 | } && test -s conftest.$ac_objext; then |
| 13661 | ac_lo=0 ac_mid=0 |
| 13662 | while :; do |
| 13663 | cat >conftest.$ac_ext <<_ACEOF |
| 13664 | /* confdefs.h. */ |
| 13665 | _ACEOF |
| 13666 | cat confdefs.h >>conftest.$ac_ext |
| 13667 | cat >>conftest.$ac_ext <<_ACEOF |
| 13668 | /* end confdefs.h. */ |
| 13669 | |
| 13670 | #ifdef HAVE_SYS_TYPES_H |
| 13671 | #include <sys/types.h> |
| 13672 | #endif |
| 13673 | #ifdef HAVE_TIME_H |
| 13674 | #include <time.h> |
| 13675 | #endif |
| 13676 | |
| 13677 | |
| 13678 | typedef time_t ac__type_sizeof_; |
| 13679 | int |
| 13680 | main () |
| 13681 | { |
| 13682 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13683 | test_array [0] = 0 |
| 13684 | |
| 13685 | ; |
| 13686 | return 0; |
| 13687 | } |
| 13688 | _ACEOF |
| 13689 | rm -f conftest.$ac_objext |
| 13690 | if { (ac_try="$ac_compile" |
| 13691 | case "(($ac_try" in |
| 13692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13693 | *) ac_try_echo=$ac_try;; |
| 13694 | esac |
| 13695 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13696 | (eval "$ac_compile") 2>conftest.er1 |
| 13697 | ac_status=$? |
| 13698 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13699 | rm -f conftest.er1 |
| 13700 | cat conftest.err >&5 |
| 13701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13702 | (exit $ac_status); } && { |
| 13703 | test -z "$ac_c_werror_flag" || |
| 13704 | test ! -s conftest.err |
| 13705 | } && test -s conftest.$ac_objext; then |
| 13706 | ac_hi=$ac_mid; break |
| 13707 | else |
| 13708 | echo "$as_me: failed program was:" >&5 |
| 13709 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13710 | |
| 13711 | ac_lo=`expr $ac_mid + 1` |
| 13712 | if test $ac_lo -le $ac_mid; then |
| 13713 | ac_lo= ac_hi= |
| 13714 | break |
| 13715 | fi |
| 13716 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 13717 | fi |
| 13718 | |
| 13719 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13720 | done |
| 13721 | else |
| 13722 | echo "$as_me: failed program was:" >&5 |
| 13723 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13724 | |
| 13725 | cat >conftest.$ac_ext <<_ACEOF |
| 13726 | /* confdefs.h. */ |
| 13727 | _ACEOF |
| 13728 | cat confdefs.h >>conftest.$ac_ext |
| 13729 | cat >>conftest.$ac_ext <<_ACEOF |
| 13730 | /* end confdefs.h. */ |
| 13731 | |
| 13732 | #ifdef HAVE_SYS_TYPES_H |
| 13733 | #include <sys/types.h> |
| 13734 | #endif |
| 13735 | #ifdef HAVE_TIME_H |
| 13736 | #include <time.h> |
| 13737 | #endif |
| 13738 | |
| 13739 | |
| 13740 | typedef time_t ac__type_sizeof_; |
| 13741 | int |
| 13742 | main () |
| 13743 | { |
| 13744 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
| 13745 | test_array [0] = 0 |
| 13746 | |
| 13747 | ; |
| 13748 | return 0; |
| 13749 | } |
| 13750 | _ACEOF |
| 13751 | rm -f conftest.$ac_objext |
| 13752 | if { (ac_try="$ac_compile" |
| 13753 | case "(($ac_try" in |
| 13754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13755 | *) ac_try_echo=$ac_try;; |
| 13756 | esac |
| 13757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13758 | (eval "$ac_compile") 2>conftest.er1 |
| 13759 | ac_status=$? |
| 13760 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13761 | rm -f conftest.er1 |
| 13762 | cat conftest.err >&5 |
| 13763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13764 | (exit $ac_status); } && { |
| 13765 | test -z "$ac_c_werror_flag" || |
| 13766 | test ! -s conftest.err |
| 13767 | } && test -s conftest.$ac_objext; then |
| 13768 | ac_hi=-1 ac_mid=-1 |
| 13769 | while :; do |
| 13770 | cat >conftest.$ac_ext <<_ACEOF |
| 13771 | /* confdefs.h. */ |
| 13772 | _ACEOF |
| 13773 | cat confdefs.h >>conftest.$ac_ext |
| 13774 | cat >>conftest.$ac_ext <<_ACEOF |
| 13775 | /* end confdefs.h. */ |
| 13776 | |
| 13777 | #ifdef HAVE_SYS_TYPES_H |
| 13778 | #include <sys/types.h> |
| 13779 | #endif |
| 13780 | #ifdef HAVE_TIME_H |
| 13781 | #include <time.h> |
| 13782 | #endif |
| 13783 | |
| 13784 | |
| 13785 | typedef time_t ac__type_sizeof_; |
| 13786 | int |
| 13787 | main () |
| 13788 | { |
| 13789 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 13790 | test_array [0] = 0 |
| 13791 | |
| 13792 | ; |
| 13793 | return 0; |
| 13794 | } |
| 13795 | _ACEOF |
| 13796 | rm -f conftest.$ac_objext |
| 13797 | if { (ac_try="$ac_compile" |
| 13798 | case "(($ac_try" in |
| 13799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13800 | *) ac_try_echo=$ac_try;; |
| 13801 | esac |
| 13802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13803 | (eval "$ac_compile") 2>conftest.er1 |
| 13804 | ac_status=$? |
| 13805 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13806 | rm -f conftest.er1 |
| 13807 | cat conftest.err >&5 |
| 13808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13809 | (exit $ac_status); } && { |
| 13810 | test -z "$ac_c_werror_flag" || |
| 13811 | test ! -s conftest.err |
| 13812 | } && test -s conftest.$ac_objext; then |
| 13813 | ac_lo=$ac_mid; break |
| 13814 | else |
| 13815 | echo "$as_me: failed program was:" >&5 |
| 13816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13817 | |
| 13818 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13819 | if test $ac_mid -le $ac_hi; then |
| 13820 | ac_lo= ac_hi= |
| 13821 | break |
| 13822 | fi |
| 13823 | ac_mid=`expr 2 '*' $ac_mid` |
| 13824 | fi |
| 13825 | |
| 13826 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13827 | done |
| 13828 | else |
| 13829 | echo "$as_me: failed program was:" >&5 |
| 13830 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13831 | |
| 13832 | ac_lo= ac_hi= |
| 13833 | fi |
| 13834 | |
| 13835 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13836 | fi |
| 13837 | |
| 13838 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13839 | # Binary search between lo and hi bounds. |
| 13840 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13841 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13842 | cat >conftest.$ac_ext <<_ACEOF |
| 13843 | /* confdefs.h. */ |
| 13844 | _ACEOF |
| 13845 | cat confdefs.h >>conftest.$ac_ext |
| 13846 | cat >>conftest.$ac_ext <<_ACEOF |
| 13847 | /* end confdefs.h. */ |
| 13848 | |
| 13849 | #ifdef HAVE_SYS_TYPES_H |
| 13850 | #include <sys/types.h> |
| 13851 | #endif |
| 13852 | #ifdef HAVE_TIME_H |
| 13853 | #include <time.h> |
| 13854 | #endif |
| 13855 | |
| 13856 | |
| 13857 | typedef time_t ac__type_sizeof_; |
| 13858 | int |
| 13859 | main () |
| 13860 | { |
| 13861 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13862 | test_array [0] = 0 |
| 13863 | |
| 13864 | ; |
| 13865 | return 0; |
| 13866 | } |
| 13867 | _ACEOF |
| 13868 | rm -f conftest.$ac_objext |
| 13869 | if { (ac_try="$ac_compile" |
| 13870 | case "(($ac_try" in |
| 13871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13872 | *) ac_try_echo=$ac_try;; |
| 13873 | esac |
| 13874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13875 | (eval "$ac_compile") 2>conftest.er1 |
| 13876 | ac_status=$? |
| 13877 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13878 | rm -f conftest.er1 |
| 13879 | cat conftest.err >&5 |
| 13880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13881 | (exit $ac_status); } && { |
| 13882 | test -z "$ac_c_werror_flag" || |
| 13883 | test ! -s conftest.err |
| 13884 | } && test -s conftest.$ac_objext; then |
| 13885 | ac_hi=$ac_mid |
| 13886 | else |
| 13887 | echo "$as_me: failed program was:" >&5 |
| 13888 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13889 | |
| 13890 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 13891 | fi |
| 13892 | |
| 13893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13894 | done |
| 13895 | case $ac_lo in |
| 13896 | ?*) ac_cv_sizeof_time_t=$ac_lo;; |
| 13897 | '') if test "$ac_cv_type_time_t" = yes; then |
| 13898 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t) |
| 13899 | See \`config.log' for more details." >&5 |
| 13900 | echo "$as_me: error: cannot compute sizeof (time_t) |
| 13901 | See \`config.log' for more details." >&2;} |
| 13902 | { (exit 77); exit 77; }; } |
| 13903 | else |
| 13904 | ac_cv_sizeof_time_t=0 |
| 13905 | fi ;; |
| 13906 | esac |
| 13907 | else |
| 13908 | cat >conftest.$ac_ext <<_ACEOF |
| 13909 | /* confdefs.h. */ |
| 13910 | _ACEOF |
| 13911 | cat confdefs.h >>conftest.$ac_ext |
| 13912 | cat >>conftest.$ac_ext <<_ACEOF |
| 13913 | /* end confdefs.h. */ |
| 13914 | |
| 13915 | #ifdef HAVE_SYS_TYPES_H |
| 13916 | #include <sys/types.h> |
| 13917 | #endif |
| 13918 | #ifdef HAVE_TIME_H |
| 13919 | #include <time.h> |
| 13920 | #endif |
| 13921 | |
| 13922 | |
| 13923 | typedef time_t ac__type_sizeof_; |
| 13924 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13925 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13926 | #include <stdio.h> |
| 13927 | #include <stdlib.h> |
| 13928 | int |
| 13929 | main () |
| 13930 | { |
| 13931 | |
| 13932 | FILE *f = fopen ("conftest.val", "w"); |
| 13933 | if (! f) |
| 13934 | return 1; |
| 13935 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 13936 | { |
| 13937 | long int i = longval (); |
| 13938 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13939 | return 1; |
| 13940 | fprintf (f, "%ld\n", i); |
| 13941 | } |
| 13942 | else |
| 13943 | { |
| 13944 | unsigned long int i = ulongval (); |
| 13945 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13946 | return 1; |
| 13947 | fprintf (f, "%lu\n", i); |
| 13948 | } |
| 13949 | return ferror (f) || fclose (f) != 0; |
| 13950 | |
| 13951 | ; |
| 13952 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13953 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13954 | _ACEOF |
| 13955 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13956 | if { (ac_try="$ac_link" |
| 13957 | case "(($ac_try" in |
| 13958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13959 | *) ac_try_echo=$ac_try;; |
| 13960 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13962 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13963 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13965 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13966 | { (case "(($ac_try" in |
| 13967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13968 | *) ac_try_echo=$ac_try;; |
| 13969 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13971 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13972 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13974 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13975 | ac_cv_sizeof_time_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13976 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13977 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13978 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13979 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13980 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13981 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13982 | if test "$ac_cv_type_time_t" = yes; then |
| 13983 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t) |
| 13984 | See \`config.log' for more details." >&5 |
| 13985 | echo "$as_me: error: cannot compute sizeof (time_t) |
| 13986 | See \`config.log' for more details." >&2;} |
| 13987 | { (exit 77); exit 77; }; } |
| 13988 | else |
| 13989 | ac_cv_sizeof_time_t=0 |
| 13990 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13991 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13992 | 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] | 13993 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13994 | rm -f conftest.val |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13995 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13996 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 13997 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13998 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13999 | |
| 14000 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14001 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 14002 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14003 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 14004 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14005 | |
| 14006 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14007 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 14008 | ac_save_cc="$CC" |
| 14009 | if test "$ac_cv_kpthread" = "yes" |
| 14010 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 14011 | elif test "$ac_cv_kthread" = "yes" |
| 14012 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14013 | elif test "$ac_cv_pthread" = "yes" |
| 14014 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 14015 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14016 | { echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 14017 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14018 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14019 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14020 | /* confdefs.h. */ |
| 14021 | _ACEOF |
| 14022 | cat confdefs.h >>conftest.$ac_ext |
| 14023 | cat >>conftest.$ac_ext <<_ACEOF |
| 14024 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14025 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14026 | int |
| 14027 | main () |
| 14028 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 14029 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14030 | ; |
| 14031 | return 0; |
| 14032 | } |
| 14033 | _ACEOF |
| 14034 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14035 | if { (ac_try="$ac_compile" |
| 14036 | case "(($ac_try" in |
| 14037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14038 | *) ac_try_echo=$ac_try;; |
| 14039 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14041 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14042 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14043 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14044 | rm -f conftest.er1 |
| 14045 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14047 | (exit $ac_status); } && { |
| 14048 | test -z "$ac_c_werror_flag" || |
| 14049 | test ! -s conftest.err |
| 14050 | } && test -s conftest.$ac_objext; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14051 | have_pthread_t=yes |
| 14052 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14053 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14054 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14055 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14056 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14057 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14058 | |
| 14059 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14060 | { echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 14061 | echo "${ECHO_T}$have_pthread_t" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14062 | if test "$have_pthread_t" = yes ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14063 | { echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 14064 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; } |
| 14065 | if test "${ac_cv_type_pthread_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14067 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14068 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14069 | /* confdefs.h. */ |
| 14070 | _ACEOF |
| 14071 | cat confdefs.h >>conftest.$ac_ext |
| 14072 | cat >>conftest.$ac_ext <<_ACEOF |
| 14073 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14074 | |
| 14075 | #ifdef HAVE_PTHREAD_H |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14076 | #include <pthread.h> |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14077 | #endif |
| 14078 | |
| 14079 | |
| 14080 | typedef pthread_t ac__type_new_; |
| 14081 | int |
| 14082 | main () |
| 14083 | { |
| 14084 | if ((ac__type_new_ *) 0) |
| 14085 | return 0; |
| 14086 | if (sizeof (ac__type_new_)) |
| 14087 | return 0; |
| 14088 | ; |
| 14089 | return 0; |
| 14090 | } |
| 14091 | _ACEOF |
| 14092 | rm -f conftest.$ac_objext |
| 14093 | if { (ac_try="$ac_compile" |
| 14094 | case "(($ac_try" in |
| 14095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14096 | *) ac_try_echo=$ac_try;; |
| 14097 | esac |
| 14098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14099 | (eval "$ac_compile") 2>conftest.er1 |
| 14100 | ac_status=$? |
| 14101 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14102 | rm -f conftest.er1 |
| 14103 | cat conftest.err >&5 |
| 14104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14105 | (exit $ac_status); } && { |
| 14106 | test -z "$ac_c_werror_flag" || |
| 14107 | test ! -s conftest.err |
| 14108 | } && test -s conftest.$ac_objext; then |
| 14109 | ac_cv_type_pthread_t=yes |
| 14110 | else |
| 14111 | echo "$as_me: failed program was:" >&5 |
| 14112 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14113 | |
| 14114 | ac_cv_type_pthread_t=no |
| 14115 | fi |
| 14116 | |
| 14117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14118 | fi |
| 14119 | { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_t" >&5 |
| 14120 | echo "${ECHO_T}$ac_cv_type_pthread_t" >&6; } |
| 14121 | |
| 14122 | # The cast to long int works around a bug in the HP C Compiler |
| 14123 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14124 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14125 | # This bug is HP SR number 8606223364. |
| 14126 | { echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 14127 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; } |
| 14128 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 14129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14130 | else |
| 14131 | if test "$cross_compiling" = yes; then |
| 14132 | # Depending upon the size, compute the lo and hi bounds. |
| 14133 | cat >conftest.$ac_ext <<_ACEOF |
| 14134 | /* confdefs.h. */ |
| 14135 | _ACEOF |
| 14136 | cat confdefs.h >>conftest.$ac_ext |
| 14137 | cat >>conftest.$ac_ext <<_ACEOF |
| 14138 | /* end confdefs.h. */ |
| 14139 | |
| 14140 | #ifdef HAVE_PTHREAD_H |
| 14141 | #include <pthread.h> |
| 14142 | #endif |
| 14143 | |
| 14144 | |
| 14145 | typedef pthread_t ac__type_sizeof_; |
| 14146 | int |
| 14147 | main () |
| 14148 | { |
| 14149 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 14150 | test_array [0] = 0 |
| 14151 | |
| 14152 | ; |
| 14153 | return 0; |
| 14154 | } |
| 14155 | _ACEOF |
| 14156 | rm -f conftest.$ac_objext |
| 14157 | if { (ac_try="$ac_compile" |
| 14158 | case "(($ac_try" in |
| 14159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14160 | *) ac_try_echo=$ac_try;; |
| 14161 | esac |
| 14162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14163 | (eval "$ac_compile") 2>conftest.er1 |
| 14164 | ac_status=$? |
| 14165 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14166 | rm -f conftest.er1 |
| 14167 | cat conftest.err >&5 |
| 14168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14169 | (exit $ac_status); } && { |
| 14170 | test -z "$ac_c_werror_flag" || |
| 14171 | test ! -s conftest.err |
| 14172 | } && test -s conftest.$ac_objext; then |
| 14173 | ac_lo=0 ac_mid=0 |
| 14174 | while :; do |
| 14175 | cat >conftest.$ac_ext <<_ACEOF |
| 14176 | /* confdefs.h. */ |
| 14177 | _ACEOF |
| 14178 | cat confdefs.h >>conftest.$ac_ext |
| 14179 | cat >>conftest.$ac_ext <<_ACEOF |
| 14180 | /* end confdefs.h. */ |
| 14181 | |
| 14182 | #ifdef HAVE_PTHREAD_H |
| 14183 | #include <pthread.h> |
| 14184 | #endif |
| 14185 | |
| 14186 | |
| 14187 | typedef pthread_t ac__type_sizeof_; |
| 14188 | int |
| 14189 | main () |
| 14190 | { |
| 14191 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 14192 | test_array [0] = 0 |
| 14193 | |
| 14194 | ; |
| 14195 | return 0; |
| 14196 | } |
| 14197 | _ACEOF |
| 14198 | rm -f conftest.$ac_objext |
| 14199 | if { (ac_try="$ac_compile" |
| 14200 | case "(($ac_try" in |
| 14201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14202 | *) ac_try_echo=$ac_try;; |
| 14203 | esac |
| 14204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14205 | (eval "$ac_compile") 2>conftest.er1 |
| 14206 | ac_status=$? |
| 14207 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14208 | rm -f conftest.er1 |
| 14209 | cat conftest.err >&5 |
| 14210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14211 | (exit $ac_status); } && { |
| 14212 | test -z "$ac_c_werror_flag" || |
| 14213 | test ! -s conftest.err |
| 14214 | } && test -s conftest.$ac_objext; then |
| 14215 | ac_hi=$ac_mid; break |
| 14216 | else |
| 14217 | echo "$as_me: failed program was:" >&5 |
| 14218 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14219 | |
| 14220 | ac_lo=`expr $ac_mid + 1` |
| 14221 | if test $ac_lo -le $ac_mid; then |
| 14222 | ac_lo= ac_hi= |
| 14223 | break |
| 14224 | fi |
| 14225 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 14226 | fi |
| 14227 | |
| 14228 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14229 | done |
| 14230 | else |
| 14231 | echo "$as_me: failed program was:" >&5 |
| 14232 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14233 | |
| 14234 | cat >conftest.$ac_ext <<_ACEOF |
| 14235 | /* confdefs.h. */ |
| 14236 | _ACEOF |
| 14237 | cat confdefs.h >>conftest.$ac_ext |
| 14238 | cat >>conftest.$ac_ext <<_ACEOF |
| 14239 | /* end confdefs.h. */ |
| 14240 | |
| 14241 | #ifdef HAVE_PTHREAD_H |
| 14242 | #include <pthread.h> |
| 14243 | #endif |
| 14244 | |
| 14245 | |
| 14246 | typedef pthread_t ac__type_sizeof_; |
| 14247 | int |
| 14248 | main () |
| 14249 | { |
| 14250 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
| 14251 | test_array [0] = 0 |
| 14252 | |
| 14253 | ; |
| 14254 | return 0; |
| 14255 | } |
| 14256 | _ACEOF |
| 14257 | rm -f conftest.$ac_objext |
| 14258 | if { (ac_try="$ac_compile" |
| 14259 | case "(($ac_try" in |
| 14260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14261 | *) ac_try_echo=$ac_try;; |
| 14262 | esac |
| 14263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14264 | (eval "$ac_compile") 2>conftest.er1 |
| 14265 | ac_status=$? |
| 14266 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14267 | rm -f conftest.er1 |
| 14268 | cat conftest.err >&5 |
| 14269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14270 | (exit $ac_status); } && { |
| 14271 | test -z "$ac_c_werror_flag" || |
| 14272 | test ! -s conftest.err |
| 14273 | } && test -s conftest.$ac_objext; then |
| 14274 | ac_hi=-1 ac_mid=-1 |
| 14275 | while :; do |
| 14276 | cat >conftest.$ac_ext <<_ACEOF |
| 14277 | /* confdefs.h. */ |
| 14278 | _ACEOF |
| 14279 | cat confdefs.h >>conftest.$ac_ext |
| 14280 | cat >>conftest.$ac_ext <<_ACEOF |
| 14281 | /* end confdefs.h. */ |
| 14282 | |
| 14283 | #ifdef HAVE_PTHREAD_H |
| 14284 | #include <pthread.h> |
| 14285 | #endif |
| 14286 | |
| 14287 | |
| 14288 | typedef pthread_t ac__type_sizeof_; |
| 14289 | int |
| 14290 | main () |
| 14291 | { |
| 14292 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 14293 | test_array [0] = 0 |
| 14294 | |
| 14295 | ; |
| 14296 | return 0; |
| 14297 | } |
| 14298 | _ACEOF |
| 14299 | rm -f conftest.$ac_objext |
| 14300 | if { (ac_try="$ac_compile" |
| 14301 | case "(($ac_try" in |
| 14302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14303 | *) ac_try_echo=$ac_try;; |
| 14304 | esac |
| 14305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14306 | (eval "$ac_compile") 2>conftest.er1 |
| 14307 | ac_status=$? |
| 14308 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14309 | rm -f conftest.er1 |
| 14310 | cat conftest.err >&5 |
| 14311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14312 | (exit $ac_status); } && { |
| 14313 | test -z "$ac_c_werror_flag" || |
| 14314 | test ! -s conftest.err |
| 14315 | } && test -s conftest.$ac_objext; then |
| 14316 | ac_lo=$ac_mid; break |
| 14317 | else |
| 14318 | echo "$as_me: failed program was:" >&5 |
| 14319 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14320 | |
| 14321 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 14322 | if test $ac_mid -le $ac_hi; then |
| 14323 | ac_lo= ac_hi= |
| 14324 | break |
| 14325 | fi |
| 14326 | ac_mid=`expr 2 '*' $ac_mid` |
| 14327 | fi |
| 14328 | |
| 14329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14330 | done |
| 14331 | else |
| 14332 | echo "$as_me: failed program was:" >&5 |
| 14333 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14334 | |
| 14335 | ac_lo= ac_hi= |
| 14336 | fi |
| 14337 | |
| 14338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14339 | fi |
| 14340 | |
| 14341 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14342 | # Binary search between lo and hi bounds. |
| 14343 | while test "x$ac_lo" != "x$ac_hi"; do |
| 14344 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 14345 | cat >conftest.$ac_ext <<_ACEOF |
| 14346 | /* confdefs.h. */ |
| 14347 | _ACEOF |
| 14348 | cat confdefs.h >>conftest.$ac_ext |
| 14349 | cat >>conftest.$ac_ext <<_ACEOF |
| 14350 | /* end confdefs.h. */ |
| 14351 | |
| 14352 | #ifdef HAVE_PTHREAD_H |
| 14353 | #include <pthread.h> |
| 14354 | #endif |
| 14355 | |
| 14356 | |
| 14357 | typedef pthread_t ac__type_sizeof_; |
| 14358 | int |
| 14359 | main () |
| 14360 | { |
| 14361 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 14362 | test_array [0] = 0 |
| 14363 | |
| 14364 | ; |
| 14365 | return 0; |
| 14366 | } |
| 14367 | _ACEOF |
| 14368 | rm -f conftest.$ac_objext |
| 14369 | if { (ac_try="$ac_compile" |
| 14370 | case "(($ac_try" in |
| 14371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14372 | *) ac_try_echo=$ac_try;; |
| 14373 | esac |
| 14374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14375 | (eval "$ac_compile") 2>conftest.er1 |
| 14376 | ac_status=$? |
| 14377 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14378 | rm -f conftest.er1 |
| 14379 | cat conftest.err >&5 |
| 14380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14381 | (exit $ac_status); } && { |
| 14382 | test -z "$ac_c_werror_flag" || |
| 14383 | test ! -s conftest.err |
| 14384 | } && test -s conftest.$ac_objext; then |
| 14385 | ac_hi=$ac_mid |
| 14386 | else |
| 14387 | echo "$as_me: failed program was:" >&5 |
| 14388 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14389 | |
| 14390 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 14391 | fi |
| 14392 | |
| 14393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14394 | done |
| 14395 | case $ac_lo in |
| 14396 | ?*) ac_cv_sizeof_pthread_t=$ac_lo;; |
| 14397 | '') if test "$ac_cv_type_pthread_t" = yes; then |
| 14398 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t) |
| 14399 | See \`config.log' for more details." >&5 |
| 14400 | echo "$as_me: error: cannot compute sizeof (pthread_t) |
| 14401 | See \`config.log' for more details." >&2;} |
| 14402 | { (exit 77); exit 77; }; } |
| 14403 | else |
| 14404 | ac_cv_sizeof_pthread_t=0 |
| 14405 | fi ;; |
| 14406 | esac |
| 14407 | else |
| 14408 | cat >conftest.$ac_ext <<_ACEOF |
| 14409 | /* confdefs.h. */ |
| 14410 | _ACEOF |
| 14411 | cat confdefs.h >>conftest.$ac_ext |
| 14412 | cat >>conftest.$ac_ext <<_ACEOF |
| 14413 | /* end confdefs.h. */ |
| 14414 | |
| 14415 | #ifdef HAVE_PTHREAD_H |
| 14416 | #include <pthread.h> |
| 14417 | #endif |
| 14418 | |
| 14419 | |
| 14420 | typedef pthread_t ac__type_sizeof_; |
| 14421 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 14422 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 14423 | #include <stdio.h> |
| 14424 | #include <stdlib.h> |
| 14425 | int |
| 14426 | main () |
| 14427 | { |
| 14428 | |
| 14429 | FILE *f = fopen ("conftest.val", "w"); |
| 14430 | if (! f) |
| 14431 | return 1; |
| 14432 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 14433 | { |
| 14434 | long int i = longval (); |
| 14435 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14436 | return 1; |
| 14437 | fprintf (f, "%ld\n", i); |
| 14438 | } |
| 14439 | else |
| 14440 | { |
| 14441 | unsigned long int i = ulongval (); |
| 14442 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14443 | return 1; |
| 14444 | fprintf (f, "%lu\n", i); |
| 14445 | } |
| 14446 | return ferror (f) || fclose (f) != 0; |
| 14447 | |
| 14448 | ; |
| 14449 | return 0; |
| 14450 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14451 | _ACEOF |
| 14452 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14453 | if { (ac_try="$ac_link" |
| 14454 | case "(($ac_try" in |
| 14455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14456 | *) ac_try_echo=$ac_try;; |
| 14457 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14459 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14460 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14462 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14463 | { (case "(($ac_try" in |
| 14464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14465 | *) ac_try_echo=$ac_try;; |
| 14466 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14468 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14469 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14471 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14472 | ac_cv_sizeof_pthread_t=`cat conftest.val` |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14473 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14474 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14475 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14476 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14477 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14478 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14479 | if test "$ac_cv_type_pthread_t" = yes; then |
| 14480 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t) |
| 14481 | See \`config.log' for more details." >&5 |
| 14482 | echo "$as_me: error: cannot compute sizeof (pthread_t) |
| 14483 | See \`config.log' for more details." >&2;} |
| 14484 | { (exit 77); exit 77; }; } |
| 14485 | else |
| 14486 | ac_cv_sizeof_pthread_t=0 |
| 14487 | fi |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14488 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14489 | 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] | 14490 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14491 | rm -f conftest.val |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14492 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14493 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14494 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14495 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14496 | |
| 14497 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14498 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14499 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14500 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14501 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14502 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14503 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 14504 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14505 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14506 | { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 14507 | 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] | 14508 | # Check whether --enable-toolbox-glue was given. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14509 | if test "${enable_toolbox_glue+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14510 | enableval=$enable_toolbox_glue; |
| 14511 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14512 | |
| 14513 | |
| 14514 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14515 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14516 | case $ac_sys_system/$ac_sys_release in |
| 14517 | Darwin/*) |
| 14518 | enable_toolbox_glue="yes";; |
| 14519 | *) |
| 14520 | enable_toolbox_glue="no";; |
| 14521 | esac |
| 14522 | fi |
| 14523 | case "$enable_toolbox_glue" in |
| 14524 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14525 | extra_machdep_objs="Python/mactoolboxglue.o" |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14526 | extra_undefs="-u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14527 | |
| 14528 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14529 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14530 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14531 | |
| 14532 | ;; |
| 14533 | *) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14534 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 14535 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14536 | ;; |
| 14537 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14538 | { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 14539 | echo "${ECHO_T}$enable_toolbox_glue" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14540 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14541 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 14542 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14543 | case $ac_sys_system/$ac_sys_release in |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 14544 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 14545 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 14546 | ;; |
| 14547 | Darwin/*) |
| 14548 | OTHER_LIBTOOL_OPT="" |
| 14549 | ;; |
| 14550 | esac |
| 14551 | |
| 14552 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14553 | ARCH_RUN_32BIT="" |
| 14554 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 14555 | case $ac_sys_system/$ac_sys_release in |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 14556 | Darwin/[01567]\..*) |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14557 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
| 14558 | if test "${enable_universalsdk}"; then |
| 14559 | : |
| 14560 | else |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14561 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`" |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14562 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 14563 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14564 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 14565 | Darwin/*) |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame^] | 14566 | gcc_version=`gcc -dumpversion` |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 14567 | if test ${gcc_version} '<' 4.0 |
| 14568 | then |
| 14569 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 14570 | else |
| 14571 | LIBTOOL_CRUFT="" |
| 14572 | fi |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14573 | if test "$cross_compiling" = yes; then |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 14574 | ac_osx_32bit=yes |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14575 | else |
| 14576 | cat >conftest.$ac_ext <<_ACEOF |
| 14577 | /* confdefs.h. */ |
| 14578 | _ACEOF |
| 14579 | cat confdefs.h >>conftest.$ac_ext |
| 14580 | cat >>conftest.$ac_ext <<_ACEOF |
| 14581 | /* end confdefs.h. */ |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 14582 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14583 | #include <unistd.h> |
| 14584 | int main(int argc, char*argv[]) |
| 14585 | { |
| 14586 | if (sizeof(long) == 4) { |
| 14587 | return 0; |
| 14588 | } else { |
| 14589 | return 1; |
| 14590 | } |
Ronald Oussoren | 84ddd72 | 2009-09-08 07:17:10 +0000 | [diff] [blame] | 14591 | } |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 14592 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14593 | _ACEOF |
| 14594 | rm -f conftest$ac_exeext |
| 14595 | if { (ac_try="$ac_link" |
| 14596 | case "(($ac_try" in |
| 14597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14598 | *) ac_try_echo=$ac_try;; |
| 14599 | esac |
| 14600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14601 | (eval "$ac_link") 2>&5 |
| 14602 | ac_status=$? |
| 14603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14604 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14605 | { (case "(($ac_try" in |
| 14606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14607 | *) ac_try_echo=$ac_try;; |
| 14608 | esac |
| 14609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14610 | (eval "$ac_try") 2>&5 |
| 14611 | ac_status=$? |
| 14612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14613 | (exit $ac_status); }; }; then |
| 14614 | ac_osx_32bit=yes |
| 14615 | else |
| 14616 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14617 | echo "$as_me: failed program was:" >&5 |
| 14618 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14619 | |
| 14620 | ( exit $ac_status ) |
| 14621 | ac_osx_32bit=no |
| 14622 | fi |
| 14623 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 14624 | fi |
| 14625 | |
| 14626 | |
| 14627 | |
| 14628 | if test "${ac_osx_32bit}" = "yes"; then |
| 14629 | case `arch` in |
| 14630 | i386) |
| 14631 | MACOSX_DEFAULT_ARCH="i386" |
| 14632 | ;; |
| 14633 | ppc) |
| 14634 | MACOSX_DEFAULT_ARCH="ppc" |
| 14635 | ;; |
| 14636 | *) |
| 14637 | { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5 |
| 14638 | echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;} |
| 14639 | { (exit 1); exit 1; }; } |
| 14640 | ;; |
| 14641 | esac |
| 14642 | else |
| 14643 | case `arch` in |
| 14644 | i386) |
| 14645 | MACOSX_DEFAULT_ARCH="x86_64" |
| 14646 | ;; |
| 14647 | ppc) |
| 14648 | MACOSX_DEFAULT_ARCH="ppc64" |
| 14649 | ;; |
| 14650 | *) |
| 14651 | { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5 |
| 14652 | echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;} |
| 14653 | { (exit 1); exit 1; }; } |
| 14654 | ;; |
| 14655 | esac |
| 14656 | |
| 14657 | #ARCH_RUN_32BIT="true" |
| 14658 | fi |
| 14659 | |
| 14660 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 14661 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14662 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14663 | esac |
| 14664 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14665 | { echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 14666 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14667 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14668 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 14669 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14670 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14671 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14672 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14673 | cat >>confdefs.h <<\_ACEOF |
| 14674 | #define WITH_NEXT_FRAMEWORK 1 |
| 14675 | _ACEOF |
| 14676 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14677 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 14678 | echo "${ECHO_T}yes" >&6; } |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 14679 | if test $enable_shared = "yes" |
| 14680 | then |
Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 14681 | { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." >&5 |
| 14682 | 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] | 14683 | { (exit 1); exit 1; }; } |
| 14684 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14685 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14686 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14687 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14688 | fi |
| 14689 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14690 | { echo "$as_me:$LINENO: checking for dyld" >&5 |
| 14691 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14692 | case $ac_sys_system/$ac_sys_release in |
| 14693 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14694 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14695 | cat >>confdefs.h <<\_ACEOF |
| 14696 | #define WITH_DYLD 1 |
| 14697 | _ACEOF |
| 14698 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14699 | { echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 14700 | echo "${ECHO_T}always on for Darwin" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14701 | ;; |
| 14702 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14703 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14704 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14705 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14706 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14707 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14708 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14709 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14710 | |
| 14711 | |
| 14712 | |
| 14713 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14714 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 14715 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14716 | { echo "$as_me:$LINENO: checking SO" >&5 |
| 14717 | echo $ECHO_N "checking SO... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14718 | if test -z "$SO" |
| 14719 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14720 | case $ac_sys_system in |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 14721 | hp*|HP*) |
| 14722 | case `uname -m` in |
| 14723 | ia64) SO=.so;; |
| 14724 | *) SO=.sl;; |
| 14725 | esac |
| 14726 | ;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 14727 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14728 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14729 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 14730 | else |
| 14731 | # this might also be a termcap variable, see #610332 |
| 14732 | echo |
| 14733 | echo '=====================================================================' |
| 14734 | echo '+ +' |
| 14735 | echo '+ WARNING: You have set SO in your environment. +' |
| 14736 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 14737 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 14738 | echo '+ +' |
| 14739 | echo '=====================================================================' |
| 14740 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14741 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14742 | { echo "$as_me:$LINENO: result: $SO" >&5 |
| 14743 | echo "${ECHO_T}$SO" >&6; } |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 14744 | |
Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 14745 | |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 14746 | cat >>confdefs.h <<_ACEOF |
| 14747 | #define SHLIB_EXT "$SO" |
| 14748 | _ACEOF |
| 14749 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14750 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 14751 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14752 | # (Shared libraries in this instance are shared modules to be loaded into |
| 14753 | # Python, as opposed to building Python itself as a shared library.) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14754 | { echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 14755 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14756 | if test -z "$LDSHARED" |
| 14757 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14758 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14759 | AIX*) |
| 14760 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 14761 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14762 | ;; |
| 14763 | BeOS*) |
| 14764 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 14765 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14766 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 14767 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 14768 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14769 | SunOS/5*) |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 14770 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 14771 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 14772 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 14773 | fi ;; |
Thomas Heller | dc96a77 | 2008-04-04 10:07:55 +0000 | [diff] [blame] | 14774 | hp*|HP*) |
| 14775 | if test "$GCC" = "yes" |
| 14776 | then LDSHARED='$(CC) -shared' |
| 14777 | else LDSHARED='ld -b'; |
| 14778 | fi ;; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14779 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 14780 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14781 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 14782 | if test "$enable_framework" ; then |
| 14783 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14784 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 14785 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14786 | else |
| 14787 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 14788 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14789 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14790 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14791 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 14792 | if test "$enable_framework" ; then |
| 14793 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14794 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 14795 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14796 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 14797 | # No framework, use the Python app as bundle-loader |
| 14798 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 14799 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14800 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14801 | Darwin/*) |
| 14802 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 14803 | # This allows an extension to be used in any Python |
Ronald Oussoren | 38f1b98 | 2007-09-02 09:46:07 +0000 | [diff] [blame] | 14804 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 14805 | if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14806 | then |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14807 | if test "${enable_universalsdk}"; then |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 14808 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14809 | fi |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14810 | LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
| 14811 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14812 | else |
| 14813 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 14814 | if test "$enable_framework" ; then |
| 14815 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14816 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 14817 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14818 | else |
| 14819 | # No framework, use the Python app as bundle-loader |
| 14820 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 14821 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
| 14822 | fi |
| 14823 | fi |
| 14824 | ;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 14825 | Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 14826 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 14827 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 14828 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 14829 | then |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 14830 | LDSHARED="$CC -shared ${LDFLAGS}" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 14831 | else |
| 14832 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 14833 | fi;; |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 14834 | OpenBSD*) |
| 14835 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 14836 | then |
| 14837 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 14838 | else |
| 14839 | case `uname -r` in |
| 14840 | [01].* | 2.[0-7] | 2.[0-7].*) |
| 14841 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 14842 | ;; |
| 14843 | *) |
| 14844 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 14845 | ;; |
| 14846 | esac |
| 14847 | fi;; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 14848 | NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 14849 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14850 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 14851 | then LDSHARED='$(CC) -shared' |
| 14852 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14853 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 14854 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 14855 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14856 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14857 | *) LDSHARED="ld";; |
| 14858 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14859 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14860 | { echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 14861 | echo "${ECHO_T}$LDSHARED" >&6; } |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14862 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14863 | # 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] | 14864 | # library (module) -- this is only needed for a few systems |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14865 | { echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 14866 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14867 | if test -z "$CCSHARED" |
| 14868 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 14869 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 14870 | SunOS*) if test "$GCC" = yes; |
Martin v. Löwis | eb62357 | 2007-03-12 10:50:39 +0000 | [diff] [blame] | 14871 | then CCSHARED="-fPIC"; |
| 14872 | elif test `uname -p` = sparc; |
| 14873 | then CCSHARED="-xcode=pic32"; |
| 14874 | else CCSHARED="-Kpic"; |
| 14875 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 14876 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 14877 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 14878 | else CCSHARED="+z"; |
| 14879 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14880 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 14881 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 14882 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 14883 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14884 | if test "$GCC" = "yes" |
| 14885 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14886 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14887 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 14888 | SCO_SV*) |
| 14889 | if test "$GCC" = "yes" |
| 14890 | then CCSHARED="-fPIC" |
| 14891 | else CCSHARED="-Kpic -belf" |
| 14892 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14893 | IRIX*/6*) case $CC in |
| 14894 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 14895 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14896 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14897 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14898 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14899 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14900 | { echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 14901 | echo "${ECHO_T}$CCSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14902 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14903 | # the python executable -- this is only needed for a few systems |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14904 | { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 14905 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14906 | if test -z "$LINKFORSHARED" |
| 14907 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 14908 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14909 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 14910 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14911 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 14912 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 14913 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14914 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14915 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14916 | Darwin/*) |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14917 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, |
| 14918 | # which is |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14919 | # not used by the core itself but which needs to be in the core so |
| 14920 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 14921 | # -prebind is no longer used, because it actually seems to give a |
| 14922 | # slowdown in stead of a speedup, maybe due to the large number of |
| 14923 | # dynamic loads Python does. |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14924 | |
| 14925 | LINKFORSHARED="$extra_undefs" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14926 | if test "$enable_framework" |
| 14927 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14928 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14929 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14930 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 14931 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 14932 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 14933 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 14934 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 14935 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 14936 | then |
| 14937 | LINKFORSHARED="-Wl,--export-dynamic" |
| 14938 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14939 | SunOS/5*) case $CC in |
| 14940 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 14941 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 14942 | then |
| 14943 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14944 | fi;; |
| 14945 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 14946 | CYGWIN*) |
| 14947 | if test $enable_shared = "no" |
| 14948 | then |
| 14949 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 14950 | fi;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 14951 | QNX*) |
| 14952 | # -Wl,-E causes the symbols to be added to the dynamic |
| 14953 | # symbol table so that they can be found when a module |
| 14954 | # is loaded. -N 2048K causes the stack size to be set |
| 14955 | # to 2048 kilobytes so that the stack doesn't overflow |
| 14956 | # when running test_compile.py. |
| 14957 | LINKFORSHARED='-Wl,-E -N 2048K';; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14958 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14959 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14960 | { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 14961 | echo "${ECHO_T}$LINKFORSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14962 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14963 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 14964 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14965 | { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 14966 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 14967 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 14968 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 14969 | case $ac_sys_system in |
| 14970 | CYGWIN*) |
| 14971 | # Cygwin needs CCSHARED when building extension DLLs |
| 14972 | # but not when building the interpreter DLL. |
| 14973 | CFLAGSFORSHARED='';; |
| 14974 | *) |
| 14975 | CFLAGSFORSHARED='$(CCSHARED)' |
| 14976 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 14977 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14978 | { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 14979 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 14980 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14981 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 14982 | # library (with --enable-shared). |
| 14983 | # 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] | 14984 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 14985 | # if it is not required, since it creates a dependency of the shared library |
| 14986 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 14987 | # don't need to link LIBS explicitly. The default should be only changed |
| 14988 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14989 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14990 | { echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 14991 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14992 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14993 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 14994 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14995 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14996 | { echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 14997 | echo "${ECHO_T}$SHLIBS" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14998 | |
| 14999 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15000 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15001 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15002 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 15003 | 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] | 15004 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15006 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15007 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15008 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15009 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15010 | /* confdefs.h. */ |
| 15011 | _ACEOF |
| 15012 | cat confdefs.h >>conftest.$ac_ext |
| 15013 | cat >>conftest.$ac_ext <<_ACEOF |
| 15014 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15015 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15016 | /* Override any GCC internal prototype to avoid an error. |
| 15017 | Use char because int might match the return type of a GCC |
| 15018 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15019 | #ifdef __cplusplus |
| 15020 | extern "C" |
| 15021 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15022 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15023 | int |
| 15024 | main () |
| 15025 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15026 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15027 | ; |
| 15028 | return 0; |
| 15029 | } |
| 15030 | _ACEOF |
| 15031 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15032 | if { (ac_try="$ac_link" |
| 15033 | case "(($ac_try" in |
| 15034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15035 | *) ac_try_echo=$ac_try;; |
| 15036 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15038 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15039 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15040 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15041 | rm -f conftest.er1 |
| 15042 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15044 | (exit $ac_status); } && { |
| 15045 | test -z "$ac_c_werror_flag" || |
| 15046 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15047 | } && test -s conftest$ac_exeext && |
| 15048 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15049 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15050 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15051 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15052 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15053 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15054 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15055 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15056 | |
| 15057 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15058 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15059 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15060 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15061 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 15062 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 15063 | if test $ac_cv_lib_dl_dlopen = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15064 | cat >>confdefs.h <<_ACEOF |
| 15065 | #define HAVE_LIBDL 1 |
| 15066 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15067 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15068 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15069 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15070 | fi |
| 15071 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15072 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15073 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 15074 | 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] | 15075 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15076 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15077 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15078 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15079 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15080 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15081 | /* confdefs.h. */ |
| 15082 | _ACEOF |
| 15083 | cat confdefs.h >>conftest.$ac_ext |
| 15084 | cat >>conftest.$ac_ext <<_ACEOF |
| 15085 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15086 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15087 | /* Override any GCC internal prototype to avoid an error. |
| 15088 | Use char because int might match the return type of a GCC |
| 15089 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15090 | #ifdef __cplusplus |
| 15091 | extern "C" |
| 15092 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15093 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15094 | int |
| 15095 | main () |
| 15096 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15097 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15098 | ; |
| 15099 | return 0; |
| 15100 | } |
| 15101 | _ACEOF |
| 15102 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15103 | if { (ac_try="$ac_link" |
| 15104 | case "(($ac_try" in |
| 15105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15106 | *) ac_try_echo=$ac_try;; |
| 15107 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15109 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15110 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15111 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15112 | rm -f conftest.er1 |
| 15113 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15115 | (exit $ac_status); } && { |
| 15116 | test -z "$ac_c_werror_flag" || |
| 15117 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15118 | } && test -s conftest$ac_exeext && |
| 15119 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15120 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15121 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15122 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15123 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15124 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15125 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15126 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15127 | |
| 15128 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15129 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15130 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15131 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15132 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 15133 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
| 15134 | if test $ac_cv_lib_dld_shl_load = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15135 | cat >>confdefs.h <<_ACEOF |
| 15136 | #define HAVE_LIBDLD 1 |
| 15137 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15138 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15139 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15140 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15141 | fi |
| 15142 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15143 | |
Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 15144 | # only check for sem_init if thread support is requested |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15145 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15146 | { echo "$as_me:$LINENO: checking for library containing sem_init" >&5 |
| 15147 | 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] | 15148 | if test "${ac_cv_search_sem_init+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 15150 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 15151 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15152 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15153 | /* confdefs.h. */ |
| 15154 | _ACEOF |
| 15155 | cat confdefs.h >>conftest.$ac_ext |
| 15156 | cat >>conftest.$ac_ext <<_ACEOF |
| 15157 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15158 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15159 | /* Override any GCC internal prototype to avoid an error. |
| 15160 | Use char because int might match the return type of a GCC |
| 15161 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15162 | #ifdef __cplusplus |
| 15163 | extern "C" |
| 15164 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15165 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15166 | int |
| 15167 | main () |
| 15168 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15169 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15170 | ; |
| 15171 | return 0; |
| 15172 | } |
| 15173 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15174 | for ac_lib in '' pthread rt posix4; do |
| 15175 | if test -z "$ac_lib"; then |
| 15176 | ac_res="none required" |
| 15177 | else |
| 15178 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15179 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15180 | fi |
| 15181 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15182 | if { (ac_try="$ac_link" |
| 15183 | case "(($ac_try" in |
| 15184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15185 | *) ac_try_echo=$ac_try;; |
| 15186 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15188 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15189 | ac_status=$? |
| 15190 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15191 | rm -f conftest.er1 |
| 15192 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15194 | (exit $ac_status); } && { |
| 15195 | test -z "$ac_c_werror_flag" || |
| 15196 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15197 | } && test -s conftest$ac_exeext && |
| 15198 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15199 | ac_cv_search_sem_init=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 15200 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15201 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15202 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15203 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15204 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 15205 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15206 | |
| 15207 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 15208 | conftest$ac_exeext |
| 15209 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 15210 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15211 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15212 | done |
| 15213 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 15214 | : |
| 15215 | else |
| 15216 | ac_cv_search_sem_init=no |
| 15217 | fi |
| 15218 | rm conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 15219 | LIBS=$ac_func_search_save_LIBS |
| 15220 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15221 | { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 15222 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15223 | ac_res=$ac_cv_search_sem_init |
| 15224 | if test "$ac_res" != no; then |
| 15225 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 15226 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 15227 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 15228 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15229 | # posix4 on Solaris 2.6 |
| 15230 | # pthread (first!) on Linux |
| 15231 | fi |
| 15232 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15233 | # check if we need libintl for locale functions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15234 | { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| 15235 | 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] | 15236 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15238 | else |
| 15239 | ac_check_lib_save_LIBS=$LIBS |
| 15240 | LIBS="-lintl $LIBS" |
| 15241 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15242 | /* confdefs.h. */ |
| 15243 | _ACEOF |
| 15244 | cat confdefs.h >>conftest.$ac_ext |
| 15245 | cat >>conftest.$ac_ext <<_ACEOF |
| 15246 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15247 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15248 | /* Override any GCC internal prototype to avoid an error. |
| 15249 | Use char because int might match the return type of a GCC |
| 15250 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15251 | #ifdef __cplusplus |
| 15252 | extern "C" |
| 15253 | #endif |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15254 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15255 | int |
| 15256 | main () |
| 15257 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15258 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15259 | ; |
| 15260 | return 0; |
| 15261 | } |
| 15262 | _ACEOF |
| 15263 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15264 | if { (ac_try="$ac_link" |
| 15265 | case "(($ac_try" in |
| 15266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15267 | *) ac_try_echo=$ac_try;; |
| 15268 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15270 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15271 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15272 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15273 | rm -f conftest.er1 |
| 15274 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15276 | (exit $ac_status); } && { |
| 15277 | test -z "$ac_c_werror_flag" || |
| 15278 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15279 | } && test -s conftest$ac_exeext && |
| 15280 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15281 | ac_cv_lib_intl_textdomain=yes |
| 15282 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15283 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15284 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15285 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15286 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15287 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15288 | |
| 15289 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15290 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15291 | LIBS=$ac_check_lib_save_LIBS |
| 15292 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15293 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| 15294 | echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; } |
| 15295 | if test $ac_cv_lib_intl_textdomain = yes; then |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15296 | |
| 15297 | cat >>confdefs.h <<\_ACEOF |
| 15298 | #define WITH_LIBINTL 1 |
| 15299 | _ACEOF |
| 15300 | |
| 15301 | fi |
| 15302 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15303 | |
| 15304 | # checks for system dependent C++ extensions support |
| 15305 | case "$ac_sys_system" in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15306 | AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 15307 | 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] | 15308 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15309 | /* confdefs.h. */ |
| 15310 | _ACEOF |
| 15311 | cat confdefs.h >>conftest.$ac_ext |
| 15312 | cat >>conftest.$ac_ext <<_ACEOF |
| 15313 | /* end confdefs.h. */ |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15314 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15315 | int |
| 15316 | main () |
| 15317 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15318 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15319 | ; |
| 15320 | return 0; |
| 15321 | } |
| 15322 | _ACEOF |
| 15323 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15324 | if { (ac_try="$ac_link" |
| 15325 | case "(($ac_try" in |
| 15326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15327 | *) ac_try_echo=$ac_try;; |
| 15328 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15330 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15331 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15332 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15333 | rm -f conftest.er1 |
| 15334 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15336 | (exit $ac_status); } && { |
| 15337 | test -z "$ac_c_werror_flag" || |
| 15338 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15339 | } && test -s conftest$ac_exeext && |
| 15340 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15341 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15342 | cat >>confdefs.h <<\_ACEOF |
| 15343 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 15344 | _ACEOF |
| 15345 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15346 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15347 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15348 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15349 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15350 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15351 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15352 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15353 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15354 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15355 | |
| 15356 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15357 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15358 | *) ;; |
| 15359 | esac |
| 15360 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 15361 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15362 | # BeOS' sockets are stashed in libnet. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15363 | { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 15364 | 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] | 15365 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15367 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15368 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15369 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15370 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15371 | /* confdefs.h. */ |
| 15372 | _ACEOF |
| 15373 | cat confdefs.h >>conftest.$ac_ext |
| 15374 | cat >>conftest.$ac_ext <<_ACEOF |
| 15375 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15376 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15377 | /* Override any GCC internal prototype to avoid an error. |
| 15378 | Use char because int might match the return type of a GCC |
| 15379 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15380 | #ifdef __cplusplus |
| 15381 | extern "C" |
| 15382 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15383 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15384 | int |
| 15385 | main () |
| 15386 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15387 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15388 | ; |
| 15389 | return 0; |
| 15390 | } |
| 15391 | _ACEOF |
| 15392 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15393 | if { (ac_try="$ac_link" |
| 15394 | case "(($ac_try" in |
| 15395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15396 | *) ac_try_echo=$ac_try;; |
| 15397 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15399 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15400 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15401 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15402 | rm -f conftest.er1 |
| 15403 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15405 | (exit $ac_status); } && { |
| 15406 | test -z "$ac_c_werror_flag" || |
| 15407 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15408 | } && test -s conftest$ac_exeext && |
| 15409 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15410 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15411 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15412 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15413 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15414 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15415 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15416 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15417 | |
| 15418 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15419 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15420 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15421 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15422 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 15423 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; } |
| 15424 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15425 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15426 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 15427 | # SVR4 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15428 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 15429 | 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] | 15430 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15432 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15433 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15434 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15435 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15436 | /* confdefs.h. */ |
| 15437 | _ACEOF |
| 15438 | cat confdefs.h >>conftest.$ac_ext |
| 15439 | cat >>conftest.$ac_ext <<_ACEOF |
| 15440 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15441 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15442 | /* Override any GCC internal prototype to avoid an error. |
| 15443 | Use char because int might match the return type of a GCC |
| 15444 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15445 | #ifdef __cplusplus |
| 15446 | extern "C" |
| 15447 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15448 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15449 | int |
| 15450 | main () |
| 15451 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15452 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15453 | ; |
| 15454 | return 0; |
| 15455 | } |
| 15456 | _ACEOF |
| 15457 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15458 | if { (ac_try="$ac_link" |
| 15459 | case "(($ac_try" in |
| 15460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15461 | *) ac_try_echo=$ac_try;; |
| 15462 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15463 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15464 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15465 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15466 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15467 | rm -f conftest.er1 |
| 15468 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15470 | (exit $ac_status); } && { |
| 15471 | test -z "$ac_c_werror_flag" || |
| 15472 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15473 | } && test -s conftest$ac_exeext && |
| 15474 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15475 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15476 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15477 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15478 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15479 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15480 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15481 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15482 | |
| 15483 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15484 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15485 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15486 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15487 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 15488 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } |
| 15489 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15490 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15491 | fi |
| 15492 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 15493 | |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 15494 | case "$ac_sys_system" in |
| 15495 | BeOS*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15496 | { echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 15497 | 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] | 15498 | if test "${ac_cv_lib_net_socket+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15500 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15501 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15502 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15503 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15504 | /* confdefs.h. */ |
| 15505 | _ACEOF |
| 15506 | cat confdefs.h >>conftest.$ac_ext |
| 15507 | cat >>conftest.$ac_ext <<_ACEOF |
| 15508 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15509 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15510 | /* Override any GCC internal prototype to avoid an error. |
| 15511 | Use char because int might match the return type of a GCC |
| 15512 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15513 | #ifdef __cplusplus |
| 15514 | extern "C" |
| 15515 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15516 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15517 | int |
| 15518 | main () |
| 15519 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15520 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15521 | ; |
| 15522 | return 0; |
| 15523 | } |
| 15524 | _ACEOF |
| 15525 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15526 | if { (ac_try="$ac_link" |
| 15527 | case "(($ac_try" in |
| 15528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15529 | *) ac_try_echo=$ac_try;; |
| 15530 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15532 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15533 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15534 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15535 | rm -f conftest.er1 |
| 15536 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15538 | (exit $ac_status); } && { |
| 15539 | test -z "$ac_c_werror_flag" || |
| 15540 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15541 | } && test -s conftest$ac_exeext && |
| 15542 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15543 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15544 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15545 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15546 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15547 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15548 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15549 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15550 | |
| 15551 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15552 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15553 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15554 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15555 | { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 15556 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; } |
| 15557 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15558 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15559 | fi |
| 15560 | # BeOS |
| 15561 | ;; |
| 15562 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 15563 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15564 | { echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 15565 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15566 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15567 | # Check whether --with-libs was given. |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 15568 | if test "${with_libs+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15569 | withval=$with_libs; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15570 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 15571 | echo "${ECHO_T}$withval" >&6; } |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 15572 | LIBS="$withval $LIBS" |
| 15573 | |
| 15574 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15575 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15576 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15577 | fi |
| 15578 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15579 | |
Benjamin Peterson | 2c19674 | 2009-12-31 03:17:18 +0000 | [diff] [blame] | 15580 | # Check for use of the system expat library |
| 15581 | { echo "$as_me:$LINENO: checking for --with-system-expat" >&5 |
| 15582 | echo $ECHO_N "checking for --with-system-expat... $ECHO_C" >&6; } |
| 15583 | |
| 15584 | # Check whether --with-system_expat was given. |
| 15585 | if test "${with_system_expat+set}" = set; then |
| 15586 | withval=$with_system_expat; |
| 15587 | fi |
| 15588 | |
| 15589 | |
| 15590 | { echo "$as_me:$LINENO: result: $with_system_expat" >&5 |
| 15591 | echo "${ECHO_T}$with_system_expat" >&6; } |
| 15592 | |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15593 | # Check for use of the system libffi library |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15594 | { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5 |
| 15595 | echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; } |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15596 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15597 | # Check whether --with-system_ffi was given. |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15598 | if test "${with_system_ffi+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15599 | withval=$with_system_ffi; |
| 15600 | fi |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15601 | |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15602 | |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 15603 | if test "$with_system_ffi" = "yes"; then |
| 15604 | if test -n "$ac_tool_prefix"; then |
| 15605 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 15606 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 15607 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 15608 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 15609 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
| 15610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15611 | else |
| 15612 | case $PKG_CONFIG in |
| 15613 | [\\/]* | ?:[\\/]*) |
| 15614 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 15615 | ;; |
| 15616 | *) |
| 15617 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15618 | for as_dir in $PATH |
| 15619 | do |
| 15620 | IFS=$as_save_IFS |
| 15621 | test -z "$as_dir" && as_dir=. |
| 15622 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15623 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 15624 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 15625 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15626 | break 2 |
| 15627 | fi |
| 15628 | done |
| 15629 | done |
| 15630 | IFS=$as_save_IFS |
| 15631 | |
| 15632 | ;; |
| 15633 | esac |
| 15634 | fi |
| 15635 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 15636 | if test -n "$PKG_CONFIG"; then |
| 15637 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| 15638 | echo "${ECHO_T}$PKG_CONFIG" >&6; } |
| 15639 | else |
| 15640 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15641 | echo "${ECHO_T}no" >&6; } |
| 15642 | fi |
| 15643 | |
| 15644 | |
| 15645 | fi |
| 15646 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 15647 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 15648 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 15649 | set dummy pkg-config; ac_word=$2 |
| 15650 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 15651 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 15652 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then |
| 15653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15654 | else |
| 15655 | case $ac_pt_PKG_CONFIG in |
| 15656 | [\\/]* | ?:[\\/]*) |
| 15657 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 15658 | ;; |
| 15659 | *) |
| 15660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15661 | for as_dir in $PATH |
| 15662 | do |
| 15663 | IFS=$as_save_IFS |
| 15664 | test -z "$as_dir" && as_dir=. |
| 15665 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15666 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 15667 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 15668 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15669 | break 2 |
| 15670 | fi |
| 15671 | done |
| 15672 | done |
| 15673 | IFS=$as_save_IFS |
| 15674 | |
| 15675 | ;; |
| 15676 | esac |
| 15677 | fi |
| 15678 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 15679 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 15680 | { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 |
| 15681 | echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } |
| 15682 | else |
| 15683 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15684 | echo "${ECHO_T}no" >&6; } |
| 15685 | fi |
| 15686 | |
| 15687 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 15688 | PKG_CONFIG="" |
| 15689 | else |
| 15690 | case $cross_compiling:$ac_tool_warned in |
| 15691 | yes:) |
| 15692 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 15693 | whose name does not start with the host triplet. If you think this |
| 15694 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 15695 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 15696 | whose name does not start with the host triplet. If you think this |
| 15697 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 15698 | ac_tool_warned=yes ;; |
| 15699 | esac |
| 15700 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 15701 | fi |
| 15702 | else |
| 15703 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 15704 | fi |
| 15705 | |
| 15706 | LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" |
| 15707 | else |
| 15708 | LIBFFI_INCLUDEDIR="" |
| 15709 | fi |
| 15710 | |
| 15711 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15712 | { echo "$as_me:$LINENO: result: $with_system_ffi" >&5 |
| 15713 | echo "${ECHO_T}$with_system_ffi" >&6; } |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15714 | |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15715 | # Check for --with-dbmliborder |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15716 | { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5 |
| 15717 | echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; } |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15718 | |
| 15719 | # Check whether --with-dbmliborder was given. |
| 15720 | if test "${with_dbmliborder+set}" = set; then |
| 15721 | withval=$with_dbmliborder; |
| 15722 | if test x$with_dbmliborder = xyes |
| 15723 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15724 | { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5 |
| 15725 | echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;} |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15726 | { (exit 1); exit 1; }; } |
| 15727 | else |
| 15728 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do |
| 15729 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb |
| 15730 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15731 | { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5 |
| 15732 | echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;} |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15733 | { (exit 1); exit 1; }; } |
| 15734 | fi |
| 15735 | done |
| 15736 | fi |
| 15737 | fi |
| 15738 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15739 | { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5 |
| 15740 | echo "${ECHO_T}$with_dbmliborder" >&6; } |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15741 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 15742 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15743 | |
| 15744 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15745 | { echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 15746 | 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] | 15747 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15748 | # Check whether --with-signal-module was given. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15749 | if test "${with_signal_module+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15750 | withval=$with_signal_module; |
| 15751 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15752 | |
| 15753 | |
| 15754 | if test -z "$with_signal_module" |
| 15755 | then with_signal_module="yes" |
| 15756 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15757 | { echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 15758 | echo "${ECHO_T}$with_signal_module" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15759 | |
| 15760 | if test "${with_signal_module}" = "yes"; then |
| 15761 | USE_SIGNAL_MODULE="" |
| 15762 | SIGNAL_OBJS="" |
| 15763 | else |
| 15764 | USE_SIGNAL_MODULE="#" |
| 15765 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 15766 | fi |
| 15767 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 15768 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 15769 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15770 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 15771 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15772 | { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 15773 | 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] | 15774 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15775 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15776 | # Check whether --with-dec-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15777 | if test "${with_dec_threads+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15778 | withval=$with_dec_threads; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15779 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 15780 | echo "${ECHO_T}$withval" >&6; } |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15781 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15782 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15783 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15784 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15785 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15786 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15787 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15788 | fi |
| 15789 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15790 | |
| 15791 | # Templates for things AC_DEFINEd more than once. |
| 15792 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15793 | |
| 15794 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15795 | |
| 15796 | |
| 15797 | |
| 15798 | |
| 15799 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15800 | { echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 15801 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15802 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15803 | # Check whether --with-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15804 | if test "${with_threads+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15805 | withval=$with_threads; |
| 15806 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15807 | |
| 15808 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15809 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15810 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15811 | # Check whether --with-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15812 | if test "${with_thread+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15813 | withval=$with_thread; with_threads=$with_thread |
| 15814 | fi |
| 15815 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15816 | |
| 15817 | if test -z "$with_threads" |
| 15818 | then with_threads="yes" |
| 15819 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15820 | { echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 15821 | echo "${ECHO_T}$with_threads" >&6; } |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15822 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15823 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15824 | if test "$with_threads" = "no" |
| 15825 | then |
| 15826 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15827 | elif test "$ac_cv_pthread_is_default" = yes |
| 15828 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15829 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15830 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15831 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15832 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15833 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15834 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15835 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15836 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15837 | |
| 15838 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15839 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15840 | elif test "$ac_cv_kpthread" = "yes" |
| 15841 | then |
| 15842 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15843 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 15844 | CXX="$CXX -Kpthread" |
| 15845 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15846 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 15847 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15848 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 15849 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15850 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15851 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 15852 | elif test "$ac_cv_kthread" = "yes" |
| 15853 | then |
| 15854 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15855 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 15856 | CXX="$CXX -Kthread" |
| 15857 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 15858 | cat >>confdefs.h <<\_ACEOF |
| 15859 | #define WITH_THREAD 1 |
| 15860 | _ACEOF |
| 15861 | |
| 15862 | posix_threads=yes |
| 15863 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15864 | elif test "$ac_cv_pthread" = "yes" |
| 15865 | then |
| 15866 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15867 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 15868 | CXX="$CXX -pthread" |
| 15869 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15870 | cat >>confdefs.h <<\_ACEOF |
| 15871 | #define WITH_THREAD 1 |
| 15872 | _ACEOF |
| 15873 | |
| 15874 | posix_threads=yes |
| 15875 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15876 | else |
| 15877 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 15878 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 15879 | fi |
| 15880 | if test ! -z "$withval" -a -d "$withval" |
| 15881 | then LDFLAGS="$LDFLAGS -L$withval" |
| 15882 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15883 | |
| 15884 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 15885 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 15886 | # (e.g. gnu pth with pthread emulation) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15887 | { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 15888 | 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] | 15889 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15890 | /* confdefs.h. */ |
| 15891 | _ACEOF |
| 15892 | cat confdefs.h >>conftest.$ac_ext |
| 15893 | cat >>conftest.$ac_ext <<_ACEOF |
| 15894 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 15895 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15896 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 15897 | #ifdef _POSIX_THREADS |
| 15898 | yes |
| 15899 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15900 | |
| 15901 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15902 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15903 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15904 | unistd_defines_pthreads=yes |
| 15905 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15906 | unistd_defines_pthreads=no |
| 15907 | fi |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame^] | 15908 | rm -f -r conftest* |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15909 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15910 | { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 15911 | echo "${ECHO_T}$unistd_defines_pthreads" >&6; } |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15912 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15913 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 15914 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15915 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 15916 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15917 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15918 | { echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 15919 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15920 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15922 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15923 | { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 15924 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15925 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15926 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15927 | { echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 15928 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15929 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15930 | /* confdefs.h. */ |
| 15931 | _ACEOF |
| 15932 | cat confdefs.h >>conftest.$ac_ext |
| 15933 | cat >>conftest.$ac_ext <<_ACEOF |
| 15934 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15935 | $ac_includes_default |
| 15936 | #include <cthreads.h> |
| 15937 | _ACEOF |
| 15938 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15939 | if { (ac_try="$ac_compile" |
| 15940 | case "(($ac_try" in |
| 15941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15942 | *) ac_try_echo=$ac_try;; |
| 15943 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15944 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15945 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15946 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15947 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15948 | rm -f conftest.er1 |
| 15949 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15951 | (exit $ac_status); } && { |
| 15952 | test -z "$ac_c_werror_flag" || |
| 15953 | test ! -s conftest.err |
| 15954 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15955 | ac_header_compiler=yes |
| 15956 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15957 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15958 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15959 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15960 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15961 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15962 | |
| 15963 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15964 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15965 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15966 | |
| 15967 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15968 | { echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 15969 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15970 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15971 | /* confdefs.h. */ |
| 15972 | _ACEOF |
| 15973 | cat confdefs.h >>conftest.$ac_ext |
| 15974 | cat >>conftest.$ac_ext <<_ACEOF |
| 15975 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15976 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15977 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15978 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15979 | case "(($ac_try" in |
| 15980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15981 | *) ac_try_echo=$ac_try;; |
| 15982 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15984 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15985 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15986 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15987 | rm -f conftest.er1 |
| 15988 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15990 | (exit $ac_status); } >/dev/null && { |
| 15991 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 15992 | test ! -s conftest.err |
| 15993 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15994 | ac_header_preproc=yes |
| 15995 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15996 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15997 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15998 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15999 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16000 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16001 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16002 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16003 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16004 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16005 | |
| 16006 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16007 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16008 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16009 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16010 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16011 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5 |
| 16012 | 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] | 16013 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16014 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16015 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16016 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 16017 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 16018 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 16019 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 16020 | { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5 |
| 16021 | echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;} |
| 16022 | { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16023 | echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16024 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 16025 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 16026 | { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5 |
| 16027 | 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] | 16028 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 16029 | ## -------------------------------------- ## |
| 16030 | ## Report this to http://bugs.python.org/ ## |
| 16031 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16032 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16033 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16034 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16035 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16036 | { echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 16037 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16038 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16040 | else |
| 16041 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16042 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16043 | { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 16044 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16045 | |
| 16046 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16047 | if test $ac_cv_header_cthreads_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16048 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16049 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16050 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16051 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16052 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16053 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16054 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16055 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16056 | |
| 16057 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16058 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16059 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16060 | |
| 16061 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16062 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16063 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16064 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16065 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16066 | { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 16067 | 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] | 16068 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16070 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16071 | { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 16072 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16073 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16074 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16075 | { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 16076 | 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] | 16077 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16078 | /* confdefs.h. */ |
| 16079 | _ACEOF |
| 16080 | cat confdefs.h >>conftest.$ac_ext |
| 16081 | cat >>conftest.$ac_ext <<_ACEOF |
| 16082 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16083 | $ac_includes_default |
| 16084 | #include <mach/cthreads.h> |
| 16085 | _ACEOF |
| 16086 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16087 | if { (ac_try="$ac_compile" |
| 16088 | case "(($ac_try" in |
| 16089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16090 | *) ac_try_echo=$ac_try;; |
| 16091 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16093 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16094 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16095 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16096 | rm -f conftest.er1 |
| 16097 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16099 | (exit $ac_status); } && { |
| 16100 | test -z "$ac_c_werror_flag" || |
| 16101 | test ! -s conftest.err |
| 16102 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16103 | ac_header_compiler=yes |
| 16104 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16105 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16107 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16108 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16109 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16110 | |
| 16111 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16112 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16113 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16114 | |
| 16115 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16116 | { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 16117 | 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] | 16118 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16119 | /* confdefs.h. */ |
| 16120 | _ACEOF |
| 16121 | cat confdefs.h >>conftest.$ac_ext |
| 16122 | cat >>conftest.$ac_ext <<_ACEOF |
| 16123 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16124 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16125 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16126 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16127 | case "(($ac_try" in |
| 16128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16129 | *) ac_try_echo=$ac_try;; |
| 16130 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16132 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16133 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16134 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16135 | rm -f conftest.er1 |
| 16136 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16138 | (exit $ac_status); } >/dev/null && { |
| 16139 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16140 | test ! -s conftest.err |
| 16141 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16142 | ac_header_preproc=yes |
| 16143 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16144 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16145 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16146 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16147 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16148 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16149 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16150 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16151 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16152 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16153 | |
| 16154 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16155 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16156 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16157 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16158 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16159 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5 |
| 16160 | 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] | 16161 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16162 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16163 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16164 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 16165 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 16166 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 16167 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 16168 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5 |
| 16169 | echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;} |
| 16170 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16171 | echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16172 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 16173 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 16174 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5 |
| 16175 | 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] | 16176 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 16177 | ## -------------------------------------- ## |
| 16178 | ## Report this to http://bugs.python.org/ ## |
| 16179 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16180 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16181 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16182 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16183 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16184 | { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 16185 | 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] | 16186 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16187 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16188 | else |
| 16189 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16190 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16191 | { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 16192 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16193 | |
| 16194 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16195 | if test $ac_cv_header_mach_cthreads_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16196 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16197 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16198 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16199 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16200 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16201 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16202 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16203 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16204 | |
| 16205 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16206 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16207 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16208 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16209 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16210 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16211 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16212 | { echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 16213 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16214 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16215 | # Check whether --with-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16216 | if test "${with_pth+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16217 | withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5 |
| 16218 | echo "${ECHO_T}$withval" >&6; } |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 16219 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16220 | #define WITH_THREAD 1 |
| 16221 | _ACEOF |
| 16222 | |
| 16223 | |
| 16224 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16225 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16226 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16227 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 16228 | LIBS="-lpth $LIBS" |
| 16229 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16230 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16231 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16232 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16233 | |
| 16234 | # Just looking for pthread_create in libpthread is not enough: |
| 16235 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 16236 | # So we really have to include pthread.h, and then link. |
| 16237 | _libs=$LIBS |
| 16238 | LIBS="$LIBS -lpthread" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16239 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 16240 | 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] | 16241 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16242 | /* confdefs.h. */ |
| 16243 | _ACEOF |
| 16244 | cat confdefs.h >>conftest.$ac_ext |
| 16245 | cat >>conftest.$ac_ext <<_ACEOF |
| 16246 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16247 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16248 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16249 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16250 | int |
| 16251 | main () |
| 16252 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16253 | |
| 16254 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16255 | ; |
| 16256 | return 0; |
| 16257 | } |
| 16258 | _ACEOF |
| 16259 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16260 | if { (ac_try="$ac_link" |
| 16261 | case "(($ac_try" in |
| 16262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16263 | *) ac_try_echo=$ac_try;; |
| 16264 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16265 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16266 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16267 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16268 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16269 | rm -f conftest.er1 |
| 16270 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16272 | (exit $ac_status); } && { |
| 16273 | test -z "$ac_c_werror_flag" || |
| 16274 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16275 | } && test -s conftest$ac_exeext && |
| 16276 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16277 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16278 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16279 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16280 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16281 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16282 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16283 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 16284 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16285 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16286 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16287 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16288 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16289 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16290 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16291 | LIBS=$_libs |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16292 | { echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 16293 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16294 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16295 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16296 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16297 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16298 | /* confdefs.h. */ |
| 16299 | _ACEOF |
| 16300 | cat confdefs.h >>conftest.$ac_ext |
| 16301 | cat >>conftest.$ac_ext <<_ACEOF |
| 16302 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16303 | /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach. |
| 16304 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16305 | #define pthread_detach innocuous_pthread_detach |
| 16306 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16307 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16308 | which can conflict with char pthread_detach (); below. |
| 16309 | 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] | 16310 | <limits.h> exists even on freestanding compilers. */ |
| 16311 | |
| 16312 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16313 | # include <limits.h> |
| 16314 | #else |
| 16315 | # include <assert.h> |
| 16316 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16317 | |
| 16318 | #undef pthread_detach |
| 16319 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16320 | /* Override any GCC internal prototype to avoid an error. |
| 16321 | Use char because int might match the return type of a GCC |
| 16322 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16323 | #ifdef __cplusplus |
| 16324 | extern "C" |
| 16325 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16326 | char pthread_detach (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16327 | /* The GNU C library defines this for functions which it implements |
| 16328 | to always fail with ENOSYS. Some functions are actually named |
| 16329 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16330 | #if defined __stub_pthread_detach || defined __stub___pthread_detach |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16331 | choke me |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16332 | #endif |
| 16333 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16334 | int |
| 16335 | main () |
| 16336 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16337 | return pthread_detach (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16338 | ; |
| 16339 | return 0; |
| 16340 | } |
| 16341 | _ACEOF |
| 16342 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16343 | if { (ac_try="$ac_link" |
| 16344 | case "(($ac_try" in |
| 16345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16346 | *) ac_try_echo=$ac_try;; |
| 16347 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16348 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16349 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16350 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16351 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16352 | rm -f conftest.er1 |
| 16353 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16355 | (exit $ac_status); } && { |
| 16356 | test -z "$ac_c_werror_flag" || |
| 16357 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16358 | } && test -s conftest$ac_exeext && |
| 16359 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16360 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16361 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16362 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16363 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16364 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16365 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16366 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16367 | |
| 16368 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16369 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16370 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16371 | { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 16372 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; } |
| 16373 | if test $ac_cv_func_pthread_detach = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16374 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16375 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16376 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16377 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 16378 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16379 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16380 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16381 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16382 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16383 | { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 16384 | 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] | 16385 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16387 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16388 | { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 16389 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16390 | else |
| 16391 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16392 | { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 16393 | 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] | 16394 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16395 | /* confdefs.h. */ |
| 16396 | _ACEOF |
| 16397 | cat confdefs.h >>conftest.$ac_ext |
| 16398 | cat >>conftest.$ac_ext <<_ACEOF |
| 16399 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16400 | $ac_includes_default |
| 16401 | #include <atheos/threads.h> |
| 16402 | _ACEOF |
| 16403 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16404 | if { (ac_try="$ac_compile" |
| 16405 | case "(($ac_try" in |
| 16406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16407 | *) ac_try_echo=$ac_try;; |
| 16408 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16410 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16411 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16412 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16413 | rm -f conftest.er1 |
| 16414 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16416 | (exit $ac_status); } && { |
| 16417 | test -z "$ac_c_werror_flag" || |
| 16418 | test ! -s conftest.err |
| 16419 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16420 | ac_header_compiler=yes |
| 16421 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16422 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16424 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16425 | ac_header_compiler=no |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16426 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16427 | |
| 16428 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16429 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16430 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16431 | |
| 16432 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16433 | { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 16434 | 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] | 16435 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16436 | /* confdefs.h. */ |
| 16437 | _ACEOF |
| 16438 | cat confdefs.h >>conftest.$ac_ext |
| 16439 | cat >>conftest.$ac_ext <<_ACEOF |
| 16440 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16441 | #include <atheos/threads.h> |
| 16442 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16443 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16444 | case "(($ac_try" in |
| 16445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16446 | *) ac_try_echo=$ac_try;; |
| 16447 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16449 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16450 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16451 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16452 | rm -f conftest.er1 |
| 16453 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16455 | (exit $ac_status); } >/dev/null && { |
| 16456 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16457 | test ! -s conftest.err |
| 16458 | }; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16459 | ac_header_preproc=yes |
| 16460 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16461 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16462 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16463 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16464 | ac_header_preproc=no |
| 16465 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16466 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16467 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16468 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16469 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16470 | |
| 16471 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16472 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16473 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16474 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16475 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16476 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5 |
| 16477 | 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] | 16478 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16479 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16480 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16481 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 16482 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 16483 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 16484 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 16485 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5 |
| 16486 | echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;} |
| 16487 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16488 | echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16489 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 16490 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;} |
| 16491 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5 |
| 16492 | 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] | 16493 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 16494 | ## -------------------------------------- ## |
| 16495 | ## Report this to http://bugs.python.org/ ## |
| 16496 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16497 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16498 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16499 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16500 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16501 | { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 16502 | 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] | 16503 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16505 | else |
| 16506 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 16507 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16508 | { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 16509 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16510 | |
| 16511 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16512 | if test $ac_cv_header_atheos_threads_h = yes; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16513 | cat >>confdefs.h <<\_ACEOF |
| 16514 | #define WITH_THREAD 1 |
| 16515 | _ACEOF |
| 16516 | |
| 16517 | |
| 16518 | cat >>confdefs.h <<\_ACEOF |
| 16519 | #define ATHEOS_THREADS 1 |
| 16520 | _ACEOF |
| 16521 | |
| 16522 | THREADOBJ="Python/thread.o" |
| 16523 | else |
| 16524 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16525 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16526 | { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 16527 | 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] | 16528 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16530 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16531 | { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 16532 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16533 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16534 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16535 | { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 16536 | 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] | 16537 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16538 | /* confdefs.h. */ |
| 16539 | _ACEOF |
| 16540 | cat confdefs.h >>conftest.$ac_ext |
| 16541 | cat >>conftest.$ac_ext <<_ACEOF |
| 16542 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16543 | $ac_includes_default |
| 16544 | #include <kernel/OS.h> |
| 16545 | _ACEOF |
| 16546 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16547 | if { (ac_try="$ac_compile" |
| 16548 | case "(($ac_try" in |
| 16549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16550 | *) ac_try_echo=$ac_try;; |
| 16551 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16552 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16553 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16554 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16555 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16556 | rm -f conftest.er1 |
| 16557 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16559 | (exit $ac_status); } && { |
| 16560 | test -z "$ac_c_werror_flag" || |
| 16561 | test ! -s conftest.err |
| 16562 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16563 | ac_header_compiler=yes |
| 16564 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16565 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16566 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16567 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16568 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16569 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16570 | |
| 16571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16572 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16573 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16574 | |
| 16575 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16576 | { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 16577 | 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] | 16578 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16579 | /* confdefs.h. */ |
| 16580 | _ACEOF |
| 16581 | cat confdefs.h >>conftest.$ac_ext |
| 16582 | cat >>conftest.$ac_ext <<_ACEOF |
| 16583 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16584 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16585 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16586 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16587 | case "(($ac_try" in |
| 16588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16589 | *) ac_try_echo=$ac_try;; |
| 16590 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16592 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16593 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16594 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16595 | rm -f conftest.er1 |
| 16596 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16598 | (exit $ac_status); } >/dev/null && { |
| 16599 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16600 | test ! -s conftest.err |
| 16601 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16602 | ac_header_preproc=yes |
| 16603 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16604 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16605 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16606 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16607 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16608 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16609 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16610 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16611 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16612 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16613 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16614 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16615 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16616 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16617 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16618 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16619 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5 |
| 16620 | 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] | 16621 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16622 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16623 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16624 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 16625 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| 16626 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 16627 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 16628 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5 |
| 16629 | echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;} |
| 16630 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16631 | echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16632 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 16633 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;} |
| 16634 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5 |
| 16635 | 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] | 16636 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 16637 | ## -------------------------------------- ## |
| 16638 | ## Report this to http://bugs.python.org/ ## |
| 16639 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16640 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16641 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16642 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16643 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16644 | { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 16645 | 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] | 16646 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16648 | else |
| 16649 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 16650 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16651 | { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 16652 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16653 | |
| 16654 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16655 | if test $ac_cv_header_kernel_OS_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16656 | cat >>confdefs.h <<\_ACEOF |
| 16657 | #define WITH_THREAD 1 |
| 16658 | _ACEOF |
| 16659 | |
| 16660 | |
| 16661 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16662 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16663 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16664 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16665 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16666 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16667 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16668 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 16669 | 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] | 16670 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16672 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16673 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16674 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16675 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16676 | /* confdefs.h. */ |
| 16677 | _ACEOF |
| 16678 | cat confdefs.h >>conftest.$ac_ext |
| 16679 | cat >>conftest.$ac_ext <<_ACEOF |
| 16680 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16681 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16682 | /* Override any GCC internal prototype to avoid an error. |
| 16683 | Use char because int might match the return type of a GCC |
| 16684 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16685 | #ifdef __cplusplus |
| 16686 | extern "C" |
| 16687 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16688 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16689 | int |
| 16690 | main () |
| 16691 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16692 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16693 | ; |
| 16694 | return 0; |
| 16695 | } |
| 16696 | _ACEOF |
| 16697 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16698 | if { (ac_try="$ac_link" |
| 16699 | case "(($ac_try" in |
| 16700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16701 | *) ac_try_echo=$ac_try;; |
| 16702 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16703 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16704 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16705 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16706 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16707 | rm -f conftest.er1 |
| 16708 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16710 | (exit $ac_status); } && { |
| 16711 | test -z "$ac_c_werror_flag" || |
| 16712 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16713 | } && test -s conftest$ac_exeext && |
| 16714 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16715 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16716 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16717 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16718 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16719 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16720 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16721 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16722 | |
| 16723 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16724 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16725 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16726 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16727 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 16728 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; } |
| 16729 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16730 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16731 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16732 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16733 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16734 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16735 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16736 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16737 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16738 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16739 | { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 16740 | 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] | 16741 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16743 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16744 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16745 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16746 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16747 | /* confdefs.h. */ |
| 16748 | _ACEOF |
| 16749 | cat confdefs.h >>conftest.$ac_ext |
| 16750 | cat >>conftest.$ac_ext <<_ACEOF |
| 16751 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16752 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16753 | /* Override any GCC internal prototype to avoid an error. |
| 16754 | Use char because int might match the return type of a GCC |
| 16755 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16756 | #ifdef __cplusplus |
| 16757 | extern "C" |
| 16758 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16759 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16760 | int |
| 16761 | main () |
| 16762 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16763 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16764 | ; |
| 16765 | return 0; |
| 16766 | } |
| 16767 | _ACEOF |
| 16768 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16769 | if { (ac_try="$ac_link" |
| 16770 | case "(($ac_try" in |
| 16771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16772 | *) ac_try_echo=$ac_try;; |
| 16773 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16775 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16776 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16777 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16778 | rm -f conftest.er1 |
| 16779 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16781 | (exit $ac_status); } && { |
| 16782 | test -z "$ac_c_werror_flag" || |
| 16783 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16784 | } && test -s conftest$ac_exeext && |
| 16785 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16786 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16787 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16788 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16789 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16790 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16791 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16792 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16793 | |
| 16794 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16795 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16796 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16797 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16798 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 16799 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; } |
| 16800 | 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] | 16801 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16802 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16803 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16804 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16805 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16806 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16807 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 16808 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 16809 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16810 | { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 16811 | 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] | 16812 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16814 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16815 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16816 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16817 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16818 | /* confdefs.h. */ |
| 16819 | _ACEOF |
| 16820 | cat confdefs.h >>conftest.$ac_ext |
| 16821 | cat >>conftest.$ac_ext <<_ACEOF |
| 16822 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16823 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16824 | /* Override any GCC internal prototype to avoid an error. |
| 16825 | Use char because int might match the return type of a GCC |
| 16826 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16827 | #ifdef __cplusplus |
| 16828 | extern "C" |
| 16829 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16830 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16831 | int |
| 16832 | main () |
| 16833 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16834 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16835 | ; |
| 16836 | return 0; |
| 16837 | } |
| 16838 | _ACEOF |
| 16839 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16840 | if { (ac_try="$ac_link" |
| 16841 | case "(($ac_try" in |
| 16842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16843 | *) ac_try_echo=$ac_try;; |
| 16844 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16846 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16847 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16848 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16849 | rm -f conftest.er1 |
| 16850 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16852 | (exit $ac_status); } && { |
| 16853 | test -z "$ac_c_werror_flag" || |
| 16854 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16855 | } && test -s conftest$ac_exeext && |
| 16856 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16857 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16858 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16859 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16860 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16861 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16862 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16863 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16864 | |
| 16865 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16866 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16867 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16868 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16869 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 16870 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; } |
| 16871 | 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] | 16872 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16873 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16874 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16875 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16876 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16877 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16878 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16879 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16880 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16881 | { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 16882 | 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] | 16883 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16884 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16885 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16886 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16887 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16888 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16889 | /* confdefs.h. */ |
| 16890 | _ACEOF |
| 16891 | cat confdefs.h >>conftest.$ac_ext |
| 16892 | cat >>conftest.$ac_ext <<_ACEOF |
| 16893 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16894 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16895 | /* Override any GCC internal prototype to avoid an error. |
| 16896 | Use char because int might match the return type of a GCC |
| 16897 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16898 | #ifdef __cplusplus |
| 16899 | extern "C" |
| 16900 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16901 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16902 | int |
| 16903 | main () |
| 16904 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16905 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16906 | ; |
| 16907 | return 0; |
| 16908 | } |
| 16909 | _ACEOF |
| 16910 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16911 | if { (ac_try="$ac_link" |
| 16912 | case "(($ac_try" in |
| 16913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16914 | *) ac_try_echo=$ac_try;; |
| 16915 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16917 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16918 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16919 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16920 | rm -f conftest.er1 |
| 16921 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16923 | (exit $ac_status); } && { |
| 16924 | test -z "$ac_c_werror_flag" || |
| 16925 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16926 | } && test -s conftest$ac_exeext && |
| 16927 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16928 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16929 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16930 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16931 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16932 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16933 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16934 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16935 | |
| 16936 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16937 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16938 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16939 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16940 | { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 16941 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; } |
| 16942 | if test $ac_cv_lib_cma_pthread_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16943 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16944 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16945 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16946 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16947 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16948 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16949 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16950 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 16951 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16952 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 16953 | fi |
| 16954 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16955 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16956 | fi |
| 16957 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 16958 | fi |
| 16959 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16960 | fi |
| 16961 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16962 | fi |
| 16963 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 16964 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16965 | fi |
| 16966 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16967 | |
| 16968 | fi |
| 16969 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16970 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16971 | |
| 16972 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16973 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16974 | fi |
| 16975 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16976 | fi |
| 16977 | |
| 16978 | |
| 16979 | fi |
| 16980 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16981 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16982 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16983 | { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 16984 | 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] | 16985 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16987 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16988 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16989 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16990 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16991 | /* confdefs.h. */ |
| 16992 | _ACEOF |
| 16993 | cat confdefs.h >>conftest.$ac_ext |
| 16994 | cat >>conftest.$ac_ext <<_ACEOF |
| 16995 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16996 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16997 | /* Override any GCC internal prototype to avoid an error. |
| 16998 | Use char because int might match the return type of a GCC |
| 16999 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17000 | #ifdef __cplusplus |
| 17001 | extern "C" |
| 17002 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17003 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17004 | int |
| 17005 | main () |
| 17006 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17007 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17008 | ; |
| 17009 | return 0; |
| 17010 | } |
| 17011 | _ACEOF |
| 17012 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17013 | if { (ac_try="$ac_link" |
| 17014 | case "(($ac_try" in |
| 17015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17016 | *) ac_try_echo=$ac_try;; |
| 17017 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17019 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17020 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17021 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17022 | rm -f conftest.er1 |
| 17023 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17025 | (exit $ac_status); } && { |
| 17026 | test -z "$ac_c_werror_flag" || |
| 17027 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17028 | } && test -s conftest$ac_exeext && |
| 17029 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17030 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17031 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17032 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17033 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17034 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17035 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17036 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17037 | |
| 17038 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17039 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17040 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17041 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17042 | { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 17043 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; } |
| 17044 | if test $ac_cv_lib_mpc_usconfig = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17045 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17046 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17047 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17048 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 17049 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 17050 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 17051 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17052 | fi |
| 17053 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 17054 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 17055 | if test "$posix_threads" != "yes"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17056 | { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 17057 | 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] | 17058 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17060 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17061 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17062 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17063 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17064 | /* confdefs.h. */ |
| 17065 | _ACEOF |
| 17066 | cat confdefs.h >>conftest.$ac_ext |
| 17067 | cat >>conftest.$ac_ext <<_ACEOF |
| 17068 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17069 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17070 | /* Override any GCC internal prototype to avoid an error. |
| 17071 | Use char because int might match the return type of a GCC |
| 17072 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17073 | #ifdef __cplusplus |
| 17074 | extern "C" |
| 17075 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17076 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17077 | int |
| 17078 | main () |
| 17079 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17080 | return thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17081 | ; |
| 17082 | return 0; |
| 17083 | } |
| 17084 | _ACEOF |
| 17085 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17086 | if { (ac_try="$ac_link" |
| 17087 | case "(($ac_try" in |
| 17088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17089 | *) ac_try_echo=$ac_try;; |
| 17090 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17091 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17092 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17093 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17094 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17095 | rm -f conftest.er1 |
| 17096 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17098 | (exit $ac_status); } && { |
| 17099 | test -z "$ac_c_werror_flag" || |
| 17100 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17101 | } && test -s conftest$ac_exeext && |
| 17102 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17103 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17104 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17105 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17107 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17108 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17109 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17110 | |
| 17111 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17112 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17113 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17114 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17115 | { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 17116 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; } |
| 17117 | if test $ac_cv_lib_thread_thr_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17118 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17119 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17120 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17121 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 17122 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 17123 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 17124 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17125 | fi |
| 17126 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 17127 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17128 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 17129 | if test "$USE_THREAD_MODULE" != "#" |
| 17130 | then |
| 17131 | # If the above checks didn't disable threads, (at least) OSF1 |
| 17132 | # needs this '-threads' argument during linking. |
| 17133 | case $ac_sys_system in |
| 17134 | OSF1) LDLAST=-threads;; |
| 17135 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 17136 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17137 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 17138 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17139 | if test "$posix_threads" = "yes"; then |
| 17140 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 17141 | |
| 17142 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17143 | #define _POSIX_THREADS 1 |
| 17144 | _ACEOF |
| 17145 | |
| 17146 | fi |
| 17147 | |
| 17148 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 17149 | case $ac_sys_system/$ac_sys_release in |
| 17150 | SunOS/5.6) |
| 17151 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 17152 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 17153 | _ACEOF |
| 17154 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17155 | ;; |
| 17156 | SunOS/5.8) |
| 17157 | cat >>confdefs.h <<\_ACEOF |
| 17158 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 17159 | _ACEOF |
| 17160 | |
| 17161 | ;; |
Christian Heimes | cba36bb | 2008-01-30 22:54:18 +0000 | [diff] [blame] | 17162 | AIX/5) |
| 17163 | cat >>confdefs.h <<\_ACEOF |
| 17164 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 17165 | _ACEOF |
| 17166 | |
| 17167 | ;; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17168 | esac |
| 17169 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17170 | { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 17171 | 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] | 17172 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17174 | else |
| 17175 | if test "$cross_compiling" = yes; then |
| 17176 | ac_cv_pthread_system_supported=no |
| 17177 | else |
| 17178 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17179 | /* confdefs.h. */ |
| 17180 | _ACEOF |
| 17181 | cat confdefs.h >>conftest.$ac_ext |
| 17182 | cat >>conftest.$ac_ext <<_ACEOF |
| 17183 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17184 | #include <pthread.h> |
| 17185 | void *foo(void *parm) { |
| 17186 | return NULL; |
| 17187 | } |
| 17188 | main() { |
| 17189 | pthread_attr_t attr; |
| 17190 | pthread_t id; |
| 17191 | if (pthread_attr_init(&attr)) exit(-1); |
| 17192 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 17193 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 17194 | exit(0); |
| 17195 | } |
| 17196 | _ACEOF |
| 17197 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17198 | if { (ac_try="$ac_link" |
| 17199 | case "(($ac_try" in |
| 17200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17201 | *) ac_try_echo=$ac_try;; |
| 17202 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17204 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17205 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17207 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17208 | { (case "(($ac_try" in |
| 17209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17210 | *) ac_try_echo=$ac_try;; |
| 17211 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17213 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17214 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17216 | (exit $ac_status); }; }; then |
| 17217 | ac_cv_pthread_system_supported=yes |
| 17218 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17219 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17220 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17221 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17222 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17223 | ( exit $ac_status ) |
| 17224 | ac_cv_pthread_system_supported=no |
| 17225 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17226 | 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] | 17227 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 17228 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17229 | |
| 17230 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17231 | fi |
| 17232 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17233 | { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 17234 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17235 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 17236 | |
| 17237 | cat >>confdefs.h <<\_ACEOF |
| 17238 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 17239 | _ACEOF |
| 17240 | |
| 17241 | fi |
| 17242 | |
| 17243 | for ac_func in pthread_sigmask |
| 17244 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17245 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17246 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17247 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17248 | 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] | 17249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17250 | else |
| 17251 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17252 | /* confdefs.h. */ |
| 17253 | _ACEOF |
| 17254 | cat confdefs.h >>conftest.$ac_ext |
| 17255 | cat >>conftest.$ac_ext <<_ACEOF |
| 17256 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17257 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17258 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17259 | #define $ac_func innocuous_$ac_func |
| 17260 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17261 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17262 | which can conflict with char $ac_func (); below. |
| 17263 | 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] | 17264 | <limits.h> exists even on freestanding compilers. */ |
| 17265 | |
| 17266 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17267 | # include <limits.h> |
| 17268 | #else |
| 17269 | # include <assert.h> |
| 17270 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17271 | |
| 17272 | #undef $ac_func |
| 17273 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17274 | /* Override any GCC internal prototype to avoid an error. |
| 17275 | Use char because int might match the return type of a GCC |
| 17276 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17277 | #ifdef __cplusplus |
| 17278 | extern "C" |
| 17279 | #endif |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17280 | char $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17281 | /* The GNU C library defines this for functions which it implements |
| 17282 | to always fail with ENOSYS. Some functions are actually named |
| 17283 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17284 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17285 | choke me |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17286 | #endif |
| 17287 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17288 | int |
| 17289 | main () |
| 17290 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17291 | return $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17292 | ; |
| 17293 | return 0; |
| 17294 | } |
| 17295 | _ACEOF |
| 17296 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17297 | if { (ac_try="$ac_link" |
| 17298 | case "(($ac_try" in |
| 17299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17300 | *) ac_try_echo=$ac_try;; |
| 17301 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17303 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17304 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17305 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17306 | rm -f conftest.er1 |
| 17307 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17309 | (exit $ac_status); } && { |
| 17310 | test -z "$ac_c_werror_flag" || |
| 17311 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17312 | } && test -s conftest$ac_exeext && |
| 17313 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17314 | eval "$as_ac_var=yes" |
| 17315 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17316 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17317 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17318 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17319 | eval "$as_ac_var=no" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17320 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17321 | |
| 17322 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17323 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17324 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17325 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17326 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17327 | echo "${ECHO_T}$ac_res" >&6; } |
| 17328 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17329 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17330 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17331 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 17332 | case $ac_sys_system in |
| 17333 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17334 | |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 17335 | cat >>confdefs.h <<\_ACEOF |
| 17336 | #define HAVE_BROKEN_PTHREAD_SIGMASK 1 |
| 17337 | _ACEOF |
| 17338 | |
| 17339 | ;; |
| 17340 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17341 | fi |
| 17342 | done |
| 17343 | |
| 17344 | fi |
| 17345 | |
| 17346 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17347 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17348 | |
| 17349 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17350 | { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 17351 | 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] | 17352 | # Check whether --enable-ipv6 was given. |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17353 | if test "${enable_ipv6+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17354 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17355 | no) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17356 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17357 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17358 | ipv6=no |
| 17359 | ;; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17360 | *) { echo "$as_me:$LINENO: result: yes" >&5 |
| 17361 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17362 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17363 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17364 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17365 | |
| 17366 | ipv6=yes |
| 17367 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17368 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17369 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17370 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17371 | if test "$cross_compiling" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17372 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17373 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17374 | ipv6=no |
| 17375 | |
| 17376 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17377 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17378 | /* confdefs.h. */ |
| 17379 | _ACEOF |
| 17380 | cat confdefs.h >>conftest.$ac_ext |
| 17381 | cat >>conftest.$ac_ext <<_ACEOF |
| 17382 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17383 | /* AF_INET6 available check */ |
| 17384 | #include <sys/types.h> |
| 17385 | #include <sys/socket.h> |
| 17386 | main() |
| 17387 | { |
| 17388 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 17389 | exit(1); |
| 17390 | else |
| 17391 | exit(0); |
| 17392 | } |
| 17393 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17394 | _ACEOF |
| 17395 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17396 | if { (ac_try="$ac_link" |
| 17397 | case "(($ac_try" in |
| 17398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17399 | *) ac_try_echo=$ac_try;; |
| 17400 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17402 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17403 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17405 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17406 | { (case "(($ac_try" in |
| 17407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17408 | *) ac_try_echo=$ac_try;; |
| 17409 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17411 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17412 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17414 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17415 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17416 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17417 | ipv6=yes |
| 17418 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17419 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17420 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17421 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17422 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17423 | ( exit $ac_status ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17424 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17425 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17426 | ipv6=no |
| 17427 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17428 | 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] | 17429 | fi |
| 17430 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17431 | |
| 17432 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17433 | if test "$ipv6" = "yes"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17434 | { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 17435 | 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] | 17436 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17437 | /* confdefs.h. */ |
| 17438 | _ACEOF |
| 17439 | cat confdefs.h >>conftest.$ac_ext |
| 17440 | cat >>conftest.$ac_ext <<_ACEOF |
| 17441 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17442 | #include <sys/types.h> |
| 17443 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17444 | int |
| 17445 | main () |
| 17446 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17447 | struct sockaddr_in6 x; |
| 17448 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17449 | ; |
| 17450 | return 0; |
| 17451 | } |
| 17452 | _ACEOF |
| 17453 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17454 | if { (ac_try="$ac_compile" |
| 17455 | case "(($ac_try" in |
| 17456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17457 | *) ac_try_echo=$ac_try;; |
| 17458 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17460 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17461 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17462 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17463 | rm -f conftest.er1 |
| 17464 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17466 | (exit $ac_status); } && { |
| 17467 | test -z "$ac_c_werror_flag" || |
| 17468 | test ! -s conftest.err |
| 17469 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17470 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17471 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17472 | ipv6=yes |
| 17473 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17474 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17475 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17476 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17477 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17478 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17479 | ipv6=no |
| 17480 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17481 | |
| 17482 | 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] | 17483 | fi |
| 17484 | |
| 17485 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17486 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17487 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17488 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17489 | |
| 17490 | fi |
| 17491 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17492 | fi |
| 17493 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17494 | |
| 17495 | ipv6type=unknown |
| 17496 | ipv6lib=none |
| 17497 | ipv6trylibc=no |
| 17498 | |
| 17499 | if test "$ipv6" = "yes"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17500 | { echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 17501 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; } |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 17502 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 17503 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17504 | case $i in |
| 17505 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17506 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17507 | /* confdefs.h. */ |
| 17508 | _ACEOF |
| 17509 | cat confdefs.h >>conftest.$ac_ext |
| 17510 | cat >>conftest.$ac_ext <<_ACEOF |
| 17511 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17512 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17513 | #include <netinet/in.h> |
| 17514 | #ifdef IPV6_INRIA_VERSION |
| 17515 | yes |
| 17516 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17517 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17518 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17519 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 17520 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17521 | fi |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame^] | 17522 | rm -f -r conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17523 | |
| 17524 | ;; |
| 17525 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17526 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17527 | /* confdefs.h. */ |
| 17528 | _ACEOF |
| 17529 | cat confdefs.h >>conftest.$ac_ext |
| 17530 | cat >>conftest.$ac_ext <<_ACEOF |
| 17531 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17532 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17533 | #include <netinet/in.h> |
| 17534 | #ifdef __KAME__ |
| 17535 | yes |
| 17536 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17537 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17538 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17539 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17540 | ipv6type=$i; |
| 17541 | ipv6lib=inet6 |
| 17542 | ipv6libdir=/usr/local/v6/lib |
| 17543 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17544 | fi |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame^] | 17545 | rm -f -r conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17546 | |
| 17547 | ;; |
| 17548 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17549 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17550 | /* confdefs.h. */ |
| 17551 | _ACEOF |
| 17552 | cat confdefs.h >>conftest.$ac_ext |
| 17553 | cat >>conftest.$ac_ext <<_ACEOF |
| 17554 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17555 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17556 | #include <features.h> |
| 17557 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 17558 | yes |
| 17559 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17560 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17561 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17562 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17563 | ipv6type=$i; |
| 17564 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17565 | fi |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame^] | 17566 | rm -f -r conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17567 | |
| 17568 | ;; |
| 17569 | linux-inet6) |
| 17570 | if test -d /usr/inet6; then |
| 17571 | ipv6type=$i |
| 17572 | ipv6lib=inet6 |
| 17573 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 17574 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17575 | fi |
| 17576 | ;; |
| 17577 | solaris) |
| 17578 | if test -f /etc/netconfig; then |
| 17579 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 17580 | ipv6type=$i |
| 17581 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17582 | fi |
| 17583 | fi |
| 17584 | ;; |
| 17585 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17586 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17587 | /* confdefs.h. */ |
| 17588 | _ACEOF |
| 17589 | cat confdefs.h >>conftest.$ac_ext |
| 17590 | cat >>conftest.$ac_ext <<_ACEOF |
| 17591 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17592 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17593 | #include <sys/param.h> |
| 17594 | #ifdef _TOSHIBA_INET6 |
| 17595 | yes |
| 17596 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17597 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17598 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17599 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17600 | ipv6type=$i; |
| 17601 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 17602 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17603 | fi |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame^] | 17604 | rm -f -r conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17605 | |
| 17606 | ;; |
| 17607 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17608 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17609 | /* confdefs.h. */ |
| 17610 | _ACEOF |
| 17611 | cat confdefs.h >>conftest.$ac_ext |
| 17612 | cat >>conftest.$ac_ext <<_ACEOF |
| 17613 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17614 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17615 | #include </usr/local/v6/include/sys/v6config.h> |
| 17616 | #ifdef __V6D__ |
| 17617 | yes |
| 17618 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17619 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17620 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17621 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17622 | ipv6type=$i; |
| 17623 | ipv6lib=v6; |
| 17624 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 17625 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17626 | fi |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame^] | 17627 | rm -f -r conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17628 | |
| 17629 | ;; |
| 17630 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17631 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17632 | /* confdefs.h. */ |
| 17633 | _ACEOF |
| 17634 | cat confdefs.h >>conftest.$ac_ext |
| 17635 | cat >>conftest.$ac_ext <<_ACEOF |
| 17636 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17637 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17638 | #include <sys/param.h> |
| 17639 | #ifdef _ZETA_MINAMI_INET6 |
| 17640 | yes |
| 17641 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17642 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17643 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17644 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17645 | ipv6type=$i; |
| 17646 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 17647 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17648 | fi |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame^] | 17649 | rm -f -r conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17650 | |
| 17651 | ;; |
| 17652 | esac |
| 17653 | if test "$ipv6type" != "unknown"; then |
| 17654 | break |
| 17655 | fi |
| 17656 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17657 | { echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 17658 | echo "${ECHO_T}$ipv6type" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17659 | fi |
| 17660 | |
| 17661 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 17662 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 17663 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 17664 | echo "using lib$ipv6lib" |
| 17665 | else |
| 17666 | if test $ipv6trylibc = "yes"; then |
| 17667 | echo "using libc" |
| 17668 | else |
| 17669 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 17670 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 17671 | echo 'ipv6 kit and compile beforehand.' |
| 17672 | exit 1 |
| 17673 | fi |
| 17674 | fi |
| 17675 | fi |
| 17676 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17677 | { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5 |
| 17678 | 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] | 17679 | cat >conftest.$ac_ext <<_ACEOF |
| 17680 | /* confdefs.h. */ |
| 17681 | _ACEOF |
| 17682 | cat confdefs.h >>conftest.$ac_ext |
| 17683 | cat >>conftest.$ac_ext <<_ACEOF |
| 17684 | /* end confdefs.h. */ |
| 17685 | #include <Carbon/Carbon.h> |
| 17686 | int |
| 17687 | main () |
| 17688 | { |
| 17689 | FSIORefNum fRef = 0 |
| 17690 | ; |
| 17691 | return 0; |
| 17692 | } |
| 17693 | _ACEOF |
| 17694 | rm -f conftest.$ac_objext |
| 17695 | if { (ac_try="$ac_compile" |
| 17696 | case "(($ac_try" in |
| 17697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17698 | *) ac_try_echo=$ac_try;; |
| 17699 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17701 | (eval "$ac_compile") 2>conftest.er1 |
| 17702 | ac_status=$? |
| 17703 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17704 | rm -f conftest.er1 |
| 17705 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17707 | (exit $ac_status); } && { |
| 17708 | test -z "$ac_c_werror_flag" || |
| 17709 | test ! -s conftest.err |
| 17710 | } && test -s conftest.$ac_objext; then |
| 17711 | |
| 17712 | cat >>confdefs.h <<\_ACEOF |
| 17713 | #define HAVE_OSX105_SDK 1 |
| 17714 | _ACEOF |
| 17715 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17716 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17717 | echo "${ECHO_T}yes" >&6; } |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17718 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17719 | echo "$as_me: failed program was:" >&5 |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17720 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17721 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17722 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17723 | echo "${ECHO_T}no" >&6; } |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17724 | |
| 17725 | fi |
| 17726 | |
| 17727 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17728 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17729 | # Check for --with-doc-strings |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17730 | { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 17731 | 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] | 17732 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17733 | # Check whether --with-doc-strings was given. |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17734 | if test "${with_doc_strings+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17735 | withval=$with_doc_strings; |
| 17736 | fi |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17737 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17738 | |
| 17739 | if test -z "$with_doc_strings" |
| 17740 | then with_doc_strings="yes" |
| 17741 | fi |
| 17742 | if test "$with_doc_strings" != "no" |
| 17743 | then |
| 17744 | |
| 17745 | cat >>confdefs.h <<\_ACEOF |
| 17746 | #define WITH_DOC_STRINGS 1 |
| 17747 | _ACEOF |
| 17748 | |
| 17749 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17750 | { echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 17751 | echo "${ECHO_T}$with_doc_strings" >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17752 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 17753 | # Check for Python-specific malloc support |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17754 | { echo "$as_me:$LINENO: checking for --with-tsc" >&5 |
| 17755 | echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17756 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17757 | # Check whether --with-tsc was given. |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17758 | if test "${with_tsc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17759 | withval=$with_tsc; |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17760 | if test "$withval" != no |
| 17761 | then |
| 17762 | |
| 17763 | cat >>confdefs.h <<\_ACEOF |
| 17764 | #define WITH_TSC 1 |
| 17765 | _ACEOF |
| 17766 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17767 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17768 | echo "${ECHO_T}yes" >&6; } |
| 17769 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 17770 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17771 | fi |
| 17772 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17773 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17774 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17775 | fi |
| 17776 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17777 | |
| 17778 | # Check for Python-specific malloc support |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17779 | { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 17780 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17781 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17782 | # Check whether --with-pymalloc was given. |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 17783 | if test "${with_pymalloc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17784 | withval=$with_pymalloc; |
| 17785 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17786 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 17787 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17788 | if test -z "$with_pymalloc" |
| 17789 | then with_pymalloc="yes" |
| 17790 | fi |
| 17791 | if test "$with_pymalloc" != "no" |
| 17792 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17793 | |
| 17794 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17795 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17796 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17797 | |
| 17798 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17799 | { echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 17800 | echo "${ECHO_T}$with_pymalloc" >&6; } |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17801 | |
Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 17802 | # Check for Valgrind support |
| 17803 | { echo "$as_me:$LINENO: checking for --with-valgrind" >&5 |
| 17804 | echo $ECHO_N "checking for --with-valgrind... $ECHO_C" >&6; } |
| 17805 | |
| 17806 | # Check whether --with-valgrind was given. |
| 17807 | if test "${with_valgrind+set}" = set; then |
| 17808 | withval=$with_valgrind; |
| 17809 | else |
| 17810 | with_valgrind=no |
| 17811 | fi |
| 17812 | |
| 17813 | { echo "$as_me:$LINENO: result: $with_valgrind" >&5 |
| 17814 | echo "${ECHO_T}$with_valgrind" >&6; } |
| 17815 | if test "$with_valgrind" != no; then |
| 17816 | if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then |
| 17817 | { echo "$as_me:$LINENO: checking for valgrind/valgrind.h" >&5 |
| 17818 | echo $ECHO_N "checking for valgrind/valgrind.h... $ECHO_C" >&6; } |
| 17819 | if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then |
| 17820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17821 | fi |
| 17822 | { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_valgrind_h" >&5 |
| 17823 | echo "${ECHO_T}$ac_cv_header_valgrind_valgrind_h" >&6; } |
| 17824 | else |
| 17825 | # Is the header compilable? |
| 17826 | { echo "$as_me:$LINENO: checking valgrind/valgrind.h usability" >&5 |
| 17827 | echo $ECHO_N "checking valgrind/valgrind.h usability... $ECHO_C" >&6; } |
| 17828 | cat >conftest.$ac_ext <<_ACEOF |
| 17829 | /* confdefs.h. */ |
| 17830 | _ACEOF |
| 17831 | cat confdefs.h >>conftest.$ac_ext |
| 17832 | cat >>conftest.$ac_ext <<_ACEOF |
| 17833 | /* end confdefs.h. */ |
| 17834 | $ac_includes_default |
| 17835 | #include <valgrind/valgrind.h> |
| 17836 | _ACEOF |
| 17837 | rm -f conftest.$ac_objext |
| 17838 | if { (ac_try="$ac_compile" |
| 17839 | case "(($ac_try" in |
| 17840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17841 | *) ac_try_echo=$ac_try;; |
| 17842 | esac |
| 17843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17844 | (eval "$ac_compile") 2>conftest.er1 |
| 17845 | ac_status=$? |
| 17846 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17847 | rm -f conftest.er1 |
| 17848 | cat conftest.err >&5 |
| 17849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17850 | (exit $ac_status); } && { |
| 17851 | test -z "$ac_c_werror_flag" || |
| 17852 | test ! -s conftest.err |
| 17853 | } && test -s conftest.$ac_objext; then |
| 17854 | ac_header_compiler=yes |
| 17855 | else |
| 17856 | echo "$as_me: failed program was:" >&5 |
| 17857 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17858 | |
| 17859 | ac_header_compiler=no |
| 17860 | fi |
| 17861 | |
| 17862 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17863 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 17864 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 17865 | |
| 17866 | # Is the header present? |
| 17867 | { echo "$as_me:$LINENO: checking valgrind/valgrind.h presence" >&5 |
| 17868 | echo $ECHO_N "checking valgrind/valgrind.h presence... $ECHO_C" >&6; } |
| 17869 | cat >conftest.$ac_ext <<_ACEOF |
| 17870 | /* confdefs.h. */ |
| 17871 | _ACEOF |
| 17872 | cat confdefs.h >>conftest.$ac_ext |
| 17873 | cat >>conftest.$ac_ext <<_ACEOF |
| 17874 | /* end confdefs.h. */ |
| 17875 | #include <valgrind/valgrind.h> |
| 17876 | _ACEOF |
| 17877 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 17878 | case "(($ac_try" in |
| 17879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17880 | *) ac_try_echo=$ac_try;; |
| 17881 | esac |
| 17882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17883 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 17884 | ac_status=$? |
| 17885 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17886 | rm -f conftest.er1 |
| 17887 | cat conftest.err >&5 |
| 17888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17889 | (exit $ac_status); } >/dev/null && { |
| 17890 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 17891 | test ! -s conftest.err |
| 17892 | }; then |
| 17893 | ac_header_preproc=yes |
| 17894 | else |
| 17895 | echo "$as_me: failed program was:" >&5 |
| 17896 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17897 | |
| 17898 | ac_header_preproc=no |
| 17899 | fi |
| 17900 | |
| 17901 | rm -f conftest.err conftest.$ac_ext |
| 17902 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 17903 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 17904 | |
| 17905 | # So? What about this header? |
| 17906 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 17907 | yes:no: ) |
| 17908 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 17909 | echo "$as_me: WARNING: valgrind/valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 17910 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: proceeding with the compiler's result" >&5 |
| 17911 | echo "$as_me: WARNING: valgrind/valgrind.h: proceeding with the compiler's result" >&2;} |
| 17912 | ac_header_preproc=yes |
| 17913 | ;; |
| 17914 | no:yes:* ) |
| 17915 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: present but cannot be compiled" >&5 |
| 17916 | echo "$as_me: WARNING: valgrind/valgrind.h: present but cannot be compiled" >&2;} |
| 17917 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: check for missing prerequisite headers?" >&5 |
| 17918 | echo "$as_me: WARNING: valgrind/valgrind.h: check for missing prerequisite headers?" >&2;} |
| 17919 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: see the Autoconf documentation" >&5 |
| 17920 | echo "$as_me: WARNING: valgrind/valgrind.h: see the Autoconf documentation" >&2;} |
| 17921 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 17922 | echo "$as_me: WARNING: valgrind/valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 17923 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: proceeding with the preprocessor's result" >&5 |
| 17924 | echo "$as_me: WARNING: valgrind/valgrind.h: proceeding with the preprocessor's result" >&2;} |
| 17925 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: in the future, the compiler will take precedence" >&5 |
| 17926 | echo "$as_me: WARNING: valgrind/valgrind.h: in the future, the compiler will take precedence" >&2;} |
| 17927 | ( cat <<\_ASBOX |
| 17928 | ## -------------------------------------- ## |
| 17929 | ## Report this to http://bugs.python.org/ ## |
| 17930 | ## -------------------------------------- ## |
| 17931 | _ASBOX |
| 17932 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 17933 | ;; |
| 17934 | esac |
| 17935 | { echo "$as_me:$LINENO: checking for valgrind/valgrind.h" >&5 |
| 17936 | echo $ECHO_N "checking for valgrind/valgrind.h... $ECHO_C" >&6; } |
| 17937 | if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then |
| 17938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17939 | else |
| 17940 | ac_cv_header_valgrind_valgrind_h=$ac_header_preproc |
| 17941 | fi |
| 17942 | { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_valgrind_h" >&5 |
| 17943 | echo "${ECHO_T}$ac_cv_header_valgrind_valgrind_h" >&6; } |
| 17944 | |
| 17945 | fi |
| 17946 | if test $ac_cv_header_valgrind_valgrind_h = yes; then |
| 17947 | |
| 17948 | cat >>confdefs.h <<\_ACEOF |
| 17949 | #define WITH_VALGRIND 1 |
| 17950 | _ACEOF |
| 17951 | |
| 17952 | else |
| 17953 | { { echo "$as_me:$LINENO: error: Valgrind support requested but headers not available" >&5 |
| 17954 | echo "$as_me: error: Valgrind support requested but headers not available" >&2;} |
| 17955 | { (exit 1); exit 1; }; } |
| 17956 | |
| 17957 | fi |
| 17958 | |
| 17959 | |
| 17960 | fi |
| 17961 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17962 | # Check for --with-wctype-functions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17963 | { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 17964 | 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] | 17965 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17966 | # Check whether --with-wctype-functions was given. |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17967 | if test "${with_wctype_functions+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17968 | withval=$with_wctype_functions; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17969 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17970 | then |
| 17971 | |
| 17972 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17973 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17974 | _ACEOF |
| 17975 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17976 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17977 | echo "${ECHO_T}yes" >&6; } |
| 17978 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 17979 | echo "${ECHO_T}no" >&6; } |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17980 | fi |
| 17981 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17982 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17983 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17984 | fi |
| 17985 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17986 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 17987 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17988 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 17989 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17990 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17991 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 17992 | # 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] | 17993 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 17994 | for ac_func in dlopen |
| 17995 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17996 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17997 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17998 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17999 | 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] | 18000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18001 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18002 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18003 | /* confdefs.h. */ |
| 18004 | _ACEOF |
| 18005 | cat confdefs.h >>conftest.$ac_ext |
| 18006 | cat >>conftest.$ac_ext <<_ACEOF |
| 18007 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18008 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18009 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18010 | #define $ac_func innocuous_$ac_func |
| 18011 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18012 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18013 | which can conflict with char $ac_func (); below. |
| 18014 | 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] | 18015 | <limits.h> exists even on freestanding compilers. */ |
| 18016 | |
| 18017 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18018 | # include <limits.h> |
| 18019 | #else |
| 18020 | # include <assert.h> |
| 18021 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18022 | |
| 18023 | #undef $ac_func |
| 18024 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18025 | /* Override any GCC internal prototype to avoid an error. |
| 18026 | Use char because int might match the return type of a GCC |
| 18027 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18028 | #ifdef __cplusplus |
| 18029 | extern "C" |
| 18030 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18031 | char $ac_func (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18032 | /* The GNU C library defines this for functions which it implements |
| 18033 | to always fail with ENOSYS. Some functions are actually named |
| 18034 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18035 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18036 | choke me |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18037 | #endif |
| 18038 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18039 | int |
| 18040 | main () |
| 18041 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18042 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18043 | ; |
| 18044 | return 0; |
| 18045 | } |
| 18046 | _ACEOF |
| 18047 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18048 | if { (ac_try="$ac_link" |
| 18049 | case "(($ac_try" in |
| 18050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18051 | *) ac_try_echo=$ac_try;; |
| 18052 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18054 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18055 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18056 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18057 | rm -f conftest.er1 |
| 18058 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18060 | (exit $ac_status); } && { |
| 18061 | test -z "$ac_c_werror_flag" || |
| 18062 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18063 | } && test -s conftest$ac_exeext && |
| 18064 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18065 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18066 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18067 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18068 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18069 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18070 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18071 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18072 | |
| 18073 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18074 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18075 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18076 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18077 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18078 | echo "${ECHO_T}$ac_res" >&6; } |
| 18079 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18080 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18081 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18082 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18083 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18084 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 18085 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18086 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18087 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18088 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 18089 | # loading of modules. |
| 18090 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18091 | { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 18092 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18093 | if test -z "$DYNLOADFILE" |
| 18094 | then |
| 18095 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 18096 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 18097 | if test "$ac_cv_func_dlopen" = yes |
| 18098 | then DYNLOADFILE="dynload_shlib.o" |
| 18099 | else DYNLOADFILE="dynload_aix.o" |
| 18100 | fi |
| 18101 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18102 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 18103 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 18104 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() |
| 18105 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 18106 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18107 | *) |
| 18108 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 18109 | # out any dynamic loading |
| 18110 | if test "$ac_cv_func_dlopen" = yes |
| 18111 | then DYNLOADFILE="dynload_shlib.o" |
| 18112 | else DYNLOADFILE="dynload_stub.o" |
| 18113 | fi |
| 18114 | ;; |
| 18115 | esac |
| 18116 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18117 | { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 18118 | echo "${ECHO_T}$DYNLOADFILE" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18119 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 18120 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18121 | |
| 18122 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18123 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18124 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18125 | |
| 18126 | fi |
| 18127 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 18128 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 18129 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18130 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18131 | { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 18132 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 18133 | if test -z "$MACHDEP_OBJS" |
| 18134 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 18135 | MACHDEP_OBJS=$extra_machdep_objs |
| 18136 | else |
| 18137 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 18138 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18139 | { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 18140 | echo "${ECHO_T}MACHDEP_OBJS" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 18141 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18142 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18143 | |
| 18144 | |
| 18145 | |
| 18146 | |
| 18147 | |
| 18148 | |
| 18149 | |
| 18150 | |
| 18151 | |
| 18152 | |
| 18153 | |
| 18154 | |
| 18155 | |
| 18156 | |
| 18157 | |
| 18158 | |
| 18159 | |
| 18160 | |
| 18161 | |
| 18162 | |
| 18163 | |
| 18164 | |
| 18165 | |
| 18166 | |
| 18167 | |
| 18168 | |
| 18169 | |
| 18170 | |
| 18171 | |
| 18172 | |
| 18173 | |
| 18174 | |
| 18175 | |
| 18176 | |
| 18177 | |
| 18178 | |
| 18179 | |
| 18180 | |
| 18181 | |
| 18182 | |
| 18183 | |
| 18184 | |
| 18185 | |
| 18186 | |
| 18187 | |
| 18188 | |
| 18189 | |
| 18190 | |
| 18191 | |
| 18192 | |
| 18193 | |
| 18194 | |
| 18195 | |
| 18196 | |
| 18197 | |
| 18198 | |
| 18199 | |
| 18200 | |
| 18201 | |
| 18202 | |
| 18203 | |
| 18204 | |
| 18205 | |
| 18206 | |
| 18207 | |
| 18208 | |
| 18209 | |
| 18210 | |
| 18211 | |
| 18212 | |
| 18213 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 18214 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 18215 | |
| 18216 | |
Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 18217 | |
| 18218 | |
Martin v. Löwis | 382abef | 2007-02-19 10:55:19 +0000 | [diff] [blame] | 18219 | |
| 18220 | |
Christian Heimes | 3628187 | 2007-11-30 21:11:28 +0000 | [diff] [blame] | 18221 | |
Martin v. Löwis | aef18b1 | 2008-03-24 13:31:16 +0000 | [diff] [blame] | 18222 | |
| 18223 | |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 18224 | |
| 18225 | |
| 18226 | |
| 18227 | |
Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 18228 | |
| 18229 | |
| 18230 | |
| 18231 | |
| 18232 | |
| 18233 | |
| 18234 | |
| 18235 | |
| 18236 | |
| 18237 | |
| 18238 | |
| 18239 | |
| 18240 | |
Antoine Pitrou | 30b3b35 | 2009-12-02 20:37:54 +0000 | [diff] [blame] | 18241 | |
Martin v. Löwis | aef18b1 | 2008-03-24 13:31:16 +0000 | [diff] [blame] | 18242 | for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \ |
| 18243 | clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 18244 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 18245 | getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ |
Antoine Pitrou | 30b3b35 | 2009-12-02 20:37:54 +0000 | [diff] [blame] | 18246 | initgroups kill killpg lchmod lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 18247 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 18248 | putenv readlink realpath \ |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 18249 | select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \ |
| 18250 | setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 18251 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 18252 | setlocale setregid setreuid setresuid setresgid \ |
| 18253 | setsid setpgid setpgrp setuid setvbuf snprintf \ |
Skip Montanaro | 7e11a01 | 2004-02-07 12:55:46 +0000 | [diff] [blame] | 18254 | sigaction siginterrupt sigrelse strftime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 18255 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 18256 | truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18257 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18258 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18259 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18260 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18261 | 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] | 18262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18263 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18264 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18265 | /* confdefs.h. */ |
| 18266 | _ACEOF |
| 18267 | cat confdefs.h >>conftest.$ac_ext |
| 18268 | cat >>conftest.$ac_ext <<_ACEOF |
| 18269 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18270 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18271 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18272 | #define $ac_func innocuous_$ac_func |
| 18273 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18274 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18275 | which can conflict with char $ac_func (); below. |
| 18276 | 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] | 18277 | <limits.h> exists even on freestanding compilers. */ |
| 18278 | |
| 18279 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18280 | # include <limits.h> |
| 18281 | #else |
| 18282 | # include <assert.h> |
| 18283 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18284 | |
| 18285 | #undef $ac_func |
| 18286 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18287 | /* Override any GCC internal prototype to avoid an error. |
| 18288 | Use char because int might match the return type of a GCC |
| 18289 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18290 | #ifdef __cplusplus |
| 18291 | extern "C" |
| 18292 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18293 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18294 | /* The GNU C library defines this for functions which it implements |
| 18295 | to always fail with ENOSYS. Some functions are actually named |
| 18296 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18297 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18298 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18299 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18300 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18301 | int |
| 18302 | main () |
| 18303 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18304 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18305 | ; |
| 18306 | return 0; |
| 18307 | } |
| 18308 | _ACEOF |
| 18309 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18310 | if { (ac_try="$ac_link" |
| 18311 | case "(($ac_try" in |
| 18312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18313 | *) ac_try_echo=$ac_try;; |
| 18314 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18316 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18317 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18318 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18319 | rm -f conftest.er1 |
| 18320 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18322 | (exit $ac_status); } && { |
| 18323 | test -z "$ac_c_werror_flag" || |
| 18324 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18325 | } && test -s conftest$ac_exeext && |
| 18326 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18327 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18328 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18329 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18330 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18331 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18332 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18333 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18334 | |
| 18335 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18336 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18337 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18338 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18339 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18340 | echo "${ECHO_T}$ac_res" >&6; } |
| 18341 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18342 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18343 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18344 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18345 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 18346 | fi |
| 18347 | done |
| 18348 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18349 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18350 | # For some functions, having a definition is not sufficient, since |
| 18351 | # we want to take their address. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18352 | { echo "$as_me:$LINENO: checking for chroot" >&5 |
| 18353 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18354 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18355 | /* confdefs.h. */ |
| 18356 | _ACEOF |
| 18357 | cat confdefs.h >>conftest.$ac_ext |
| 18358 | cat >>conftest.$ac_ext <<_ACEOF |
| 18359 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18360 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18361 | int |
| 18362 | main () |
| 18363 | { |
| 18364 | void *x=chroot |
| 18365 | ; |
| 18366 | return 0; |
| 18367 | } |
| 18368 | _ACEOF |
| 18369 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18370 | if { (ac_try="$ac_compile" |
| 18371 | case "(($ac_try" in |
| 18372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18373 | *) ac_try_echo=$ac_try;; |
| 18374 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18376 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18377 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18378 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18379 | rm -f conftest.er1 |
| 18380 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18382 | (exit $ac_status); } && { |
| 18383 | test -z "$ac_c_werror_flag" || |
| 18384 | test ! -s conftest.err |
| 18385 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18386 | |
| 18387 | cat >>confdefs.h <<\_ACEOF |
| 18388 | #define HAVE_CHROOT 1 |
| 18389 | _ACEOF |
| 18390 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18391 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18392 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18393 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18394 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18395 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18396 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18397 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18398 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18399 | |
| 18400 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18401 | |
| 18402 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18403 | { echo "$as_me:$LINENO: checking for link" >&5 |
| 18404 | echo $ECHO_N "checking for link... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18405 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18406 | /* confdefs.h. */ |
| 18407 | _ACEOF |
| 18408 | cat confdefs.h >>conftest.$ac_ext |
| 18409 | cat >>conftest.$ac_ext <<_ACEOF |
| 18410 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18411 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18412 | int |
| 18413 | main () |
| 18414 | { |
| 18415 | void *x=link |
| 18416 | ; |
| 18417 | return 0; |
| 18418 | } |
| 18419 | _ACEOF |
| 18420 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18421 | if { (ac_try="$ac_compile" |
| 18422 | case "(($ac_try" in |
| 18423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18424 | *) ac_try_echo=$ac_try;; |
| 18425 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18426 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18427 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18428 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18429 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18430 | rm -f conftest.er1 |
| 18431 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18433 | (exit $ac_status); } && { |
| 18434 | test -z "$ac_c_werror_flag" || |
| 18435 | test ! -s conftest.err |
| 18436 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18437 | |
| 18438 | cat >>confdefs.h <<\_ACEOF |
| 18439 | #define HAVE_LINK 1 |
| 18440 | _ACEOF |
| 18441 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18442 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18443 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18444 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18445 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18446 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18447 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18448 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18449 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18450 | |
| 18451 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18452 | |
| 18453 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18454 | { echo "$as_me:$LINENO: checking for symlink" >&5 |
| 18455 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18456 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18457 | /* confdefs.h. */ |
| 18458 | _ACEOF |
| 18459 | cat confdefs.h >>conftest.$ac_ext |
| 18460 | cat >>conftest.$ac_ext <<_ACEOF |
| 18461 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18462 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18463 | int |
| 18464 | main () |
| 18465 | { |
| 18466 | void *x=symlink |
| 18467 | ; |
| 18468 | return 0; |
| 18469 | } |
| 18470 | _ACEOF |
| 18471 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18472 | if { (ac_try="$ac_compile" |
| 18473 | case "(($ac_try" in |
| 18474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18475 | *) ac_try_echo=$ac_try;; |
| 18476 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18478 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18479 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18480 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18481 | rm -f conftest.er1 |
| 18482 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18484 | (exit $ac_status); } && { |
| 18485 | test -z "$ac_c_werror_flag" || |
| 18486 | test ! -s conftest.err |
| 18487 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18488 | |
| 18489 | cat >>confdefs.h <<\_ACEOF |
| 18490 | #define HAVE_SYMLINK 1 |
| 18491 | _ACEOF |
| 18492 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18493 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18494 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18495 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18496 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18497 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18498 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18499 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18500 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18501 | |
| 18502 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18503 | |
| 18504 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18505 | { echo "$as_me:$LINENO: checking for fchdir" >&5 |
| 18506 | echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18507 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18508 | /* confdefs.h. */ |
| 18509 | _ACEOF |
| 18510 | cat confdefs.h >>conftest.$ac_ext |
| 18511 | cat >>conftest.$ac_ext <<_ACEOF |
| 18512 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18513 | #include <unistd.h> |
| 18514 | int |
| 18515 | main () |
| 18516 | { |
| 18517 | void *x=fchdir |
| 18518 | ; |
| 18519 | return 0; |
| 18520 | } |
| 18521 | _ACEOF |
| 18522 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18523 | if { (ac_try="$ac_compile" |
| 18524 | case "(($ac_try" in |
| 18525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18526 | *) ac_try_echo=$ac_try;; |
| 18527 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18529 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18530 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18531 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18532 | rm -f conftest.er1 |
| 18533 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18535 | (exit $ac_status); } && { |
| 18536 | test -z "$ac_c_werror_flag" || |
| 18537 | test ! -s conftest.err |
| 18538 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18539 | |
| 18540 | cat >>confdefs.h <<\_ACEOF |
| 18541 | #define HAVE_FCHDIR 1 |
| 18542 | _ACEOF |
| 18543 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18544 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18545 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18546 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18547 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18548 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18549 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18550 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18551 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18552 | |
| 18553 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18554 | |
| 18555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18556 | { echo "$as_me:$LINENO: checking for fsync" >&5 |
| 18557 | echo $ECHO_N "checking for fsync... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18558 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18559 | /* confdefs.h. */ |
| 18560 | _ACEOF |
| 18561 | cat confdefs.h >>conftest.$ac_ext |
| 18562 | cat >>conftest.$ac_ext <<_ACEOF |
| 18563 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18564 | #include <unistd.h> |
| 18565 | int |
| 18566 | main () |
| 18567 | { |
| 18568 | void *x=fsync |
| 18569 | ; |
| 18570 | return 0; |
| 18571 | } |
| 18572 | _ACEOF |
| 18573 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18574 | if { (ac_try="$ac_compile" |
| 18575 | case "(($ac_try" in |
| 18576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18577 | *) ac_try_echo=$ac_try;; |
| 18578 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18580 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18581 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18582 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18583 | rm -f conftest.er1 |
| 18584 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18586 | (exit $ac_status); } && { |
| 18587 | test -z "$ac_c_werror_flag" || |
| 18588 | test ! -s conftest.err |
| 18589 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18590 | |
| 18591 | cat >>confdefs.h <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18592 | #define HAVE_FSYNC 1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18593 | _ACEOF |
| 18594 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18595 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18596 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18597 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18598 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18599 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18600 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18601 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18602 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18603 | |
| 18604 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18605 | |
| 18606 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18607 | { echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 18608 | echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18609 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18610 | /* confdefs.h. */ |
| 18611 | _ACEOF |
| 18612 | cat confdefs.h >>conftest.$ac_ext |
| 18613 | cat >>conftest.$ac_ext <<_ACEOF |
| 18614 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18615 | #include <unistd.h> |
| 18616 | int |
| 18617 | main () |
| 18618 | { |
| 18619 | void *x=fdatasync |
| 18620 | ; |
| 18621 | return 0; |
| 18622 | } |
| 18623 | _ACEOF |
| 18624 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18625 | if { (ac_try="$ac_compile" |
| 18626 | case "(($ac_try" in |
| 18627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18628 | *) ac_try_echo=$ac_try;; |
| 18629 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18631 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18632 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18633 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18634 | rm -f conftest.er1 |
| 18635 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18637 | (exit $ac_status); } && { |
| 18638 | test -z "$ac_c_werror_flag" || |
| 18639 | test ! -s conftest.err |
| 18640 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18641 | |
| 18642 | cat >>confdefs.h <<\_ACEOF |
| 18643 | #define HAVE_FDATASYNC 1 |
| 18644 | _ACEOF |
| 18645 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18646 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18647 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18648 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18649 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18650 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18651 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18652 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18653 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18654 | |
| 18655 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18656 | |
| 18657 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18658 | { echo "$as_me:$LINENO: checking for epoll" >&5 |
| 18659 | echo $ECHO_N "checking for epoll... $ECHO_C" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18660 | cat >conftest.$ac_ext <<_ACEOF |
| 18661 | /* confdefs.h. */ |
| 18662 | _ACEOF |
| 18663 | cat confdefs.h >>conftest.$ac_ext |
| 18664 | cat >>conftest.$ac_ext <<_ACEOF |
| 18665 | /* end confdefs.h. */ |
| 18666 | #include <sys/epoll.h> |
| 18667 | int |
| 18668 | main () |
| 18669 | { |
| 18670 | void *x=epoll_create |
| 18671 | ; |
| 18672 | return 0; |
| 18673 | } |
| 18674 | _ACEOF |
| 18675 | rm -f conftest.$ac_objext |
| 18676 | if { (ac_try="$ac_compile" |
| 18677 | case "(($ac_try" in |
| 18678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18679 | *) ac_try_echo=$ac_try;; |
| 18680 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18682 | (eval "$ac_compile") 2>conftest.er1 |
| 18683 | ac_status=$? |
| 18684 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18685 | rm -f conftest.er1 |
| 18686 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18688 | (exit $ac_status); } && { |
| 18689 | test -z "$ac_c_werror_flag" || |
| 18690 | test ! -s conftest.err |
| 18691 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18692 | |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18693 | cat >>confdefs.h <<\_ACEOF |
| 18694 | #define HAVE_EPOLL 1 |
| 18695 | _ACEOF |
| 18696 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18697 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18698 | echo "${ECHO_T}yes" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18699 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18700 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18701 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18702 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18703 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18704 | echo "${ECHO_T}no" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18705 | |
| 18706 | fi |
| 18707 | |
| 18708 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18709 | { echo "$as_me:$LINENO: checking for kqueue" >&5 |
| 18710 | echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18711 | cat >conftest.$ac_ext <<_ACEOF |
| 18712 | /* confdefs.h. */ |
| 18713 | _ACEOF |
| 18714 | cat confdefs.h >>conftest.$ac_ext |
| 18715 | cat >>conftest.$ac_ext <<_ACEOF |
| 18716 | /* end confdefs.h. */ |
| 18717 | |
| 18718 | #include <sys/types.h> |
| 18719 | #include <sys/event.h> |
| 18720 | |
| 18721 | int |
| 18722 | main () |
| 18723 | { |
| 18724 | int x=kqueue() |
| 18725 | ; |
| 18726 | return 0; |
| 18727 | } |
| 18728 | _ACEOF |
| 18729 | rm -f conftest.$ac_objext |
| 18730 | if { (ac_try="$ac_compile" |
| 18731 | case "(($ac_try" in |
| 18732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18733 | *) ac_try_echo=$ac_try;; |
| 18734 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18736 | (eval "$ac_compile") 2>conftest.er1 |
| 18737 | ac_status=$? |
| 18738 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18739 | rm -f conftest.er1 |
| 18740 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18742 | (exit $ac_status); } && { |
| 18743 | test -z "$ac_c_werror_flag" || |
| 18744 | test ! -s conftest.err |
| 18745 | } && test -s conftest.$ac_objext; then |
| 18746 | |
| 18747 | cat >>confdefs.h <<\_ACEOF |
| 18748 | #define HAVE_KQUEUE 1 |
| 18749 | _ACEOF |
| 18750 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18751 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18752 | echo "${ECHO_T}yes" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18753 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18754 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18755 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18756 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18757 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18758 | echo "${ECHO_T}no" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18759 | |
| 18760 | fi |
| 18761 | |
| 18762 | 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] | 18763 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 18764 | # functions ctermid_r, setgroups in the library, but no prototype |
| 18765 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 18766 | # address to avoid compiler warnings and potential miscompilations |
| 18767 | # because of the missing prototypes. |
| 18768 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18769 | { echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 18770 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18771 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18772 | /* confdefs.h. */ |
| 18773 | _ACEOF |
| 18774 | cat confdefs.h >>conftest.$ac_ext |
| 18775 | cat >>conftest.$ac_ext <<_ACEOF |
| 18776 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18777 | |
| 18778 | #include "confdefs.h" |
| 18779 | #include <stdio.h> |
| 18780 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18781 | int |
| 18782 | main () |
| 18783 | { |
| 18784 | void* p = ctermid_r |
| 18785 | ; |
| 18786 | return 0; |
| 18787 | } |
| 18788 | _ACEOF |
| 18789 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18790 | if { (ac_try="$ac_compile" |
| 18791 | case "(($ac_try" in |
| 18792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18793 | *) ac_try_echo=$ac_try;; |
| 18794 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18796 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18797 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18798 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18799 | rm -f conftest.er1 |
| 18800 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18802 | (exit $ac_status); } && { |
| 18803 | test -z "$ac_c_werror_flag" || |
| 18804 | test ! -s conftest.err |
| 18805 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18806 | |
| 18807 | cat >>confdefs.h <<\_ACEOF |
| 18808 | #define HAVE_CTERMID_R 1 |
| 18809 | _ACEOF |
| 18810 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18811 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18812 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18813 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18814 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18815 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18816 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18817 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18818 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18819 | |
| 18820 | fi |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18821 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18822 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18823 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18824 | { echo "$as_me:$LINENO: checking for flock" >&5 |
| 18825 | echo $ECHO_N "checking for flock... $ECHO_C" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18826 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18827 | /* confdefs.h. */ |
| 18828 | _ACEOF |
| 18829 | cat confdefs.h >>conftest.$ac_ext |
| 18830 | cat >>conftest.$ac_ext <<_ACEOF |
| 18831 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18832 | |
| 18833 | #include "confdefs.h" |
| 18834 | #include <sys/file.h> |
| 18835 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18836 | int |
| 18837 | main () |
| 18838 | { |
| 18839 | void* p = flock |
| 18840 | ; |
| 18841 | return 0; |
| 18842 | } |
| 18843 | _ACEOF |
| 18844 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18845 | if { (ac_try="$ac_compile" |
| 18846 | case "(($ac_try" in |
| 18847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18848 | *) ac_try_echo=$ac_try;; |
| 18849 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18851 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18852 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18853 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18854 | rm -f conftest.er1 |
| 18855 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18857 | (exit $ac_status); } && { |
| 18858 | test -z "$ac_c_werror_flag" || |
| 18859 | test ! -s conftest.err |
| 18860 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18861 | |
| 18862 | cat >>confdefs.h <<\_ACEOF |
| 18863 | #define HAVE_FLOCK 1 |
| 18864 | _ACEOF |
| 18865 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18866 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18867 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18868 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18869 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18870 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18871 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18872 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18873 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18874 | |
| 18875 | fi |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18876 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18877 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18878 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18879 | { echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 18880 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18881 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18882 | /* confdefs.h. */ |
| 18883 | _ACEOF |
| 18884 | cat confdefs.h >>conftest.$ac_ext |
| 18885 | cat >>conftest.$ac_ext <<_ACEOF |
| 18886 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18887 | |
| 18888 | #include "confdefs.h" |
| 18889 | #include <unistd.h> |
| 18890 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18891 | int |
| 18892 | main () |
| 18893 | { |
| 18894 | void* p = getpagesize |
| 18895 | ; |
| 18896 | return 0; |
| 18897 | } |
| 18898 | _ACEOF |
| 18899 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18900 | if { (ac_try="$ac_compile" |
| 18901 | case "(($ac_try" in |
| 18902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18903 | *) ac_try_echo=$ac_try;; |
| 18904 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18906 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18907 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18908 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18909 | rm -f conftest.er1 |
| 18910 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18912 | (exit $ac_status); } && { |
| 18913 | test -z "$ac_c_werror_flag" || |
| 18914 | test ! -s conftest.err |
| 18915 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18916 | |
| 18917 | cat >>confdefs.h <<\_ACEOF |
| 18918 | #define HAVE_GETPAGESIZE 1 |
| 18919 | _ACEOF |
| 18920 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18921 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18922 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18923 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18924 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18925 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18926 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18927 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18928 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18929 | |
| 18930 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18931 | |
| 18932 | 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] | 18933 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18934 | for ac_prog in true |
| 18935 | do |
| 18936 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 18937 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18938 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 18939 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18940 | if test "${ac_cv_prog_TRUE+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18942 | else |
| 18943 | if test -n "$TRUE"; then |
| 18944 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 18945 | else |
| 18946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18947 | for as_dir in $PATH |
| 18948 | do |
| 18949 | IFS=$as_save_IFS |
| 18950 | test -z "$as_dir" && as_dir=. |
| 18951 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18952 | 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] | 18953 | ac_cv_prog_TRUE="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18954 | 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] | 18955 | break 2 |
| 18956 | fi |
| 18957 | done |
| 18958 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18959 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18960 | |
| 18961 | fi |
| 18962 | fi |
| 18963 | TRUE=$ac_cv_prog_TRUE |
| 18964 | if test -n "$TRUE"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18965 | { echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 18966 | echo "${ECHO_T}$TRUE" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18967 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18968 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18969 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18970 | fi |
| 18971 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18972 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18973 | test -n "$TRUE" && break |
| 18974 | done |
| 18975 | test -n "$TRUE" || TRUE="/bin/true" |
| 18976 | |
| 18977 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18978 | { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 18979 | 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] | 18980 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18982 | else |
| 18983 | ac_check_lib_save_LIBS=$LIBS |
| 18984 | LIBS="-lc $LIBS" |
| 18985 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18986 | /* confdefs.h. */ |
| 18987 | _ACEOF |
| 18988 | cat confdefs.h >>conftest.$ac_ext |
| 18989 | cat >>conftest.$ac_ext <<_ACEOF |
| 18990 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18991 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18992 | /* Override any GCC internal prototype to avoid an error. |
| 18993 | Use char because int might match the return type of a GCC |
| 18994 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18995 | #ifdef __cplusplus |
| 18996 | extern "C" |
| 18997 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18998 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18999 | int |
| 19000 | main () |
| 19001 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19002 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19003 | ; |
| 19004 | return 0; |
| 19005 | } |
| 19006 | _ACEOF |
| 19007 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19008 | if { (ac_try="$ac_link" |
| 19009 | case "(($ac_try" in |
| 19010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19011 | *) ac_try_echo=$ac_try;; |
| 19012 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19014 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19015 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19016 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19017 | rm -f conftest.er1 |
| 19018 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19020 | (exit $ac_status); } && { |
| 19021 | test -z "$ac_c_werror_flag" || |
| 19022 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19023 | } && test -s conftest$ac_exeext && |
| 19024 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19025 | ac_cv_lib_c_inet_aton=yes |
| 19026 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19027 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19028 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19029 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19030 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19031 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19032 | |
| 19033 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19034 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19035 | LIBS=$ac_check_lib_save_LIBS |
| 19036 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19037 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 19038 | echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; } |
| 19039 | if test $ac_cv_lib_c_inet_aton = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 19040 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19041 | else |
| 19042 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19043 | { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 19044 | 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] | 19045 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19046 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19047 | else |
| 19048 | ac_check_lib_save_LIBS=$LIBS |
| 19049 | LIBS="-lresolv $LIBS" |
| 19050 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19051 | /* confdefs.h. */ |
| 19052 | _ACEOF |
| 19053 | cat confdefs.h >>conftest.$ac_ext |
| 19054 | cat >>conftest.$ac_ext <<_ACEOF |
| 19055 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19056 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19057 | /* Override any GCC internal prototype to avoid an error. |
| 19058 | Use char because int might match the return type of a GCC |
| 19059 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19060 | #ifdef __cplusplus |
| 19061 | extern "C" |
| 19062 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19063 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19064 | int |
| 19065 | main () |
| 19066 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19067 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19068 | ; |
| 19069 | return 0; |
| 19070 | } |
| 19071 | _ACEOF |
| 19072 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19073 | if { (ac_try="$ac_link" |
| 19074 | case "(($ac_try" in |
| 19075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19076 | *) ac_try_echo=$ac_try;; |
| 19077 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19079 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19080 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19081 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19082 | rm -f conftest.er1 |
| 19083 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19085 | (exit $ac_status); } && { |
| 19086 | test -z "$ac_c_werror_flag" || |
| 19087 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19088 | } && test -s conftest$ac_exeext && |
| 19089 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19090 | ac_cv_lib_resolv_inet_aton=yes |
| 19091 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19092 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19093 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19094 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19095 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19096 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19097 | |
| 19098 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19099 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19100 | LIBS=$ac_check_lib_save_LIBS |
| 19101 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19102 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 19103 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; } |
| 19104 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19105 | cat >>confdefs.h <<_ACEOF |
| 19106 | #define HAVE_LIBRESOLV 1 |
| 19107 | _ACEOF |
| 19108 | |
| 19109 | LIBS="-lresolv $LIBS" |
| 19110 | |
| 19111 | fi |
| 19112 | |
| 19113 | |
| 19114 | fi |
| 19115 | |
| 19116 | |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19117 | # On Tru64, chflags seems to be present, but calling it will |
| 19118 | # exit Python |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19119 | { echo "$as_me:$LINENO: checking for chflags" >&5 |
| 19120 | echo $ECHO_N "checking for chflags... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19121 | if test "${ac_cv_have_chflags+set}" = set; then |
| 19122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19123 | else |
| 19124 | if test "$cross_compiling" = yes; then |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19125 | ac_cv_have_chflags=cross |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19126 | else |
| 19127 | cat >conftest.$ac_ext <<_ACEOF |
| 19128 | /* confdefs.h. */ |
| 19129 | _ACEOF |
| 19130 | cat confdefs.h >>conftest.$ac_ext |
| 19131 | cat >>conftest.$ac_ext <<_ACEOF |
| 19132 | /* end confdefs.h. */ |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19133 | [ |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19134 | #include <sys/stat.h> |
| 19135 | #include <unistd.h> |
| 19136 | int main(int argc, char*argv[]) |
| 19137 | { |
| 19138 | if(chflags(argv[0], 0) != 0) |
| 19139 | return 1; |
| 19140 | return 0; |
| 19141 | } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19142 | ] |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19143 | _ACEOF |
| 19144 | rm -f conftest$ac_exeext |
| 19145 | if { (ac_try="$ac_link" |
| 19146 | case "(($ac_try" in |
| 19147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19148 | *) ac_try_echo=$ac_try;; |
| 19149 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19151 | (eval "$ac_link") 2>&5 |
| 19152 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19154 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19155 | { (case "(($ac_try" in |
| 19156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19157 | *) ac_try_echo=$ac_try;; |
| 19158 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19160 | (eval "$ac_try") 2>&5 |
| 19161 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19163 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19164 | ac_cv_have_chflags=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19165 | else |
| 19166 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19167 | echo "$as_me: failed program was:" >&5 |
| 19168 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19169 | |
| 19170 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19171 | ac_cv_have_chflags=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19172 | fi |
| 19173 | 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] | 19174 | fi |
| 19175 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19176 | |
| 19177 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19178 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19179 | { echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5 |
| 19180 | echo "${ECHO_T}$ac_cv_have_chflags" >&6; } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19181 | if test "$ac_cv_have_chflags" = cross ; then |
| 19182 | { echo "$as_me:$LINENO: checking for chflags" >&5 |
| 19183 | echo $ECHO_N "checking for chflags... $ECHO_C" >&6; } |
| 19184 | if test "${ac_cv_func_chflags+set}" = set; then |
| 19185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19186 | else |
| 19187 | cat >conftest.$ac_ext <<_ACEOF |
| 19188 | /* confdefs.h. */ |
| 19189 | _ACEOF |
| 19190 | cat confdefs.h >>conftest.$ac_ext |
| 19191 | cat >>conftest.$ac_ext <<_ACEOF |
| 19192 | /* end confdefs.h. */ |
| 19193 | /* Define chflags to an innocuous variant, in case <limits.h> declares chflags. |
| 19194 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19195 | #define chflags innocuous_chflags |
| 19196 | |
| 19197 | /* System header to define __stub macros and hopefully few prototypes, |
| 19198 | which can conflict with char chflags (); below. |
| 19199 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19200 | <limits.h> exists even on freestanding compilers. */ |
| 19201 | |
| 19202 | #ifdef __STDC__ |
| 19203 | # include <limits.h> |
| 19204 | #else |
| 19205 | # include <assert.h> |
| 19206 | #endif |
| 19207 | |
| 19208 | #undef chflags |
| 19209 | |
| 19210 | /* Override any GCC internal prototype to avoid an error. |
| 19211 | Use char because int might match the return type of a GCC |
| 19212 | builtin and then its argument prototype would still apply. */ |
| 19213 | #ifdef __cplusplus |
| 19214 | extern "C" |
| 19215 | #endif |
| 19216 | char chflags (); |
| 19217 | /* The GNU C library defines this for functions which it implements |
| 19218 | to always fail with ENOSYS. Some functions are actually named |
| 19219 | something starting with __ and the normal name is an alias. */ |
| 19220 | #if defined __stub_chflags || defined __stub___chflags |
| 19221 | choke me |
| 19222 | #endif |
| 19223 | |
| 19224 | int |
| 19225 | main () |
| 19226 | { |
| 19227 | return chflags (); |
| 19228 | ; |
| 19229 | return 0; |
| 19230 | } |
| 19231 | _ACEOF |
| 19232 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19233 | if { (ac_try="$ac_link" |
| 19234 | case "(($ac_try" in |
| 19235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19236 | *) ac_try_echo=$ac_try;; |
| 19237 | esac |
| 19238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19239 | (eval "$ac_link") 2>conftest.er1 |
| 19240 | ac_status=$? |
| 19241 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19242 | rm -f conftest.er1 |
| 19243 | cat conftest.err >&5 |
| 19244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19245 | (exit $ac_status); } && { |
| 19246 | test -z "$ac_c_werror_flag" || |
| 19247 | test ! -s conftest.err |
| 19248 | } && test -s conftest$ac_exeext && |
| 19249 | $as_test_x conftest$ac_exeext; then |
| 19250 | ac_cv_func_chflags=yes |
| 19251 | else |
| 19252 | echo "$as_me: failed program was:" >&5 |
| 19253 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19254 | |
| 19255 | ac_cv_func_chflags=no |
| 19256 | fi |
| 19257 | |
| 19258 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 19259 | conftest$ac_exeext conftest.$ac_ext |
| 19260 | fi |
| 19261 | { echo "$as_me:$LINENO: result: $ac_cv_func_chflags" >&5 |
| 19262 | echo "${ECHO_T}$ac_cv_func_chflags" >&6; } |
| 19263 | if test $ac_cv_func_chflags = yes; then |
| 19264 | ac_cv_have_chflags="yes" |
| 19265 | else |
| 19266 | ac_cv_have_chflags="no" |
| 19267 | fi |
| 19268 | |
| 19269 | fi |
| 19270 | if test "$ac_cv_have_chflags" = yes ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19271 | |
| 19272 | cat >>confdefs.h <<\_ACEOF |
| 19273 | #define HAVE_CHFLAGS 1 |
| 19274 | _ACEOF |
| 19275 | |
| 19276 | fi |
| 19277 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19278 | { echo "$as_me:$LINENO: checking for lchflags" >&5 |
| 19279 | echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19280 | if test "${ac_cv_have_lchflags+set}" = set; then |
| 19281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19282 | else |
| 19283 | if test "$cross_compiling" = yes; then |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19284 | ac_cv_have_lchflags=cross |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19285 | else |
| 19286 | cat >conftest.$ac_ext <<_ACEOF |
| 19287 | /* confdefs.h. */ |
| 19288 | _ACEOF |
| 19289 | cat confdefs.h >>conftest.$ac_ext |
| 19290 | cat >>conftest.$ac_ext <<_ACEOF |
| 19291 | /* end confdefs.h. */ |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19292 | [ |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19293 | #include <sys/stat.h> |
| 19294 | #include <unistd.h> |
| 19295 | int main(int argc, char*argv[]) |
| 19296 | { |
| 19297 | if(lchflags(argv[0], 0) != 0) |
| 19298 | return 1; |
| 19299 | return 0; |
| 19300 | } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19301 | ] |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19302 | _ACEOF |
| 19303 | rm -f conftest$ac_exeext |
| 19304 | if { (ac_try="$ac_link" |
| 19305 | case "(($ac_try" in |
| 19306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19307 | *) ac_try_echo=$ac_try;; |
| 19308 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19310 | (eval "$ac_link") 2>&5 |
| 19311 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19313 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19314 | { (case "(($ac_try" in |
| 19315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19316 | *) ac_try_echo=$ac_try;; |
| 19317 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19319 | (eval "$ac_try") 2>&5 |
| 19320 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19322 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19323 | ac_cv_have_lchflags=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19324 | else |
| 19325 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19326 | echo "$as_me: failed program was:" >&5 |
| 19327 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19328 | |
| 19329 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19330 | ac_cv_have_lchflags=no |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19331 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19332 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 19333 | fi |
| 19334 | |
| 19335 | |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19336 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19337 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19338 | { echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5 |
| 19339 | echo "${ECHO_T}$ac_cv_have_lchflags" >&6; } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19340 | if test "$ac_cv_have_lchflags" = cross ; then |
| 19341 | { echo "$as_me:$LINENO: checking for lchflags" >&5 |
| 19342 | echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; } |
| 19343 | if test "${ac_cv_func_lchflags+set}" = set; then |
| 19344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19345 | else |
| 19346 | cat >conftest.$ac_ext <<_ACEOF |
| 19347 | /* confdefs.h. */ |
| 19348 | _ACEOF |
| 19349 | cat confdefs.h >>conftest.$ac_ext |
| 19350 | cat >>conftest.$ac_ext <<_ACEOF |
| 19351 | /* end confdefs.h. */ |
| 19352 | /* Define lchflags to an innocuous variant, in case <limits.h> declares lchflags. |
| 19353 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19354 | #define lchflags innocuous_lchflags |
| 19355 | |
| 19356 | /* System header to define __stub macros and hopefully few prototypes, |
| 19357 | which can conflict with char lchflags (); below. |
| 19358 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19359 | <limits.h> exists even on freestanding compilers. */ |
| 19360 | |
| 19361 | #ifdef __STDC__ |
| 19362 | # include <limits.h> |
| 19363 | #else |
| 19364 | # include <assert.h> |
| 19365 | #endif |
| 19366 | |
| 19367 | #undef lchflags |
| 19368 | |
| 19369 | /* Override any GCC internal prototype to avoid an error. |
| 19370 | Use char because int might match the return type of a GCC |
| 19371 | builtin and then its argument prototype would still apply. */ |
| 19372 | #ifdef __cplusplus |
| 19373 | extern "C" |
| 19374 | #endif |
| 19375 | char lchflags (); |
| 19376 | /* The GNU C library defines this for functions which it implements |
| 19377 | to always fail with ENOSYS. Some functions are actually named |
| 19378 | something starting with __ and the normal name is an alias. */ |
| 19379 | #if defined __stub_lchflags || defined __stub___lchflags |
| 19380 | choke me |
| 19381 | #endif |
| 19382 | |
| 19383 | int |
| 19384 | main () |
| 19385 | { |
| 19386 | return lchflags (); |
| 19387 | ; |
| 19388 | return 0; |
| 19389 | } |
| 19390 | _ACEOF |
| 19391 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19392 | if { (ac_try="$ac_link" |
| 19393 | case "(($ac_try" in |
| 19394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19395 | *) ac_try_echo=$ac_try;; |
| 19396 | esac |
| 19397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19398 | (eval "$ac_link") 2>conftest.er1 |
| 19399 | ac_status=$? |
| 19400 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19401 | rm -f conftest.er1 |
| 19402 | cat conftest.err >&5 |
| 19403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19404 | (exit $ac_status); } && { |
| 19405 | test -z "$ac_c_werror_flag" || |
| 19406 | test ! -s conftest.err |
| 19407 | } && test -s conftest$ac_exeext && |
| 19408 | $as_test_x conftest$ac_exeext; then |
| 19409 | ac_cv_func_lchflags=yes |
| 19410 | else |
| 19411 | echo "$as_me: failed program was:" >&5 |
| 19412 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19413 | |
| 19414 | ac_cv_func_lchflags=no |
| 19415 | fi |
| 19416 | |
| 19417 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 19418 | conftest$ac_exeext conftest.$ac_ext |
| 19419 | fi |
| 19420 | { echo "$as_me:$LINENO: result: $ac_cv_func_lchflags" >&5 |
| 19421 | echo "${ECHO_T}$ac_cv_func_lchflags" >&6; } |
| 19422 | if test $ac_cv_func_lchflags = yes; then |
| 19423 | ac_cv_have_lchflags="yes" |
| 19424 | else |
| 19425 | ac_cv_have_lchflags="no" |
| 19426 | fi |
| 19427 | |
| 19428 | fi |
| 19429 | if test "$ac_cv_have_lchflags" = yes ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19430 | |
| 19431 | cat >>confdefs.h <<\_ACEOF |
| 19432 | #define HAVE_LCHFLAGS 1 |
| 19433 | _ACEOF |
| 19434 | |
| 19435 | fi |
| 19436 | |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 19437 | case $ac_sys_system/$ac_sys_release in |
| 19438 | Darwin/*) |
| 19439 | _CUR_CFLAGS="${CFLAGS}" |
| 19440 | _CUR_LDFLAGS="${LDFLAGS}" |
| 19441 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" |
| 19442 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" |
| 19443 | ;; |
| 19444 | esac |
| 19445 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19446 | { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5 |
| 19447 | echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; } |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19448 | if test "${ac_cv_lib_z_inflateCopy+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19450 | else |
| 19451 | ac_check_lib_save_LIBS=$LIBS |
| 19452 | LIBS="-lz $LIBS" |
| 19453 | cat >conftest.$ac_ext <<_ACEOF |
| 19454 | /* confdefs.h. */ |
| 19455 | _ACEOF |
| 19456 | cat confdefs.h >>conftest.$ac_ext |
| 19457 | cat >>conftest.$ac_ext <<_ACEOF |
| 19458 | /* end confdefs.h. */ |
| 19459 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 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. */ |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19463 | #ifdef __cplusplus |
| 19464 | extern "C" |
| 19465 | #endif |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19466 | char inflateCopy (); |
| 19467 | int |
| 19468 | main () |
| 19469 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19470 | return inflateCopy (); |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19471 | ; |
| 19472 | return 0; |
| 19473 | } |
| 19474 | _ACEOF |
| 19475 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19476 | if { (ac_try="$ac_link" |
| 19477 | case "(($ac_try" in |
| 19478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19479 | *) ac_try_echo=$ac_try;; |
| 19480 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19482 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19483 | ac_status=$? |
| 19484 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19485 | rm -f conftest.er1 |
| 19486 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19488 | (exit $ac_status); } && { |
| 19489 | test -z "$ac_c_werror_flag" || |
| 19490 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19491 | } && test -s conftest$ac_exeext && |
| 19492 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19493 | ac_cv_lib_z_inflateCopy=yes |
| 19494 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19495 | echo "$as_me: failed program was:" >&5 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19496 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19497 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19498 | ac_cv_lib_z_inflateCopy=no |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19499 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19500 | |
| 19501 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19502 | conftest$ac_exeext conftest.$ac_ext |
| 19503 | LIBS=$ac_check_lib_save_LIBS |
| 19504 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19505 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5 |
| 19506 | echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; } |
| 19507 | if test $ac_cv_lib_z_inflateCopy = yes; then |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19508 | |
| 19509 | cat >>confdefs.h <<\_ACEOF |
| 19510 | #define HAVE_ZLIB_COPY 1 |
| 19511 | _ACEOF |
| 19512 | |
| 19513 | fi |
| 19514 | |
| 19515 | |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 19516 | case $ac_sys_system/$ac_sys_release in |
| 19517 | Darwin/*) |
| 19518 | CFLAGS="${_CUR_CFLAGS}" |
| 19519 | LDFLAGS="${_CUR_LDFLAGS}" |
| 19520 | ;; |
| 19521 | esac |
| 19522 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19523 | { echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 19524 | echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19525 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19526 | /* confdefs.h. */ |
| 19527 | _ACEOF |
| 19528 | cat confdefs.h >>conftest.$ac_ext |
| 19529 | cat >>conftest.$ac_ext <<_ACEOF |
| 19530 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19531 | |
| 19532 | #include "confdefs.h" |
| 19533 | #include <netdb.h> |
| 19534 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19535 | int |
| 19536 | main () |
| 19537 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19538 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19539 | ; |
| 19540 | return 0; |
| 19541 | } |
| 19542 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19543 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19544 | if { (ac_try="$ac_link" |
| 19545 | case "(($ac_try" in |
| 19546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19547 | *) ac_try_echo=$ac_try;; |
| 19548 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19550 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19551 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19552 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19553 | rm -f conftest.er1 |
| 19554 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19556 | (exit $ac_status); } && { |
| 19557 | test -z "$ac_c_werror_flag" || |
| 19558 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19559 | } && test -s conftest$ac_exeext && |
| 19560 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19561 | |
| 19562 | cat >>confdefs.h <<\_ACEOF |
| 19563 | #define HAVE_HSTRERROR 1 |
| 19564 | _ACEOF |
| 19565 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19566 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19567 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19568 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19569 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19570 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19571 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19572 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19573 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19574 | |
| 19575 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19576 | |
| 19577 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19578 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19579 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19580 | { echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 19581 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19582 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19583 | /* confdefs.h. */ |
| 19584 | _ACEOF |
| 19585 | cat confdefs.h >>conftest.$ac_ext |
| 19586 | cat >>conftest.$ac_ext <<_ACEOF |
| 19587 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19588 | |
| 19589 | #include "confdefs.h" |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 19590 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19591 | #include <sys/socket.h> |
| 19592 | #include <netinet/in.h> |
| 19593 | #include <arpa/inet.h> |
| 19594 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19595 | int |
| 19596 | main () |
| 19597 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19598 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19599 | ; |
| 19600 | return 0; |
| 19601 | } |
| 19602 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19603 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19604 | if { (ac_try="$ac_link" |
| 19605 | case "(($ac_try" in |
| 19606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19607 | *) ac_try_echo=$ac_try;; |
| 19608 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19610 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19611 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19612 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19613 | rm -f conftest.er1 |
| 19614 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19616 | (exit $ac_status); } && { |
| 19617 | test -z "$ac_c_werror_flag" || |
| 19618 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19619 | } && test -s conftest$ac_exeext && |
| 19620 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19621 | |
| 19622 | cat >>confdefs.h <<\_ACEOF |
| 19623 | #define HAVE_INET_ATON 1 |
| 19624 | _ACEOF |
| 19625 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19626 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19627 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19628 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19629 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19630 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19631 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19632 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19633 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19634 | |
| 19635 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19636 | |
| 19637 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19638 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19639 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19640 | { echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 19641 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19642 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19643 | /* confdefs.h. */ |
| 19644 | _ACEOF |
| 19645 | cat confdefs.h >>conftest.$ac_ext |
| 19646 | cat >>conftest.$ac_ext <<_ACEOF |
| 19647 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19648 | |
| 19649 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 19650 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19651 | #include <sys/socket.h> |
| 19652 | #include <netinet/in.h> |
| 19653 | #include <arpa/inet.h> |
| 19654 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19655 | int |
| 19656 | main () |
| 19657 | { |
| 19658 | void* p = inet_pton |
| 19659 | ; |
| 19660 | return 0; |
| 19661 | } |
| 19662 | _ACEOF |
| 19663 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19664 | if { (ac_try="$ac_compile" |
| 19665 | case "(($ac_try" in |
| 19666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19667 | *) ac_try_echo=$ac_try;; |
| 19668 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19670 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19671 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19672 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19673 | rm -f conftest.er1 |
| 19674 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19676 | (exit $ac_status); } && { |
| 19677 | test -z "$ac_c_werror_flag" || |
| 19678 | test ! -s conftest.err |
| 19679 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19680 | |
| 19681 | cat >>confdefs.h <<\_ACEOF |
| 19682 | #define HAVE_INET_PTON 1 |
| 19683 | _ACEOF |
| 19684 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19685 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19686 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19687 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19688 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19689 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19690 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19691 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19692 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19693 | |
| 19694 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19695 | |
| 19696 | 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] | 19697 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 19698 | # 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] | 19699 | { echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 19700 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19701 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19702 | /* confdefs.h. */ |
| 19703 | _ACEOF |
| 19704 | cat confdefs.h >>conftest.$ac_ext |
| 19705 | cat >>conftest.$ac_ext <<_ACEOF |
| 19706 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19707 | |
| 19708 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 19709 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 19710 | #ifdef HAVE_GRP_H |
| 19711 | #include <grp.h> |
| 19712 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19713 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19714 | int |
| 19715 | main () |
| 19716 | { |
| 19717 | void* p = setgroups |
| 19718 | ; |
| 19719 | return 0; |
| 19720 | } |
| 19721 | _ACEOF |
| 19722 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19723 | if { (ac_try="$ac_compile" |
| 19724 | case "(($ac_try" in |
| 19725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19726 | *) ac_try_echo=$ac_try;; |
| 19727 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19729 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19730 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19731 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19732 | rm -f conftest.er1 |
| 19733 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19735 | (exit $ac_status); } && { |
| 19736 | test -z "$ac_c_werror_flag" || |
| 19737 | test ! -s conftest.err |
| 19738 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19739 | |
| 19740 | cat >>confdefs.h <<\_ACEOF |
| 19741 | #define HAVE_SETGROUPS 1 |
| 19742 | _ACEOF |
| 19743 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19744 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19745 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19746 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19747 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19748 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19749 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19750 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19751 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19752 | |
| 19753 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19754 | |
| 19755 | 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] | 19756 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19757 | # check for openpty and forkpty |
| 19758 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19759 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19760 | for ac_func in openpty |
| 19761 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19762 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19763 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19764 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19765 | 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] | 19766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19767 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19768 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19769 | /* confdefs.h. */ |
| 19770 | _ACEOF |
| 19771 | cat confdefs.h >>conftest.$ac_ext |
| 19772 | cat >>conftest.$ac_ext <<_ACEOF |
| 19773 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19774 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19775 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19776 | #define $ac_func innocuous_$ac_func |
| 19777 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19778 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19779 | which can conflict with char $ac_func (); below. |
| 19780 | 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] | 19781 | <limits.h> exists even on freestanding compilers. */ |
| 19782 | |
| 19783 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19784 | # include <limits.h> |
| 19785 | #else |
| 19786 | # include <assert.h> |
| 19787 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19788 | |
| 19789 | #undef $ac_func |
| 19790 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19791 | /* Override any GCC internal prototype to avoid an error. |
| 19792 | Use char because int might match the return type of a GCC |
| 19793 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19794 | #ifdef __cplusplus |
| 19795 | extern "C" |
| 19796 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19797 | char $ac_func (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19798 | /* The GNU C library defines this for functions which it implements |
| 19799 | to always fail with ENOSYS. Some functions are actually named |
| 19800 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19801 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19802 | choke me |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19803 | #endif |
| 19804 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19805 | int |
| 19806 | main () |
| 19807 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19808 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19809 | ; |
| 19810 | return 0; |
| 19811 | } |
| 19812 | _ACEOF |
| 19813 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19814 | if { (ac_try="$ac_link" |
| 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_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +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 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19829 | } && test -s conftest$ac_exeext && |
| 19830 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19831 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19832 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19833 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19834 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19835 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19836 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19837 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19838 | |
| 19839 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19840 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19841 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19842 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19843 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19844 | echo "${ECHO_T}$ac_res" >&6; } |
| 19845 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19846 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19847 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19848 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19849 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19850 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19851 | { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 19852 | 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] | 19853 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19855 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19856 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19857 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19858 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19859 | /* confdefs.h. */ |
| 19860 | _ACEOF |
| 19861 | cat confdefs.h >>conftest.$ac_ext |
| 19862 | cat >>conftest.$ac_ext <<_ACEOF |
| 19863 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19864 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19865 | /* Override any GCC internal prototype to avoid an error. |
| 19866 | Use char because int might match the return type of a GCC |
| 19867 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19868 | #ifdef __cplusplus |
| 19869 | extern "C" |
| 19870 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19871 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19872 | int |
| 19873 | main () |
| 19874 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19875 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19876 | ; |
| 19877 | return 0; |
| 19878 | } |
| 19879 | _ACEOF |
| 19880 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19881 | if { (ac_try="$ac_link" |
| 19882 | case "(($ac_try" in |
| 19883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19884 | *) ac_try_echo=$ac_try;; |
| 19885 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19887 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19888 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19889 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19890 | rm -f conftest.er1 |
| 19891 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19893 | (exit $ac_status); } && { |
| 19894 | test -z "$ac_c_werror_flag" || |
| 19895 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19896 | } && test -s conftest$ac_exeext && |
| 19897 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19898 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19899 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19900 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19901 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19902 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19903 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19904 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19905 | |
| 19906 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19907 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19908 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19909 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19910 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 19911 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; } |
| 19912 | if test $ac_cv_lib_util_openpty = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19913 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19914 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19915 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19916 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19917 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19918 | { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5 |
| 19919 | 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] | 19920 | if test "${ac_cv_lib_bsd_openpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19922 | else |
| 19923 | ac_check_lib_save_LIBS=$LIBS |
| 19924 | LIBS="-lbsd $LIBS" |
| 19925 | cat >conftest.$ac_ext <<_ACEOF |
| 19926 | /* confdefs.h. */ |
| 19927 | _ACEOF |
| 19928 | cat confdefs.h >>conftest.$ac_ext |
| 19929 | cat >>conftest.$ac_ext <<_ACEOF |
| 19930 | /* end confdefs.h. */ |
| 19931 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19932 | /* Override any GCC internal prototype to avoid an error. |
| 19933 | Use char because int might match the return type of a GCC |
| 19934 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19935 | #ifdef __cplusplus |
| 19936 | extern "C" |
| 19937 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19938 | char openpty (); |
| 19939 | int |
| 19940 | main () |
| 19941 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19942 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19943 | ; |
| 19944 | return 0; |
| 19945 | } |
| 19946 | _ACEOF |
| 19947 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19948 | if { (ac_try="$ac_link" |
| 19949 | case "(($ac_try" in |
| 19950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19951 | *) ac_try_echo=$ac_try;; |
| 19952 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19954 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19955 | ac_status=$? |
| 19956 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19957 | rm -f conftest.er1 |
| 19958 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19960 | (exit $ac_status); } && { |
| 19961 | test -z "$ac_c_werror_flag" || |
| 19962 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19963 | } && test -s conftest$ac_exeext && |
| 19964 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19965 | ac_cv_lib_bsd_openpty=yes |
| 19966 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19967 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19968 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19969 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19970 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19971 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19972 | |
| 19973 | 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] | 19974 | conftest$ac_exeext conftest.$ac_ext |
| 19975 | LIBS=$ac_check_lib_save_LIBS |
| 19976 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19977 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5 |
| 19978 | echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; } |
| 19979 | if test $ac_cv_lib_bsd_openpty = yes; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19980 | cat >>confdefs.h <<\_ACEOF |
| 19981 | #define HAVE_OPENPTY 1 |
| 19982 | _ACEOF |
| 19983 | LIBS="$LIBS -lbsd" |
| 19984 | fi |
| 19985 | |
| 19986 | |
| 19987 | fi |
| 19988 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19989 | |
| 19990 | fi |
| 19991 | done |
| 19992 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19993 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19994 | for ac_func in forkpty |
| 19995 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19996 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19997 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19998 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19999 | 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] | 20000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20001 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20002 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20003 | /* confdefs.h. */ |
| 20004 | _ACEOF |
| 20005 | cat confdefs.h >>conftest.$ac_ext |
| 20006 | cat >>conftest.$ac_ext <<_ACEOF |
| 20007 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20008 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20009 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20010 | #define $ac_func innocuous_$ac_func |
| 20011 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20012 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20013 | which can conflict with char $ac_func (); below. |
| 20014 | 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] | 20015 | <limits.h> exists even on freestanding compilers. */ |
| 20016 | |
| 20017 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20018 | # include <limits.h> |
| 20019 | #else |
| 20020 | # include <assert.h> |
| 20021 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20022 | |
| 20023 | #undef $ac_func |
| 20024 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20025 | /* Override any GCC internal prototype to avoid an error. |
| 20026 | Use char because int might match the return type of a GCC |
| 20027 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20028 | #ifdef __cplusplus |
| 20029 | extern "C" |
| 20030 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20031 | char $ac_func (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20032 | /* The GNU C library defines this for functions which it implements |
| 20033 | to always fail with ENOSYS. Some functions are actually named |
| 20034 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20035 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20036 | choke me |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20037 | #endif |
| 20038 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20039 | int |
| 20040 | main () |
| 20041 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20042 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20043 | ; |
| 20044 | return 0; |
| 20045 | } |
| 20046 | _ACEOF |
| 20047 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20048 | if { (ac_try="$ac_link" |
| 20049 | case "(($ac_try" in |
| 20050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20051 | *) ac_try_echo=$ac_try;; |
| 20052 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20054 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20055 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20056 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20057 | rm -f conftest.er1 |
| 20058 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20060 | (exit $ac_status); } && { |
| 20061 | test -z "$ac_c_werror_flag" || |
| 20062 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20063 | } && test -s conftest$ac_exeext && |
| 20064 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20065 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20066 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20067 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20068 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20069 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20070 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20071 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20072 | |
| 20073 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20074 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20075 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20076 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20077 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20078 | echo "${ECHO_T}$ac_res" >&6; } |
| 20079 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20080 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20081 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20082 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20083 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20084 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20085 | { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 20086 | 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] | 20087 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20089 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20090 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20091 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20092 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20093 | /* confdefs.h. */ |
| 20094 | _ACEOF |
| 20095 | cat confdefs.h >>conftest.$ac_ext |
| 20096 | cat >>conftest.$ac_ext <<_ACEOF |
| 20097 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20098 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20099 | /* Override any GCC internal prototype to avoid an error. |
| 20100 | Use char because int might match the return type of a GCC |
| 20101 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20102 | #ifdef __cplusplus |
| 20103 | extern "C" |
| 20104 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20105 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20106 | int |
| 20107 | main () |
| 20108 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20109 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20110 | ; |
| 20111 | return 0; |
| 20112 | } |
| 20113 | _ACEOF |
| 20114 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20115 | if { (ac_try="$ac_link" |
| 20116 | case "(($ac_try" in |
| 20117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20118 | *) ac_try_echo=$ac_try;; |
| 20119 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20121 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20122 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20123 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20124 | rm -f conftest.er1 |
| 20125 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20127 | (exit $ac_status); } && { |
| 20128 | test -z "$ac_c_werror_flag" || |
| 20129 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20130 | } && test -s conftest$ac_exeext && |
| 20131 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20132 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20133 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20134 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20135 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20136 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20137 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20138 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20139 | |
| 20140 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20141 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20142 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20143 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20144 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 20145 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; } |
| 20146 | if test $ac_cv_lib_util_forkpty = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20147 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20148 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20149 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20150 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20151 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20152 | { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5 |
| 20153 | 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] | 20154 | if test "${ac_cv_lib_bsd_forkpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20156 | else |
| 20157 | ac_check_lib_save_LIBS=$LIBS |
| 20158 | LIBS="-lbsd $LIBS" |
| 20159 | cat >conftest.$ac_ext <<_ACEOF |
| 20160 | /* confdefs.h. */ |
| 20161 | _ACEOF |
| 20162 | cat confdefs.h >>conftest.$ac_ext |
| 20163 | cat >>conftest.$ac_ext <<_ACEOF |
| 20164 | /* end confdefs.h. */ |
| 20165 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20166 | /* Override any GCC internal prototype to avoid an error. |
| 20167 | Use char because int might match the return type of a GCC |
| 20168 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20169 | #ifdef __cplusplus |
| 20170 | extern "C" |
| 20171 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20172 | char forkpty (); |
| 20173 | int |
| 20174 | main () |
| 20175 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20176 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20177 | ; |
| 20178 | return 0; |
| 20179 | } |
| 20180 | _ACEOF |
| 20181 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20182 | if { (ac_try="$ac_link" |
| 20183 | case "(($ac_try" in |
| 20184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20185 | *) ac_try_echo=$ac_try;; |
| 20186 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20188 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20189 | ac_status=$? |
| 20190 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20191 | rm -f conftest.er1 |
| 20192 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20194 | (exit $ac_status); } && { |
| 20195 | test -z "$ac_c_werror_flag" || |
| 20196 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20197 | } && test -s conftest$ac_exeext && |
| 20198 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20199 | ac_cv_lib_bsd_forkpty=yes |
| 20200 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20201 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20202 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20203 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20204 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20205 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20206 | |
| 20207 | 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] | 20208 | conftest$ac_exeext conftest.$ac_ext |
| 20209 | LIBS=$ac_check_lib_save_LIBS |
| 20210 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20211 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5 |
| 20212 | echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; } |
| 20213 | if test $ac_cv_lib_bsd_forkpty = yes; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20214 | cat >>confdefs.h <<\_ACEOF |
| 20215 | #define HAVE_FORKPTY 1 |
| 20216 | _ACEOF |
| 20217 | LIBS="$LIBS -lbsd" |
| 20218 | fi |
| 20219 | |
| 20220 | |
| 20221 | fi |
| 20222 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20223 | |
| 20224 | fi |
| 20225 | done |
| 20226 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20227 | |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20228 | # Stuff for expat. |
| 20229 | |
| 20230 | for ac_func in memmove |
| 20231 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20232 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20233 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20234 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20235 | 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] | 20236 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20237 | else |
| 20238 | cat >conftest.$ac_ext <<_ACEOF |
| 20239 | /* confdefs.h. */ |
| 20240 | _ACEOF |
| 20241 | cat confdefs.h >>conftest.$ac_ext |
| 20242 | cat >>conftest.$ac_ext <<_ACEOF |
| 20243 | /* end confdefs.h. */ |
| 20244 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20245 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20246 | #define $ac_func innocuous_$ac_func |
| 20247 | |
| 20248 | /* System header to define __stub macros and hopefully few prototypes, |
| 20249 | which can conflict with char $ac_func (); below. |
| 20250 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20251 | <limits.h> exists even on freestanding compilers. */ |
| 20252 | |
| 20253 | #ifdef __STDC__ |
| 20254 | # include <limits.h> |
| 20255 | #else |
| 20256 | # include <assert.h> |
| 20257 | #endif |
| 20258 | |
| 20259 | #undef $ac_func |
| 20260 | |
| 20261 | /* Override any GCC internal prototype to avoid an error. |
| 20262 | Use char because int might match the return type of a GCC |
| 20263 | builtin and then its argument prototype would still apply. */ |
| 20264 | #ifdef __cplusplus |
| 20265 | extern "C" |
| 20266 | #endif |
| 20267 | char $ac_func (); |
| 20268 | /* The GNU C library defines this for functions which it implements |
| 20269 | to always fail with ENOSYS. Some functions are actually named |
| 20270 | something starting with __ and the normal name is an alias. */ |
| 20271 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 20272 | choke me |
| 20273 | #endif |
| 20274 | |
| 20275 | int |
| 20276 | main () |
| 20277 | { |
| 20278 | return $ac_func (); |
| 20279 | ; |
| 20280 | return 0; |
| 20281 | } |
| 20282 | _ACEOF |
| 20283 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20284 | if { (ac_try="$ac_link" |
| 20285 | case "(($ac_try" in |
| 20286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20287 | *) ac_try_echo=$ac_try;; |
| 20288 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20290 | (eval "$ac_link") 2>conftest.er1 |
| 20291 | ac_status=$? |
| 20292 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20293 | rm -f conftest.er1 |
| 20294 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20296 | (exit $ac_status); } && { |
| 20297 | test -z "$ac_c_werror_flag" || |
| 20298 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20299 | } && test -s conftest$ac_exeext && |
| 20300 | $as_test_x conftest$ac_exeext; then |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20301 | eval "$as_ac_var=yes" |
| 20302 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20303 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20304 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20305 | |
| 20306 | eval "$as_ac_var=no" |
| 20307 | fi |
| 20308 | |
| 20309 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 20310 | conftest$ac_exeext conftest.$ac_ext |
| 20311 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20312 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20313 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20314 | echo "${ECHO_T}$ac_res" >&6; } |
| 20315 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20316 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20317 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20318 | _ACEOF |
| 20319 | |
| 20320 | fi |
| 20321 | done |
| 20322 | |
| 20323 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20324 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20325 | |
| 20326 | |
| 20327 | |
| 20328 | |
| 20329 | |
| 20330 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20331 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 20332 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20333 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20334 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20335 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20336 | 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] | 20337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20338 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20339 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20340 | /* confdefs.h. */ |
| 20341 | _ACEOF |
| 20342 | cat confdefs.h >>conftest.$ac_ext |
| 20343 | cat >>conftest.$ac_ext <<_ACEOF |
| 20344 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20345 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20346 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20347 | #define $ac_func innocuous_$ac_func |
| 20348 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20349 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20350 | which can conflict with char $ac_func (); below. |
| 20351 | 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] | 20352 | <limits.h> exists even on freestanding compilers. */ |
| 20353 | |
| 20354 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20355 | # include <limits.h> |
| 20356 | #else |
| 20357 | # include <assert.h> |
| 20358 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20359 | |
| 20360 | #undef $ac_func |
| 20361 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20362 | /* Override any GCC internal prototype to avoid an error. |
| 20363 | Use char because int might match the return type of a GCC |
| 20364 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20365 | #ifdef __cplusplus |
| 20366 | extern "C" |
| 20367 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20368 | char $ac_func (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20369 | /* The GNU C library defines this for functions which it implements |
| 20370 | to always fail with ENOSYS. Some functions are actually named |
| 20371 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20372 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20373 | choke me |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20374 | #endif |
| 20375 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20376 | int |
| 20377 | main () |
| 20378 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20379 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20380 | ; |
| 20381 | return 0; |
| 20382 | } |
| 20383 | _ACEOF |
| 20384 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20385 | if { (ac_try="$ac_link" |
| 20386 | case "(($ac_try" in |
| 20387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20388 | *) ac_try_echo=$ac_try;; |
| 20389 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20391 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20392 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20393 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20394 | rm -f conftest.er1 |
| 20395 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20397 | (exit $ac_status); } && { |
| 20398 | test -z "$ac_c_werror_flag" || |
| 20399 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20400 | } && test -s conftest$ac_exeext && |
| 20401 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20402 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20403 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20404 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20405 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20406 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20407 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20408 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20409 | |
| 20410 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20411 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20412 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20413 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20414 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20415 | echo "${ECHO_T}$ac_res" >&6; } |
| 20416 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20417 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20418 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20419 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20420 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20421 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20422 | done |
| 20423 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20424 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20425 | |
| 20426 | |
| 20427 | |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20428 | for ac_func in dup2 getcwd strdup |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20429 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20430 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20431 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20432 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20433 | 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] | 20434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20435 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20436 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20437 | /* confdefs.h. */ |
| 20438 | _ACEOF |
| 20439 | cat confdefs.h >>conftest.$ac_ext |
| 20440 | cat >>conftest.$ac_ext <<_ACEOF |
| 20441 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20442 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20443 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20444 | #define $ac_func innocuous_$ac_func |
| 20445 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20446 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20447 | which can conflict with char $ac_func (); below. |
| 20448 | 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] | 20449 | <limits.h> exists even on freestanding compilers. */ |
| 20450 | |
| 20451 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20452 | # include <limits.h> |
| 20453 | #else |
| 20454 | # include <assert.h> |
| 20455 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20456 | |
| 20457 | #undef $ac_func |
| 20458 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20459 | /* Override any GCC internal prototype to avoid an error. |
| 20460 | Use char because int might match the return type of a GCC |
| 20461 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20462 | #ifdef __cplusplus |
| 20463 | extern "C" |
| 20464 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20465 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20466 | /* The GNU C library defines this for functions which it implements |
| 20467 | to always fail with ENOSYS. Some functions are actually named |
| 20468 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20469 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20470 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20471 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20472 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20473 | int |
| 20474 | main () |
| 20475 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20476 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20477 | ; |
| 20478 | return 0; |
| 20479 | } |
| 20480 | _ACEOF |
| 20481 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20482 | if { (ac_try="$ac_link" |
| 20483 | case "(($ac_try" in |
| 20484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20485 | *) ac_try_echo=$ac_try;; |
| 20486 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20487 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20488 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20489 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20490 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20491 | rm -f conftest.er1 |
| 20492 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20494 | (exit $ac_status); } && { |
| 20495 | test -z "$ac_c_werror_flag" || |
| 20496 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20497 | } && test -s conftest$ac_exeext && |
| 20498 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20499 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20500 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20501 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20502 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20503 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20504 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20505 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20506 | |
| 20507 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20508 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20509 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20510 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20511 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20512 | echo "${ECHO_T}$ac_res" >&6; } |
| 20513 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20514 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20515 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20516 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20517 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20518 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20519 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20520 | *" $ac_func.$ac_objext "* ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20521 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
| 20522 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20523 | esac |
| 20524 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20525 | fi |
| 20526 | done |
| 20527 | |
| 20528 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20529 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20530 | for ac_func in getpgrp |
| 20531 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20532 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20533 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20534 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20535 | 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] | 20536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20537 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20538 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20539 | /* confdefs.h. */ |
| 20540 | _ACEOF |
| 20541 | cat confdefs.h >>conftest.$ac_ext |
| 20542 | cat >>conftest.$ac_ext <<_ACEOF |
| 20543 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20544 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20545 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20546 | #define $ac_func innocuous_$ac_func |
| 20547 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20548 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20549 | which can conflict with char $ac_func (); below. |
| 20550 | 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] | 20551 | <limits.h> exists even on freestanding compilers. */ |
| 20552 | |
| 20553 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20554 | # include <limits.h> |
| 20555 | #else |
| 20556 | # include <assert.h> |
| 20557 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20558 | |
| 20559 | #undef $ac_func |
| 20560 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20561 | /* Override any GCC internal prototype to avoid an error. |
| 20562 | Use char because int might match the return type of a GCC |
| 20563 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20564 | #ifdef __cplusplus |
| 20565 | extern "C" |
| 20566 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20567 | char $ac_func (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20568 | /* The GNU C library defines this for functions which it implements |
| 20569 | to always fail with ENOSYS. Some functions are actually named |
| 20570 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20571 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20572 | choke me |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20573 | #endif |
| 20574 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20575 | int |
| 20576 | main () |
| 20577 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20578 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20579 | ; |
| 20580 | return 0; |
| 20581 | } |
| 20582 | _ACEOF |
| 20583 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20584 | if { (ac_try="$ac_link" |
| 20585 | case "(($ac_try" in |
| 20586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20587 | *) ac_try_echo=$ac_try;; |
| 20588 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20590 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20591 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20592 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20593 | rm -f conftest.er1 |
| 20594 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20596 | (exit $ac_status); } && { |
| 20597 | test -z "$ac_c_werror_flag" || |
| 20598 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20599 | } && test -s conftest$ac_exeext && |
| 20600 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20601 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20602 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20603 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20604 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20605 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20606 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20607 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20608 | |
| 20609 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20610 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20611 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20612 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20613 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20614 | echo "${ECHO_T}$ac_res" >&6; } |
| 20615 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20616 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20617 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20618 | _ACEOF |
| 20619 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20620 | /* confdefs.h. */ |
| 20621 | _ACEOF |
| 20622 | cat confdefs.h >>conftest.$ac_ext |
| 20623 | cat >>conftest.$ac_ext <<_ACEOF |
| 20624 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20625 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20626 | int |
| 20627 | main () |
| 20628 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20629 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20630 | ; |
| 20631 | return 0; |
| 20632 | } |
| 20633 | _ACEOF |
| 20634 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20635 | if { (ac_try="$ac_compile" |
| 20636 | case "(($ac_try" in |
| 20637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20638 | *) ac_try_echo=$ac_try;; |
| 20639 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20641 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20642 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20643 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20644 | rm -f conftest.er1 |
| 20645 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20647 | (exit $ac_status); } && { |
| 20648 | test -z "$ac_c_werror_flag" || |
| 20649 | test ! -s conftest.err |
| 20650 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20651 | |
| 20652 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20653 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20654 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20655 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20656 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 20657 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20658 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20660 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20661 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20662 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20663 | |
| 20664 | 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] | 20665 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20666 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20667 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20668 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20669 | |
| 20670 | for ac_func in setpgrp |
| 20671 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20672 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20673 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20674 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20675 | 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] | 20676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20677 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20678 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20679 | /* confdefs.h. */ |
| 20680 | _ACEOF |
| 20681 | cat confdefs.h >>conftest.$ac_ext |
| 20682 | cat >>conftest.$ac_ext <<_ACEOF |
| 20683 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20684 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20685 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20686 | #define $ac_func innocuous_$ac_func |
| 20687 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20688 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20689 | which can conflict with char $ac_func (); below. |
| 20690 | 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] | 20691 | <limits.h> exists even on freestanding compilers. */ |
| 20692 | |
| 20693 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20694 | # include <limits.h> |
| 20695 | #else |
| 20696 | # include <assert.h> |
| 20697 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20698 | |
| 20699 | #undef $ac_func |
| 20700 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20701 | /* Override any GCC internal prototype to avoid an error. |
| 20702 | Use char because int might match the return type of a GCC |
| 20703 | builtin and then its argument prototype would still apply. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20704 | #ifdef __cplusplus |
| 20705 | extern "C" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20706 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20707 | char $ac_func (); |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20708 | /* The GNU C library defines this for functions which it implements |
| 20709 | to always fail with ENOSYS. Some functions are actually named |
| 20710 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20711 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20712 | choke me |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20713 | #endif |
| 20714 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20715 | int |
| 20716 | main () |
| 20717 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20718 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20719 | ; |
| 20720 | return 0; |
| 20721 | } |
| 20722 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20723 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20724 | if { (ac_try="$ac_link" |
| 20725 | case "(($ac_try" in |
| 20726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20727 | *) ac_try_echo=$ac_try;; |
| 20728 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20729 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20730 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20731 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20732 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20733 | rm -f conftest.er1 |
| 20734 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20736 | (exit $ac_status); } && { |
| 20737 | test -z "$ac_c_werror_flag" || |
| 20738 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20739 | } && test -s conftest$ac_exeext && |
| 20740 | $as_test_x conftest$ac_exeext; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20741 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20742 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20743 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20744 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20745 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20746 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20747 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20748 | |
| 20749 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20750 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20751 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20752 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20753 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20754 | echo "${ECHO_T}$ac_res" >&6; } |
| 20755 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20756 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20757 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20758 | _ACEOF |
| 20759 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20760 | /* confdefs.h. */ |
| 20761 | _ACEOF |
| 20762 | cat confdefs.h >>conftest.$ac_ext |
| 20763 | cat >>conftest.$ac_ext <<_ACEOF |
| 20764 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20765 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20766 | int |
| 20767 | main () |
| 20768 | { |
| 20769 | setpgrp(0,0); |
| 20770 | ; |
| 20771 | return 0; |
| 20772 | } |
| 20773 | _ACEOF |
| 20774 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20775 | if { (ac_try="$ac_compile" |
| 20776 | case "(($ac_try" in |
| 20777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20778 | *) ac_try_echo=$ac_try;; |
| 20779 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20781 | (eval "$ac_compile") 2>conftest.er1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20782 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20783 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20784 | rm -f conftest.er1 |
| 20785 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20787 | (exit $ac_status); } && { |
| 20788 | test -z "$ac_c_werror_flag" || |
| 20789 | test ! -s conftest.err |
| 20790 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20791 | |
| 20792 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20793 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20794 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 20795 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20796 | |
| 20797 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20798 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20799 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20800 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20801 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 20802 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20803 | |
| 20804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20805 | |
| 20806 | fi |
| 20807 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 20808 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20809 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20810 | for ac_func in gettimeofday |
| 20811 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20812 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20813 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20814 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20815 | 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] | 20816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20817 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20818 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20819 | /* confdefs.h. */ |
| 20820 | _ACEOF |
| 20821 | cat confdefs.h >>conftest.$ac_ext |
| 20822 | cat >>conftest.$ac_ext <<_ACEOF |
| 20823 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20824 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20825 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20826 | #define $ac_func innocuous_$ac_func |
| 20827 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20828 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20829 | which can conflict with char $ac_func (); below. |
| 20830 | 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] | 20831 | <limits.h> exists even on freestanding compilers. */ |
| 20832 | |
| 20833 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20834 | # include <limits.h> |
| 20835 | #else |
| 20836 | # include <assert.h> |
| 20837 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20838 | |
| 20839 | #undef $ac_func |
| 20840 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20841 | /* Override any GCC internal prototype to avoid an error. |
| 20842 | Use char because int might match the return type of a GCC |
| 20843 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20844 | #ifdef __cplusplus |
| 20845 | extern "C" |
| 20846 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20847 | char $ac_func (); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20848 | /* The GNU C library defines this for functions which it implements |
| 20849 | to always fail with ENOSYS. Some functions are actually named |
| 20850 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20851 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20852 | choke me |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20853 | #endif |
| 20854 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20855 | int |
| 20856 | main () |
| 20857 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20858 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20859 | ; |
| 20860 | return 0; |
| 20861 | } |
| 20862 | _ACEOF |
| 20863 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20864 | if { (ac_try="$ac_link" |
| 20865 | case "(($ac_try" in |
| 20866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20867 | *) ac_try_echo=$ac_try;; |
| 20868 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20870 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20871 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20872 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20873 | rm -f conftest.er1 |
| 20874 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20876 | (exit $ac_status); } && { |
| 20877 | test -z "$ac_c_werror_flag" || |
| 20878 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20879 | } && test -s conftest$ac_exeext && |
| 20880 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20881 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20882 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20883 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20884 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20885 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20886 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20887 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20888 | |
| 20889 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20890 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20891 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20892 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20893 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20894 | echo "${ECHO_T}$ac_res" >&6; } |
| 20895 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20896 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20897 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20898 | _ACEOF |
| 20899 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20900 | /* confdefs.h. */ |
| 20901 | _ACEOF |
| 20902 | cat confdefs.h >>conftest.$ac_ext |
| 20903 | cat >>conftest.$ac_ext <<_ACEOF |
| 20904 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20905 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20906 | int |
| 20907 | main () |
| 20908 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20909 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20910 | ; |
| 20911 | return 0; |
| 20912 | } |
| 20913 | _ACEOF |
| 20914 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20915 | if { (ac_try="$ac_compile" |
| 20916 | case "(($ac_try" in |
| 20917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20918 | *) ac_try_echo=$ac_try;; |
| 20919 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20920 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20921 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20922 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20923 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20924 | rm -f conftest.er1 |
| 20925 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20927 | (exit $ac_status); } && { |
| 20928 | test -z "$ac_c_werror_flag" || |
| 20929 | test ! -s conftest.err |
| 20930 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20931 | : |
| 20932 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20933 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20934 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20935 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20936 | |
| 20937 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20938 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20939 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20940 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20941 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20942 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20943 | |
| 20944 | 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] | 20945 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20946 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20947 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20948 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20949 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20950 | { echo "$as_me:$LINENO: checking for major" >&5 |
| 20951 | echo $ECHO_N "checking for major... $ECHO_C" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20952 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20953 | /* confdefs.h. */ |
| 20954 | _ACEOF |
| 20955 | cat confdefs.h >>conftest.$ac_ext |
| 20956 | cat >>conftest.$ac_ext <<_ACEOF |
| 20957 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20958 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 20959 | #if defined(MAJOR_IN_MKDEV) |
| 20960 | #include <sys/mkdev.h> |
| 20961 | #elif defined(MAJOR_IN_SYSMACROS) |
| 20962 | #include <sys/sysmacros.h> |
| 20963 | #else |
| 20964 | #include <sys/types.h> |
| 20965 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20966 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20967 | int |
| 20968 | main () |
| 20969 | { |
| 20970 | |
| 20971 | makedev(major(0),minor(0)); |
| 20972 | |
| 20973 | ; |
| 20974 | return 0; |
| 20975 | } |
| 20976 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 20977 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20978 | if { (ac_try="$ac_link" |
| 20979 | case "(($ac_try" in |
| 20980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20981 | *) ac_try_echo=$ac_try;; |
| 20982 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20984 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20985 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20986 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20987 | rm -f conftest.er1 |
| 20988 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20990 | (exit $ac_status); } && { |
| 20991 | test -z "$ac_c_werror_flag" || |
| 20992 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20993 | } && test -s conftest$ac_exeext && |
| 20994 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20995 | |
| 20996 | |
| 20997 | cat >>confdefs.h <<\_ACEOF |
| 20998 | #define HAVE_DEVICE_MACROS 1 |
| 20999 | _ACEOF |
| 21000 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21001 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 21002 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21003 | |
| 21004 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21005 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21006 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21007 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21008 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21009 | { echo "$as_me:$LINENO: result: no" >&5 |
| 21010 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21011 | |
| 21012 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21013 | |
| 21014 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21015 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21016 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21017 | # 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] | 21018 | # for [no]getaddrinfo in netdb.h. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21019 | { echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 21020 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21021 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21022 | /* confdefs.h. */ |
| 21023 | _ACEOF |
| 21024 | cat confdefs.h >>conftest.$ac_ext |
| 21025 | cat >>conftest.$ac_ext <<_ACEOF |
| 21026 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21027 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 21028 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21029 | #include <sys/socket.h> |
| 21030 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 21031 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21032 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21033 | int |
| 21034 | main () |
| 21035 | { |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21036 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21037 | ; |
| 21038 | return 0; |
| 21039 | } |
| 21040 | _ACEOF |
| 21041 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21042 | if { (ac_try="$ac_link" |
| 21043 | case "(($ac_try" in |
| 21044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21045 | *) ac_try_echo=$ac_try;; |
| 21046 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21048 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21049 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21050 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21051 | rm -f conftest.er1 |
| 21052 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21054 | (exit $ac_status); } && { |
| 21055 | test -z "$ac_c_werror_flag" || |
| 21056 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21057 | } && test -s conftest$ac_exeext && |
| 21058 | $as_test_x conftest$ac_exeext; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21059 | have_getaddrinfo=yes |
| 21060 | else |
| 21061 | echo "$as_me: failed program was:" >&5 |
| 21062 | sed 's/^/| /' conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21063 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21064 | have_getaddrinfo=no |
| 21065 | fi |
| 21066 | |
| 21067 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 21068 | conftest$ac_exeext conftest.$ac_ext |
| 21069 | { echo "$as_me:$LINENO: result: $have_getaddrinfo" >&5 |
| 21070 | echo "${ECHO_T}$have_getaddrinfo" >&6; } |
| 21071 | if test $have_getaddrinfo = yes |
| 21072 | then |
| 21073 | { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21074 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21075 | if test "${ac_cv_buggy_getaddrinfo+set}" = set; then |
| 21076 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21077 | else |
| 21078 | if test "$cross_compiling" = yes; then |
| 21079 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21080 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21081 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21082 | /* confdefs.h. */ |
| 21083 | _ACEOF |
| 21084 | cat confdefs.h >>conftest.$ac_ext |
| 21085 | cat >>conftest.$ac_ext <<_ACEOF |
| 21086 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21087 | |
| 21088 | #include <sys/types.h> |
| 21089 | #include <netdb.h> |
| 21090 | #include <string.h> |
| 21091 | #include <sys/socket.h> |
| 21092 | #include <netinet/in.h> |
| 21093 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21094 | int main() |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21095 | { |
| 21096 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 21097 | struct addrinfo hints, *ai, *aitop; |
| 21098 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 21099 | |
| 21100 | for (passive = 0; passive <= 1; passive++) { |
| 21101 | memset(&hints, 0, sizeof(hints)); |
| 21102 | hints.ai_family = AF_UNSPEC; |
| 21103 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 21104 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 21105 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21106 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 21107 | (void)gai_strerror(gaierr); |
| 21108 | goto bad; |
| 21109 | } |
| 21110 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 21111 | if (ai->ai_addr == NULL || |
| 21112 | ai->ai_addrlen == 0 || |
| 21113 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 21114 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 21115 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 21116 | goto bad; |
| 21117 | } |
| 21118 | switch (ai->ai_family) { |
| 21119 | case AF_INET: |
| 21120 | if (strcmp(strport, "54321") != 0) { |
| 21121 | goto bad; |
| 21122 | } |
| 21123 | if (passive) { |
| 21124 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 21125 | goto bad; |
| 21126 | } |
| 21127 | } else { |
| 21128 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 21129 | goto bad; |
| 21130 | } |
| 21131 | } |
| 21132 | inet4++; |
| 21133 | break; |
| 21134 | case AF_INET6: |
| 21135 | if (strcmp(strport, "54321") != 0) { |
| 21136 | goto bad; |
| 21137 | } |
| 21138 | if (passive) { |
| 21139 | if (strcmp(straddr, "::") != 0) { |
| 21140 | goto bad; |
| 21141 | } |
| 21142 | } else { |
| 21143 | if (strcmp(straddr, "::1") != 0) { |
| 21144 | goto bad; |
| 21145 | } |
| 21146 | } |
| 21147 | inet6++; |
| 21148 | break; |
| 21149 | case AF_UNSPEC: |
| 21150 | goto bad; |
| 21151 | break; |
| 21152 | default: |
| 21153 | /* another family support? */ |
| 21154 | break; |
| 21155 | } |
| 21156 | } |
| 21157 | } |
| 21158 | |
| 21159 | if (!(inet4 == 0 || inet4 == 2)) |
| 21160 | goto bad; |
| 21161 | if (!(inet6 == 0 || inet6 == 2)) |
| 21162 | goto bad; |
| 21163 | |
| 21164 | if (aitop) |
| 21165 | freeaddrinfo(aitop); |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21166 | return 0; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21167 | |
| 21168 | bad: |
| 21169 | if (aitop) |
| 21170 | freeaddrinfo(aitop); |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21171 | return 1; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21172 | } |
| 21173 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21174 | _ACEOF |
| 21175 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21176 | if { (ac_try="$ac_link" |
| 21177 | case "(($ac_try" in |
| 21178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21179 | *) ac_try_echo=$ac_try;; |
| 21180 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21182 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21183 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21185 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21186 | { (case "(($ac_try" in |
| 21187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21188 | *) ac_try_echo=$ac_try;; |
| 21189 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21191 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21192 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21194 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21195 | ac_cv_buggy_getaddrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21196 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21197 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21198 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21199 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21200 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21201 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21202 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21203 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21204 | 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] | 21205 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21206 | |
| 21207 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21208 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21209 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21210 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21211 | |
Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 21212 | if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21213 | then |
| 21214 | if test $ipv6 = yes |
| 21215 | then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21216 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 21217 | echo ' or you can specify "--disable-ipv6"'. |
| 21218 | exit 1 |
| 21219 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21220 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21221 | |
| 21222 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21223 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21224 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21225 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21226 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21227 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 21228 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21229 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21230 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 21231 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 21232 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21233 | 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] | 21234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21235 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21236 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21237 | /* confdefs.h. */ |
| 21238 | _ACEOF |
| 21239 | cat confdefs.h >>conftest.$ac_ext |
| 21240 | cat >>conftest.$ac_ext <<_ACEOF |
| 21241 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21242 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 21243 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 21244 | #define $ac_func innocuous_$ac_func |
| 21245 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21246 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21247 | which can conflict with char $ac_func (); below. |
| 21248 | 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] | 21249 | <limits.h> exists even on freestanding compilers. */ |
| 21250 | |
| 21251 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21252 | # include <limits.h> |
| 21253 | #else |
| 21254 | # include <assert.h> |
| 21255 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21256 | |
| 21257 | #undef $ac_func |
| 21258 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21259 | /* Override any GCC internal prototype to avoid an error. |
| 21260 | Use char because int might match the return type of a GCC |
| 21261 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21262 | #ifdef __cplusplus |
| 21263 | extern "C" |
| 21264 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21265 | char $ac_func (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21266 | /* The GNU C library defines this for functions which it implements |
| 21267 | to always fail with ENOSYS. Some functions are actually named |
| 21268 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21269 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21270 | choke me |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21271 | #endif |
| 21272 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21273 | int |
| 21274 | main () |
| 21275 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21276 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21277 | ; |
| 21278 | return 0; |
| 21279 | } |
| 21280 | _ACEOF |
| 21281 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21282 | if { (ac_try="$ac_link" |
| 21283 | case "(($ac_try" in |
| 21284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21285 | *) ac_try_echo=$ac_try;; |
| 21286 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21288 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21289 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21290 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21291 | rm -f conftest.er1 |
| 21292 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21294 | (exit $ac_status); } && { |
| 21295 | test -z "$ac_c_werror_flag" || |
| 21296 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21297 | } && test -s conftest$ac_exeext && |
| 21298 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21299 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21300 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21301 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21302 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21303 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21304 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21305 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21306 | |
| 21307 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21308 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21309 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21310 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 21311 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 21312 | echo "${ECHO_T}$ac_res" >&6; } |
| 21313 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21314 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21315 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21316 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21317 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21318 | fi |
| 21319 | done |
| 21320 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21321 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21322 | # checks for structures |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21323 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 21324 | 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] | 21325 | if test "${ac_cv_header_time+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21327 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21328 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21329 | /* confdefs.h. */ |
| 21330 | _ACEOF |
| 21331 | cat confdefs.h >>conftest.$ac_ext |
| 21332 | cat >>conftest.$ac_ext <<_ACEOF |
| 21333 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21334 | #include <sys/types.h> |
| 21335 | #include <sys/time.h> |
| 21336 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21337 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21338 | int |
| 21339 | main () |
| 21340 | { |
| 21341 | if ((struct tm *) 0) |
| 21342 | return 0; |
| 21343 | ; |
| 21344 | return 0; |
| 21345 | } |
| 21346 | _ACEOF |
| 21347 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21348 | if { (ac_try="$ac_compile" |
| 21349 | case "(($ac_try" in |
| 21350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21351 | *) ac_try_echo=$ac_try;; |
| 21352 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21354 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21355 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21356 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21357 | rm -f conftest.er1 |
| 21358 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21360 | (exit $ac_status); } && { |
| 21361 | test -z "$ac_c_werror_flag" || |
| 21362 | test ! -s conftest.err |
| 21363 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21364 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21365 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21366 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21367 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21368 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21369 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21370 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21371 | |
| 21372 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21373 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21374 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 21375 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21376 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21377 | |
| 21378 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21379 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21380 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21381 | |
| 21382 | fi |
| 21383 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21384 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 21385 | 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] | 21386 | if test "${ac_cv_struct_tm+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21388 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21389 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21390 | /* confdefs.h. */ |
| 21391 | _ACEOF |
| 21392 | cat confdefs.h >>conftest.$ac_ext |
| 21393 | cat >>conftest.$ac_ext <<_ACEOF |
| 21394 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21395 | #include <sys/types.h> |
| 21396 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21397 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21398 | int |
| 21399 | main () |
| 21400 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21401 | struct tm tm; |
| 21402 | int *p = &tm.tm_sec; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21403 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21404 | ; |
| 21405 | return 0; |
| 21406 | } |
| 21407 | _ACEOF |
| 21408 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21409 | if { (ac_try="$ac_compile" |
| 21410 | case "(($ac_try" in |
| 21411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21412 | *) ac_try_echo=$ac_try;; |
| 21413 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21415 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21416 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21417 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21418 | rm -f conftest.er1 |
| 21419 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21421 | (exit $ac_status); } && { |
| 21422 | test -z "$ac_c_werror_flag" || |
| 21423 | test ! -s conftest.err |
| 21424 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21425 | ac_cv_struct_tm=time.h |
| 21426 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21427 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21428 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21429 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21430 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21431 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21432 | |
| 21433 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21434 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21435 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 21436 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21437 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21438 | |
| 21439 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21440 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21441 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21442 | |
| 21443 | fi |
| 21444 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21445 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 21446 | 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] | 21447 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21448 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21449 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21450 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21451 | /* confdefs.h. */ |
| 21452 | _ACEOF |
| 21453 | cat confdefs.h >>conftest.$ac_ext |
| 21454 | cat >>conftest.$ac_ext <<_ACEOF |
| 21455 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21456 | #include <sys/types.h> |
| 21457 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21458 | |
| 21459 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21460 | int |
| 21461 | main () |
| 21462 | { |
| 21463 | static struct tm ac_aggr; |
| 21464 | if (ac_aggr.tm_zone) |
| 21465 | return 0; |
| 21466 | ; |
| 21467 | return 0; |
| 21468 | } |
| 21469 | _ACEOF |
| 21470 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21471 | if { (ac_try="$ac_compile" |
| 21472 | case "(($ac_try" in |
| 21473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21474 | *) ac_try_echo=$ac_try;; |
| 21475 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21477 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21478 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21479 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21480 | rm -f conftest.er1 |
| 21481 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21483 | (exit $ac_status); } && { |
| 21484 | test -z "$ac_c_werror_flag" || |
| 21485 | test ! -s conftest.err |
| 21486 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21487 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21488 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21489 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21490 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21491 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21492 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21493 | /* confdefs.h. */ |
| 21494 | _ACEOF |
| 21495 | cat confdefs.h >>conftest.$ac_ext |
| 21496 | cat >>conftest.$ac_ext <<_ACEOF |
| 21497 | /* end confdefs.h. */ |
| 21498 | #include <sys/types.h> |
| 21499 | #include <$ac_cv_struct_tm> |
| 21500 | |
| 21501 | |
| 21502 | int |
| 21503 | main () |
| 21504 | { |
| 21505 | static struct tm ac_aggr; |
| 21506 | if (sizeof ac_aggr.tm_zone) |
| 21507 | return 0; |
| 21508 | ; |
| 21509 | return 0; |
| 21510 | } |
| 21511 | _ACEOF |
| 21512 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21513 | if { (ac_try="$ac_compile" |
| 21514 | case "(($ac_try" in |
| 21515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21516 | *) ac_try_echo=$ac_try;; |
| 21517 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21519 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21520 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21521 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21522 | rm -f conftest.er1 |
| 21523 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21525 | (exit $ac_status); } && { |
| 21526 | test -z "$ac_c_werror_flag" || |
| 21527 | test ! -s conftest.err |
| 21528 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21529 | ac_cv_member_struct_tm_tm_zone=yes |
| 21530 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21531 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21532 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21533 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21534 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21535 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21536 | |
| 21537 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21538 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21539 | |
| 21540 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21541 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21542 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 21543 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } |
| 21544 | 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] | 21545 | |
| 21546 | cat >>confdefs.h <<_ACEOF |
| 21547 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 21548 | _ACEOF |
| 21549 | |
| 21550 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21551 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 21552 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21553 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 21554 | |
| 21555 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21556 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21557 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21558 | |
| 21559 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21560 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 21561 | 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] | 21562 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21564 | else |
| 21565 | cat >conftest.$ac_ext <<_ACEOF |
| 21566 | /* confdefs.h. */ |
| 21567 | _ACEOF |
| 21568 | cat confdefs.h >>conftest.$ac_ext |
| 21569 | cat >>conftest.$ac_ext <<_ACEOF |
| 21570 | /* end confdefs.h. */ |
| 21571 | #include <time.h> |
| 21572 | |
| 21573 | int |
| 21574 | main () |
| 21575 | { |
| 21576 | #ifndef tzname |
| 21577 | (void) tzname; |
| 21578 | #endif |
| 21579 | |
| 21580 | ; |
| 21581 | return 0; |
| 21582 | } |
| 21583 | _ACEOF |
| 21584 | rm -f conftest.$ac_objext |
| 21585 | if { (ac_try="$ac_compile" |
| 21586 | case "(($ac_try" in |
| 21587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21588 | *) ac_try_echo=$ac_try;; |
| 21589 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21591 | (eval "$ac_compile") 2>conftest.er1 |
| 21592 | ac_status=$? |
| 21593 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21594 | rm -f conftest.er1 |
| 21595 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21597 | (exit $ac_status); } && { |
| 21598 | test -z "$ac_c_werror_flag" || |
| 21599 | test ! -s conftest.err |
| 21600 | } && test -s conftest.$ac_objext; then |
| 21601 | ac_cv_have_decl_tzname=yes |
| 21602 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21603 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21604 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21605 | |
| 21606 | ac_cv_have_decl_tzname=no |
| 21607 | fi |
| 21608 | |
| 21609 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21610 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21611 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 21612 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } |
| 21613 | if test $ac_cv_have_decl_tzname = yes; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21614 | |
| 21615 | cat >>confdefs.h <<_ACEOF |
| 21616 | #define HAVE_DECL_TZNAME 1 |
| 21617 | _ACEOF |
| 21618 | |
| 21619 | |
| 21620 | else |
| 21621 | cat >>confdefs.h <<_ACEOF |
| 21622 | #define HAVE_DECL_TZNAME 0 |
| 21623 | _ACEOF |
| 21624 | |
| 21625 | |
| 21626 | fi |
| 21627 | |
| 21628 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21629 | { echo "$as_me:$LINENO: checking for tzname" >&5 |
| 21630 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21631 | if test "${ac_cv_var_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21633 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21634 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21635 | /* confdefs.h. */ |
| 21636 | _ACEOF |
| 21637 | cat confdefs.h >>conftest.$ac_ext |
| 21638 | cat >>conftest.$ac_ext <<_ACEOF |
| 21639 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21640 | #include <time.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21641 | #if !HAVE_DECL_TZNAME |
| 21642 | extern char *tzname[]; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21643 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21644 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21645 | int |
| 21646 | main () |
| 21647 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21648 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21649 | ; |
| 21650 | return 0; |
| 21651 | } |
| 21652 | _ACEOF |
| 21653 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21654 | if { (ac_try="$ac_link" |
| 21655 | case "(($ac_try" in |
| 21656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21657 | *) ac_try_echo=$ac_try;; |
| 21658 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21660 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21661 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21662 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21663 | rm -f conftest.er1 |
| 21664 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21666 | (exit $ac_status); } && { |
| 21667 | test -z "$ac_c_werror_flag" || |
| 21668 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21669 | } && test -s conftest$ac_exeext && |
| 21670 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21671 | ac_cv_var_tzname=yes |
| 21672 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21673 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21674 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21675 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21676 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21677 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21678 | |
| 21679 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21680 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21681 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21682 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 21683 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21684 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21685 | |
| 21686 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21687 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21688 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21689 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21690 | fi |
| 21691 | fi |
| 21692 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21693 | { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 21694 | 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] | 21695 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21697 | else |
| 21698 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21699 | /* confdefs.h. */ |
| 21700 | _ACEOF |
| 21701 | cat confdefs.h >>conftest.$ac_ext |
| 21702 | cat >>conftest.$ac_ext <<_ACEOF |
| 21703 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21704 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21705 | int |
| 21706 | main () |
| 21707 | { |
| 21708 | static struct stat ac_aggr; |
| 21709 | if (ac_aggr.st_rdev) |
| 21710 | return 0; |
| 21711 | ; |
| 21712 | return 0; |
| 21713 | } |
| 21714 | _ACEOF |
| 21715 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21716 | if { (ac_try="$ac_compile" |
| 21717 | case "(($ac_try" in |
| 21718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21719 | *) ac_try_echo=$ac_try;; |
| 21720 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21722 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21723 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21724 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21725 | rm -f conftest.er1 |
| 21726 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21728 | (exit $ac_status); } && { |
| 21729 | test -z "$ac_c_werror_flag" || |
| 21730 | test ! -s conftest.err |
| 21731 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21732 | ac_cv_member_struct_stat_st_rdev=yes |
| 21733 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21734 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21735 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21736 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21737 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21738 | /* confdefs.h. */ |
| 21739 | _ACEOF |
| 21740 | cat confdefs.h >>conftest.$ac_ext |
| 21741 | cat >>conftest.$ac_ext <<_ACEOF |
| 21742 | /* end confdefs.h. */ |
| 21743 | $ac_includes_default |
| 21744 | int |
| 21745 | main () |
| 21746 | { |
| 21747 | static struct stat ac_aggr; |
| 21748 | if (sizeof ac_aggr.st_rdev) |
| 21749 | return 0; |
| 21750 | ; |
| 21751 | return 0; |
| 21752 | } |
| 21753 | _ACEOF |
| 21754 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21755 | if { (ac_try="$ac_compile" |
| 21756 | case "(($ac_try" in |
| 21757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21758 | *) ac_try_echo=$ac_try;; |
| 21759 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21761 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21762 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21763 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21764 | rm -f conftest.er1 |
| 21765 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21767 | (exit $ac_status); } && { |
| 21768 | test -z "$ac_c_werror_flag" || |
| 21769 | test ! -s conftest.err |
| 21770 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21771 | ac_cv_member_struct_stat_st_rdev=yes |
| 21772 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21773 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21774 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21775 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21776 | ac_cv_member_struct_stat_st_rdev=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21777 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21778 | |
| 21779 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21780 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21781 | |
| 21782 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21783 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21784 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 21785 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; } |
| 21786 | 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] | 21787 | |
| 21788 | cat >>confdefs.h <<_ACEOF |
| 21789 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 21790 | _ACEOF |
| 21791 | |
| 21792 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21793 | fi |
| 21794 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21795 | { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 21796 | 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] | 21797 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21798 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21799 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21800 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21801 | /* confdefs.h. */ |
| 21802 | _ACEOF |
| 21803 | cat confdefs.h >>conftest.$ac_ext |
| 21804 | cat >>conftest.$ac_ext <<_ACEOF |
| 21805 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21806 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21807 | int |
| 21808 | main () |
| 21809 | { |
| 21810 | static struct stat ac_aggr; |
| 21811 | if (ac_aggr.st_blksize) |
| 21812 | return 0; |
| 21813 | ; |
| 21814 | return 0; |
| 21815 | } |
| 21816 | _ACEOF |
| 21817 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21818 | if { (ac_try="$ac_compile" |
| 21819 | case "(($ac_try" in |
| 21820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21821 | *) ac_try_echo=$ac_try;; |
| 21822 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21823 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21824 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21825 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21826 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21827 | rm -f conftest.er1 |
| 21828 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21830 | (exit $ac_status); } && { |
| 21831 | test -z "$ac_c_werror_flag" || |
| 21832 | test ! -s conftest.err |
| 21833 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21834 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21835 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21836 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21837 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21838 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21839 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21840 | /* confdefs.h. */ |
| 21841 | _ACEOF |
| 21842 | cat confdefs.h >>conftest.$ac_ext |
| 21843 | cat >>conftest.$ac_ext <<_ACEOF |
| 21844 | /* end confdefs.h. */ |
| 21845 | $ac_includes_default |
| 21846 | int |
| 21847 | main () |
| 21848 | { |
| 21849 | static struct stat ac_aggr; |
| 21850 | if (sizeof ac_aggr.st_blksize) |
| 21851 | return 0; |
| 21852 | ; |
| 21853 | return 0; |
| 21854 | } |
| 21855 | _ACEOF |
| 21856 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21857 | if { (ac_try="$ac_compile" |
| 21858 | case "(($ac_try" in |
| 21859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21860 | *) ac_try_echo=$ac_try;; |
| 21861 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21862 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21863 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21864 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21865 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21866 | rm -f conftest.er1 |
| 21867 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21869 | (exit $ac_status); } && { |
| 21870 | test -z "$ac_c_werror_flag" || |
| 21871 | test ! -s conftest.err |
| 21872 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21873 | ac_cv_member_struct_stat_st_blksize=yes |
| 21874 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21875 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21876 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21877 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21878 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21879 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21880 | |
| 21881 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21882 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21883 | |
| 21884 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21885 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21886 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 21887 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; } |
| 21888 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21889 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21890 | cat >>confdefs.h <<_ACEOF |
| 21891 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 21892 | _ACEOF |
| 21893 | |
| 21894 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21895 | fi |
| 21896 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21897 | { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5 |
| 21898 | 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] | 21899 | if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21901 | else |
| 21902 | cat >conftest.$ac_ext <<_ACEOF |
| 21903 | /* confdefs.h. */ |
| 21904 | _ACEOF |
| 21905 | cat confdefs.h >>conftest.$ac_ext |
| 21906 | cat >>conftest.$ac_ext <<_ACEOF |
| 21907 | /* end confdefs.h. */ |
| 21908 | $ac_includes_default |
| 21909 | int |
| 21910 | main () |
| 21911 | { |
| 21912 | static struct stat ac_aggr; |
| 21913 | if (ac_aggr.st_flags) |
| 21914 | return 0; |
| 21915 | ; |
| 21916 | return 0; |
| 21917 | } |
| 21918 | _ACEOF |
| 21919 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21920 | if { (ac_try="$ac_compile" |
| 21921 | case "(($ac_try" in |
| 21922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21923 | *) ac_try_echo=$ac_try;; |
| 21924 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21926 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21927 | ac_status=$? |
| 21928 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21929 | rm -f conftest.er1 |
| 21930 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21932 | (exit $ac_status); } && { |
| 21933 | test -z "$ac_c_werror_flag" || |
| 21934 | test ! -s conftest.err |
| 21935 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21936 | ac_cv_member_struct_stat_st_flags=yes |
| 21937 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21938 | echo "$as_me: failed program was:" >&5 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21939 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21940 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21941 | cat >conftest.$ac_ext <<_ACEOF |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21942 | /* confdefs.h. */ |
| 21943 | _ACEOF |
| 21944 | cat confdefs.h >>conftest.$ac_ext |
| 21945 | cat >>conftest.$ac_ext <<_ACEOF |
| 21946 | /* end confdefs.h. */ |
| 21947 | $ac_includes_default |
| 21948 | int |
| 21949 | main () |
| 21950 | { |
| 21951 | static struct stat ac_aggr; |
| 21952 | if (sizeof ac_aggr.st_flags) |
| 21953 | return 0; |
| 21954 | ; |
| 21955 | return 0; |
| 21956 | } |
| 21957 | _ACEOF |
| 21958 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21959 | if { (ac_try="$ac_compile" |
| 21960 | case "(($ac_try" in |
| 21961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21962 | *) ac_try_echo=$ac_try;; |
| 21963 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21964 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21965 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21966 | ac_status=$? |
| 21967 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21968 | rm -f conftest.er1 |
| 21969 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21971 | (exit $ac_status); } && { |
| 21972 | test -z "$ac_c_werror_flag" || |
| 21973 | test ! -s conftest.err |
| 21974 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21975 | ac_cv_member_struct_stat_st_flags=yes |
| 21976 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21977 | echo "$as_me: failed program was:" >&5 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21978 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21979 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21980 | ac_cv_member_struct_stat_st_flags=no |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21981 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21982 | |
| 21983 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21984 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21985 | |
| 21986 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21987 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21988 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5 |
| 21989 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; } |
| 21990 | if test $ac_cv_member_struct_stat_st_flags = yes; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21991 | |
| 21992 | cat >>confdefs.h <<_ACEOF |
| 21993 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 21994 | _ACEOF |
| 21995 | |
| 21996 | |
| 21997 | fi |
| 21998 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21999 | { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5 |
| 22000 | 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] | 22001 | if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22003 | else |
| 22004 | cat >conftest.$ac_ext <<_ACEOF |
| 22005 | /* confdefs.h. */ |
| 22006 | _ACEOF |
| 22007 | cat confdefs.h >>conftest.$ac_ext |
| 22008 | cat >>conftest.$ac_ext <<_ACEOF |
| 22009 | /* end confdefs.h. */ |
| 22010 | $ac_includes_default |
| 22011 | int |
| 22012 | main () |
| 22013 | { |
| 22014 | static struct stat ac_aggr; |
| 22015 | if (ac_aggr.st_gen) |
| 22016 | return 0; |
| 22017 | ; |
| 22018 | return 0; |
| 22019 | } |
| 22020 | _ACEOF |
| 22021 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22022 | if { (ac_try="$ac_compile" |
| 22023 | case "(($ac_try" in |
| 22024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22025 | *) ac_try_echo=$ac_try;; |
| 22026 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22028 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22029 | ac_status=$? |
| 22030 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22031 | rm -f conftest.er1 |
| 22032 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22034 | (exit $ac_status); } && { |
| 22035 | test -z "$ac_c_werror_flag" || |
| 22036 | test ! -s conftest.err |
| 22037 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22038 | ac_cv_member_struct_stat_st_gen=yes |
| 22039 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22040 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22041 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22042 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22043 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22044 | /* confdefs.h. */ |
| 22045 | _ACEOF |
| 22046 | cat confdefs.h >>conftest.$ac_ext |
| 22047 | cat >>conftest.$ac_ext <<_ACEOF |
| 22048 | /* end confdefs.h. */ |
| 22049 | $ac_includes_default |
| 22050 | int |
| 22051 | main () |
| 22052 | { |
| 22053 | static struct stat ac_aggr; |
| 22054 | if (sizeof ac_aggr.st_gen) |
| 22055 | return 0; |
| 22056 | ; |
| 22057 | return 0; |
| 22058 | } |
| 22059 | _ACEOF |
| 22060 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22061 | if { (ac_try="$ac_compile" |
| 22062 | case "(($ac_try" in |
| 22063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22064 | *) ac_try_echo=$ac_try;; |
| 22065 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22067 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22068 | ac_status=$? |
| 22069 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22070 | rm -f conftest.er1 |
| 22071 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22073 | (exit $ac_status); } && { |
| 22074 | test -z "$ac_c_werror_flag" || |
| 22075 | test ! -s conftest.err |
| 22076 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22077 | ac_cv_member_struct_stat_st_gen=yes |
| 22078 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22079 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22080 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22081 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22082 | ac_cv_member_struct_stat_st_gen=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22083 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22084 | |
| 22085 | 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] | 22086 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22087 | |
| 22088 | 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] | 22089 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22090 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5 |
| 22091 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; } |
| 22092 | 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] | 22093 | |
| 22094 | cat >>confdefs.h <<_ACEOF |
| 22095 | #define HAVE_STRUCT_STAT_ST_GEN 1 |
| 22096 | _ACEOF |
| 22097 | |
| 22098 | |
| 22099 | fi |
| 22100 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22101 | { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5 |
| 22102 | 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] | 22103 | if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22105 | else |
| 22106 | cat >conftest.$ac_ext <<_ACEOF |
| 22107 | /* confdefs.h. */ |
| 22108 | _ACEOF |
| 22109 | cat confdefs.h >>conftest.$ac_ext |
| 22110 | cat >>conftest.$ac_ext <<_ACEOF |
| 22111 | /* end confdefs.h. */ |
| 22112 | $ac_includes_default |
| 22113 | int |
| 22114 | main () |
| 22115 | { |
| 22116 | static struct stat ac_aggr; |
| 22117 | if (ac_aggr.st_birthtime) |
| 22118 | return 0; |
| 22119 | ; |
| 22120 | return 0; |
| 22121 | } |
| 22122 | _ACEOF |
| 22123 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22124 | if { (ac_try="$ac_compile" |
| 22125 | case "(($ac_try" in |
| 22126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22127 | *) ac_try_echo=$ac_try;; |
| 22128 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22130 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22131 | ac_status=$? |
| 22132 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22133 | rm -f conftest.er1 |
| 22134 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22136 | (exit $ac_status); } && { |
| 22137 | test -z "$ac_c_werror_flag" || |
| 22138 | test ! -s conftest.err |
| 22139 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22140 | ac_cv_member_struct_stat_st_birthtime=yes |
| 22141 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22142 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22144 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22145 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22146 | /* confdefs.h. */ |
| 22147 | _ACEOF |
| 22148 | cat confdefs.h >>conftest.$ac_ext |
| 22149 | cat >>conftest.$ac_ext <<_ACEOF |
| 22150 | /* end confdefs.h. */ |
| 22151 | $ac_includes_default |
| 22152 | int |
| 22153 | main () |
| 22154 | { |
| 22155 | static struct stat ac_aggr; |
| 22156 | if (sizeof ac_aggr.st_birthtime) |
| 22157 | return 0; |
| 22158 | ; |
| 22159 | return 0; |
| 22160 | } |
| 22161 | _ACEOF |
| 22162 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22163 | if { (ac_try="$ac_compile" |
| 22164 | case "(($ac_try" in |
| 22165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22166 | *) ac_try_echo=$ac_try;; |
| 22167 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22168 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22169 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22170 | ac_status=$? |
| 22171 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22172 | rm -f conftest.er1 |
| 22173 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22175 | (exit $ac_status); } && { |
| 22176 | test -z "$ac_c_werror_flag" || |
| 22177 | test ! -s conftest.err |
| 22178 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22179 | ac_cv_member_struct_stat_st_birthtime=yes |
| 22180 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22181 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22182 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22183 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22184 | ac_cv_member_struct_stat_st_birthtime=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22185 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22186 | |
| 22187 | 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] | 22188 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22189 | |
| 22190 | 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] | 22191 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22192 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5 |
| 22193 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; } |
| 22194 | 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] | 22195 | |
| 22196 | cat >>confdefs.h <<_ACEOF |
| 22197 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
| 22198 | _ACEOF |
| 22199 | |
| 22200 | |
| 22201 | fi |
| 22202 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22203 | { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 22204 | 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] | 22205 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 22207 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22208 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22209 | /* confdefs.h. */ |
| 22210 | _ACEOF |
| 22211 | cat confdefs.h >>conftest.$ac_ext |
| 22212 | cat >>conftest.$ac_ext <<_ACEOF |
| 22213 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22214 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22215 | int |
| 22216 | main () |
| 22217 | { |
| 22218 | static struct stat ac_aggr; |
| 22219 | if (ac_aggr.st_blocks) |
| 22220 | return 0; |
| 22221 | ; |
| 22222 | return 0; |
| 22223 | } |
| 22224 | _ACEOF |
| 22225 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22226 | if { (ac_try="$ac_compile" |
| 22227 | case "(($ac_try" in |
| 22228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22229 | *) ac_try_echo=$ac_try;; |
| 22230 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22232 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22233 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22234 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22235 | rm -f conftest.er1 |
| 22236 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22238 | (exit $ac_status); } && { |
| 22239 | test -z "$ac_c_werror_flag" || |
| 22240 | test ! -s conftest.err |
| 22241 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22242 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22243 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22244 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22245 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22246 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22247 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22248 | /* confdefs.h. */ |
| 22249 | _ACEOF |
| 22250 | cat confdefs.h >>conftest.$ac_ext |
| 22251 | cat >>conftest.$ac_ext <<_ACEOF |
| 22252 | /* end confdefs.h. */ |
| 22253 | $ac_includes_default |
| 22254 | int |
| 22255 | main () |
| 22256 | { |
| 22257 | static struct stat ac_aggr; |
| 22258 | if (sizeof ac_aggr.st_blocks) |
| 22259 | return 0; |
| 22260 | ; |
| 22261 | return 0; |
| 22262 | } |
| 22263 | _ACEOF |
| 22264 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22265 | if { (ac_try="$ac_compile" |
| 22266 | case "(($ac_try" in |
| 22267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22268 | *) ac_try_echo=$ac_try;; |
| 22269 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22270 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22271 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22272 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22273 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22274 | rm -f conftest.er1 |
| 22275 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22277 | (exit $ac_status); } && { |
| 22278 | test -z "$ac_c_werror_flag" || |
| 22279 | test ! -s conftest.err |
| 22280 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22281 | ac_cv_member_struct_stat_st_blocks=yes |
| 22282 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22283 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22284 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22285 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22286 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22287 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22288 | |
| 22289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22290 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22291 | |
| 22292 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22293 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22294 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 22295 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; } |
| 22296 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22297 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22298 | cat >>confdefs.h <<_ACEOF |
| 22299 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 22300 | _ACEOF |
| 22301 | |
| 22302 | |
| 22303 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 22304 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22305 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 22306 | |
| 22307 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22308 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22309 | *" fileblocks.$ac_objext "* ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22310 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
| 22311 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22312 | esac |
| 22313 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 22314 | fi |
| 22315 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22316 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22317 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22318 | { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 22319 | 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] | 22320 | if test "${ac_cv_header_time_altzone+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22322 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22323 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22324 | /* confdefs.h. */ |
| 22325 | _ACEOF |
| 22326 | cat confdefs.h >>conftest.$ac_ext |
| 22327 | cat >>conftest.$ac_ext <<_ACEOF |
| 22328 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22329 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22330 | int |
| 22331 | main () |
| 22332 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22333 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22334 | ; |
| 22335 | return 0; |
| 22336 | } |
| 22337 | _ACEOF |
| 22338 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22339 | if { (ac_try="$ac_compile" |
| 22340 | case "(($ac_try" in |
| 22341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22342 | *) ac_try_echo=$ac_try;; |
| 22343 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22345 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22346 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22347 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22348 | rm -f conftest.er1 |
| 22349 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22351 | (exit $ac_status); } && { |
| 22352 | test -z "$ac_c_werror_flag" || |
| 22353 | test ! -s conftest.err |
| 22354 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22355 | ac_cv_header_time_altzone=yes |
| 22356 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22357 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22358 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22359 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22360 | ac_cv_header_time_altzone=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22361 | fi |
| 22362 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22363 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22364 | fi |
| 22365 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22366 | { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 22367 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22368 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22369 | |
| 22370 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22371 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22372 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22373 | |
| 22374 | fi |
| 22375 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22376 | was_it_defined=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22377 | { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 22378 | 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] | 22379 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22380 | /* confdefs.h. */ |
| 22381 | _ACEOF |
| 22382 | cat confdefs.h >>conftest.$ac_ext |
| 22383 | cat >>conftest.$ac_ext <<_ACEOF |
| 22384 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22385 | |
| 22386 | #include <sys/types.h> |
| 22387 | #include <sys/select.h> |
| 22388 | #include <sys/time.h> |
| 22389 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22390 | int |
| 22391 | main () |
| 22392 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22393 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22394 | ; |
| 22395 | return 0; |
| 22396 | } |
| 22397 | _ACEOF |
| 22398 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22399 | if { (ac_try="$ac_compile" |
| 22400 | case "(($ac_try" in |
| 22401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22402 | *) ac_try_echo=$ac_try;; |
| 22403 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22405 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22406 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22407 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22408 | rm -f conftest.er1 |
| 22409 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22411 | (exit $ac_status); } && { |
| 22412 | test -z "$ac_c_werror_flag" || |
| 22413 | test ! -s conftest.err |
| 22414 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22415 | |
| 22416 | |
| 22417 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22418 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22419 | _ACEOF |
| 22420 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22421 | was_it_defined=yes |
| 22422 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 22423 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22424 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22425 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22426 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 22427 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22428 | fi |
| 22429 | |
| 22430 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22431 | { echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 22432 | echo "${ECHO_T}$was_it_defined" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22433 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22434 | { echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 22435 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22436 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22438 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22439 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22440 | /* confdefs.h. */ |
| 22441 | _ACEOF |
| 22442 | cat confdefs.h >>conftest.$ac_ext |
| 22443 | cat >>conftest.$ac_ext <<_ACEOF |
| 22444 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22445 | |
| 22446 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22447 | int |
| 22448 | main () |
| 22449 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22450 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22451 | ; |
| 22452 | return 0; |
| 22453 | } |
| 22454 | _ACEOF |
| 22455 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22456 | if { (ac_try="$ac_compile" |
| 22457 | case "(($ac_try" in |
| 22458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22459 | *) ac_try_echo=$ac_try;; |
| 22460 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22461 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22462 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22463 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22464 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22465 | rm -f conftest.er1 |
| 22466 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22468 | (exit $ac_status); } && { |
| 22469 | test -z "$ac_c_werror_flag" || |
| 22470 | test ! -s conftest.err |
| 22471 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22472 | ac_cv_struct_addrinfo=yes |
| 22473 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22474 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22475 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22476 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22477 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22478 | fi |
| 22479 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22480 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22481 | fi |
| 22482 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22483 | { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 22484 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22485 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22486 | |
| 22487 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22488 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22489 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22490 | |
| 22491 | fi |
| 22492 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22493 | { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 22494 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22495 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22497 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22498 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22499 | /* confdefs.h. */ |
| 22500 | _ACEOF |
| 22501 | cat confdefs.h >>conftest.$ac_ext |
| 22502 | cat >>conftest.$ac_ext <<_ACEOF |
| 22503 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22504 | |
| 22505 | # include <sys/types.h> |
| 22506 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22507 | int |
| 22508 | main () |
| 22509 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22510 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22511 | ; |
| 22512 | return 0; |
| 22513 | } |
| 22514 | _ACEOF |
| 22515 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22516 | if { (ac_try="$ac_compile" |
| 22517 | case "(($ac_try" in |
| 22518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22519 | *) ac_try_echo=$ac_try;; |
| 22520 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22522 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22523 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22524 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22525 | rm -f conftest.er1 |
| 22526 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22528 | (exit $ac_status); } && { |
| 22529 | test -z "$ac_c_werror_flag" || |
| 22530 | test ! -s conftest.err |
| 22531 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22532 | ac_cv_struct_sockaddr_storage=yes |
| 22533 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22534 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22535 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22536 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22537 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22538 | fi |
| 22539 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22540 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22541 | fi |
| 22542 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22543 | { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 22544 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22545 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22546 | |
| 22547 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22548 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22549 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22550 | |
| 22551 | fi |
| 22552 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22553 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22554 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22555 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22556 | { echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 22557 | 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] | 22558 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22560 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22561 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22562 | /* confdefs.h. */ |
| 22563 | _ACEOF |
| 22564 | cat confdefs.h >>conftest.$ac_ext |
| 22565 | cat >>conftest.$ac_ext <<_ACEOF |
| 22566 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22567 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22568 | int |
| 22569 | main () |
| 22570 | { |
| 22571 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 22572 | test_array [0] = 0 |
| 22573 | |
| 22574 | ; |
| 22575 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22576 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22577 | _ACEOF |
| 22578 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22579 | if { (ac_try="$ac_compile" |
| 22580 | case "(($ac_try" in |
| 22581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22582 | *) ac_try_echo=$ac_try;; |
| 22583 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22584 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22585 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22586 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22587 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22588 | rm -f conftest.er1 |
| 22589 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22591 | (exit $ac_status); } && { |
| 22592 | test -z "$ac_c_werror_flag" || |
| 22593 | test ! -s conftest.err |
| 22594 | } && test -s conftest.$ac_objext; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22595 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22596 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22597 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22598 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22599 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22600 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22601 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22602 | |
| 22603 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22604 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22605 | { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 22606 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22607 | 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] | 22608 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22609 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22610 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22611 | |
| 22612 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22613 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22614 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 22615 | 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] | 22616 | if test "${ac_cv_c_const+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22618 | else |
| 22619 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22620 | /* confdefs.h. */ |
| 22621 | _ACEOF |
| 22622 | cat confdefs.h >>conftest.$ac_ext |
| 22623 | cat >>conftest.$ac_ext <<_ACEOF |
| 22624 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22625 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22626 | int |
| 22627 | main () |
| 22628 | { |
| 22629 | /* FIXME: Include the comments suggested by Paul. */ |
| 22630 | #ifndef __cplusplus |
| 22631 | /* Ultrix mips cc rejects this. */ |
| 22632 | typedef int charset[2]; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22633 | const charset cs; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22634 | /* SunOS 4.1.1 cc rejects this. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22635 | char const *const *pcpcc; |
| 22636 | char **ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22637 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 22638 | struct point {int x, y;}; |
| 22639 | static struct point const zero = {0,0}; |
| 22640 | /* AIX XL C 1.02.0.0 rejects this. |
| 22641 | It does not let you subtract one const X* pointer from another in |
| 22642 | an arm of an if-expression whose if-part is not a constant |
| 22643 | expression */ |
| 22644 | const char *g = "string"; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22645 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22646 | /* HPUX 7.0 cc rejects these. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22647 | ++pcpcc; |
| 22648 | ppc = (char**) pcpcc; |
| 22649 | pcpcc = (char const *const *) ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22650 | { /* SCO 3.2v4 cc rejects this. */ |
| 22651 | char *t; |
| 22652 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22653 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22654 | *t++ = 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22655 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22656 | } |
| 22657 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 22658 | int x[] = {25, 17}; |
| 22659 | const int *foo = &x[0]; |
| 22660 | ++foo; |
| 22661 | } |
| 22662 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 22663 | typedef const int *iptr; |
| 22664 | iptr p = 0; |
| 22665 | ++p; |
| 22666 | } |
| 22667 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 22668 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 22669 | struct s { int j; const int *ap[3]; }; |
| 22670 | struct s *b; b->j = 5; |
| 22671 | } |
| 22672 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 22673 | const int foo = 10; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22674 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22675 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22676 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22677 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22678 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22679 | ; |
| 22680 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22681 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22682 | _ACEOF |
| 22683 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22684 | if { (ac_try="$ac_compile" |
| 22685 | case "(($ac_try" in |
| 22686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22687 | *) ac_try_echo=$ac_try;; |
| 22688 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22690 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22691 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22692 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22693 | rm -f conftest.er1 |
| 22694 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22696 | (exit $ac_status); } && { |
| 22697 | test -z "$ac_c_werror_flag" || |
| 22698 | test ! -s conftest.err |
| 22699 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22700 | ac_cv_c_const=yes |
| 22701 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22702 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22703 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22704 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22705 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22706 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22707 | |
| 22708 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22709 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22710 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 22711 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22712 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22713 | |
| 22714 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22715 | #define const |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22716 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22717 | |
| 22718 | fi |
| 22719 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22720 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22721 | works=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22722 | { echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 22723 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22724 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22725 | /* confdefs.h. */ |
| 22726 | _ACEOF |
| 22727 | cat confdefs.h >>conftest.$ac_ext |
| 22728 | cat >>conftest.$ac_ext <<_ACEOF |
| 22729 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22730 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22731 | int |
| 22732 | main () |
| 22733 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22734 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22735 | ; |
| 22736 | return 0; |
| 22737 | } |
| 22738 | _ACEOF |
| 22739 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22740 | if { (ac_try="$ac_compile" |
| 22741 | case "(($ac_try" in |
| 22742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22743 | *) ac_try_echo=$ac_try;; |
| 22744 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22746 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22747 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22748 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22749 | rm -f conftest.er1 |
| 22750 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22752 | (exit $ac_status); } && { |
| 22753 | test -z "$ac_c_werror_flag" || |
| 22754 | test ! -s conftest.err |
| 22755 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22756 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22757 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22758 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22759 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22760 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22761 | |
| 22762 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22763 | #define volatile |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22764 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22765 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22766 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22767 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22768 | |
| 22769 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22770 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 22771 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22772 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22773 | works=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22774 | { echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 22775 | 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] | 22776 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22777 | /* confdefs.h. */ |
| 22778 | _ACEOF |
| 22779 | cat confdefs.h >>conftest.$ac_ext |
| 22780 | cat >>conftest.$ac_ext <<_ACEOF |
| 22781 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 22782 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22783 | int |
| 22784 | main () |
| 22785 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22786 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22787 | ; |
| 22788 | return 0; |
| 22789 | } |
| 22790 | _ACEOF |
| 22791 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22792 | if { (ac_try="$ac_compile" |
| 22793 | case "(($ac_try" in |
| 22794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22795 | *) ac_try_echo=$ac_try;; |
| 22796 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22797 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22798 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22799 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22800 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22801 | rm -f conftest.er1 |
| 22802 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22804 | (exit $ac_status); } && { |
| 22805 | test -z "$ac_c_werror_flag" || |
| 22806 | test ! -s conftest.err |
| 22807 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22808 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 22809 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22810 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22811 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22812 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22813 | |
| 22814 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22815 | #define signed |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22816 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22817 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22818 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22819 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22820 | |
| 22821 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22822 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 22823 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22824 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22825 | have_prototypes=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22826 | { echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 22827 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22828 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22829 | /* confdefs.h. */ |
| 22830 | _ACEOF |
| 22831 | cat confdefs.h >>conftest.$ac_ext |
| 22832 | cat >>conftest.$ac_ext <<_ACEOF |
| 22833 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22834 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22835 | int |
| 22836 | main () |
| 22837 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22838 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22839 | ; |
| 22840 | return 0; |
| 22841 | } |
| 22842 | _ACEOF |
| 22843 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22844 | if { (ac_try="$ac_compile" |
| 22845 | case "(($ac_try" in |
| 22846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22847 | *) ac_try_echo=$ac_try;; |
| 22848 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22850 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22851 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22852 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22853 | rm -f conftest.er1 |
| 22854 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22856 | (exit $ac_status); } && { |
| 22857 | test -z "$ac_c_werror_flag" || |
| 22858 | test ! -s conftest.err |
| 22859 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22860 | |
| 22861 | |
| 22862 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22863 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22864 | _ACEOF |
| 22865 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22866 | have_prototypes=yes |
| 22867 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 22868 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22869 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22870 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22871 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22872 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22873 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22874 | |
| 22875 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22876 | { echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 22877 | echo "${ECHO_T}$have_prototypes" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22878 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22879 | works=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22880 | { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 22881 | 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] | 22882 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22883 | /* confdefs.h. */ |
| 22884 | _ACEOF |
| 22885 | cat confdefs.h >>conftest.$ac_ext |
| 22886 | cat >>conftest.$ac_ext <<_ACEOF |
| 22887 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22888 | |
| 22889 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 22890 | int foo(int x, ...) { |
| 22891 | va_list va; |
| 22892 | va_start(va, x); |
| 22893 | va_arg(va, int); |
| 22894 | va_arg(va, char *); |
| 22895 | va_arg(va, double); |
| 22896 | return 0; |
| 22897 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22898 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22899 | int |
| 22900 | main () |
| 22901 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 22902 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22903 | ; |
| 22904 | return 0; |
| 22905 | } |
| 22906 | _ACEOF |
| 22907 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22908 | if { (ac_try="$ac_compile" |
| 22909 | case "(($ac_try" in |
| 22910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22911 | *) ac_try_echo=$ac_try;; |
| 22912 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22914 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22915 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22916 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22917 | rm -f conftest.er1 |
| 22918 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22920 | (exit $ac_status); } && { |
| 22921 | test -z "$ac_c_werror_flag" || |
| 22922 | test ! -s conftest.err |
| 22923 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22924 | |
| 22925 | |
| 22926 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22927 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22928 | _ACEOF |
| 22929 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22930 | works=yes |
| 22931 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 22932 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22933 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22934 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22935 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22936 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22937 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22938 | |
| 22939 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22940 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 22941 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22942 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22943 | # check for socketpair |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22944 | { echo "$as_me:$LINENO: checking for socketpair" >&5 |
| 22945 | echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22946 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22947 | /* confdefs.h. */ |
| 22948 | _ACEOF |
| 22949 | cat confdefs.h >>conftest.$ac_ext |
| 22950 | cat >>conftest.$ac_ext <<_ACEOF |
| 22951 | /* end confdefs.h. */ |
| 22952 | |
| 22953 | #include <sys/types.h> |
| 22954 | #include <sys/socket.h> |
| 22955 | |
| 22956 | int |
| 22957 | main () |
| 22958 | { |
| 22959 | void *x=socketpair |
| 22960 | ; |
| 22961 | return 0; |
| 22962 | } |
| 22963 | _ACEOF |
| 22964 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22965 | if { (ac_try="$ac_compile" |
| 22966 | case "(($ac_try" in |
| 22967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22968 | *) ac_try_echo=$ac_try;; |
| 22969 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22971 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22972 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22973 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22974 | rm -f conftest.er1 |
| 22975 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22977 | (exit $ac_status); } && { |
| 22978 | test -z "$ac_c_werror_flag" || |
| 22979 | test ! -s conftest.err |
| 22980 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22981 | |
| 22982 | cat >>confdefs.h <<\_ACEOF |
| 22983 | #define HAVE_SOCKETPAIR 1 |
| 22984 | _ACEOF |
| 22985 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22986 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22987 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22988 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22989 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22990 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22991 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22992 | { echo "$as_me:$LINENO: result: no" >&5 |
| 22993 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22994 | |
| 22995 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22996 | |
| 22997 | 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] | 22998 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22999 | # check if sockaddr has sa_len member |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23000 | { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 23001 | 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] | 23002 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23003 | /* confdefs.h. */ |
| 23004 | _ACEOF |
| 23005 | cat confdefs.h >>conftest.$ac_ext |
| 23006 | cat >>conftest.$ac_ext <<_ACEOF |
| 23007 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 23008 | #include <sys/types.h> |
| 23009 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23010 | int |
| 23011 | main () |
| 23012 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 23013 | struct sockaddr x; |
| 23014 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23015 | ; |
| 23016 | return 0; |
| 23017 | } |
| 23018 | _ACEOF |
| 23019 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23020 | if { (ac_try="$ac_compile" |
| 23021 | case "(($ac_try" in |
| 23022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23023 | *) ac_try_echo=$ac_try;; |
| 23024 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23026 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23027 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23028 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23029 | rm -f conftest.er1 |
| 23030 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23032 | (exit $ac_status); } && { |
| 23033 | test -z "$ac_c_werror_flag" || |
| 23034 | test ! -s conftest.err |
| 23035 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23036 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23037 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23038 | |
| 23039 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 23040 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23041 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 23042 | |
| 23043 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23044 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23045 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23046 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23047 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23048 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 23049 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23050 | |
| 23051 | 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] | 23052 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 23053 | va_list_is_array=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23054 | { echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 23055 | 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] | 23056 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23057 | /* confdefs.h. */ |
| 23058 | _ACEOF |
| 23059 | cat confdefs.h >>conftest.$ac_ext |
| 23060 | cat >>conftest.$ac_ext <<_ACEOF |
| 23061 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23062 | |
| 23063 | #ifdef HAVE_STDARG_PROTOTYPES |
| 23064 | #include <stdarg.h> |
| 23065 | #else |
| 23066 | #include <varargs.h> |
| 23067 | #endif |
| 23068 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23069 | int |
| 23070 | main () |
| 23071 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23072 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23073 | ; |
| 23074 | return 0; |
| 23075 | } |
| 23076 | _ACEOF |
| 23077 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23078 | if { (ac_try="$ac_compile" |
| 23079 | case "(($ac_try" in |
| 23080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23081 | *) ac_try_echo=$ac_try;; |
| 23082 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23084 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23085 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23086 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23087 | rm -f conftest.er1 |
| 23088 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23090 | (exit $ac_status); } && { |
| 23091 | test -z "$ac_c_werror_flag" || |
| 23092 | test ! -s conftest.err |
| 23093 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23094 | : |
| 23095 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23096 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23097 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23098 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23099 | |
| 23100 | |
| 23101 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23102 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23103 | _ACEOF |
| 23104 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 23105 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 23106 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23107 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23108 | |
| 23109 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23110 | { echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 23111 | echo "${ECHO_T}$va_list_is_array" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23112 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23113 | # 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] | 23114 | |
| 23115 | |
| 23116 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23117 | { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 23118 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23119 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23121 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23122 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23123 | /* confdefs.h. */ |
| 23124 | _ACEOF |
| 23125 | cat confdefs.h >>conftest.$ac_ext |
| 23126 | cat >>conftest.$ac_ext <<_ACEOF |
| 23127 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23128 | /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r. |
| 23129 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23130 | #define gethostbyname_r innocuous_gethostbyname_r |
| 23131 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23132 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23133 | which can conflict with char gethostbyname_r (); below. |
| 23134 | 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] | 23135 | <limits.h> exists even on freestanding compilers. */ |
| 23136 | |
| 23137 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23138 | # include <limits.h> |
| 23139 | #else |
| 23140 | # include <assert.h> |
| 23141 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23142 | |
| 23143 | #undef gethostbyname_r |
| 23144 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23145 | /* Override any GCC internal prototype to avoid an error. |
| 23146 | Use char because int might match the return type of a GCC |
| 23147 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23148 | #ifdef __cplusplus |
| 23149 | extern "C" |
| 23150 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23151 | char gethostbyname_r (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23152 | /* The GNU C library defines this for functions which it implements |
| 23153 | to always fail with ENOSYS. Some functions are actually named |
| 23154 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23155 | #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23156 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23157 | #endif |
| 23158 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23159 | int |
| 23160 | main () |
| 23161 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23162 | return gethostbyname_r (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23163 | ; |
| 23164 | return 0; |
| 23165 | } |
| 23166 | _ACEOF |
| 23167 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23168 | if { (ac_try="$ac_link" |
| 23169 | case "(($ac_try" in |
| 23170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23171 | *) ac_try_echo=$ac_try;; |
| 23172 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23173 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23174 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23175 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23176 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23177 | rm -f conftest.er1 |
| 23178 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23180 | (exit $ac_status); } && { |
| 23181 | test -z "$ac_c_werror_flag" || |
| 23182 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23183 | } && test -s conftest$ac_exeext && |
| 23184 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23185 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 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 | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23190 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23191 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23192 | |
| 23193 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23194 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23195 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23196 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 23197 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; } |
| 23198 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23199 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23200 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23201 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23202 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23203 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23204 | { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 23205 | 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] | 23206 | OLD_CFLAGS=$CFLAGS |
| 23207 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23208 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23209 | /* confdefs.h. */ |
| 23210 | _ACEOF |
| 23211 | cat confdefs.h >>conftest.$ac_ext |
| 23212 | cat >>conftest.$ac_ext <<_ACEOF |
| 23213 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23214 | |
| 23215 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23216 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23217 | int |
| 23218 | main () |
| 23219 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23220 | |
| 23221 | char *name; |
| 23222 | struct hostent *he, *res; |
| 23223 | char buffer[2048]; |
| 23224 | int buflen = 2048; |
| 23225 | int h_errnop; |
| 23226 | |
| 23227 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23228 | |
| 23229 | ; |
| 23230 | return 0; |
| 23231 | } |
| 23232 | _ACEOF |
| 23233 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23234 | if { (ac_try="$ac_compile" |
| 23235 | case "(($ac_try" in |
| 23236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23237 | *) ac_try_echo=$ac_try;; |
| 23238 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23239 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23240 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23241 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23242 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23243 | rm -f conftest.er1 |
| 23244 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23246 | (exit $ac_status); } && { |
| 23247 | test -z "$ac_c_werror_flag" || |
| 23248 | test ! -s conftest.err |
| 23249 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23250 | |
| 23251 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23252 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23253 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23254 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23255 | |
| 23256 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23257 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23258 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23259 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23260 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23261 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23262 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23263 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23264 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23265 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23266 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23267 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23268 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23269 | echo "${ECHO_T}no" >&6; } |
| 23270 | { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 23271 | 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] | 23272 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23273 | /* confdefs.h. */ |
| 23274 | _ACEOF |
| 23275 | cat confdefs.h >>conftest.$ac_ext |
| 23276 | cat >>conftest.$ac_ext <<_ACEOF |
| 23277 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23278 | |
| 23279 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23280 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23281 | int |
| 23282 | main () |
| 23283 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23284 | |
| 23285 | char *name; |
| 23286 | struct hostent *he; |
| 23287 | char buffer[2048]; |
| 23288 | int buflen = 2048; |
| 23289 | int h_errnop; |
| 23290 | |
| 23291 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23292 | |
| 23293 | ; |
| 23294 | return 0; |
| 23295 | } |
| 23296 | _ACEOF |
| 23297 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23298 | if { (ac_try="$ac_compile" |
| 23299 | case "(($ac_try" in |
| 23300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23301 | *) ac_try_echo=$ac_try;; |
| 23302 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23304 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23305 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23306 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23307 | rm -f conftest.er1 |
| 23308 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23310 | (exit $ac_status); } && { |
| 23311 | test -z "$ac_c_werror_flag" || |
| 23312 | test ! -s conftest.err |
| 23313 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23314 | |
| 23315 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23316 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23317 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23318 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23319 | |
| 23320 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23321 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23322 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23323 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23324 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23325 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23326 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23327 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23328 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23329 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23330 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23331 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23332 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23333 | echo "${ECHO_T}no" >&6; } |
| 23334 | { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 23335 | 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] | 23336 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23337 | /* confdefs.h. */ |
| 23338 | _ACEOF |
| 23339 | cat confdefs.h >>conftest.$ac_ext |
| 23340 | cat >>conftest.$ac_ext <<_ACEOF |
| 23341 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23342 | |
| 23343 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23344 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23345 | int |
| 23346 | main () |
| 23347 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23348 | |
| 23349 | char *name; |
| 23350 | struct hostent *he; |
| 23351 | struct hostent_data data; |
| 23352 | |
| 23353 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23354 | |
| 23355 | ; |
| 23356 | return 0; |
| 23357 | } |
| 23358 | _ACEOF |
| 23359 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23360 | if { (ac_try="$ac_compile" |
| 23361 | case "(($ac_try" in |
| 23362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23363 | *) ac_try_echo=$ac_try;; |
| 23364 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23365 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23366 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23367 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23368 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23369 | rm -f conftest.er1 |
| 23370 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23372 | (exit $ac_status); } && { |
| 23373 | test -z "$ac_c_werror_flag" || |
| 23374 | test ! -s conftest.err |
| 23375 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23376 | |
| 23377 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23378 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23379 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23380 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23381 | |
| 23382 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23383 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23384 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23385 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23386 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23387 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23388 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23389 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23390 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23391 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23392 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23393 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23394 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23395 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23396 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23397 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23398 | |
| 23399 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23400 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23401 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23402 | |
| 23403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23404 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23405 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23406 | |
| 23407 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23408 | CFLAGS=$OLD_CFLAGS |
| 23409 | |
| 23410 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23411 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23412 | |
| 23413 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 23414 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23415 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 23416 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 23417 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23418 | 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] | 23419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23420 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23421 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23422 | /* confdefs.h. */ |
| 23423 | _ACEOF |
| 23424 | cat confdefs.h >>conftest.$ac_ext |
| 23425 | cat >>conftest.$ac_ext <<_ACEOF |
| 23426 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23427 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 23428 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23429 | #define $ac_func innocuous_$ac_func |
| 23430 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23431 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23432 | which can conflict with char $ac_func (); below. |
| 23433 | 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] | 23434 | <limits.h> exists even on freestanding compilers. */ |
| 23435 | |
| 23436 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23437 | # include <limits.h> |
| 23438 | #else |
| 23439 | # include <assert.h> |
| 23440 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23441 | |
| 23442 | #undef $ac_func |
| 23443 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23444 | /* Override any GCC internal prototype to avoid an error. |
| 23445 | Use char because int might match the return type of a GCC |
| 23446 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23447 | #ifdef __cplusplus |
| 23448 | extern "C" |
| 23449 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23450 | char $ac_func (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23451 | /* The GNU C library defines this for functions which it implements |
| 23452 | to always fail with ENOSYS. Some functions are actually named |
| 23453 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23454 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23455 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23456 | #endif |
| 23457 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23458 | int |
| 23459 | main () |
| 23460 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23461 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23462 | ; |
| 23463 | return 0; |
| 23464 | } |
| 23465 | _ACEOF |
| 23466 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23467 | if { (ac_try="$ac_link" |
| 23468 | case "(($ac_try" in |
| 23469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23470 | *) ac_try_echo=$ac_try;; |
| 23471 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23472 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23473 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23474 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23475 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23476 | rm -f conftest.er1 |
| 23477 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23479 | (exit $ac_status); } && { |
| 23480 | test -z "$ac_c_werror_flag" || |
| 23481 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23482 | } && test -s conftest$ac_exeext && |
| 23483 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23484 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23485 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23486 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23487 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23488 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23489 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23490 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23491 | |
| 23492 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23493 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23494 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23495 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 23496 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 23497 | echo "${ECHO_T}$ac_res" >&6; } |
| 23498 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23499 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23500 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23501 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23502 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23503 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 23504 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23505 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23506 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23507 | fi |
| 23508 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23509 | |
| 23510 | |
| 23511 | |
| 23512 | |
| 23513 | |
| 23514 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23515 | # checks for system services |
| 23516 | # (none yet) |
| 23517 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23518 | # Linux requires this for correct f.p. operations |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23519 | { echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 23520 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23521 | if test "${ac_cv_func___fpu_control+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23522 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23523 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23524 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23525 | /* confdefs.h. */ |
| 23526 | _ACEOF |
| 23527 | cat confdefs.h >>conftest.$ac_ext |
| 23528 | cat >>conftest.$ac_ext <<_ACEOF |
| 23529 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23530 | /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control. |
| 23531 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23532 | #define __fpu_control innocuous___fpu_control |
| 23533 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23534 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23535 | which can conflict with char __fpu_control (); below. |
| 23536 | 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] | 23537 | <limits.h> exists even on freestanding compilers. */ |
| 23538 | |
| 23539 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23540 | # include <limits.h> |
| 23541 | #else |
| 23542 | # include <assert.h> |
| 23543 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23544 | |
| 23545 | #undef __fpu_control |
| 23546 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23547 | /* Override any GCC internal prototype to avoid an error. |
| 23548 | Use char because int might match the return type of a GCC |
| 23549 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23550 | #ifdef __cplusplus |
| 23551 | extern "C" |
| 23552 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23553 | char __fpu_control (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23554 | /* The GNU C library defines this for functions which it implements |
| 23555 | to always fail with ENOSYS. Some functions are actually named |
| 23556 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23557 | #if defined __stub___fpu_control || defined __stub_____fpu_control |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23558 | choke me |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23559 | #endif |
| 23560 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23561 | int |
| 23562 | main () |
| 23563 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23564 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23565 | ; |
| 23566 | return 0; |
| 23567 | } |
| 23568 | _ACEOF |
| 23569 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23570 | if { (ac_try="$ac_link" |
| 23571 | case "(($ac_try" in |
| 23572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23573 | *) ac_try_echo=$ac_try;; |
| 23574 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23575 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23576 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23577 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23578 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23579 | rm -f conftest.er1 |
| 23580 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23582 | (exit $ac_status); } && { |
| 23583 | test -z "$ac_c_werror_flag" || |
| 23584 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23585 | } && test -s conftest$ac_exeext && |
| 23586 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23587 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23588 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23589 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23590 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23591 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23592 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23593 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23594 | |
| 23595 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23596 | conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23597 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23598 | { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 23599 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; } |
| 23600 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23601 | : |
| 23602 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23603 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23604 | { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 23605 | 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] | 23606 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23608 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23609 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 23610 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23611 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23612 | /* confdefs.h. */ |
| 23613 | _ACEOF |
| 23614 | cat confdefs.h >>conftest.$ac_ext |
| 23615 | cat >>conftest.$ac_ext <<_ACEOF |
| 23616 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23617 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23618 | /* Override any GCC internal prototype to avoid an error. |
| 23619 | Use char because int might match the return type of a GCC |
| 23620 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23621 | #ifdef __cplusplus |
| 23622 | extern "C" |
| 23623 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23624 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23625 | int |
| 23626 | main () |
| 23627 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23628 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23629 | ; |
| 23630 | return 0; |
| 23631 | } |
| 23632 | _ACEOF |
| 23633 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23634 | if { (ac_try="$ac_link" |
| 23635 | case "(($ac_try" in |
| 23636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23637 | *) ac_try_echo=$ac_try;; |
| 23638 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23640 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23641 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23642 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23643 | rm -f conftest.er1 |
| 23644 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23646 | (exit $ac_status); } && { |
| 23647 | test -z "$ac_c_werror_flag" || |
| 23648 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23649 | } && test -s conftest$ac_exeext && |
| 23650 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23651 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23652 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23653 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23654 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23655 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23656 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23657 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23658 | |
| 23659 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23660 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23661 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23662 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23663 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 23664 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; } |
| 23665 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23666 | cat >>confdefs.h <<_ACEOF |
| 23667 | #define HAVE_LIBIEEE 1 |
| 23668 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23669 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 23670 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23671 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23672 | fi |
| 23673 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23674 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23675 | fi |
| 23676 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23677 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23678 | # Check for --with-fpectl |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23679 | { echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 23680 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23681 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23682 | # Check whether --with-fpectl was given. |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23683 | if test "${with_fpectl+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23684 | withval=$with_fpectl; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23685 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23686 | then |
| 23687 | |
| 23688 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23689 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23690 | _ACEOF |
| 23691 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23692 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23693 | echo "${ECHO_T}yes" >&6; } |
| 23694 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 23695 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23696 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23697 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23698 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23699 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23700 | fi |
| 23701 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23702 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23703 | # check for --with-libm=... |
| 23704 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 23705 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 23706 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 23707 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 23708 | *) LIBM=-lm |
| 23709 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23710 | { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 23711 | 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] | 23712 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23713 | # Check whether --with-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 23714 | if test "${with_libm+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23715 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23716 | if test "$withval" = no |
| 23717 | then LIBM= |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23718 | { echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 23719 | echo "${ECHO_T}force LIBM empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23720 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23721 | then LIBM=$withval |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23722 | { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 23723 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6; } |
| 23724 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 23725 | 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] | 23726 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23727 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23728 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23729 | { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 23730 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23731 | fi |
| 23732 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23733 | |
| 23734 | # check for --with-libc=... |
| 23735 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23736 | { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 23737 | 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] | 23738 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23739 | # Check whether --with-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 23740 | if test "${with_libc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23741 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23742 | if test "$withval" = no |
| 23743 | then LIBC= |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23744 | { echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 23745 | echo "${ECHO_T}force LIBC empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23746 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23747 | then LIBC=$withval |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23748 | { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 23749 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6; } |
| 23750 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 23751 | 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] | 23752 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23753 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23754 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23755 | { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 23756 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23757 | fi |
| 23758 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23759 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 23760 | # ************************************************** |
| 23761 | # * Check for various properties of floating point * |
| 23762 | # ************************************************** |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23763 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 23764 | { echo "$as_me:$LINENO: checking whether C doubles are little-endian IEEE 754 binary64" >&5 |
| 23765 | echo $ECHO_N "checking whether C doubles are little-endian IEEE 754 binary64... $ECHO_C" >&6; } |
| 23766 | if test "${ac_cv_little_endian_double+set}" = set; then |
| 23767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23768 | else |
| 23769 | |
| 23770 | if test "$cross_compiling" = yes; then |
| 23771 | ac_cv_little_endian_double=no |
| 23772 | else |
| 23773 | cat >conftest.$ac_ext <<_ACEOF |
| 23774 | /* confdefs.h. */ |
| 23775 | _ACEOF |
| 23776 | cat confdefs.h >>conftest.$ac_ext |
| 23777 | cat >>conftest.$ac_ext <<_ACEOF |
| 23778 | /* end confdefs.h. */ |
| 23779 | |
| 23780 | #include <string.h> |
| 23781 | int main() { |
| 23782 | double x = 9006104071832581.0; |
| 23783 | if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) |
| 23784 | return 0; |
| 23785 | else |
| 23786 | return 1; |
| 23787 | } |
| 23788 | |
| 23789 | _ACEOF |
| 23790 | rm -f conftest$ac_exeext |
| 23791 | if { (ac_try="$ac_link" |
| 23792 | case "(($ac_try" in |
| 23793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23794 | *) ac_try_echo=$ac_try;; |
| 23795 | esac |
| 23796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23797 | (eval "$ac_link") 2>&5 |
| 23798 | ac_status=$? |
| 23799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23800 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23801 | { (case "(($ac_try" in |
| 23802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23803 | *) ac_try_echo=$ac_try;; |
| 23804 | esac |
| 23805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23806 | (eval "$ac_try") 2>&5 |
| 23807 | ac_status=$? |
| 23808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23809 | (exit $ac_status); }; }; then |
| 23810 | ac_cv_little_endian_double=yes |
| 23811 | else |
| 23812 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23813 | echo "$as_me: failed program was:" >&5 |
| 23814 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23815 | |
| 23816 | ( exit $ac_status ) |
| 23817 | ac_cv_little_endian_double=no |
| 23818 | fi |
| 23819 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23820 | fi |
| 23821 | |
| 23822 | |
| 23823 | fi |
| 23824 | |
| 23825 | { echo "$as_me:$LINENO: result: $ac_cv_little_endian_double" >&5 |
| 23826 | echo "${ECHO_T}$ac_cv_little_endian_double" >&6; } |
| 23827 | if test "$ac_cv_little_endian_double" = yes |
| 23828 | then |
| 23829 | |
| 23830 | cat >>confdefs.h <<\_ACEOF |
| 23831 | #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1 |
| 23832 | _ACEOF |
| 23833 | |
| 23834 | fi |
| 23835 | |
| 23836 | { echo "$as_me:$LINENO: checking whether C doubles are big-endian IEEE 754 binary64" >&5 |
| 23837 | echo $ECHO_N "checking whether C doubles are big-endian IEEE 754 binary64... $ECHO_C" >&6; } |
| 23838 | if test "${ac_cv_big_endian_double+set}" = set; then |
| 23839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23840 | else |
| 23841 | |
| 23842 | if test "$cross_compiling" = yes; then |
| 23843 | ac_cv_big_endian_double=no |
| 23844 | else |
| 23845 | cat >conftest.$ac_ext <<_ACEOF |
| 23846 | /* confdefs.h. */ |
| 23847 | _ACEOF |
| 23848 | cat confdefs.h >>conftest.$ac_ext |
| 23849 | cat >>conftest.$ac_ext <<_ACEOF |
| 23850 | /* end confdefs.h. */ |
| 23851 | |
| 23852 | #include <string.h> |
| 23853 | int main() { |
| 23854 | double x = 9006104071832581.0; |
| 23855 | if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) |
| 23856 | return 0; |
| 23857 | else |
| 23858 | return 1; |
| 23859 | } |
| 23860 | |
| 23861 | _ACEOF |
| 23862 | rm -f conftest$ac_exeext |
| 23863 | if { (ac_try="$ac_link" |
| 23864 | case "(($ac_try" in |
| 23865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23866 | *) ac_try_echo=$ac_try;; |
| 23867 | esac |
| 23868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23869 | (eval "$ac_link") 2>&5 |
| 23870 | ac_status=$? |
| 23871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23872 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23873 | { (case "(($ac_try" in |
| 23874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23875 | *) ac_try_echo=$ac_try;; |
| 23876 | esac |
| 23877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23878 | (eval "$ac_try") 2>&5 |
| 23879 | ac_status=$? |
| 23880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23881 | (exit $ac_status); }; }; then |
| 23882 | ac_cv_big_endian_double=yes |
| 23883 | else |
| 23884 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23885 | echo "$as_me: failed program was:" >&5 |
| 23886 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23887 | |
| 23888 | ( exit $ac_status ) |
| 23889 | ac_cv_big_endian_double=no |
| 23890 | fi |
| 23891 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23892 | fi |
| 23893 | |
| 23894 | |
| 23895 | fi |
| 23896 | |
| 23897 | { echo "$as_me:$LINENO: result: $ac_cv_big_endian_double" >&5 |
| 23898 | echo "${ECHO_T}$ac_cv_big_endian_double" >&6; } |
| 23899 | if test "$ac_cv_big_endian_double" = yes |
| 23900 | then |
| 23901 | |
| 23902 | cat >>confdefs.h <<\_ACEOF |
| 23903 | #define DOUBLE_IS_BIG_ENDIAN_IEEE754 1 |
| 23904 | _ACEOF |
| 23905 | |
| 23906 | fi |
| 23907 | |
| 23908 | # Some ARM platforms use a mixed-endian representation for doubles. |
| 23909 | # While Python doesn't currently have full support for these platforms |
| 23910 | # (see e.g., issue 1762561), we can at least make sure that float <-> string |
| 23911 | # conversions work. |
| 23912 | { echo "$as_me:$LINENO: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 |
| 23913 | echo $ECHO_N "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... $ECHO_C" >&6; } |
| 23914 | if test "${ac_cv_mixed_endian_double+set}" = set; then |
| 23915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23916 | else |
| 23917 | |
| 23918 | if test "$cross_compiling" = yes; then |
| 23919 | ac_cv_mixed_endian_double=no |
| 23920 | else |
| 23921 | cat >conftest.$ac_ext <<_ACEOF |
| 23922 | /* confdefs.h. */ |
| 23923 | _ACEOF |
| 23924 | cat confdefs.h >>conftest.$ac_ext |
| 23925 | cat >>conftest.$ac_ext <<_ACEOF |
| 23926 | /* end confdefs.h. */ |
| 23927 | |
| 23928 | #include <string.h> |
| 23929 | int main() { |
| 23930 | double x = 9006104071832581.0; |
| 23931 | if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) |
| 23932 | return 0; |
| 23933 | else |
| 23934 | return 1; |
| 23935 | } |
| 23936 | |
| 23937 | _ACEOF |
| 23938 | rm -f conftest$ac_exeext |
| 23939 | if { (ac_try="$ac_link" |
| 23940 | case "(($ac_try" in |
| 23941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23942 | *) ac_try_echo=$ac_try;; |
| 23943 | esac |
| 23944 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23945 | (eval "$ac_link") 2>&5 |
| 23946 | ac_status=$? |
| 23947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23948 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23949 | { (case "(($ac_try" in |
| 23950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23951 | *) ac_try_echo=$ac_try;; |
| 23952 | esac |
| 23953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23954 | (eval "$ac_try") 2>&5 |
| 23955 | ac_status=$? |
| 23956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23957 | (exit $ac_status); }; }; then |
| 23958 | ac_cv_mixed_endian_double=yes |
| 23959 | else |
| 23960 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23961 | echo "$as_me: failed program was:" >&5 |
| 23962 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23963 | |
| 23964 | ( exit $ac_status ) |
| 23965 | ac_cv_mixed_endian_double=no |
| 23966 | fi |
| 23967 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23968 | fi |
| 23969 | |
| 23970 | |
| 23971 | fi |
| 23972 | |
| 23973 | { echo "$as_me:$LINENO: result: $ac_cv_mixed_endian_double" >&5 |
| 23974 | echo "${ECHO_T}$ac_cv_mixed_endian_double" >&6; } |
| 23975 | if test "$ac_cv_mixed_endian_double" = yes |
| 23976 | then |
| 23977 | |
| 23978 | cat >>confdefs.h <<\_ACEOF |
| 23979 | #define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1 |
| 23980 | _ACEOF |
| 23981 | |
| 23982 | fi |
| 23983 | |
| 23984 | # The short float repr introduced in Python 3.1 requires the |
| 23985 | # correctly-rounded string <-> double conversion functions from |
| 23986 | # Python/dtoa.c, which in turn require that the FPU uses 53-bit |
| 23987 | # 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] | 23988 | # 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] | 23989 | # using inline assembler to get and set the x87 FPU control word. |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 23990 | |
| 23991 | # This inline assembler syntax may also work for suncc and icc, |
| 23992 | # so we try it on all platforms. |
| 23993 | |
| 23994 | { 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] | 23995 | 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] | 23996 | cat >conftest.$ac_ext <<_ACEOF |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 23997 | /* confdefs.h. */ |
| 23998 | _ACEOF |
| 23999 | cat confdefs.h >>conftest.$ac_ext |
| 24000 | cat >>conftest.$ac_ext <<_ACEOF |
| 24001 | /* end confdefs.h. */ |
| 24002 | |
| 24003 | int |
| 24004 | main () |
| 24005 | { |
| 24006 | |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 24007 | unsigned short cw; |
| 24008 | __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); |
| 24009 | __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24010 | |
| 24011 | ; |
| 24012 | return 0; |
| 24013 | } |
| 24014 | _ACEOF |
| 24015 | rm -f conftest.$ac_objext |
| 24016 | if { (ac_try="$ac_compile" |
| 24017 | case "(($ac_try" in |
| 24018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24019 | *) ac_try_echo=$ac_try;; |
| 24020 | esac |
| 24021 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24022 | (eval "$ac_compile") 2>conftest.er1 |
| 24023 | ac_status=$? |
| 24024 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24025 | rm -f conftest.er1 |
| 24026 | cat conftest.err >&5 |
| 24027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24028 | (exit $ac_status); } && { |
| 24029 | test -z "$ac_c_werror_flag" || |
| 24030 | test ! -s conftest.err |
| 24031 | } && test -s conftest.$ac_objext; then |
| 24032 | have_gcc_asm_for_x87=yes |
| 24033 | else |
| 24034 | echo "$as_me: failed program was:" >&5 |
| 24035 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24036 | |
| 24037 | have_gcc_asm_for_x87=no |
| 24038 | fi |
| 24039 | |
| 24040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 24041 | { echo "$as_me:$LINENO: result: $have_gcc_asm_for_x87" >&5 |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24042 | echo "${ECHO_T}$have_gcc_asm_for_x87" >&6; } |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 24043 | if test "$have_gcc_asm_for_x87" = yes |
| 24044 | then |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24045 | |
| 24046 | cat >>confdefs.h <<\_ACEOF |
| 24047 | #define HAVE_GCC_ASM_FOR_X87 1 |
| 24048 | _ACEOF |
| 24049 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24050 | fi |
Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 24051 | |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24052 | # Detect whether system arithmetic is subject to x87-style double |
| 24053 | # rounding issues. The result of this test has little meaning on non |
| 24054 | # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding |
| 24055 | # mode is round-to-nearest and double rounding issues are present, and |
| 24056 | # 0 otherwise. See http://bugs.python.org/issue2937 for more info. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24057 | { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5 |
| 24058 | echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; } |
Mark Dickinson | 99abd14 | 2009-10-24 13:44:16 +0000 | [diff] [blame] | 24059 | # $BASECFLAGS may affect the result |
| 24060 | ac_save_cc="$CC" |
| 24061 | CC="$CC $BASECFLAGS" |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24062 | if test "$cross_compiling" = yes; then |
| 24063 | ac_cv_x87_double_rounding=no |
| 24064 | else |
| 24065 | cat >conftest.$ac_ext <<_ACEOF |
| 24066 | /* confdefs.h. */ |
| 24067 | _ACEOF |
| 24068 | cat confdefs.h >>conftest.$ac_ext |
| 24069 | cat >>conftest.$ac_ext <<_ACEOF |
| 24070 | /* end confdefs.h. */ |
| 24071 | |
| 24072 | #include <stdlib.h> |
| 24073 | #include <math.h> |
| 24074 | int main() { |
| 24075 | volatile double x, y, z; |
| 24076 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ |
| 24077 | x = 0.99999999999999989; /* 1-2**-53 */ |
| 24078 | y = 1./x; |
| 24079 | if (y != 1.) |
| 24080 | exit(0); |
| 24081 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ |
| 24082 | x = 1e16; |
| 24083 | y = 2.99999; |
| 24084 | z = x + y; |
| 24085 | if (z != 1e16+4.) |
| 24086 | exit(0); |
| 24087 | /* both tests show evidence of double rounding */ |
| 24088 | exit(1); |
| 24089 | } |
| 24090 | |
| 24091 | _ACEOF |
| 24092 | rm -f conftest$ac_exeext |
| 24093 | if { (ac_try="$ac_link" |
| 24094 | case "(($ac_try" in |
| 24095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24096 | *) ac_try_echo=$ac_try;; |
| 24097 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24099 | (eval "$ac_link") 2>&5 |
| 24100 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24102 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 24103 | { (case "(($ac_try" in |
| 24104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24105 | *) ac_try_echo=$ac_try;; |
| 24106 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24108 | (eval "$ac_try") 2>&5 |
| 24109 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24111 | (exit $ac_status); }; }; then |
| 24112 | ac_cv_x87_double_rounding=no |
| 24113 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24114 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24115 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24116 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24117 | |
| 24118 | ( exit $ac_status ) |
| 24119 | ac_cv_x87_double_rounding=yes |
| 24120 | fi |
| 24121 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 24122 | fi |
| 24123 | |
| 24124 | |
Mark Dickinson | 99abd14 | 2009-10-24 13:44:16 +0000 | [diff] [blame] | 24125 | CC="$ac_save_cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24126 | { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5 |
| 24127 | echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; } |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24128 | if test "$ac_cv_x87_double_rounding" = yes |
| 24129 | then |
| 24130 | |
| 24131 | cat >>confdefs.h <<\_ACEOF |
| 24132 | #define X87_DOUBLE_ROUNDING 1 |
| 24133 | _ACEOF |
| 24134 | |
| 24135 | fi |
| 24136 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24137 | # ************************************ |
| 24138 | # * Check for mathematical functions * |
| 24139 | # ************************************ |
| 24140 | |
| 24141 | LIBS_SAVE=$LIBS |
| 24142 | LIBS="$LIBS $LIBM" |
| 24143 | |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24144 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of |
| 24145 | # -0. on some architectures. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24146 | { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5 |
| 24147 | 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] | 24148 | if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24150 | else |
| 24151 | |
| 24152 | if test "$cross_compiling" = yes; then |
| 24153 | ac_cv_tanh_preserves_zero_sign=no |
| 24154 | else |
| 24155 | cat >conftest.$ac_ext <<_ACEOF |
| 24156 | /* confdefs.h. */ |
| 24157 | _ACEOF |
| 24158 | cat confdefs.h >>conftest.$ac_ext |
| 24159 | cat >>conftest.$ac_ext <<_ACEOF |
| 24160 | /* end confdefs.h. */ |
| 24161 | |
| 24162 | #include <math.h> |
Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 24163 | #include <stdlib.h> |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24164 | int main() { |
| 24165 | /* return 0 if either negative zeros don't exist |
| 24166 | on this platform or if negative zeros exist |
| 24167 | and tanh(-0.) == -0. */ |
| 24168 | if (atan2(0., -1.) == atan2(-0., -1.) || |
| 24169 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); |
| 24170 | else exit(1); |
| 24171 | } |
| 24172 | |
| 24173 | _ACEOF |
| 24174 | rm -f conftest$ac_exeext |
| 24175 | if { (ac_try="$ac_link" |
| 24176 | case "(($ac_try" in |
| 24177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24178 | *) ac_try_echo=$ac_try;; |
| 24179 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24180 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24181 | (eval "$ac_link") 2>&5 |
| 24182 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24184 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 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 | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24190 | (eval "$ac_try") 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 | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24193 | (exit $ac_status); }; }; then |
| 24194 | ac_cv_tanh_preserves_zero_sign=yes |
| 24195 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24196 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24197 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24198 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24199 | |
| 24200 | ( exit $ac_status ) |
| 24201 | ac_cv_tanh_preserves_zero_sign=no |
| 24202 | fi |
| 24203 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 24204 | fi |
| 24205 | |
| 24206 | |
| 24207 | fi |
| 24208 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24209 | { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5 |
| 24210 | echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; } |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24211 | if test "$ac_cv_tanh_preserves_zero_sign" = yes |
| 24212 | then |
| 24213 | |
| 24214 | cat >>confdefs.h <<\_ACEOF |
| 24215 | #define TANH_PRESERVES_ZERO_SIGN 1 |
| 24216 | _ACEOF |
| 24217 | |
| 24218 | fi |
| 24219 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24220 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 24221 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24222 | |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24223 | |
| 24224 | |
| 24225 | |
| 24226 | |
| 24227 | |
Mark Dickinson | 8e5446f | 2009-04-18 14:41:37 +0000 | [diff] [blame] | 24228 | |
Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 24229 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma |
| 24230 | do |
| 24231 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 24232 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 24233 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 24234 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 24235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24236 | else |
| 24237 | cat >conftest.$ac_ext <<_ACEOF |
| 24238 | /* confdefs.h. */ |
| 24239 | _ACEOF |
| 24240 | cat confdefs.h >>conftest.$ac_ext |
| 24241 | cat >>conftest.$ac_ext <<_ACEOF |
| 24242 | /* end confdefs.h. */ |
| 24243 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 24244 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 24245 | #define $ac_func innocuous_$ac_func |
| 24246 | |
| 24247 | /* System header to define __stub macros and hopefully few prototypes, |
| 24248 | which can conflict with char $ac_func (); below. |
| 24249 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 24250 | <limits.h> exists even on freestanding compilers. */ |
| 24251 | |
| 24252 | #ifdef __STDC__ |
| 24253 | # include <limits.h> |
| 24254 | #else |
| 24255 | # include <assert.h> |
| 24256 | #endif |
| 24257 | |
| 24258 | #undef $ac_func |
| 24259 | |
| 24260 | /* Override any GCC internal prototype to avoid an error. |
| 24261 | Use char because int might match the return type of a GCC |
| 24262 | builtin and then its argument prototype would still apply. */ |
| 24263 | #ifdef __cplusplus |
| 24264 | extern "C" |
| 24265 | #endif |
| 24266 | char $ac_func (); |
| 24267 | /* The GNU C library defines this for functions which it implements |
| 24268 | to always fail with ENOSYS. Some functions are actually named |
| 24269 | something starting with __ and the normal name is an alias. */ |
| 24270 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 24271 | choke me |
| 24272 | #endif |
| 24273 | |
| 24274 | int |
| 24275 | main () |
| 24276 | { |
| 24277 | return $ac_func (); |
| 24278 | ; |
| 24279 | return 0; |
| 24280 | } |
| 24281 | _ACEOF |
| 24282 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24283 | if { (ac_try="$ac_link" |
| 24284 | case "(($ac_try" in |
| 24285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24286 | *) ac_try_echo=$ac_try;; |
| 24287 | esac |
| 24288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24289 | (eval "$ac_link") 2>conftest.er1 |
| 24290 | ac_status=$? |
| 24291 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24292 | rm -f conftest.er1 |
| 24293 | cat conftest.err >&5 |
| 24294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24295 | (exit $ac_status); } && { |
| 24296 | test -z "$ac_c_werror_flag" || |
| 24297 | test ! -s conftest.err |
| 24298 | } && test -s conftest$ac_exeext && |
| 24299 | $as_test_x conftest$ac_exeext; then |
| 24300 | eval "$as_ac_var=yes" |
| 24301 | else |
| 24302 | echo "$as_me: failed program was:" >&5 |
| 24303 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24304 | |
| 24305 | eval "$as_ac_var=no" |
| 24306 | fi |
| 24307 | |
| 24308 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 24309 | conftest$ac_exeext conftest.$ac_ext |
| 24310 | fi |
| 24311 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 24312 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 24313 | echo "${ECHO_T}$ac_res" >&6; } |
| 24314 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 24315 | cat >>confdefs.h <<_ACEOF |
| 24316 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 24317 | _ACEOF |
| 24318 | |
| 24319 | fi |
| 24320 | done |
| 24321 | |
| 24322 | |
| 24323 | |
| 24324 | |
| 24325 | |
| 24326 | |
| 24327 | for ac_func in hypot lgamma log1p round tgamma |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24328 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24329 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 24330 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 24331 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24332 | 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] | 24333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24334 | else |
| 24335 | cat >conftest.$ac_ext <<_ACEOF |
| 24336 | /* confdefs.h. */ |
| 24337 | _ACEOF |
| 24338 | cat confdefs.h >>conftest.$ac_ext |
| 24339 | cat >>conftest.$ac_ext <<_ACEOF |
| 24340 | /* end confdefs.h. */ |
| 24341 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 24342 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 24343 | #define $ac_func innocuous_$ac_func |
| 24344 | |
| 24345 | /* System header to define __stub macros and hopefully few prototypes, |
| 24346 | which can conflict with char $ac_func (); below. |
| 24347 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 24348 | <limits.h> exists even on freestanding compilers. */ |
| 24349 | |
| 24350 | #ifdef __STDC__ |
| 24351 | # include <limits.h> |
| 24352 | #else |
| 24353 | # include <assert.h> |
| 24354 | #endif |
| 24355 | |
| 24356 | #undef $ac_func |
| 24357 | |
| 24358 | /* Override any GCC internal prototype to avoid an error. |
| 24359 | Use char because int might match the return type of a GCC |
| 24360 | builtin and then its argument prototype would still apply. */ |
| 24361 | #ifdef __cplusplus |
| 24362 | extern "C" |
| 24363 | #endif |
| 24364 | char $ac_func (); |
| 24365 | /* The GNU C library defines this for functions which it implements |
| 24366 | to always fail with ENOSYS. Some functions are actually named |
| 24367 | something starting with __ and the normal name is an alias. */ |
| 24368 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 24369 | choke me |
| 24370 | #endif |
| 24371 | |
| 24372 | int |
| 24373 | main () |
| 24374 | { |
| 24375 | return $ac_func (); |
| 24376 | ; |
| 24377 | return 0; |
| 24378 | } |
| 24379 | _ACEOF |
| 24380 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24381 | if { (ac_try="$ac_link" |
| 24382 | case "(($ac_try" in |
| 24383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24384 | *) ac_try_echo=$ac_try;; |
| 24385 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24387 | (eval "$ac_link") 2>conftest.er1 |
| 24388 | ac_status=$? |
| 24389 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24390 | rm -f conftest.er1 |
| 24391 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24393 | (exit $ac_status); } && { |
| 24394 | test -z "$ac_c_werror_flag" || |
| 24395 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24396 | } && test -s conftest$ac_exeext && |
| 24397 | $as_test_x conftest$ac_exeext; then |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24398 | eval "$as_ac_var=yes" |
| 24399 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24400 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24401 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24402 | |
| 24403 | eval "$as_ac_var=no" |
| 24404 | fi |
| 24405 | |
| 24406 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 24407 | conftest$ac_exeext conftest.$ac_ext |
| 24408 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24409 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 24410 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 24411 | echo "${ECHO_T}$ac_res" >&6; } |
| 24412 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24413 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24414 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24415 | _ACEOF |
| 24416 | |
| 24417 | fi |
| 24418 | done |
| 24419 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24420 | { echo "$as_me:$LINENO: checking whether isinf is declared" >&5 |
| 24421 | echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; } |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24422 | if test "${ac_cv_have_decl_isinf+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24424 | else |
| 24425 | cat >conftest.$ac_ext <<_ACEOF |
| 24426 | /* confdefs.h. */ |
| 24427 | _ACEOF |
| 24428 | cat confdefs.h >>conftest.$ac_ext |
| 24429 | cat >>conftest.$ac_ext <<_ACEOF |
| 24430 | /* end confdefs.h. */ |
| 24431 | #include <math.h> |
| 24432 | |
| 24433 | int |
| 24434 | main () |
| 24435 | { |
| 24436 | #ifndef isinf |
| 24437 | (void) isinf; |
| 24438 | #endif |
| 24439 | |
| 24440 | ; |
| 24441 | return 0; |
| 24442 | } |
| 24443 | _ACEOF |
| 24444 | rm -f conftest.$ac_objext |
| 24445 | if { (ac_try="$ac_compile" |
| 24446 | case "(($ac_try" in |
| 24447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24448 | *) ac_try_echo=$ac_try;; |
| 24449 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24451 | (eval "$ac_compile") 2>conftest.er1 |
| 24452 | ac_status=$? |
| 24453 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24454 | rm -f conftest.er1 |
| 24455 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24457 | (exit $ac_status); } && { |
| 24458 | test -z "$ac_c_werror_flag" || |
| 24459 | test ! -s conftest.err |
| 24460 | } && test -s conftest.$ac_objext; then |
| 24461 | ac_cv_have_decl_isinf=yes |
| 24462 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24463 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24464 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24465 | |
| 24466 | ac_cv_have_decl_isinf=no |
| 24467 | fi |
| 24468 | |
| 24469 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24470 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24471 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5 |
| 24472 | echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; } |
| 24473 | if test $ac_cv_have_decl_isinf = yes; then |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24474 | |
| 24475 | cat >>confdefs.h <<_ACEOF |
| 24476 | #define HAVE_DECL_ISINF 1 |
| 24477 | _ACEOF |
| 24478 | |
| 24479 | |
| 24480 | else |
| 24481 | cat >>confdefs.h <<_ACEOF |
| 24482 | #define HAVE_DECL_ISINF 0 |
| 24483 | _ACEOF |
| 24484 | |
| 24485 | |
| 24486 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24487 | { echo "$as_me:$LINENO: checking whether isnan is declared" >&5 |
| 24488 | echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; } |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24489 | if test "${ac_cv_have_decl_isnan+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24491 | else |
| 24492 | cat >conftest.$ac_ext <<_ACEOF |
| 24493 | /* confdefs.h. */ |
| 24494 | _ACEOF |
| 24495 | cat confdefs.h >>conftest.$ac_ext |
| 24496 | cat >>conftest.$ac_ext <<_ACEOF |
| 24497 | /* end confdefs.h. */ |
| 24498 | #include <math.h> |
| 24499 | |
| 24500 | int |
| 24501 | main () |
| 24502 | { |
| 24503 | #ifndef isnan |
| 24504 | (void) isnan; |
| 24505 | #endif |
| 24506 | |
| 24507 | ; |
| 24508 | return 0; |
| 24509 | } |
| 24510 | _ACEOF |
| 24511 | rm -f conftest.$ac_objext |
| 24512 | if { (ac_try="$ac_compile" |
| 24513 | case "(($ac_try" in |
| 24514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24515 | *) ac_try_echo=$ac_try;; |
| 24516 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24518 | (eval "$ac_compile") 2>conftest.er1 |
| 24519 | ac_status=$? |
| 24520 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24521 | rm -f conftest.er1 |
| 24522 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24524 | (exit $ac_status); } && { |
| 24525 | test -z "$ac_c_werror_flag" || |
| 24526 | test ! -s conftest.err |
| 24527 | } && test -s conftest.$ac_objext; then |
| 24528 | ac_cv_have_decl_isnan=yes |
| 24529 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24530 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24531 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24532 | |
| 24533 | ac_cv_have_decl_isnan=no |
| 24534 | fi |
| 24535 | |
| 24536 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24537 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24538 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5 |
| 24539 | echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; } |
| 24540 | if test $ac_cv_have_decl_isnan = yes; then |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24541 | |
| 24542 | cat >>confdefs.h <<_ACEOF |
| 24543 | #define HAVE_DECL_ISNAN 1 |
| 24544 | _ACEOF |
| 24545 | |
| 24546 | |
| 24547 | else |
| 24548 | cat >>confdefs.h <<_ACEOF |
| 24549 | #define HAVE_DECL_ISNAN 0 |
| 24550 | _ACEOF |
| 24551 | |
| 24552 | |
| 24553 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24554 | { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5 |
| 24555 | echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; } |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24556 | if test "${ac_cv_have_decl_isfinite+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24558 | else |
| 24559 | cat >conftest.$ac_ext <<_ACEOF |
| 24560 | /* confdefs.h. */ |
| 24561 | _ACEOF |
| 24562 | cat confdefs.h >>conftest.$ac_ext |
| 24563 | cat >>conftest.$ac_ext <<_ACEOF |
| 24564 | /* end confdefs.h. */ |
| 24565 | #include <math.h> |
| 24566 | |
| 24567 | int |
| 24568 | main () |
| 24569 | { |
| 24570 | #ifndef isfinite |
| 24571 | (void) isfinite; |
| 24572 | #endif |
| 24573 | |
| 24574 | ; |
| 24575 | return 0; |
| 24576 | } |
| 24577 | _ACEOF |
| 24578 | rm -f conftest.$ac_objext |
| 24579 | if { (ac_try="$ac_compile" |
| 24580 | case "(($ac_try" in |
| 24581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24582 | *) ac_try_echo=$ac_try;; |
| 24583 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24584 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24585 | (eval "$ac_compile") 2>conftest.er1 |
| 24586 | ac_status=$? |
| 24587 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24588 | rm -f conftest.er1 |
| 24589 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24591 | (exit $ac_status); } && { |
| 24592 | test -z "$ac_c_werror_flag" || |
| 24593 | test ! -s conftest.err |
| 24594 | } && test -s conftest.$ac_objext; then |
| 24595 | ac_cv_have_decl_isfinite=yes |
| 24596 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24597 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24598 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24599 | |
| 24600 | ac_cv_have_decl_isfinite=no |
| 24601 | fi |
| 24602 | |
| 24603 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24604 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24605 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5 |
| 24606 | echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; } |
| 24607 | if test $ac_cv_have_decl_isfinite = yes; then |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24608 | |
| 24609 | cat >>confdefs.h <<_ACEOF |
| 24610 | #define HAVE_DECL_ISFINITE 1 |
| 24611 | _ACEOF |
| 24612 | |
| 24613 | |
| 24614 | else |
| 24615 | cat >>confdefs.h <<_ACEOF |
| 24616 | #define HAVE_DECL_ISFINITE 0 |
| 24617 | _ACEOF |
| 24618 | |
| 24619 | |
| 24620 | fi |
| 24621 | |
| 24622 | |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24623 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 24624 | LIBS=$LIBS_SAVE |
| 24625 | |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 24626 | # For multiprocessing module, check that sem_open |
| 24627 | # actually works. For FreeBSD versions <= 7.2, |
| 24628 | # the kernel module that provides POSIX semaphores |
| 24629 | # isn't loaded by default, so an attempt to call |
| 24630 | # sem_open results in a 'Signal 12' error. |
| 24631 | { echo "$as_me:$LINENO: checking whether POSIX semaphores are enabled" >&5 |
| 24632 | echo $ECHO_N "checking whether POSIX semaphores are enabled... $ECHO_C" >&6; } |
| 24633 | if test "${ac_cv_posix_semaphores_enabled+set}" = set; then |
| 24634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24635 | else |
| 24636 | if test "$cross_compiling" = yes; then |
| 24637 | ac_cv_posix_semaphores_enabled=yes |
| 24638 | else |
| 24639 | cat >conftest.$ac_ext <<_ACEOF |
| 24640 | /* confdefs.h. */ |
| 24641 | _ACEOF |
| 24642 | cat confdefs.h >>conftest.$ac_ext |
| 24643 | cat >>conftest.$ac_ext <<_ACEOF |
| 24644 | /* end confdefs.h. */ |
| 24645 | |
| 24646 | #include <unistd.h> |
| 24647 | #include <fcntl.h> |
| 24648 | #include <stdio.h> |
| 24649 | #include <semaphore.h> |
| 24650 | #include <sys/stat.h> |
| 24651 | |
| 24652 | int main(void) { |
| 24653 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); |
| 24654 | if (a == SEM_FAILED) { |
| 24655 | perror("sem_open"); |
| 24656 | return 1; |
| 24657 | } |
| 24658 | sem_close(a); |
Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 24659 | sem_unlink("/autoconf"); |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 24660 | return 0; |
| 24661 | } |
| 24662 | |
| 24663 | _ACEOF |
| 24664 | rm -f conftest$ac_exeext |
| 24665 | if { (ac_try="$ac_link" |
| 24666 | case "(($ac_try" in |
| 24667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24668 | *) ac_try_echo=$ac_try;; |
| 24669 | esac |
| 24670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24671 | (eval "$ac_link") 2>&5 |
| 24672 | ac_status=$? |
| 24673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24674 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 24675 | { (case "(($ac_try" in |
| 24676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24677 | *) ac_try_echo=$ac_try;; |
| 24678 | esac |
| 24679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24680 | (eval "$ac_try") 2>&5 |
| 24681 | ac_status=$? |
| 24682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24683 | (exit $ac_status); }; }; then |
| 24684 | ac_cv_posix_semaphores_enabled=yes |
| 24685 | else |
| 24686 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24687 | echo "$as_me: failed program was:" >&5 |
| 24688 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24689 | |
| 24690 | ( exit $ac_status ) |
| 24691 | ac_cv_posix_semaphores_enabled=no |
| 24692 | fi |
| 24693 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 24694 | fi |
| 24695 | |
| 24696 | |
| 24697 | |
| 24698 | fi |
| 24699 | |
| 24700 | { echo "$as_me:$LINENO: result: $ac_cv_posix_semaphores_enabled" >&5 |
| 24701 | echo "${ECHO_T}$ac_cv_posix_semaphores_enabled" >&6; } |
| 24702 | if test $ac_cv_posix_semaphores_enabled = no |
| 24703 | then |
| 24704 | |
| 24705 | cat >>confdefs.h <<\_ACEOF |
| 24706 | #define POSIX_SEMAPHORES_NOT_ENABLED 1 |
| 24707 | _ACEOF |
| 24708 | |
| 24709 | fi |
| 24710 | |
| 24711 | # Multiprocessing check for broken sem_getvalue |
| 24712 | { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5 |
| 24713 | echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; } |
| 24714 | if test "${ac_cv_broken_sem_getvalue+set}" = set; then |
| 24715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24716 | else |
| 24717 | if test "$cross_compiling" = yes; then |
| 24718 | ac_cv_broken_sem_getvalue=yes |
| 24719 | else |
| 24720 | cat >conftest.$ac_ext <<_ACEOF |
| 24721 | /* confdefs.h. */ |
| 24722 | _ACEOF |
| 24723 | cat confdefs.h >>conftest.$ac_ext |
| 24724 | cat >>conftest.$ac_ext <<_ACEOF |
| 24725 | /* end confdefs.h. */ |
| 24726 | |
| 24727 | #include <unistd.h> |
| 24728 | #include <fcntl.h> |
| 24729 | #include <stdio.h> |
| 24730 | #include <semaphore.h> |
| 24731 | #include <sys/stat.h> |
| 24732 | |
| 24733 | int main(void){ |
Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 24734 | 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] | 24735 | int count; |
| 24736 | int res; |
| 24737 | if(a==SEM_FAILED){ |
| 24738 | perror("sem_open"); |
| 24739 | return 1; |
| 24740 | |
| 24741 | } |
| 24742 | res = sem_getvalue(a, &count); |
| 24743 | sem_close(a); |
Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 24744 | sem_unlink("/autocftw"); |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 24745 | return res==-1 ? 1 : 0; |
| 24746 | } |
| 24747 | |
| 24748 | _ACEOF |
| 24749 | rm -f conftest$ac_exeext |
| 24750 | if { (ac_try="$ac_link" |
| 24751 | case "(($ac_try" in |
| 24752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24753 | *) ac_try_echo=$ac_try;; |
| 24754 | esac |
| 24755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24756 | (eval "$ac_link") 2>&5 |
| 24757 | ac_status=$? |
| 24758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24759 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 24760 | { (case "(($ac_try" in |
| 24761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24762 | *) ac_try_echo=$ac_try;; |
| 24763 | esac |
| 24764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24765 | (eval "$ac_try") 2>&5 |
| 24766 | ac_status=$? |
| 24767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24768 | (exit $ac_status); }; }; then |
| 24769 | ac_cv_broken_sem_getvalue=no |
| 24770 | else |
| 24771 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24772 | echo "$as_me: failed program was:" >&5 |
| 24773 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24774 | |
| 24775 | ( exit $ac_status ) |
| 24776 | ac_cv_broken_sem_getvalue=yes |
| 24777 | fi |
| 24778 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 24779 | fi |
| 24780 | |
| 24781 | |
| 24782 | |
| 24783 | fi |
| 24784 | |
| 24785 | { echo "$as_me:$LINENO: result: $ac_cv_broken_sem_getvalue" >&5 |
| 24786 | echo "${ECHO_T}$ac_cv_broken_sem_getvalue" >&6; } |
| 24787 | if test $ac_cv_broken_sem_getvalue = yes |
| 24788 | then |
| 24789 | |
| 24790 | cat >>confdefs.h <<\_ACEOF |
| 24791 | #define HAVE_BROKEN_SEM_GETVALUE 1 |
| 24792 | _ACEOF |
| 24793 | |
| 24794 | fi |
| 24795 | |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 24796 | # determine what size digit to use for Python's longs |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24797 | { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5 |
| 24798 | 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] | 24799 | # Check whether --enable-big-digits was given. |
| 24800 | if test "${enable_big_digits+set}" = set; then |
| 24801 | enableval=$enable_big_digits; case $enable_big_digits in |
| 24802 | yes) |
| 24803 | enable_big_digits=30 ;; |
| 24804 | no) |
| 24805 | enable_big_digits=15 ;; |
| 24806 | 15|30) |
| 24807 | ;; |
| 24808 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24809 | { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5 |
| 24810 | 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] | 24811 | { (exit 1); exit 1; }; } ;; |
| 24812 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24813 | { echo "$as_me:$LINENO: result: $enable_big_digits" >&5 |
| 24814 | echo "${ECHO_T}$enable_big_digits" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 24815 | |
| 24816 | cat >>confdefs.h <<_ACEOF |
| 24817 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits |
| 24818 | _ACEOF |
| 24819 | |
| 24820 | |
| 24821 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24822 | { echo "$as_me:$LINENO: result: no value specified" >&5 |
| 24823 | echo "${ECHO_T}no value specified" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 24824 | fi |
| 24825 | |
| 24826 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24827 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24828 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24829 | { echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 24830 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24831 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24832 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24833 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24834 | { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 24835 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24836 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24837 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24838 | { echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 24839 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24840 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24841 | /* confdefs.h. */ |
| 24842 | _ACEOF |
| 24843 | cat confdefs.h >>conftest.$ac_ext |
| 24844 | cat >>conftest.$ac_ext <<_ACEOF |
| 24845 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24846 | $ac_includes_default |
| 24847 | #include <wchar.h> |
| 24848 | _ACEOF |
| 24849 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24850 | if { (ac_try="$ac_compile" |
| 24851 | case "(($ac_try" in |
| 24852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24853 | *) ac_try_echo=$ac_try;; |
| 24854 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24856 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24857 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24858 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24859 | rm -f conftest.er1 |
| 24860 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24862 | (exit $ac_status); } && { |
| 24863 | test -z "$ac_c_werror_flag" || |
| 24864 | test ! -s conftest.err |
| 24865 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24866 | ac_header_compiler=yes |
| 24867 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24868 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24869 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24870 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24871 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24872 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24873 | |
| 24874 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24875 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 24876 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24877 | |
| 24878 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24879 | { echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 24880 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24881 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24882 | /* confdefs.h. */ |
| 24883 | _ACEOF |
| 24884 | cat confdefs.h >>conftest.$ac_ext |
| 24885 | cat >>conftest.$ac_ext <<_ACEOF |
| 24886 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24887 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24888 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24889 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 24890 | case "(($ac_try" in |
| 24891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24892 | *) ac_try_echo=$ac_try;; |
| 24893 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24895 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24896 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24897 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24898 | rm -f conftest.er1 |
| 24899 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24901 | (exit $ac_status); } >/dev/null && { |
| 24902 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 24903 | test ! -s conftest.err |
| 24904 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24905 | ac_header_preproc=yes |
| 24906 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24907 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24908 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24909 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24910 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24911 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24912 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24913 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24914 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 24915 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24916 | |
| 24917 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24918 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 24919 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24920 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 24921 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 24922 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 |
| 24923 | 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] | 24924 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24925 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24926 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24927 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 24928 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 24929 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 24930 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 24931 | { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 |
| 24932 | echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} |
| 24933 | { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 24934 | echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 24935 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 24936 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} |
| 24937 | { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 |
| 24938 | 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] | 24939 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 24940 | ## -------------------------------------- ## |
| 24941 | ## Report this to http://bugs.python.org/ ## |
| 24942 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24943 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24944 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24945 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24946 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24947 | { echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 24948 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24949 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24951 | else |
| 24952 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24953 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24954 | { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 24955 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24956 | |
| 24957 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24958 | if test $ac_cv_header_wchar_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24959 | |
| 24960 | |
| 24961 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24962 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24963 | _ACEOF |
| 24964 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 24965 | wchar_h="yes" |
| 24966 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24967 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24968 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24969 | |
| 24970 | fi |
| 24971 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24972 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24973 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24974 | # determine wchar_t size |
| 24975 | if test "$wchar_h" = yes |
| 24976 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24977 | { echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 24978 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } |
| 24979 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 24980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24981 | else |
| 24982 | cat >conftest.$ac_ext <<_ACEOF |
| 24983 | /* confdefs.h. */ |
| 24984 | _ACEOF |
| 24985 | cat confdefs.h >>conftest.$ac_ext |
| 24986 | cat >>conftest.$ac_ext <<_ACEOF |
| 24987 | /* end confdefs.h. */ |
| 24988 | #include <wchar.h> |
| 24989 | |
| 24990 | typedef wchar_t ac__type_new_; |
| 24991 | int |
| 24992 | main () |
| 24993 | { |
| 24994 | if ((ac__type_new_ *) 0) |
| 24995 | return 0; |
| 24996 | if (sizeof (ac__type_new_)) |
| 24997 | return 0; |
| 24998 | ; |
| 24999 | return 0; |
| 25000 | } |
| 25001 | _ACEOF |
| 25002 | rm -f conftest.$ac_objext |
| 25003 | if { (ac_try="$ac_compile" |
| 25004 | case "(($ac_try" in |
| 25005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25006 | *) ac_try_echo=$ac_try;; |
| 25007 | esac |
| 25008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25009 | (eval "$ac_compile") 2>conftest.er1 |
| 25010 | ac_status=$? |
| 25011 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25012 | rm -f conftest.er1 |
| 25013 | cat conftest.err >&5 |
| 25014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25015 | (exit $ac_status); } && { |
| 25016 | test -z "$ac_c_werror_flag" || |
| 25017 | test ! -s conftest.err |
| 25018 | } && test -s conftest.$ac_objext; then |
| 25019 | ac_cv_type_wchar_t=yes |
| 25020 | else |
| 25021 | echo "$as_me: failed program was:" >&5 |
| 25022 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25023 | |
| 25024 | ac_cv_type_wchar_t=no |
| 25025 | fi |
| 25026 | |
| 25027 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25028 | fi |
| 25029 | { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 25030 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; } |
| 25031 | |
| 25032 | # 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] | 25033 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 25034 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 25035 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25036 | { echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 25037 | 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] | 25038 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25040 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25041 | if test "$cross_compiling" = yes; then |
| 25042 | # Depending upon the size, compute the lo and hi bounds. |
| 25043 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25044 | /* confdefs.h. */ |
| 25045 | _ACEOF |
| 25046 | cat confdefs.h >>conftest.$ac_ext |
| 25047 | cat >>conftest.$ac_ext <<_ACEOF |
| 25048 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25049 | #include <wchar.h> |
| 25050 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25051 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25052 | int |
| 25053 | main () |
| 25054 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25055 | 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] | 25056 | test_array [0] = 0 |
| 25057 | |
| 25058 | ; |
| 25059 | return 0; |
| 25060 | } |
| 25061 | _ACEOF |
| 25062 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25063 | if { (ac_try="$ac_compile" |
| 25064 | case "(($ac_try" in |
| 25065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25066 | *) ac_try_echo=$ac_try;; |
| 25067 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25069 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25070 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25071 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25072 | rm -f conftest.er1 |
| 25073 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25075 | (exit $ac_status); } && { |
| 25076 | test -z "$ac_c_werror_flag" || |
| 25077 | test ! -s conftest.err |
| 25078 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25079 | ac_lo=0 ac_mid=0 |
| 25080 | while :; do |
| 25081 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25082 | /* confdefs.h. */ |
| 25083 | _ACEOF |
| 25084 | cat confdefs.h >>conftest.$ac_ext |
| 25085 | cat >>conftest.$ac_ext <<_ACEOF |
| 25086 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25087 | #include <wchar.h> |
| 25088 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25089 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25090 | int |
| 25091 | main () |
| 25092 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25093 | 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] | 25094 | test_array [0] = 0 |
| 25095 | |
| 25096 | ; |
| 25097 | return 0; |
| 25098 | } |
| 25099 | _ACEOF |
| 25100 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25101 | if { (ac_try="$ac_compile" |
| 25102 | case "(($ac_try" in |
| 25103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25104 | *) ac_try_echo=$ac_try;; |
| 25105 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25106 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25107 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25108 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25109 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25110 | rm -f conftest.er1 |
| 25111 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25113 | (exit $ac_status); } && { |
| 25114 | test -z "$ac_c_werror_flag" || |
| 25115 | test ! -s conftest.err |
| 25116 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25117 | ac_hi=$ac_mid; break |
| 25118 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25119 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25120 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25121 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25122 | ac_lo=`expr $ac_mid + 1` |
| 25123 | if test $ac_lo -le $ac_mid; then |
| 25124 | ac_lo= ac_hi= |
| 25125 | break |
| 25126 | fi |
| 25127 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25128 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25129 | |
| 25130 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25131 | done |
| 25132 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25133 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25134 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25135 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25136 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25137 | /* confdefs.h. */ |
| 25138 | _ACEOF |
| 25139 | cat confdefs.h >>conftest.$ac_ext |
| 25140 | cat >>conftest.$ac_ext <<_ACEOF |
| 25141 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25142 | #include <wchar.h> |
| 25143 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25144 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25145 | int |
| 25146 | main () |
| 25147 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25148 | 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] | 25149 | test_array [0] = 0 |
| 25150 | |
| 25151 | ; |
| 25152 | return 0; |
| 25153 | } |
| 25154 | _ACEOF |
| 25155 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25156 | if { (ac_try="$ac_compile" |
| 25157 | case "(($ac_try" in |
| 25158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25159 | *) ac_try_echo=$ac_try;; |
| 25160 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25162 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25163 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25164 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25165 | rm -f conftest.er1 |
| 25166 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25168 | (exit $ac_status); } && { |
| 25169 | test -z "$ac_c_werror_flag" || |
| 25170 | test ! -s conftest.err |
| 25171 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25172 | ac_hi=-1 ac_mid=-1 |
| 25173 | while :; do |
| 25174 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25175 | /* confdefs.h. */ |
| 25176 | _ACEOF |
| 25177 | cat confdefs.h >>conftest.$ac_ext |
| 25178 | cat >>conftest.$ac_ext <<_ACEOF |
| 25179 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25180 | #include <wchar.h> |
| 25181 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25182 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25183 | int |
| 25184 | main () |
| 25185 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25186 | 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] | 25187 | test_array [0] = 0 |
| 25188 | |
| 25189 | ; |
| 25190 | return 0; |
| 25191 | } |
| 25192 | _ACEOF |
| 25193 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25194 | if { (ac_try="$ac_compile" |
| 25195 | case "(($ac_try" in |
| 25196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25197 | *) ac_try_echo=$ac_try;; |
| 25198 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25200 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25201 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25202 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25203 | rm -f conftest.er1 |
| 25204 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25206 | (exit $ac_status); } && { |
| 25207 | test -z "$ac_c_werror_flag" || |
| 25208 | test ! -s conftest.err |
| 25209 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25210 | ac_lo=$ac_mid; break |
| 25211 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25212 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25213 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25214 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25215 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 25216 | if test $ac_mid -le $ac_hi; then |
| 25217 | ac_lo= ac_hi= |
| 25218 | break |
| 25219 | fi |
| 25220 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25221 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25222 | |
| 25223 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25224 | done |
| 25225 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25226 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25227 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25228 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25229 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25230 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25231 | |
| 25232 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25233 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25234 | |
| 25235 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25236 | # Binary search between lo and hi bounds. |
| 25237 | while test "x$ac_lo" != "x$ac_hi"; do |
| 25238 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 25239 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25240 | /* confdefs.h. */ |
| 25241 | _ACEOF |
| 25242 | cat confdefs.h >>conftest.$ac_ext |
| 25243 | cat >>conftest.$ac_ext <<_ACEOF |
| 25244 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25245 | #include <wchar.h> |
| 25246 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25247 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25248 | int |
| 25249 | main () |
| 25250 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25251 | 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] | 25252 | test_array [0] = 0 |
| 25253 | |
| 25254 | ; |
| 25255 | return 0; |
| 25256 | } |
| 25257 | _ACEOF |
| 25258 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25259 | if { (ac_try="$ac_compile" |
| 25260 | case "(($ac_try" in |
| 25261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25262 | *) ac_try_echo=$ac_try;; |
| 25263 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25264 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25265 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25266 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25267 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25268 | rm -f conftest.er1 |
| 25269 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25271 | (exit $ac_status); } && { |
| 25272 | test -z "$ac_c_werror_flag" || |
| 25273 | test ! -s conftest.err |
| 25274 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25275 | ac_hi=$ac_mid |
| 25276 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25277 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25278 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25279 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25280 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25281 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25282 | |
| 25283 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25284 | done |
| 25285 | case $ac_lo in |
| 25286 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25287 | '') if test "$ac_cv_type_wchar_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25288 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25289 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25290 | echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25291 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25292 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25293 | else |
| 25294 | ac_cv_sizeof_wchar_t=0 |
| 25295 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25296 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25297 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25298 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25299 | /* confdefs.h. */ |
| 25300 | _ACEOF |
| 25301 | cat confdefs.h >>conftest.$ac_ext |
| 25302 | cat >>conftest.$ac_ext <<_ACEOF |
| 25303 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25304 | #include <wchar.h> |
| 25305 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25306 | typedef wchar_t ac__type_sizeof_; |
| 25307 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 25308 | 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] | 25309 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25310 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25311 | int |
| 25312 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25313 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25314 | |
| 25315 | FILE *f = fopen ("conftest.val", "w"); |
| 25316 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25317 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25318 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25319 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25320 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25321 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25322 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25323 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25324 | } |
| 25325 | else |
| 25326 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25327 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25328 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25329 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25330 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25331 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25332 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25333 | |
| 25334 | ; |
| 25335 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25336 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25337 | _ACEOF |
| 25338 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25339 | if { (ac_try="$ac_link" |
| 25340 | case "(($ac_try" in |
| 25341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25342 | *) ac_try_echo=$ac_try;; |
| 25343 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25345 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25346 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25348 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25349 | { (case "(($ac_try" in |
| 25350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25351 | *) ac_try_echo=$ac_try;; |
| 25352 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25354 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25355 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25357 | (exit $ac_status); }; }; then |
| 25358 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25359 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25360 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25361 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25362 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25363 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25364 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25365 | if test "$ac_cv_type_wchar_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25366 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25367 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25368 | echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25369 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25370 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25371 | else |
| 25372 | ac_cv_sizeof_wchar_t=0 |
| 25373 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25374 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25375 | 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] | 25376 | fi |
| 25377 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25378 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25379 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 25380 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25381 | |
| 25382 | |
| 25383 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25384 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25385 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25386 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25387 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25388 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25389 | fi |
| 25390 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25391 | { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5 |
| 25392 | 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] | 25393 | have_ucs4_tcl=no |
| 25394 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25395 | /* confdefs.h. */ |
| 25396 | _ACEOF |
| 25397 | cat confdefs.h >>conftest.$ac_ext |
| 25398 | cat >>conftest.$ac_ext <<_ACEOF |
| 25399 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25400 | |
| 25401 | #include <tcl.h> |
| 25402 | #if TCL_UTF_MAX != 6 |
| 25403 | # error "NOT UCS4_TCL" |
| 25404 | #endif |
| 25405 | int |
| 25406 | main () |
| 25407 | { |
| 25408 | |
| 25409 | ; |
| 25410 | return 0; |
| 25411 | } |
| 25412 | _ACEOF |
| 25413 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25414 | if { (ac_try="$ac_compile" |
| 25415 | case "(($ac_try" in |
| 25416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25417 | *) ac_try_echo=$ac_try;; |
| 25418 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25420 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25421 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25422 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25423 | rm -f conftest.er1 |
| 25424 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25426 | (exit $ac_status); } && { |
| 25427 | test -z "$ac_c_werror_flag" || |
| 25428 | test ! -s conftest.err |
| 25429 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25430 | |
| 25431 | |
| 25432 | cat >>confdefs.h <<\_ACEOF |
| 25433 | #define HAVE_UCS4_TCL 1 |
| 25434 | _ACEOF |
| 25435 | |
| 25436 | have_ucs4_tcl=yes |
| 25437 | |
| 25438 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25439 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25440 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25441 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25442 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25443 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25444 | |
| 25445 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25446 | { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5 |
| 25447 | echo "${ECHO_T}$have_ucs4_tcl" >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25448 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25449 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25450 | if test "$wchar_h" = yes |
| 25451 | then |
| 25452 | # check whether wchar_t is signed or not |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25453 | { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5 |
| 25454 | 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] | 25455 | if test "${ac_cv_wchar_t_signed+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25457 | else |
| 25458 | |
| 25459 | if test "$cross_compiling" = yes; then |
| 25460 | ac_cv_wchar_t_signed=yes |
| 25461 | else |
| 25462 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25463 | /* confdefs.h. */ |
| 25464 | _ACEOF |
| 25465 | cat confdefs.h >>conftest.$ac_ext |
| 25466 | cat >>conftest.$ac_ext <<_ACEOF |
| 25467 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25468 | |
| 25469 | #include <wchar.h> |
| 25470 | int main() |
| 25471 | { |
Martin v. Löwis | 44fe0e4 | 2006-04-11 07:15:30 +0000 | [diff] [blame] | 25472 | /* Success: exit code 0 */ |
| 25473 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25474 | } |
| 25475 | |
| 25476 | _ACEOF |
| 25477 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25478 | if { (ac_try="$ac_link" |
| 25479 | case "(($ac_try" in |
| 25480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25481 | *) ac_try_echo=$ac_try;; |
| 25482 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25484 | (eval "$ac_link") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25485 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25487 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25488 | { (case "(($ac_try" in |
| 25489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25490 | *) ac_try_echo=$ac_try;; |
| 25491 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25493 | (eval "$ac_try") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25494 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25496 | (exit $ac_status); }; }; then |
| 25497 | ac_cv_wchar_t_signed=yes |
| 25498 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25499 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25500 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25501 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25502 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25503 | ( exit $ac_status ) |
| 25504 | ac_cv_wchar_t_signed=no |
| 25505 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25506 | 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] | 25507 | fi |
| 25508 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25509 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25510 | fi |
| 25511 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25512 | { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5 |
| 25513 | echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25514 | fi |
| 25515 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25516 | { echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 25517 | 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] | 25518 | # Check whether --enable-unicode was given. |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25519 | if test "${enable_unicode+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25520 | enableval=$enable_unicode; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25521 | else |
| 25522 | enable_unicode=yes |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25523 | fi |
| 25524 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25525 | |
| 25526 | if test $enable_unicode = yes |
| 25527 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 25528 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25529 | case "$have_ucs4_tcl" in |
| 25530 | yes) enable_unicode="ucs4" |
| 25531 | ;; |
| 25532 | *) enable_unicode="ucs2" |
| 25533 | ;; |
| 25534 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25535 | fi |
| 25536 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 25537 | |
| 25538 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25539 | case "$enable_unicode" in |
| 25540 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25541 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25542 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25543 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25544 | |
| 25545 | ;; |
| 25546 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25547 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25548 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25549 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25550 | |
| 25551 | ;; |
| 25552 | esac |
| 25553 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25554 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25555 | |
| 25556 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 25557 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25558 | if test "$enable_unicode" = "no" |
| 25559 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 25560 | UNICODE_OBJS="" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25561 | { echo "$as_me:$LINENO: result: not used" >&5 |
| 25562 | echo "${ECHO_T}not used" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25563 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 25564 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25565 | |
| 25566 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25567 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25568 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25569 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25570 | |
| 25571 | # wchar_t is only usable if it maps to an unsigned type |
| 25572 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 25573 | -a "$ac_cv_wchar_t_signed" = "no" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25574 | then |
| 25575 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25576 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25577 | cat >>confdefs.h <<\_ACEOF |
| 25578 | #define HAVE_USABLE_WCHAR_T 1 |
| 25579 | _ACEOF |
| 25580 | |
| 25581 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25582 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25583 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25584 | |
| 25585 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 25586 | then |
| 25587 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25588 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25589 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25590 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25591 | |
| 25592 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 25593 | then |
| 25594 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25595 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25596 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25597 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25598 | |
| 25599 | else |
| 25600 | PY_UNICODE_TYPE="no type found" |
| 25601 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25602 | { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 25603 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25604 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25605 | |
| 25606 | # check for endianness |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25607 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 25608 | 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] | 25609 | if test "${ac_cv_c_bigendian+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25611 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25612 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 25613 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25614 | /* confdefs.h. */ |
| 25615 | _ACEOF |
| 25616 | cat confdefs.h >>conftest.$ac_ext |
| 25617 | cat >>conftest.$ac_ext <<_ACEOF |
| 25618 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25619 | #include <sys/types.h> |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25620 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25621 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25622 | int |
| 25623 | main () |
| 25624 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25625 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
| 25626 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
| 25627 | bogus endian macros |
| 25628 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25629 | |
| 25630 | ; |
| 25631 | return 0; |
| 25632 | } |
| 25633 | _ACEOF |
| 25634 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25635 | if { (ac_try="$ac_compile" |
| 25636 | case "(($ac_try" in |
| 25637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25638 | *) ac_try_echo=$ac_try;; |
| 25639 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25641 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25642 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25643 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25644 | rm -f conftest.er1 |
| 25645 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25647 | (exit $ac_status); } && { |
| 25648 | test -z "$ac_c_werror_flag" || |
| 25649 | test ! -s conftest.err |
| 25650 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25651 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25652 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25653 | /* confdefs.h. */ |
| 25654 | _ACEOF |
| 25655 | cat confdefs.h >>conftest.$ac_ext |
| 25656 | cat >>conftest.$ac_ext <<_ACEOF |
| 25657 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25658 | #include <sys/types.h> |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25659 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25660 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25661 | int |
| 25662 | main () |
| 25663 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25664 | #if BYTE_ORDER != BIG_ENDIAN |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25665 | not big endian |
| 25666 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25667 | |
| 25668 | ; |
| 25669 | return 0; |
| 25670 | } |
| 25671 | _ACEOF |
| 25672 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25673 | if { (ac_try="$ac_compile" |
| 25674 | case "(($ac_try" in |
| 25675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25676 | *) ac_try_echo=$ac_try;; |
| 25677 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25679 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25680 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25681 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25682 | rm -f conftest.er1 |
| 25683 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25685 | (exit $ac_status); } && { |
| 25686 | test -z "$ac_c_werror_flag" || |
| 25687 | test ! -s conftest.err |
| 25688 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25689 | ac_cv_c_bigendian=yes |
| 25690 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25691 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25692 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25693 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25694 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25695 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25696 | |
| 25697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25698 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25699 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25700 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25701 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25702 | # It does not; compile a test program. |
| 25703 | if test "$cross_compiling" = yes; then |
| 25704 | # try to guess the endianness by grepping values into an object file |
| 25705 | ac_cv_c_bigendian=unknown |
| 25706 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25707 | /* confdefs.h. */ |
| 25708 | _ACEOF |
| 25709 | cat confdefs.h >>conftest.$ac_ext |
| 25710 | cat >>conftest.$ac_ext <<_ACEOF |
| 25711 | /* end confdefs.h. */ |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25712 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 25713 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 25714 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 25715 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 25716 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 25717 | 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] | 25718 | int |
| 25719 | main () |
| 25720 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25721 | _ascii (); _ebcdic (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25722 | ; |
| 25723 | return 0; |
| 25724 | } |
| 25725 | _ACEOF |
| 25726 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25727 | if { (ac_try="$ac_compile" |
| 25728 | case "(($ac_try" in |
| 25729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25730 | *) ac_try_echo=$ac_try;; |
| 25731 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25732 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25733 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25734 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25735 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25736 | rm -f conftest.er1 |
| 25737 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25739 | (exit $ac_status); } && { |
| 25740 | test -z "$ac_c_werror_flag" || |
| 25741 | test ! -s conftest.err |
| 25742 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25743 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25744 | ac_cv_c_bigendian=yes |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25745 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25746 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 25747 | if test "$ac_cv_c_bigendian" = unknown; then |
| 25748 | ac_cv_c_bigendian=no |
| 25749 | else |
| 25750 | # finding both strings is unlikely to happen, but who knows? |
| 25751 | ac_cv_c_bigendian=unknown |
| 25752 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25753 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25754 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25755 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25756 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25757 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25758 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25759 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25760 | |
| 25761 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25762 | else |
| 25763 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25764 | /* confdefs.h. */ |
| 25765 | _ACEOF |
| 25766 | cat confdefs.h >>conftest.$ac_ext |
| 25767 | cat >>conftest.$ac_ext <<_ACEOF |
| 25768 | /* end confdefs.h. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25769 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25770 | int |
| 25771 | main () |
| 25772 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25773 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25774 | /* Are we little or big endian? From Harbison&Steele. */ |
| 25775 | union |
| 25776 | { |
| 25777 | long int l; |
| 25778 | char c[sizeof (long int)]; |
| 25779 | } u; |
| 25780 | u.l = 1; |
| 25781 | return u.c[sizeof (long int) - 1] == 1; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25782 | |
| 25783 | ; |
| 25784 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25785 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25786 | _ACEOF |
| 25787 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25788 | if { (ac_try="$ac_link" |
| 25789 | case "(($ac_try" in |
| 25790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25791 | *) ac_try_echo=$ac_try;; |
| 25792 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25793 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25794 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25795 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25797 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25798 | { (case "(($ac_try" in |
| 25799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25800 | *) ac_try_echo=$ac_try;; |
| 25801 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25803 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25804 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25806 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25807 | ac_cv_c_bigendian=no |
| 25808 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25809 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25810 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25811 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25812 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25813 | ( exit $ac_status ) |
| 25814 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25815 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25816 | 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] | 25817 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25818 | |
| 25819 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25820 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25821 | |
| 25822 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25823 | fi |
| 25824 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 25825 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 25826 | case $ac_cv_c_bigendian in |
| 25827 | yes) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25828 | |
| 25829 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25830 | #define WORDS_BIGENDIAN 1 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25831 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25832 | ;; |
| 25833 | no) |
| 25834 | ;; |
| 25835 | *) |
| 25836 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 25837 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 25838 | echo "$as_me: error: unknown endianness |
| 25839 | 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] | 25840 | { (exit 1); exit 1; }; } ;; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25841 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25842 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25843 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25844 | # Check whether right shifting a negative integer extends the sign bit |
| 25845 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25846 | { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 25847 | 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] | 25848 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25850 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25851 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25852 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 25853 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25854 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25855 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25856 | /* confdefs.h. */ |
| 25857 | _ACEOF |
| 25858 | cat confdefs.h >>conftest.$ac_ext |
| 25859 | cat >>conftest.$ac_ext <<_ACEOF |
| 25860 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25861 | |
| 25862 | int main() |
| 25863 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25864 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25865 | } |
| 25866 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25867 | _ACEOF |
| 25868 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25869 | if { (ac_try="$ac_link" |
| 25870 | case "(($ac_try" in |
| 25871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25872 | *) ac_try_echo=$ac_try;; |
| 25873 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25875 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25876 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25878 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25879 | { (case "(($ac_try" in |
| 25880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25881 | *) ac_try_echo=$ac_try;; |
| 25882 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25884 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25885 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25887 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25888 | ac_cv_rshift_extends_sign=yes |
| 25889 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25890 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25891 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25892 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25893 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25894 | ( exit $ac_status ) |
| 25895 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25896 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25897 | 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] | 25898 | fi |
| 25899 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25900 | |
| 25901 | fi |
| 25902 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25903 | { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 25904 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; } |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25905 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25906 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25907 | |
| 25908 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25909 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25910 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25911 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25912 | fi |
| 25913 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25914 | # check for getc_unlocked and related locking functions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25915 | { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 25916 | 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] | 25917 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25919 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25920 | |
| 25921 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25922 | /* confdefs.h. */ |
| 25923 | _ACEOF |
| 25924 | cat confdefs.h >>conftest.$ac_ext |
| 25925 | cat >>conftest.$ac_ext <<_ACEOF |
| 25926 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25927 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25928 | int |
| 25929 | main () |
| 25930 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25931 | |
| 25932 | FILE *f = fopen("/dev/null", "r"); |
| 25933 | flockfile(f); |
| 25934 | getc_unlocked(f); |
| 25935 | funlockfile(f); |
| 25936 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25937 | ; |
| 25938 | return 0; |
| 25939 | } |
| 25940 | _ACEOF |
| 25941 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25942 | if { (ac_try="$ac_link" |
| 25943 | case "(($ac_try" in |
| 25944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25945 | *) ac_try_echo=$ac_try;; |
| 25946 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25948 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25949 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25950 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25951 | rm -f conftest.er1 |
| 25952 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25954 | (exit $ac_status); } && { |
| 25955 | test -z "$ac_c_werror_flag" || |
| 25956 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25957 | } && test -s conftest$ac_exeext && |
| 25958 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25959 | ac_cv_have_getc_unlocked=yes |
| 25960 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25961 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25962 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25963 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25964 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25965 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25966 | |
| 25967 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25968 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25969 | fi |
| 25970 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25971 | { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 25972 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; } |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25973 | if test "$ac_cv_have_getc_unlocked" = yes |
| 25974 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25975 | |
| 25976 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25977 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25978 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25979 | |
| 25980 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25981 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25982 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 25983 | # save the value of LIBS so we don't actually link Python with readline |
| 25984 | LIBS_no_readline=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25985 | |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 25986 | # On some systems we need to link readline to a termcap compatible |
| 25987 | # library. NOTE: Keep the precedence of listed libraries synchronised |
| 25988 | # with setup.py. |
| 25989 | py_cv_lib_readline=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25990 | { echo "$as_me:$LINENO: checking how to link readline libs" >&5 |
| 25991 | 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] | 25992 | for py_libtermcap in "" ncursesw ncurses curses termcap; do |
| 25993 | if test -z "$py_libtermcap"; then |
| 25994 | READLINE_LIBS="-lreadline" |
| 25995 | else |
| 25996 | READLINE_LIBS="-lreadline -l$py_libtermcap" |
| 25997 | fi |
| 25998 | LIBS="$READLINE_LIBS $LIBS_no_readline" |
| 25999 | cat >conftest.$ac_ext <<_ACEOF |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26000 | /* confdefs.h. */ |
| 26001 | _ACEOF |
| 26002 | cat confdefs.h >>conftest.$ac_ext |
| 26003 | cat >>conftest.$ac_ext <<_ACEOF |
| 26004 | /* end confdefs.h. */ |
| 26005 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26006 | /* Override any GCC internal prototype to avoid an error. |
| 26007 | Use char because int might match the return type of a GCC |
| 26008 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26009 | #ifdef __cplusplus |
| 26010 | extern "C" |
| 26011 | #endif |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26012 | char readline (); |
| 26013 | int |
| 26014 | main () |
| 26015 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26016 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26017 | ; |
| 26018 | return 0; |
| 26019 | } |
| 26020 | _ACEOF |
| 26021 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26022 | if { (ac_try="$ac_link" |
| 26023 | case "(($ac_try" in |
| 26024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26025 | *) ac_try_echo=$ac_try;; |
| 26026 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26028 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26029 | ac_status=$? |
| 26030 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26031 | rm -f conftest.er1 |
| 26032 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26034 | (exit $ac_status); } && { |
| 26035 | test -z "$ac_c_werror_flag" || |
| 26036 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26037 | } && test -s conftest$ac_exeext && |
| 26038 | $as_test_x conftest$ac_exeext; then |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 26039 | py_cv_lib_readline=yes |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26040 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26041 | echo "$as_me: failed program was:" >&5 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26042 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26043 | |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 26044 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26045 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26046 | |
| 26047 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26048 | conftest$ac_exeext conftest.$ac_ext |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 26049 | if test $py_cv_lib_readline = yes; then |
| 26050 | break |
| 26051 | fi |
| 26052 | done |
| 26053 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts |
| 26054 | #AC_SUBST([READLINE_LIBS]) |
Gregory P. Smith | e080cdf | 2008-09-07 19:19:04 +0000 | [diff] [blame] | 26055 | if test $py_cv_lib_readline = no; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26056 | { echo "$as_me:$LINENO: result: none" >&5 |
| 26057 | echo "${ECHO_T}none" >&6; } |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 26058 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26059 | { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5 |
| 26060 | echo "${ECHO_T}$READLINE_LIBS" >&6; } |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 26061 | |
| 26062 | cat >>confdefs.h <<\_ACEOF |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26063 | #define HAVE_LIBREADLINE 1 |
| 26064 | _ACEOF |
| 26065 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26066 | fi |
| 26067 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26068 | # check for readline 2.1 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26069 | { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5 |
| 26070 | 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] | 26071 | 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] | 26072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26073 | else |
| 26074 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 26075 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26076 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26077 | /* confdefs.h. */ |
| 26078 | _ACEOF |
| 26079 | cat confdefs.h >>conftest.$ac_ext |
| 26080 | cat >>conftest.$ac_ext <<_ACEOF |
| 26081 | /* end confdefs.h. */ |
| 26082 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26083 | /* Override any GCC internal prototype to avoid an error. |
| 26084 | Use char because int might match the return type of a GCC |
| 26085 | builtin and then its argument prototype would still apply. */ |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26086 | #ifdef __cplusplus |
| 26087 | extern "C" |
| 26088 | #endif |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26089 | char rl_callback_handler_install (); |
| 26090 | int |
| 26091 | main () |
| 26092 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26093 | return rl_callback_handler_install (); |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26094 | ; |
| 26095 | return 0; |
| 26096 | } |
| 26097 | _ACEOF |
| 26098 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26099 | if { (ac_try="$ac_link" |
| 26100 | case "(($ac_try" in |
| 26101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26102 | *) ac_try_echo=$ac_try;; |
| 26103 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26105 | (eval "$ac_link") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26106 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26107 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26108 | rm -f conftest.er1 |
| 26109 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26111 | (exit $ac_status); } && { |
| 26112 | test -z "$ac_c_werror_flag" || |
| 26113 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26114 | } && test -s conftest$ac_exeext && |
| 26115 | $as_test_x conftest$ac_exeext; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26116 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 26117 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26118 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26119 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26120 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26121 | ac_cv_lib_readline_rl_callback_handler_install=no |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26122 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26123 | |
| 26124 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26125 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26126 | LIBS=$ac_check_lib_save_LIBS |
| 26127 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26128 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
| 26129 | echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; } |
| 26130 | 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] | 26131 | |
| 26132 | cat >>confdefs.h <<\_ACEOF |
| 26133 | #define HAVE_RL_CALLBACK 1 |
| 26134 | _ACEOF |
| 26135 | |
| 26136 | fi |
| 26137 | |
| 26138 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26139 | # check for readline 2.2 |
| 26140 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26141 | /* confdefs.h. */ |
| 26142 | _ACEOF |
| 26143 | cat confdefs.h >>conftest.$ac_ext |
| 26144 | cat >>conftest.$ac_ext <<_ACEOF |
| 26145 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26146 | #include <readline/readline.h> |
| 26147 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26148 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 26149 | case "(($ac_try" in |
| 26150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26151 | *) ac_try_echo=$ac_try;; |
| 26152 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26154 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26155 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26156 | grep -v '^ *+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26157 | rm -f conftest.er1 |
| 26158 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26160 | (exit $ac_status); } >/dev/null && { |
| 26161 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 26162 | test ! -s conftest.err |
| 26163 | }; then |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26164 | have_readline=yes |
| 26165 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26166 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26167 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26168 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26169 | have_readline=no |
| 26170 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26171 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26172 | rm -f conftest.err conftest.$ac_ext |
| 26173 | if test $have_readline = yes |
| 26174 | then |
| 26175 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26176 | /* confdefs.h. */ |
| 26177 | _ACEOF |
| 26178 | cat confdefs.h >>conftest.$ac_ext |
| 26179 | cat >>conftest.$ac_ext <<_ACEOF |
| 26180 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26181 | #include <readline/readline.h> |
| 26182 | |
| 26183 | _ACEOF |
| 26184 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26185 | $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] | 26186 | |
| 26187 | cat >>confdefs.h <<\_ACEOF |
| 26188 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 26189 | _ACEOF |
| 26190 | |
| 26191 | fi |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame^] | 26192 | rm -f -r conftest* |
Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 26193 | |
| 26194 | cat >conftest.$ac_ext <<_ACEOF |
| 26195 | /* confdefs.h. */ |
| 26196 | _ACEOF |
| 26197 | cat confdefs.h >>conftest.$ac_ext |
| 26198 | cat >>conftest.$ac_ext <<_ACEOF |
| 26199 | /* end confdefs.h. */ |
| 26200 | #include <readline/readline.h> |
| 26201 | |
| 26202 | _ACEOF |
| 26203 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 26204 | $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then |
| 26205 | |
| 26206 | cat >>confdefs.h <<\_ACEOF |
| 26207 | #define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1 |
| 26208 | _ACEOF |
| 26209 | |
| 26210 | fi |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame^] | 26211 | rm -f -r conftest* |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26212 | |
| 26213 | fi |
| 26214 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26215 | # check for readline 4.0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26216 | { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 26217 | 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] | 26218 | 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] | 26219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26220 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26221 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 26222 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26223 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26224 | /* confdefs.h. */ |
| 26225 | _ACEOF |
| 26226 | cat confdefs.h >>conftest.$ac_ext |
| 26227 | cat >>conftest.$ac_ext <<_ACEOF |
| 26228 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26229 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26230 | /* Override any GCC internal prototype to avoid an error. |
| 26231 | Use char because int might match the return type of a GCC |
| 26232 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26233 | #ifdef __cplusplus |
| 26234 | extern "C" |
| 26235 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26236 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26237 | int |
| 26238 | main () |
| 26239 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26240 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26241 | ; |
| 26242 | return 0; |
| 26243 | } |
| 26244 | _ACEOF |
| 26245 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26246 | if { (ac_try="$ac_link" |
| 26247 | case "(($ac_try" in |
| 26248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26249 | *) ac_try_echo=$ac_try;; |
| 26250 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26252 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26253 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26254 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26255 | rm -f conftest.er1 |
| 26256 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26258 | (exit $ac_status); } && { |
| 26259 | test -z "$ac_c_werror_flag" || |
| 26260 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26261 | } && test -s conftest$ac_exeext && |
| 26262 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26263 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26264 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26265 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26266 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26267 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26268 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26269 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26270 | |
| 26271 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26272 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26273 | LIBS=$ac_check_lib_save_LIBS |
| 26274 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26275 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 26276 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; } |
| 26277 | 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] | 26278 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26279 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26280 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26281 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26282 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26283 | fi |
| 26284 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26285 | |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26286 | # also in 4.0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26287 | { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5 |
| 26288 | 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] | 26289 | 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] | 26290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26291 | else |
| 26292 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 26293 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26294 | cat >conftest.$ac_ext <<_ACEOF |
| 26295 | /* confdefs.h. */ |
| 26296 | _ACEOF |
| 26297 | cat confdefs.h >>conftest.$ac_ext |
| 26298 | cat >>conftest.$ac_ext <<_ACEOF |
| 26299 | /* end confdefs.h. */ |
| 26300 | |
| 26301 | /* Override any GCC internal prototype to avoid an error. |
| 26302 | Use char because int might match the return type of a GCC |
| 26303 | builtin and then its argument prototype would still apply. */ |
| 26304 | #ifdef __cplusplus |
| 26305 | extern "C" |
| 26306 | #endif |
| 26307 | char rl_completion_display_matches_hook (); |
| 26308 | int |
| 26309 | main () |
| 26310 | { |
| 26311 | return rl_completion_display_matches_hook (); |
| 26312 | ; |
| 26313 | return 0; |
| 26314 | } |
| 26315 | _ACEOF |
| 26316 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 26317 | if { (ac_try="$ac_link" |
| 26318 | case "(($ac_try" in |
| 26319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26320 | *) ac_try_echo=$ac_try;; |
| 26321 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26323 | (eval "$ac_link") 2>conftest.er1 |
| 26324 | ac_status=$? |
| 26325 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26326 | rm -f conftest.er1 |
| 26327 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26329 | (exit $ac_status); } && { |
| 26330 | test -z "$ac_c_werror_flag" || |
| 26331 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26332 | } && test -s conftest$ac_exeext && |
| 26333 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26334 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes |
| 26335 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26336 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26337 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26338 | |
| 26339 | ac_cv_lib_readline_rl_completion_display_matches_hook=no |
| 26340 | fi |
| 26341 | |
| 26342 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 26343 | conftest$ac_exeext conftest.$ac_ext |
| 26344 | LIBS=$ac_check_lib_save_LIBS |
| 26345 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26346 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 |
| 26347 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } |
| 26348 | 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] | 26349 | |
| 26350 | cat >>confdefs.h <<\_ACEOF |
| 26351 | #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1 |
| 26352 | _ACEOF |
| 26353 | |
| 26354 | fi |
| 26355 | |
| 26356 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26357 | # check for readline 4.2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26358 | { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 26359 | 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] | 26360 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26362 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26363 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 26364 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26365 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26366 | /* confdefs.h. */ |
| 26367 | _ACEOF |
| 26368 | cat confdefs.h >>conftest.$ac_ext |
| 26369 | cat >>conftest.$ac_ext <<_ACEOF |
| 26370 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26371 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26372 | /* Override any GCC internal prototype to avoid an error. |
| 26373 | Use char because int might match the return type of a GCC |
| 26374 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26375 | #ifdef __cplusplus |
| 26376 | extern "C" |
| 26377 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26378 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26379 | int |
| 26380 | main () |
| 26381 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26382 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26383 | ; |
| 26384 | return 0; |
| 26385 | } |
| 26386 | _ACEOF |
| 26387 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26388 | if { (ac_try="$ac_link" |
| 26389 | case "(($ac_try" in |
| 26390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26391 | *) ac_try_echo=$ac_try;; |
| 26392 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26394 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26395 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26396 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26397 | rm -f conftest.er1 |
| 26398 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26400 | (exit $ac_status); } && { |
| 26401 | test -z "$ac_c_werror_flag" || |
| 26402 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26403 | } && test -s conftest$ac_exeext && |
| 26404 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26405 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26406 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26407 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26408 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26409 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26410 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26411 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26412 | |
| 26413 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26414 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26415 | LIBS=$ac_check_lib_save_LIBS |
| 26416 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26417 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 26418 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; } |
| 26419 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26420 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26421 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26422 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26423 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26424 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26425 | fi |
| 26426 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 26427 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26428 | # also in readline 4.2 |
| 26429 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26430 | /* confdefs.h. */ |
| 26431 | _ACEOF |
| 26432 | cat confdefs.h >>conftest.$ac_ext |
| 26433 | cat >>conftest.$ac_ext <<_ACEOF |
| 26434 | /* end confdefs.h. */ |
| 26435 | #include <readline/readline.h> |
| 26436 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26437 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 26438 | case "(($ac_try" in |
| 26439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26440 | *) ac_try_echo=$ac_try;; |
| 26441 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26443 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26444 | ac_status=$? |
| 26445 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26446 | rm -f conftest.er1 |
| 26447 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26449 | (exit $ac_status); } >/dev/null && { |
| 26450 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 26451 | test ! -s conftest.err |
| 26452 | }; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26453 | have_readline=yes |
| 26454 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26455 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26456 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26457 | |
| 26458 | have_readline=no |
| 26459 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26460 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26461 | rm -f conftest.err conftest.$ac_ext |
| 26462 | if test $have_readline = yes |
| 26463 | then |
| 26464 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26465 | /* confdefs.h. */ |
| 26466 | _ACEOF |
| 26467 | cat confdefs.h >>conftest.$ac_ext |
| 26468 | cat >>conftest.$ac_ext <<_ACEOF |
| 26469 | /* end confdefs.h. */ |
| 26470 | #include <readline/readline.h> |
| 26471 | |
| 26472 | _ACEOF |
| 26473 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 26474 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then |
| 26475 | |
| 26476 | cat >>confdefs.h <<\_ACEOF |
| 26477 | #define HAVE_RL_CATCH_SIGNAL 1 |
| 26478 | _ACEOF |
| 26479 | |
| 26480 | fi |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame^] | 26481 | rm -f -r conftest* |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26482 | |
| 26483 | fi |
| 26484 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 26485 | # End of readline checks: restore LIBS |
| 26486 | LIBS=$LIBS_no_readline |
| 26487 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26488 | { echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 26489 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26490 | if test "${ac_cv_broken_nice+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26492 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26493 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26494 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 26495 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26496 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26497 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26498 | /* confdefs.h. */ |
| 26499 | _ACEOF |
| 26500 | cat confdefs.h >>conftest.$ac_ext |
| 26501 | cat >>conftest.$ac_ext <<_ACEOF |
| 26502 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26503 | |
| 26504 | int main() |
| 26505 | { |
| 26506 | int val1 = nice(1); |
| 26507 | if (val1 != -1 && val1 == nice(2)) |
| 26508 | exit(0); |
| 26509 | exit(1); |
| 26510 | } |
| 26511 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26512 | _ACEOF |
| 26513 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26514 | if { (ac_try="$ac_link" |
| 26515 | case "(($ac_try" in |
| 26516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26517 | *) ac_try_echo=$ac_try;; |
| 26518 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26520 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26521 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26523 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26524 | { (case "(($ac_try" in |
| 26525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26526 | *) ac_try_echo=$ac_try;; |
| 26527 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26529 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26530 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26532 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26533 | ac_cv_broken_nice=yes |
| 26534 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26535 | echo "$as_me: program exited with status $ac_status" >&5 |
| 26536 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26537 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26538 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26539 | ( exit $ac_status ) |
| 26540 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26541 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26542 | 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] | 26543 | fi |
| 26544 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26545 | |
| 26546 | fi |
| 26547 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26548 | { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 26549 | echo "${ECHO_T}$ac_cv_broken_nice" >&6; } |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26550 | if test "$ac_cv_broken_nice" = yes |
| 26551 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26552 | |
| 26553 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26554 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26555 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26556 | |
| 26557 | fi |
| 26558 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26559 | { echo "$as_me:$LINENO: checking for broken poll()" >&5 |
| 26560 | echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26561 | if test "${ac_cv_broken_poll+set}" = set; then |
| 26562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26563 | else |
| 26564 | if test "$cross_compiling" = yes; then |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26565 | ac_cv_broken_poll=no |
| 26566 | else |
| 26567 | cat >conftest.$ac_ext <<_ACEOF |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26568 | /* confdefs.h. */ |
| 26569 | _ACEOF |
| 26570 | cat confdefs.h >>conftest.$ac_ext |
| 26571 | cat >>conftest.$ac_ext <<_ACEOF |
| 26572 | /* end confdefs.h. */ |
| 26573 | |
| 26574 | #include <poll.h> |
| 26575 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26576 | int main() |
| 26577 | { |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26578 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26579 | int poll_test; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26580 | |
| 26581 | close (42); |
| 26582 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26583 | poll_test = poll(&poll_struct, 1, 0); |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26584 | if (poll_test < 0) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26585 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26586 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26587 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26588 | else |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26589 | return 1; |
| 26590 | } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26591 | |
| 26592 | _ACEOF |
| 26593 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26594 | if { (ac_try="$ac_link" |
| 26595 | case "(($ac_try" in |
| 26596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26597 | *) ac_try_echo=$ac_try;; |
| 26598 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26600 | (eval "$ac_link") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26601 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26603 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26604 | { (case "(($ac_try" in |
| 26605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26606 | *) ac_try_echo=$ac_try;; |
| 26607 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26608 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26609 | (eval "$ac_try") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26610 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26612 | (exit $ac_status); }; }; then |
| 26613 | ac_cv_broken_poll=yes |
| 26614 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26615 | echo "$as_me: program exited with status $ac_status" >&5 |
| 26616 | echo "$as_me: failed program was:" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26617 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26618 | |
| 26619 | ( exit $ac_status ) |
| 26620 | ac_cv_broken_poll=no |
| 26621 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26622 | 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] | 26623 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26624 | |
| 26625 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26626 | fi |
| 26627 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26628 | { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5 |
| 26629 | echo "${ECHO_T}$ac_cv_broken_poll" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26630 | if test "$ac_cv_broken_poll" = yes |
| 26631 | then |
| 26632 | |
| 26633 | cat >>confdefs.h <<\_ACEOF |
| 26634 | #define HAVE_BROKEN_POLL 1 |
| 26635 | _ACEOF |
| 26636 | |
| 26637 | fi |
| 26638 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26639 | # 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] | 26640 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 26641 | # tzname[] |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26642 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 26643 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26644 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26646 | else |
| 26647 | cat >conftest.$ac_ext <<_ACEOF |
| 26648 | /* confdefs.h. */ |
| 26649 | _ACEOF |
| 26650 | cat confdefs.h >>conftest.$ac_ext |
| 26651 | cat >>conftest.$ac_ext <<_ACEOF |
| 26652 | /* end confdefs.h. */ |
| 26653 | #include <sys/types.h> |
| 26654 | #include <$ac_cv_struct_tm> |
| 26655 | |
| 26656 | |
| 26657 | int |
| 26658 | main () |
| 26659 | { |
| 26660 | static struct tm ac_aggr; |
| 26661 | if (ac_aggr.tm_zone) |
| 26662 | return 0; |
| 26663 | ; |
| 26664 | return 0; |
| 26665 | } |
| 26666 | _ACEOF |
| 26667 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26668 | if { (ac_try="$ac_compile" |
| 26669 | case "(($ac_try" in |
| 26670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26671 | *) ac_try_echo=$ac_try;; |
| 26672 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26674 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26675 | ac_status=$? |
| 26676 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26677 | rm -f conftest.er1 |
| 26678 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26680 | (exit $ac_status); } && { |
| 26681 | test -z "$ac_c_werror_flag" || |
| 26682 | test ! -s conftest.err |
| 26683 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26684 | ac_cv_member_struct_tm_tm_zone=yes |
| 26685 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26686 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26687 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26688 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26689 | cat >conftest.$ac_ext <<_ACEOF |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26690 | /* confdefs.h. */ |
| 26691 | _ACEOF |
| 26692 | cat confdefs.h >>conftest.$ac_ext |
| 26693 | cat >>conftest.$ac_ext <<_ACEOF |
| 26694 | /* end confdefs.h. */ |
| 26695 | #include <sys/types.h> |
| 26696 | #include <$ac_cv_struct_tm> |
| 26697 | |
| 26698 | |
| 26699 | int |
| 26700 | main () |
| 26701 | { |
| 26702 | static struct tm ac_aggr; |
| 26703 | if (sizeof ac_aggr.tm_zone) |
| 26704 | return 0; |
| 26705 | ; |
| 26706 | return 0; |
| 26707 | } |
| 26708 | _ACEOF |
| 26709 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26710 | if { (ac_try="$ac_compile" |
| 26711 | case "(($ac_try" in |
| 26712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26713 | *) ac_try_echo=$ac_try;; |
| 26714 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26716 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26717 | ac_status=$? |
| 26718 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26719 | rm -f conftest.er1 |
| 26720 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26722 | (exit $ac_status); } && { |
| 26723 | test -z "$ac_c_werror_flag" || |
| 26724 | test ! -s conftest.err |
| 26725 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26726 | ac_cv_member_struct_tm_tm_zone=yes |
| 26727 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26728 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26729 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26730 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26731 | ac_cv_member_struct_tm_tm_zone=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26732 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26733 | |
| 26734 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26735 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26736 | |
| 26737 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26738 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26739 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 26740 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } |
| 26741 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26742 | |
| 26743 | cat >>confdefs.h <<_ACEOF |
| 26744 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 26745 | _ACEOF |
| 26746 | |
| 26747 | |
| 26748 | fi |
| 26749 | |
| 26750 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 26751 | |
| 26752 | cat >>confdefs.h <<\_ACEOF |
| 26753 | #define HAVE_TM_ZONE 1 |
| 26754 | _ACEOF |
| 26755 | |
| 26756 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26757 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 26758 | 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] | 26759 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26760 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26761 | else |
| 26762 | cat >conftest.$ac_ext <<_ACEOF |
| 26763 | /* confdefs.h. */ |
| 26764 | _ACEOF |
| 26765 | cat confdefs.h >>conftest.$ac_ext |
| 26766 | cat >>conftest.$ac_ext <<_ACEOF |
| 26767 | /* end confdefs.h. */ |
| 26768 | #include <time.h> |
| 26769 | |
| 26770 | int |
| 26771 | main () |
| 26772 | { |
| 26773 | #ifndef tzname |
| 26774 | (void) tzname; |
| 26775 | #endif |
| 26776 | |
| 26777 | ; |
| 26778 | return 0; |
| 26779 | } |
| 26780 | _ACEOF |
| 26781 | rm -f conftest.$ac_objext |
| 26782 | if { (ac_try="$ac_compile" |
| 26783 | case "(($ac_try" in |
| 26784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26785 | *) ac_try_echo=$ac_try;; |
| 26786 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26788 | (eval "$ac_compile") 2>conftest.er1 |
| 26789 | ac_status=$? |
| 26790 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26791 | rm -f conftest.er1 |
| 26792 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26794 | (exit $ac_status); } && { |
| 26795 | test -z "$ac_c_werror_flag" || |
| 26796 | test ! -s conftest.err |
| 26797 | } && test -s conftest.$ac_objext; then |
| 26798 | ac_cv_have_decl_tzname=yes |
| 26799 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26800 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26801 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26802 | |
| 26803 | ac_cv_have_decl_tzname=no |
| 26804 | fi |
| 26805 | |
| 26806 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26807 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26808 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 26809 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } |
| 26810 | if test $ac_cv_have_decl_tzname = yes; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26811 | |
| 26812 | cat >>confdefs.h <<_ACEOF |
| 26813 | #define HAVE_DECL_TZNAME 1 |
| 26814 | _ACEOF |
| 26815 | |
| 26816 | |
| 26817 | else |
| 26818 | cat >>confdefs.h <<_ACEOF |
| 26819 | #define HAVE_DECL_TZNAME 0 |
| 26820 | _ACEOF |
| 26821 | |
| 26822 | |
| 26823 | fi |
| 26824 | |
| 26825 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26826 | { echo "$as_me:$LINENO: checking for tzname" >&5 |
| 26827 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26828 | if test "${ac_cv_var_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26830 | else |
| 26831 | cat >conftest.$ac_ext <<_ACEOF |
| 26832 | /* confdefs.h. */ |
| 26833 | _ACEOF |
| 26834 | cat confdefs.h >>conftest.$ac_ext |
| 26835 | cat >>conftest.$ac_ext <<_ACEOF |
| 26836 | /* end confdefs.h. */ |
| 26837 | #include <time.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26838 | #if !HAVE_DECL_TZNAME |
| 26839 | extern char *tzname[]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26840 | #endif |
| 26841 | |
| 26842 | int |
| 26843 | main () |
| 26844 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26845 | return tzname[0][0]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26846 | ; |
| 26847 | return 0; |
| 26848 | } |
| 26849 | _ACEOF |
| 26850 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26851 | if { (ac_try="$ac_link" |
| 26852 | case "(($ac_try" in |
| 26853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26854 | *) ac_try_echo=$ac_try;; |
| 26855 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26857 | (eval "$ac_link") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26858 | ac_status=$? |
| 26859 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26860 | rm -f conftest.er1 |
| 26861 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26863 | (exit $ac_status); } && { |
| 26864 | test -z "$ac_c_werror_flag" || |
| 26865 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26866 | } && test -s conftest$ac_exeext && |
| 26867 | $as_test_x conftest$ac_exeext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26868 | ac_cv_var_tzname=yes |
| 26869 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26870 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26871 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26872 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26873 | ac_cv_var_tzname=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26874 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26875 | |
| 26876 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26877 | conftest$ac_exeext conftest.$ac_ext |
| 26878 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26879 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 26880 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26881 | if test $ac_cv_var_tzname = yes; then |
| 26882 | |
| 26883 | cat >>confdefs.h <<\_ACEOF |
| 26884 | #define HAVE_TZNAME 1 |
| 26885 | _ACEOF |
| 26886 | |
| 26887 | fi |
| 26888 | fi |
| 26889 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26890 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 26891 | # check tzset(3) exists and works like we expect it to |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26892 | { echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 26893 | echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26894 | if test "${ac_cv_working_tzset+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26896 | else |
| 26897 | |
| 26898 | if test "$cross_compiling" = yes; then |
| 26899 | ac_cv_working_tzset=no |
| 26900 | else |
| 26901 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26902 | /* confdefs.h. */ |
| 26903 | _ACEOF |
| 26904 | cat confdefs.h >>conftest.$ac_ext |
| 26905 | cat >>conftest.$ac_ext <<_ACEOF |
| 26906 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26907 | |
| 26908 | #include <stdlib.h> |
| 26909 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26910 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26911 | |
| 26912 | #if HAVE_TZNAME |
| 26913 | extern char *tzname[]; |
| 26914 | #endif |
| 26915 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26916 | int main() |
| 26917 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26918 | /* Note that we need to ensure that not only does tzset(3) |
| 26919 | do 'something' with localtime, but it works as documented |
| 26920 | 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] | 26921 | This includes making sure that tzname is set properly if |
| 26922 | tm->tm_zone does not exist since it is the alternative way |
| 26923 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26924 | |
| 26925 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 26926 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26927 | */ |
| 26928 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 26929 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26930 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 26931 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 26932 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26933 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26934 | if (localtime(&groundhogday)->tm_hour != 0) |
| 26935 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26936 | #if HAVE_TZNAME |
| 26937 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 26938 | if (strcmp(tzname[0], "UTC") || |
| 26939 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 26940 | exit(1); |
| 26941 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26942 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 26943 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26944 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26945 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26946 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26947 | #if HAVE_TZNAME |
| 26948 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 26949 | exit(1); |
| 26950 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26951 | |
| 26952 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 26953 | tzset(); |
| 26954 | if (localtime(&groundhogday)->tm_hour != 11) |
| 26955 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26956 | #if HAVE_TZNAME |
| 26957 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 26958 | exit(1); |
| 26959 | #endif |
| 26960 | |
| 26961 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26962 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 26963 | exit(1); |
| 26964 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 26965 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26966 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26967 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26968 | exit(0); |
| 26969 | } |
| 26970 | |
| 26971 | _ACEOF |
| 26972 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26973 | if { (ac_try="$ac_link" |
| 26974 | case "(($ac_try" in |
| 26975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26976 | *) ac_try_echo=$ac_try;; |
| 26977 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26979 | (eval "$ac_link") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26980 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26982 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26983 | { (case "(($ac_try" in |
| 26984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26985 | *) ac_try_echo=$ac_try;; |
| 26986 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26988 | (eval "$ac_try") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26989 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26991 | (exit $ac_status); }; }; then |
| 26992 | ac_cv_working_tzset=yes |
| 26993 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26994 | echo "$as_me: program exited with status $ac_status" >&5 |
| 26995 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26996 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26997 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26998 | ( exit $ac_status ) |
| 26999 | ac_cv_working_tzset=no |
| 27000 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27001 | 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] | 27002 | fi |
| 27003 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27004 | |
| 27005 | fi |
| 27006 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27007 | { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 27008 | echo "${ECHO_T}$ac_cv_working_tzset" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27009 | if test "$ac_cv_working_tzset" = yes |
| 27010 | then |
| 27011 | |
| 27012 | cat >>confdefs.h <<\_ACEOF |
| 27013 | #define HAVE_WORKING_TZSET 1 |
| 27014 | _ACEOF |
| 27015 | |
| 27016 | fi |
| 27017 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27018 | # Look for subsecond timestamps in struct stat |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27019 | { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 27020 | 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] | 27021 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27023 | else |
| 27024 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27025 | /* confdefs.h. */ |
| 27026 | _ACEOF |
| 27027 | cat confdefs.h >>conftest.$ac_ext |
| 27028 | cat >>conftest.$ac_ext <<_ACEOF |
| 27029 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27030 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27031 | int |
| 27032 | main () |
| 27033 | { |
| 27034 | |
| 27035 | struct stat st; |
| 27036 | st.st_mtim.tv_nsec = 1; |
| 27037 | |
| 27038 | ; |
| 27039 | return 0; |
| 27040 | } |
| 27041 | _ACEOF |
| 27042 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27043 | if { (ac_try="$ac_compile" |
| 27044 | case "(($ac_try" in |
| 27045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27046 | *) ac_try_echo=$ac_try;; |
| 27047 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27049 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27050 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27051 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27052 | rm -f conftest.er1 |
| 27053 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27055 | (exit $ac_status); } && { |
| 27056 | test -z "$ac_c_werror_flag" || |
| 27057 | test ! -s conftest.err |
| 27058 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 27059 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27060 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27061 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27062 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27063 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27064 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27065 | fi |
| 27066 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27067 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27068 | fi |
| 27069 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27070 | { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 27071 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; } |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27072 | if test "$ac_cv_stat_tv_nsec" = yes |
| 27073 | then |
| 27074 | |
| 27075 | cat >>confdefs.h <<\_ACEOF |
| 27076 | #define HAVE_STAT_TV_NSEC 1 |
| 27077 | _ACEOF |
| 27078 | |
| 27079 | fi |
| 27080 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27081 | # Look for BSD style subsecond timestamps in struct stat |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27082 | { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5 |
| 27083 | 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] | 27084 | if test "${ac_cv_stat_tv_nsec2+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27086 | else |
| 27087 | cat >conftest.$ac_ext <<_ACEOF |
| 27088 | /* confdefs.h. */ |
| 27089 | _ACEOF |
| 27090 | cat confdefs.h >>conftest.$ac_ext |
| 27091 | cat >>conftest.$ac_ext <<_ACEOF |
| 27092 | /* end confdefs.h. */ |
| 27093 | #include <sys/stat.h> |
| 27094 | int |
| 27095 | main () |
| 27096 | { |
| 27097 | |
| 27098 | struct stat st; |
| 27099 | st.st_mtimespec.tv_nsec = 1; |
| 27100 | |
| 27101 | ; |
| 27102 | return 0; |
| 27103 | } |
| 27104 | _ACEOF |
| 27105 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27106 | if { (ac_try="$ac_compile" |
| 27107 | case "(($ac_try" in |
| 27108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27109 | *) ac_try_echo=$ac_try;; |
| 27110 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27112 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27113 | ac_status=$? |
| 27114 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27115 | rm -f conftest.er1 |
| 27116 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27118 | (exit $ac_status); } && { |
| 27119 | test -z "$ac_c_werror_flag" || |
| 27120 | test ! -s conftest.err |
| 27121 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27122 | ac_cv_stat_tv_nsec2=yes |
| 27123 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27124 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27125 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27126 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27127 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27128 | fi |
| 27129 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27130 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27131 | fi |
| 27132 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27133 | { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5 |
| 27134 | echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27135 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 27136 | then |
| 27137 | |
| 27138 | cat >>confdefs.h <<\_ACEOF |
| 27139 | #define HAVE_STAT_TV_NSEC2 1 |
| 27140 | _ACEOF |
| 27141 | |
| 27142 | fi |
| 27143 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27144 | # 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] | 27145 | { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 27146 | 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] | 27147 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27148 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27149 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27150 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27151 | /* confdefs.h. */ |
| 27152 | _ACEOF |
| 27153 | cat confdefs.h >>conftest.$ac_ext |
| 27154 | cat >>conftest.$ac_ext <<_ACEOF |
| 27155 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27156 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27157 | int |
| 27158 | main () |
| 27159 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27160 | |
| 27161 | int rtn; |
| 27162 | rtn = mvwdelch(0,0,0); |
| 27163 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27164 | ; |
| 27165 | return 0; |
| 27166 | } |
| 27167 | _ACEOF |
| 27168 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27169 | if { (ac_try="$ac_compile" |
| 27170 | case "(($ac_try" in |
| 27171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27172 | *) ac_try_echo=$ac_try;; |
| 27173 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27175 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27176 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27177 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27178 | rm -f conftest.er1 |
| 27179 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27181 | (exit $ac_status); } && { |
| 27182 | test -z "$ac_c_werror_flag" || |
| 27183 | test ! -s conftest.err |
| 27184 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27185 | ac_cv_mvwdelch_is_expression=yes |
| 27186 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27187 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27188 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27189 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27190 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27191 | fi |
| 27192 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27193 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27194 | fi |
| 27195 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27196 | { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 27197 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; } |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27198 | |
| 27199 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 27200 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27201 | |
| 27202 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27203 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27204 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27205 | |
| 27206 | fi |
| 27207 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27208 | { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 27209 | 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] | 27210 | if test "${ac_cv_window_has_flags+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27212 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27213 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27214 | /* confdefs.h. */ |
| 27215 | _ACEOF |
| 27216 | cat confdefs.h >>conftest.$ac_ext |
| 27217 | cat >>conftest.$ac_ext <<_ACEOF |
| 27218 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27219 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27220 | int |
| 27221 | main () |
| 27222 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27223 | |
| 27224 | WINDOW *w; |
| 27225 | w->_flags = 0; |
| 27226 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27227 | ; |
| 27228 | return 0; |
| 27229 | } |
| 27230 | _ACEOF |
| 27231 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27232 | if { (ac_try="$ac_compile" |
| 27233 | case "(($ac_try" in |
| 27234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27235 | *) ac_try_echo=$ac_try;; |
| 27236 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27238 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27239 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27240 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27241 | rm -f conftest.er1 |
| 27242 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27244 | (exit $ac_status); } && { |
| 27245 | test -z "$ac_c_werror_flag" || |
| 27246 | test ! -s conftest.err |
| 27247 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27248 | ac_cv_window_has_flags=yes |
| 27249 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27250 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27251 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27252 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27253 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27254 | fi |
| 27255 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27256 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27257 | fi |
| 27258 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27259 | { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 27260 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27261 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27262 | |
| 27263 | if test "$ac_cv_window_has_flags" = yes |
| 27264 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27265 | |
| 27266 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27267 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27268 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27269 | |
| 27270 | fi |
| 27271 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27272 | { echo "$as_me:$LINENO: checking for is_term_resized" >&5 |
| 27273 | echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27274 | cat >conftest.$ac_ext <<_ACEOF |
| 27275 | /* confdefs.h. */ |
| 27276 | _ACEOF |
| 27277 | cat confdefs.h >>conftest.$ac_ext |
| 27278 | cat >>conftest.$ac_ext <<_ACEOF |
| 27279 | /* end confdefs.h. */ |
| 27280 | #include <curses.h> |
| 27281 | int |
| 27282 | main () |
| 27283 | { |
| 27284 | void *x=is_term_resized |
| 27285 | ; |
| 27286 | return 0; |
| 27287 | } |
| 27288 | _ACEOF |
| 27289 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27290 | if { (ac_try="$ac_compile" |
| 27291 | case "(($ac_try" in |
| 27292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27293 | *) ac_try_echo=$ac_try;; |
| 27294 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27295 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27296 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27297 | ac_status=$? |
| 27298 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27299 | rm -f conftest.er1 |
| 27300 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27302 | (exit $ac_status); } && { |
| 27303 | test -z "$ac_c_werror_flag" || |
| 27304 | test ! -s conftest.err |
| 27305 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27306 | |
| 27307 | cat >>confdefs.h <<\_ACEOF |
| 27308 | #define HAVE_CURSES_IS_TERM_RESIZED 1 |
| 27309 | _ACEOF |
| 27310 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27311 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 27312 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27313 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27314 | echo "$as_me: failed program was:" >&5 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27315 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27316 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27317 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27318 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27319 | |
| 27320 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27321 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27322 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27323 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27324 | { echo "$as_me:$LINENO: checking for resize_term" >&5 |
| 27325 | echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27326 | cat >conftest.$ac_ext <<_ACEOF |
| 27327 | /* confdefs.h. */ |
| 27328 | _ACEOF |
| 27329 | cat confdefs.h >>conftest.$ac_ext |
| 27330 | cat >>conftest.$ac_ext <<_ACEOF |
| 27331 | /* end confdefs.h. */ |
| 27332 | #include <curses.h> |
| 27333 | int |
| 27334 | main () |
| 27335 | { |
| 27336 | void *x=resize_term |
| 27337 | ; |
| 27338 | return 0; |
| 27339 | } |
| 27340 | _ACEOF |
| 27341 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27342 | if { (ac_try="$ac_compile" |
| 27343 | case "(($ac_try" in |
| 27344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27345 | *) ac_try_echo=$ac_try;; |
| 27346 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27348 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27349 | ac_status=$? |
| 27350 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27351 | rm -f conftest.er1 |
| 27352 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27354 | (exit $ac_status); } && { |
| 27355 | test -z "$ac_c_werror_flag" || |
| 27356 | test ! -s conftest.err |
| 27357 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27358 | |
| 27359 | cat >>confdefs.h <<\_ACEOF |
| 27360 | #define HAVE_CURSES_RESIZE_TERM 1 |
| 27361 | _ACEOF |
| 27362 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27363 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 27364 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27365 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27366 | echo "$as_me: failed program was:" >&5 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27367 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27368 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27369 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27370 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27371 | |
| 27372 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27373 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27374 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27375 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27376 | { echo "$as_me:$LINENO: checking for resizeterm" >&5 |
| 27377 | echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27378 | cat >conftest.$ac_ext <<_ACEOF |
| 27379 | /* confdefs.h. */ |
| 27380 | _ACEOF |
| 27381 | cat confdefs.h >>conftest.$ac_ext |
| 27382 | cat >>conftest.$ac_ext <<_ACEOF |
| 27383 | /* end confdefs.h. */ |
| 27384 | #include <curses.h> |
| 27385 | int |
| 27386 | main () |
| 27387 | { |
| 27388 | void *x=resizeterm |
| 27389 | ; |
| 27390 | return 0; |
| 27391 | } |
| 27392 | _ACEOF |
| 27393 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27394 | if { (ac_try="$ac_compile" |
| 27395 | case "(($ac_try" in |
| 27396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27397 | *) ac_try_echo=$ac_try;; |
| 27398 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27400 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27401 | ac_status=$? |
| 27402 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27403 | rm -f conftest.er1 |
| 27404 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27406 | (exit $ac_status); } && { |
| 27407 | test -z "$ac_c_werror_flag" || |
| 27408 | test ! -s conftest.err |
| 27409 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27410 | |
| 27411 | cat >>confdefs.h <<\_ACEOF |
| 27412 | #define HAVE_CURSES_RESIZETERM 1 |
| 27413 | _ACEOF |
| 27414 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27415 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 27416 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27417 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27418 | echo "$as_me: failed program was:" >&5 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27419 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27420 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27421 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27422 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27423 | |
| 27424 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27425 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27426 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27427 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27428 | { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 27429 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; } |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 27430 | |
| 27431 | if test -r /dev/ptmx |
| 27432 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27433 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 27434 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 27435 | |
| 27436 | cat >>confdefs.h <<\_ACEOF |
| 27437 | #define HAVE_DEV_PTMX 1 |
| 27438 | _ACEOF |
| 27439 | |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 27440 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27441 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27442 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 27443 | fi |
| 27444 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27445 | { echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 27446 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; } |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 27447 | |
| 27448 | if test -r /dev/ptc |
| 27449 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27450 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 27451 | echo "${ECHO_T}yes" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 27452 | |
| 27453 | cat >>confdefs.h <<\_ACEOF |
| 27454 | #define HAVE_DEV_PTC 1 |
| 27455 | _ACEOF |
| 27456 | |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 27457 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27458 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27459 | echo "${ECHO_T}no" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 27460 | fi |
| 27461 | |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 27462 | if test "$have_long_long" = yes |
| 27463 | then |
| 27464 | { echo "$as_me:$LINENO: checking for %lld and %llu printf() format support" >&5 |
| 27465 | echo $ECHO_N "checking for %lld and %llu printf() format support... $ECHO_C" >&6; } |
| 27466 | if test "${ac_cv_have_long_long_format+set}" = set; then |
| 27467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27468 | else |
| 27469 | if test "$cross_compiling" = yes; then |
| 27470 | ac_cv_have_long_long_format=no |
| 27471 | else |
| 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 | |
| 27479 | #include <stdio.h> |
| 27480 | #include <stddef.h> |
| 27481 | #include <string.h> |
| 27482 | |
| 27483 | #ifdef HAVE_SYS_TYPES_H |
| 27484 | #include <sys/types.h> |
| 27485 | #endif |
| 27486 | |
| 27487 | int main() |
| 27488 | { |
| 27489 | char buffer[256]; |
| 27490 | |
| 27491 | if (sprintf(buffer, "%lld", (long long)123) < 0) |
| 27492 | return 1; |
| 27493 | if (strcmp(buffer, "123")) |
| 27494 | return 1; |
| 27495 | |
| 27496 | if (sprintf(buffer, "%lld", (long long)-123) < 0) |
| 27497 | return 1; |
| 27498 | if (strcmp(buffer, "-123")) |
| 27499 | return 1; |
| 27500 | |
| 27501 | if (sprintf(buffer, "%llu", (unsigned long long)123) < 0) |
| 27502 | return 1; |
| 27503 | if (strcmp(buffer, "123")) |
| 27504 | return 1; |
| 27505 | |
| 27506 | return 0; |
| 27507 | } |
| 27508 | |
| 27509 | _ACEOF |
| 27510 | rm -f conftest$ac_exeext |
| 27511 | if { (ac_try="$ac_link" |
| 27512 | case "(($ac_try" in |
| 27513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27514 | *) ac_try_echo=$ac_try;; |
| 27515 | esac |
| 27516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27517 | (eval "$ac_link") 2>&5 |
| 27518 | ac_status=$? |
| 27519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27520 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 27521 | { (case "(($ac_try" in |
| 27522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27523 | *) ac_try_echo=$ac_try;; |
| 27524 | esac |
| 27525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27526 | (eval "$ac_try") 2>&5 |
| 27527 | ac_status=$? |
| 27528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27529 | (exit $ac_status); }; }; then |
| 27530 | ac_cv_have_long_long_format=yes |
| 27531 | else |
| 27532 | echo "$as_me: program exited with status $ac_status" >&5 |
| 27533 | echo "$as_me: failed program was:" >&5 |
| 27534 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27535 | |
| 27536 | ( exit $ac_status ) |
| 27537 | ac_cv_have_long_long_format=no |
| 27538 | fi |
| 27539 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 27540 | fi |
| 27541 | |
| 27542 | |
| 27543 | |
| 27544 | fi |
| 27545 | |
| 27546 | { echo "$as_me:$LINENO: result: $ac_cv_have_long_long_format" >&5 |
| 27547 | echo "${ECHO_T}$ac_cv_have_long_long_format" >&6; } |
| 27548 | fi |
| 27549 | |
Mark Dickinson | 5ce8474 | 2009-12-31 20:48:04 +0000 | [diff] [blame] | 27550 | if test "$ac_cv_have_long_long_format" = yes |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 27551 | then |
| 27552 | |
| 27553 | cat >>confdefs.h <<\_ACEOF |
| 27554 | #define PY_FORMAT_LONG_LONG "ll" |
| 27555 | _ACEOF |
| 27556 | |
| 27557 | fi |
| 27558 | |
Ronald Oussoren | 315cd0c | 2009-11-19 16:25:21 +0000 | [diff] [blame] | 27559 | if test $ac_sys_system = Darwin |
| 27560 | then |
| 27561 | LIBS="$LIBS -framework CoreFoundation" |
| 27562 | fi |
| 27563 | |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 27564 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27565 | { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5 |
| 27566 | echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27567 | if test "${ac_cv_have_size_t_format+set}" = set; then |
| 27568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27569 | else |
| 27570 | if test "$cross_compiling" = yes; then |
Gregory P. Smith | c9ff3a7 | 2009-11-02 02:03:16 +0000 | [diff] [blame] | 27571 | ac_cv_have_size_t_format="cross -- assuming yes" |
| 27572 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27573 | else |
| 27574 | cat >conftest.$ac_ext <<_ACEOF |
| 27575 | /* confdefs.h. */ |
| 27576 | _ACEOF |
| 27577 | cat confdefs.h >>conftest.$ac_ext |
| 27578 | cat >>conftest.$ac_ext <<_ACEOF |
| 27579 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27580 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27581 | #include <stdio.h> |
| 27582 | #include <stddef.h> |
| 27583 | #include <string.h> |
| 27584 | |
Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 27585 | #ifdef HAVE_SYS_TYPES_H |
| 27586 | #include <sys/types.h> |
| 27587 | #endif |
Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 27588 | |
| 27589 | #ifdef HAVE_SSIZE_T |
| 27590 | typedef ssize_t Py_ssize_t; |
| 27591 | #elif SIZEOF_VOID_P == SIZEOF_LONG |
| 27592 | typedef long Py_ssize_t; |
| 27593 | #else |
| 27594 | typedef int Py_ssize_t; |
| 27595 | #endif |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27596 | |
Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 27597 | int main() |
| 27598 | { |
| 27599 | char buffer[256]; |
| 27600 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27601 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
| 27602 | return 1; |
| 27603 | |
Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 27604 | if (strcmp(buffer, "123")) |
| 27605 | return 1; |
| 27606 | |
| 27607 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) |
| 27608 | return 1; |
| 27609 | |
| 27610 | if (strcmp(buffer, "-123")) |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27611 | return 1; |
| 27612 | |
| 27613 | return 0; |
| 27614 | } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27615 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27616 | _ACEOF |
| 27617 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27618 | if { (ac_try="$ac_link" |
| 27619 | case "(($ac_try" in |
| 27620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27621 | *) ac_try_echo=$ac_try;; |
| 27622 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27623 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27624 | (eval "$ac_link") 2>&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27625 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27627 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27628 | { (case "(($ac_try" in |
| 27629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27630 | *) ac_try_echo=$ac_try;; |
| 27631 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27632 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27633 | (eval "$ac_try") 2>&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27634 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27636 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27637 | ac_cv_have_size_t_format=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27638 | else |
| 27639 | echo "$as_me: program exited with status $ac_status" >&5 |
| 27640 | echo "$as_me: failed program was:" >&5 |
| 27641 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27642 | |
| 27643 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27644 | ac_cv_have_size_t_format=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27645 | fi |
| 27646 | 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] | 27647 | fi |
| 27648 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27649 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27650 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27651 | { echo "$as_me:$LINENO: result: $ac_cv_have_size_t_format" >&5 |
| 27652 | echo "${ECHO_T}$ac_cv_have_size_t_format" >&6; } |
Gregory P. Smith | c9ff3a7 | 2009-11-02 02:03:16 +0000 | [diff] [blame] | 27653 | if test "$ac_cv_have_size_t_format" != no ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27654 | |
| 27655 | cat >>confdefs.h <<\_ACEOF |
| 27656 | #define PY_FORMAT_SIZE_T "z" |
| 27657 | _ACEOF |
| 27658 | |
| 27659 | fi |
| 27660 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27661 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 27662 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27663 | if test "${ac_cv_type_socklen_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27665 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27666 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27667 | /* confdefs.h. */ |
| 27668 | _ACEOF |
| 27669 | cat confdefs.h >>conftest.$ac_ext |
| 27670 | cat >>conftest.$ac_ext <<_ACEOF |
| 27671 | /* end confdefs.h. */ |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 27672 | |
| 27673 | #ifdef HAVE_SYS_TYPES_H |
| 27674 | #include <sys/types.h> |
| 27675 | #endif |
| 27676 | #ifdef HAVE_SYS_SOCKET_H |
| 27677 | #include <sys/socket.h> |
| 27678 | #endif |
| 27679 | |
| 27680 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27681 | typedef socklen_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27682 | int |
| 27683 | main () |
| 27684 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27685 | if ((ac__type_new_ *) 0) |
| 27686 | return 0; |
| 27687 | if (sizeof (ac__type_new_)) |
| 27688 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27689 | ; |
| 27690 | return 0; |
| 27691 | } |
| 27692 | _ACEOF |
| 27693 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27694 | if { (ac_try="$ac_compile" |
| 27695 | case "(($ac_try" in |
| 27696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27697 | *) ac_try_echo=$ac_try;; |
| 27698 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27700 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27701 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27702 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27703 | rm -f conftest.er1 |
| 27704 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27706 | (exit $ac_status); } && { |
| 27707 | test -z "$ac_c_werror_flag" || |
| 27708 | test ! -s conftest.err |
| 27709 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27710 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27711 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27712 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27713 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27714 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27715 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27716 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27717 | |
| 27718 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27719 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27720 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 27721 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } |
| 27722 | if test $ac_cv_type_socklen_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27723 | : |
| 27724 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27725 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 27726 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27727 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27728 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27729 | |
| 27730 | fi |
| 27731 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27732 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27733 | |
| 27734 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 27735 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 27736 | do |
| 27737 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 27738 | done |
| 27739 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27740 | |
Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 27741 | SRCDIRS="Parser Grammar Objects Python Modules Mac" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27742 | { echo "$as_me:$LINENO: checking for build directories" >&5 |
| 27743 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 27744 | for dir in $SRCDIRS; do |
| 27745 | if test ! -d $dir; then |
| 27746 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 27747 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 27748 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27749 | { echo "$as_me:$LINENO: result: done" >&5 |
| 27750 | echo "${ECHO_T}done" >&6; } |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 27751 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 27752 | # generate output files |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 27753 | 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] | 27754 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27755 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27756 | # This file is a shell script that caches the results of configure |
| 27757 | # 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] | 27758 | # scripts and configure runs, see configure's option --config-cache. |
| 27759 | # It is not useful on other systems. If it contains results you don't |
| 27760 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27761 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27762 | # config.status only pays attention to the cache file if you give it |
| 27763 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27764 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27765 | # `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] | 27766 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 27767 | # following values. |
| 27768 | |
| 27769 | _ACEOF |
| 27770 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 27771 | # The following way of writing the cache mishandles newlines in values, |
| 27772 | # 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] | 27773 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 27774 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 27775 | # 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] | 27776 | ( |
| 27777 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 27778 | eval ac_val=\$$ac_var |
| 27779 | case $ac_val in #( |
| 27780 | *${as_nl}*) |
| 27781 | case $ac_var in #( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27782 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 27783 | 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] | 27784 | esac |
| 27785 | case $ac_var in #( |
| 27786 | _ | IFS | as_nl) ;; #( |
| 27787 | *) $as_unset $ac_var ;; |
| 27788 | esac ;; |
| 27789 | esac |
| 27790 | done |
| 27791 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27792 | (set) 2>&1 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27793 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 27794 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27795 | # `set' does not quote correctly, so add quotes (double-quote |
| 27796 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 27797 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27798 | "s/'/'\\\\''/g; |
| 27799 | 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] | 27800 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27801 | *) |
| 27802 | # `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] | 27803 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27804 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27805 | esac | |
| 27806 | sort |
| 27807 | ) | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27808 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27809 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27810 | t clear |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27811 | :clear |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27812 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 27813 | t end |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27814 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 27815 | :end' >>confcache |
| 27816 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 27817 | if test -w "$cache_file"; then |
| 27818 | test "x$cache_file" != "x/dev/null" && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27819 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 27820 | echo "$as_me: updating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27821 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 27822 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27823 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 27824 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 27825 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27826 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 27827 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 27828 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27829 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 27830 | # Let make expand exec_prefix. |
| 27831 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 27832 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27833 | DEFS=-DHAVE_CONFIG_H |
| 27834 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27835 | ac_libobjs= |
| 27836 | ac_ltlibobjs= |
| 27837 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 27838 | # 1. Remove the extension, and $U if already installed. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27839 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27840 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27841 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 27842 | # will be set to the directory where LIBOBJS objects are built. |
| 27843 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 27844 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27845 | done |
| 27846 | LIBOBJS=$ac_libobjs |
| 27847 | |
| 27848 | LTLIBOBJS=$ac_ltlibobjs |
| 27849 | |
| 27850 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27851 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27852 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27853 | ac_clean_files_save=$ac_clean_files |
| 27854 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27855 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 27856 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 27857 | cat >$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27858 | #! $SHELL |
| 27859 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 27860 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27861 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27862 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 27863 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27864 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27865 | ac_cs_recheck=false |
| 27866 | ac_cs_silent=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27867 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 27868 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 27869 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27870 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27871 | ## --------------------- ## |
| 27872 | ## M4sh Initialization. ## |
| 27873 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 27874 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27875 | # Be more Bourne compatible |
| 27876 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27877 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 27878 | emulate sh |
| 27879 | NULLCMD=: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27880 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27881 | # is contrary to our usage. Disable this feature. |
| 27882 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27883 | setopt NO_GLOB_SUBST |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 27884 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27885 | case `(set -o) 2>/dev/null` in |
| 27886 | *posix*) set -o posix ;; |
| 27887 | esac |
| 27888 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27889 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27890 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27891 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27892 | |
| 27893 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27894 | # PATH needs CR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27895 | # Avoid depending upon Character Ranges. |
| 27896 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 27897 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 27898 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 27899 | as_cr_digits='0123456789' |
| 27900 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 27901 | |
| 27902 | # The user is always right. |
| 27903 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27904 | echo "#! /bin/sh" >conf$$.sh |
| 27905 | echo "exit 0" >>conf$$.sh |
| 27906 | chmod +x conf$$.sh |
| 27907 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 27908 | PATH_SEPARATOR=';' |
| 27909 | else |
| 27910 | PATH_SEPARATOR=: |
| 27911 | fi |
| 27912 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27913 | fi |
| 27914 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27915 | # Support unset when possible. |
| 27916 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 27917 | as_unset=unset |
| 27918 | else |
| 27919 | as_unset=false |
| 27920 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27921 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27922 | |
| 27923 | # IFS |
| 27924 | # We need space, tab and new line, in precisely that order. Quoting is |
| 27925 | # there to prevent editors from complaining about space-tab. |
| 27926 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 27927 | # splitting by setting IFS to empty value.) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27928 | as_nl=' |
| 27929 | ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27930 | IFS=" "" $as_nl" |
| 27931 | |
| 27932 | # Find who we are. Look in the path if we contain no directory separator. |
| 27933 | case $0 in |
| 27934 | *[\\/]* ) as_myself=$0 ;; |
| 27935 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27936 | for as_dir in $PATH |
| 27937 | do |
| 27938 | IFS=$as_save_IFS |
| 27939 | test -z "$as_dir" && as_dir=. |
| 27940 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 27941 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27942 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27943 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27944 | ;; |
| 27945 | esac |
| 27946 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 27947 | # in which case we are not to be found in the path. |
| 27948 | if test "x$as_myself" = x; then |
| 27949 | as_myself=$0 |
| 27950 | fi |
| 27951 | if test ! -f "$as_myself"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27952 | 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] | 27953 | { (exit 1); exit 1; } |
| 27954 | fi |
| 27955 | |
| 27956 | # Work around bugs in pre-3.0 UWIN ksh. |
| 27957 | for as_var in ENV MAIL MAILPATH |
| 27958 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 27959 | done |
| 27960 | PS1='$ ' |
| 27961 | PS2='> ' |
| 27962 | PS4='+ ' |
| 27963 | |
| 27964 | # NLS nuisances. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27965 | for as_var in \ |
| 27966 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 27967 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 27968 | LC_TELEPHONE LC_TIME |
| 27969 | do |
| 27970 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 27971 | eval $as_var=C; export $as_var |
| 27972 | else |
| 27973 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 27974 | fi |
| 27975 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27976 | |
| 27977 | # Required to use basename. |
| 27978 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 27979 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 27980 | as_expr=expr |
| 27981 | else |
| 27982 | as_expr=false |
| 27983 | fi |
| 27984 | |
| 27985 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 27986 | as_basename=basename |
| 27987 | else |
| 27988 | as_basename=false |
| 27989 | fi |
| 27990 | |
| 27991 | |
| 27992 | # Name of the executable. |
| 27993 | as_me=`$as_basename -- "$0" || |
| 27994 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 27995 | X"$0" : 'X\(//\)$' \| \ |
| 27996 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27997 | echo X/"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27998 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 27999 | s//\1/ |
| 28000 | q |
| 28001 | } |
| 28002 | /^X\/\(\/\/\)$/{ |
| 28003 | s//\1/ |
| 28004 | q |
| 28005 | } |
| 28006 | /^X\/\(\/\).*/{ |
| 28007 | s//\1/ |
| 28008 | q |
| 28009 | } |
| 28010 | s/.*/./; q'` |
| 28011 | |
| 28012 | # CDPATH. |
| 28013 | $as_unset CDPATH |
| 28014 | |
| 28015 | |
| 28016 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28017 | as_lineno_1=$LINENO |
| 28018 | as_lineno_2=$LINENO |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28019 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28020 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 28021 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28022 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 28023 | # 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] | 28024 | # line-number line after each line using $LINENO; the second 'sed' |
| 28025 | # does the real work. The second script uses 'N' to pair each |
| 28026 | # line-number line with the line containing $LINENO, and appends |
| 28027 | # trailing '-' during substitution so that $LINENO is not a special |
| 28028 | # case at line end. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28029 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28030 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 28031 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 28032 | sed -n ' |
| 28033 | p |
| 28034 | /[$]LINENO/= |
| 28035 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28036 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28037 | s/[$]LINENO.*/&-/ |
| 28038 | t lineno |
| 28039 | b |
| 28040 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28041 | N |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28042 | :loop |
| 28043 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28044 | t loop |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28045 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28046 | ' >$as_me.lineno && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28047 | chmod +x "$as_me.lineno" || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28048 | { 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] | 28049 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 28050 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28051 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 28052 | # (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] | 28053 | # original and so on. Autoconf is especially sensitive to this). |
| 28054 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28055 | # Exit status is that of the last command. |
| 28056 | exit |
| 28057 | } |
| 28058 | |
| 28059 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28060 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 28061 | as_dirname=dirname |
| 28062 | else |
| 28063 | as_dirname=false |
| 28064 | fi |
| 28065 | |
| 28066 | ECHO_C= ECHO_N= ECHO_T= |
| 28067 | case `echo -n x` in |
| 28068 | -n*) |
| 28069 | case `echo 'x\c'` in |
| 28070 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 28071 | *) ECHO_C='\c';; |
| 28072 | esac;; |
| 28073 | *) |
| 28074 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28075 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28076 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28077 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 28078 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28079 | as_expr=expr |
| 28080 | else |
| 28081 | as_expr=false |
| 28082 | fi |
| 28083 | |
| 28084 | rm -f conf$$ conf$$.exe conf$$.file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28085 | if test -d conf$$.dir; then |
| 28086 | rm -f conf$$.dir/conf$$.file |
| 28087 | else |
| 28088 | rm -f conf$$.dir |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28089 | mkdir conf$$.dir |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28090 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28091 | echo >conf$$.file |
| 28092 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 28093 | as_ln_s='ln -s' |
| 28094 | # ... but there are two gotchas: |
| 28095 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 28096 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 28097 | # In both cases, we have to default to `cp -p'. |
| 28098 | 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] | 28099 | as_ln_s='cp -p' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28100 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 28101 | as_ln_s=ln |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28102 | else |
| 28103 | as_ln_s='cp -p' |
| 28104 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28105 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 28106 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28107 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28108 | if mkdir -p . 2>/dev/null; then |
| 28109 | as_mkdir_p=: |
| 28110 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28111 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28112 | as_mkdir_p=false |
| 28113 | fi |
| 28114 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28115 | if test -x / >/dev/null 2>&1; then |
| 28116 | as_test_x='test -x' |
| 28117 | else |
| 28118 | if ls -dL / >/dev/null 2>&1; then |
| 28119 | as_ls_L_option=L |
| 28120 | else |
| 28121 | as_ls_L_option= |
| 28122 | fi |
| 28123 | as_test_x=' |
| 28124 | eval sh -c '\'' |
| 28125 | if test -d "$1"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28126 | test -d "$1/."; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28127 | else |
| 28128 | case $1 in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28129 | -*)set "./$1";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28130 | esac; |
| 28131 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 28132 | ???[sx]*):;;*)false;;esac;fi |
| 28133 | '\'' sh |
| 28134 | ' |
| 28135 | fi |
| 28136 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28137 | |
| 28138 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28139 | 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] | 28140 | |
| 28141 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28142 | 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] | 28143 | |
| 28144 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28145 | exec 6>&1 |
| 28146 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28147 | # 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] | 28148 | # 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] | 28149 | # values after options handling. |
| 28150 | ac_log=" |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 28151 | This file was extended by python $as_me 2.7, which was |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28152 | generated by GNU Autoconf 2.61. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28153 | |
| 28154 | CONFIG_FILES = $CONFIG_FILES |
| 28155 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 28156 | CONFIG_LINKS = $CONFIG_LINKS |
| 28157 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 28158 | $ $0 $@ |
| 28159 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28160 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 28161 | " |
| 28162 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28163 | _ACEOF |
| 28164 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28165 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28166 | # Files that config.status was made for. |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 28167 | config_files="$ac_config_files" |
| 28168 | config_headers="$ac_config_headers" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28169 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28170 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28171 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28172 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28173 | ac_cs_usage="\ |
| 28174 | \`$as_me' instantiates files from templates according to the |
| 28175 | current configuration. |
| 28176 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28177 | Usage: $0 [OPTIONS] [FILE]... |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28178 | |
| 28179 | -h, --help print this help, then exit |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28180 | -V, --version print version number and configuration settings, then exit |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28181 | -q, --quiet do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28182 | -d, --debug don't remove temporary files |
| 28183 | --recheck update $as_me by reconfiguring in the same conditions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28184 | --file=FILE[:TEMPLATE] |
| 28185 | instantiate the configuration file FILE |
| 28186 | --header=FILE[:TEMPLATE] |
| 28187 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28188 | |
| 28189 | Configuration files: |
| 28190 | $config_files |
| 28191 | |
| 28192 | Configuration headers: |
| 28193 | $config_headers |
| 28194 | |
| 28195 | Report bugs to <bug-autoconf@gnu.org>." |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 28196 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28197 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28198 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28199 | ac_cs_version="\\ |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 28200 | python config.status 2.7 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28201 | configured by $0, generated by GNU Autoconf 2.61, |
| 28202 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28203 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28204 | Copyright (C) 2006 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28205 | This config.status script is free software; the Free Software Foundation |
| 28206 | gives unlimited permission to copy, distribute and modify it." |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28207 | |
| 28208 | ac_pwd='$ac_pwd' |
| 28209 | srcdir='$srcdir' |
| 28210 | INSTALL='$INSTALL' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28211 | _ACEOF |
| 28212 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28213 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 28214 | # If no file are specified by the user, then we need to provide default |
| 28215 | # 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] | 28216 | ac_need_defaults=: |
| 28217 | while test $# != 0 |
| 28218 | do |
| 28219 | case $1 in |
| 28220 | --*=*) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28221 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 28222 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28223 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28224 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28225 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28226 | ac_option=$1 |
| 28227 | ac_optarg=$2 |
| 28228 | ac_shift=shift |
| 28229 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28230 | esac |
| 28231 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28232 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28233 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28234 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 28235 | ac_cs_recheck=: ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28236 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28237 | echo "$ac_cs_version"; exit ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28238 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28239 | debug=: ;; |
| 28240 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28241 | $ac_shift |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28242 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28243 | ac_need_defaults=false;; |
| 28244 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28245 | $ac_shift |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28246 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28247 | ac_need_defaults=false;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28248 | --he | --h) |
| 28249 | # Conflict between --help and --header |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28250 | { echo "$as_me: error: ambiguous option: $1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28251 | Try \`$0 --help' for more information." >&2 |
| 28252 | { (exit 1); exit 1; }; };; |
| 28253 | --help | --hel | -h ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28254 | echo "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28255 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 28256 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 28257 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28258 | |
| 28259 | # This is an error. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28260 | -*) { echo "$as_me: error: unrecognized option: $1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28261 | Try \`$0 --help' for more information." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28262 | { (exit 1); exit 1; }; } ;; |
| 28263 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28264 | *) ac_config_targets="$ac_config_targets $1" |
| 28265 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28266 | |
| 28267 | esac |
| 28268 | shift |
| 28269 | done |
| 28270 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28271 | ac_configure_extra_args= |
| 28272 | |
| 28273 | if $ac_cs_silent; then |
| 28274 | exec 6>/dev/null |
| 28275 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 28276 | fi |
| 28277 | |
| 28278 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28279 | cat >>$CONFIG_STATUS <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28280 | if \$ac_cs_recheck; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28281 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 28282 | CONFIG_SHELL=$SHELL |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28283 | export CONFIG_SHELL |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28284 | 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] | 28285 | fi |
| 28286 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28287 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28288 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28289 | exec 5>>config.log |
| 28290 | { |
| 28291 | echo |
| 28292 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 28293 | ## Running $as_me. ## |
| 28294 | _ASBOX |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28295 | echo "$ac_log" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28296 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28297 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28298 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28299 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28300 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28301 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28302 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28303 | |
| 28304 | # Handling of arguments. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28305 | for ac_config_target in $ac_config_targets |
| 28306 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28307 | case $ac_config_target in |
| 28308 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 28309 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; |
| 28310 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; |
| 28311 | "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;; |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 28312 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; |
| 28313 | "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] | 28314 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 28315 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 28316 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28317 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28318 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 28319 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28320 | { (exit 1); exit 1; }; };; |
| 28321 | esac |
| 28322 | done |
| 28323 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28324 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28325 | # If the user did not use the arguments to specify the items to instantiate, |
| 28326 | # then the envvar interface is used. Set only those that are not. |
| 28327 | # We use the long form for the default assignment because of an extremely |
| 28328 | # bizarre bug on SunOS 4.1.3. |
| 28329 | if $ac_need_defaults; then |
| 28330 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 28331 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 28332 | fi |
| 28333 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28334 | # 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] | 28335 | # 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] | 28336 | # creating and moving files from /tmp can sometimes cause problems. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28337 | # Hook for its removal unless debugging. |
| 28338 | # Note that there is a small window in which the directory will not be cleaned: |
| 28339 | # 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] | 28340 | $debug || |
| 28341 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28342 | tmp= |
| 28343 | trap 'exit_status=$? |
| 28344 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 28345 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28346 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 28347 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28348 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28349 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28350 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28351 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28352 | test -n "$tmp" && test -d "$tmp" |
| 28353 | } || |
| 28354 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28355 | tmp=./conf$$-$RANDOM |
| 28356 | (umask 077 && mkdir "$tmp") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28357 | } || |
| 28358 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28359 | echo "$me: cannot create a temporary directory in ." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28360 | { (exit 1); exit 1; } |
| 28361 | } |
| 28362 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28363 | # |
| 28364 | # Set up the sed scripts for CONFIG_FILES section. |
| 28365 | # |
| 28366 | |
| 28367 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 28368 | # This happens for instance when ./config.status config.h |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28369 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28370 | |
| 28371 | _ACEOF |
| 28372 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28373 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28374 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28375 | ac_delim='%!_!# ' |
| 28376 | for ac_last_try in false false false false false :; do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28377 | cat >conf$$subs.sed <<_ACEOF |
| 28378 | SHELL!$SHELL$ac_delim |
| 28379 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 28380 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 28381 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 28382 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 28383 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 28384 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 28385 | exec_prefix!$exec_prefix$ac_delim |
| 28386 | prefix!$prefix$ac_delim |
| 28387 | program_transform_name!$program_transform_name$ac_delim |
| 28388 | bindir!$bindir$ac_delim |
| 28389 | sbindir!$sbindir$ac_delim |
| 28390 | libexecdir!$libexecdir$ac_delim |
| 28391 | datarootdir!$datarootdir$ac_delim |
| 28392 | datadir!$datadir$ac_delim |
| 28393 | sysconfdir!$sysconfdir$ac_delim |
| 28394 | sharedstatedir!$sharedstatedir$ac_delim |
| 28395 | localstatedir!$localstatedir$ac_delim |
| 28396 | includedir!$includedir$ac_delim |
| 28397 | oldincludedir!$oldincludedir$ac_delim |
| 28398 | docdir!$docdir$ac_delim |
| 28399 | infodir!$infodir$ac_delim |
| 28400 | htmldir!$htmldir$ac_delim |
| 28401 | dvidir!$dvidir$ac_delim |
| 28402 | pdfdir!$pdfdir$ac_delim |
| 28403 | psdir!$psdir$ac_delim |
| 28404 | libdir!$libdir$ac_delim |
| 28405 | localedir!$localedir$ac_delim |
| 28406 | mandir!$mandir$ac_delim |
| 28407 | DEFS!$DEFS$ac_delim |
| 28408 | ECHO_C!$ECHO_C$ac_delim |
| 28409 | ECHO_N!$ECHO_N$ac_delim |
| 28410 | ECHO_T!$ECHO_T$ac_delim |
| 28411 | LIBS!$LIBS$ac_delim |
| 28412 | build_alias!$build_alias$ac_delim |
| 28413 | host_alias!$host_alias$ac_delim |
| 28414 | target_alias!$target_alias$ac_delim |
| 28415 | VERSION!$VERSION$ac_delim |
| 28416 | SOVERSION!$SOVERSION$ac_delim |
| 28417 | CONFIG_ARGS!$CONFIG_ARGS$ac_delim |
| 28418 | UNIVERSALSDK!$UNIVERSALSDK$ac_delim |
| 28419 | ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 28420 | LIPO_32BIT_FLAGS!$LIPO_32BIT_FLAGS$ac_delim |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28421 | PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim |
| 28422 | PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim |
| 28423 | PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim |
| 28424 | PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim |
| 28425 | PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim |
| 28426 | FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim |
| 28427 | FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim |
| 28428 | FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim |
| 28429 | FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim |
| 28430 | FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim |
| 28431 | MACHDEP!$MACHDEP$ac_delim |
| 28432 | SGI_ABI!$SGI_ABI$ac_delim |
| 28433 | EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim |
| 28434 | EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim |
| 28435 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim |
| 28436 | EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim |
| 28437 | CC!$CC$ac_delim |
| 28438 | CFLAGS!$CFLAGS$ac_delim |
| 28439 | LDFLAGS!$LDFLAGS$ac_delim |
| 28440 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 28441 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 28442 | EXEEXT!$EXEEXT$ac_delim |
| 28443 | OBJEXT!$OBJEXT$ac_delim |
| 28444 | CXX!$CXX$ac_delim |
| 28445 | MAINCC!$MAINCC$ac_delim |
| 28446 | CPP!$CPP$ac_delim |
| 28447 | GREP!$GREP$ac_delim |
| 28448 | EGREP!$EGREP$ac_delim |
| 28449 | BUILDEXEEXT!$BUILDEXEEXT$ac_delim |
| 28450 | LIBRARY!$LIBRARY$ac_delim |
| 28451 | LDLIBRARY!$LDLIBRARY$ac_delim |
| 28452 | DLLLIBRARY!$DLLLIBRARY$ac_delim |
| 28453 | BLDLIBRARY!$BLDLIBRARY$ac_delim |
| 28454 | LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim |
| 28455 | INSTSONAME!$INSTSONAME$ac_delim |
| 28456 | RUNSHARED!$RUNSHARED$ac_delim |
| 28457 | LINKCC!$LINKCC$ac_delim |
| 28458 | GNULD!$GNULD$ac_delim |
| 28459 | RANLIB!$RANLIB$ac_delim |
| 28460 | AR!$AR$ac_delim |
| 28461 | ARFLAGS!$ARFLAGS$ac_delim |
| 28462 | SVNVERSION!$SVNVERSION$ac_delim |
| 28463 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 28464 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 28465 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 28466 | LN!$LN$ac_delim |
| 28467 | OPT!$OPT$ac_delim |
| 28468 | BASECFLAGS!$BASECFLAGS$ac_delim |
| 28469 | UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim |
| 28470 | OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim |
| 28471 | LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim |
| 28472 | SO!$SO$ac_delim |
| 28473 | LDSHARED!$LDSHARED$ac_delim |
| 28474 | BLDSHARED!$BLDSHARED$ac_delim |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28475 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28476 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28477 | 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] | 28478 | break |
| 28479 | elif $ac_last_try; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28480 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 28481 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28482 | { (exit 1); exit 1; }; } |
| 28483 | else |
| 28484 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28485 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28486 | done |
| 28487 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28488 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 28489 | if test -n "$ac_eof"; then |
| 28490 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 28491 | ac_eof=`expr $ac_eof + 1` |
| 28492 | fi |
| 28493 | |
| 28494 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28495 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 28496 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28497 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28498 | sed ' |
| 28499 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 28500 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 28501 | :n |
| 28502 | t n |
| 28503 | s/'"$ac_delim"'$/,g/; t |
| 28504 | s/$/\\/; p |
| 28505 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 28506 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 28507 | rm -f conf$$subs.sed |
| 28508 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28509 | CEOF$ac_eof |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28510 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28511 | |
| 28512 | |
| 28513 | ac_delim='%!_!# ' |
| 28514 | for ac_last_try in false false false false false :; do |
| 28515 | cat >conf$$subs.sed <<_ACEOF |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 28516 | CCSHARED!$CCSHARED$ac_delim |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28517 | LINKFORSHARED!$LINKFORSHARED$ac_delim |
| 28518 | CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim |
| 28519 | SHLIBS!$SHLIBS$ac_delim |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 28520 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
| 28521 | LIBFFI_INCLUDEDIR!$LIBFFI_INCLUDEDIR$ac_delim |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28522 | USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim |
| 28523 | SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim |
| 28524 | USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim |
| 28525 | LDLAST!$LDLAST$ac_delim |
| 28526 | THREADOBJ!$THREADOBJ$ac_delim |
| 28527 | DLINCLDIR!$DLINCLDIR$ac_delim |
| 28528 | DYNLOADFILE!$DYNLOADFILE$ac_delim |
| 28529 | MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim |
| 28530 | TRUE!$TRUE$ac_delim |
| 28531 | LIBOBJS!$LIBOBJS$ac_delim |
| 28532 | HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim |
| 28533 | HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim |
| 28534 | HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim |
| 28535 | HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim |
| 28536 | HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim |
| 28537 | LIBM!$LIBM$ac_delim |
| 28538 | LIBC!$LIBC$ac_delim |
| 28539 | UNICODE_OBJS!$UNICODE_OBJS$ac_delim |
| 28540 | THREADHEADERS!$THREADHEADERS$ac_delim |
| 28541 | SRCDIRS!$SRCDIRS$ac_delim |
| 28542 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 28543 | _ACEOF |
| 28544 | |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 28545 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 27; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28546 | break |
| 28547 | elif $ac_last_try; then |
| 28548 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 28549 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28550 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28551 | else |
| 28552 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 28553 | fi |
| 28554 | done |
| 28555 | |
| 28556 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 28557 | if test -n "$ac_eof"; then |
| 28558 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 28559 | ac_eof=`expr $ac_eof + 1` |
| 28560 | fi |
| 28561 | |
| 28562 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28563 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 28564 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28565 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28566 | sed ' |
| 28567 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 28568 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 28569 | :n |
| 28570 | t n |
| 28571 | s/'"$ac_delim"'$/,g/; t |
| 28572 | s/$/\\/; p |
| 28573 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 28574 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 28575 | rm -f conf$$subs.sed |
| 28576 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28577 | :end |
| 28578 | s/|#_!!_#|//g |
| 28579 | CEOF$ac_eof |
| 28580 | _ACEOF |
| 28581 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28582 | |
| 28583 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 28584 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 28585 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 28586 | # (actually we leave an empty line to preserve line numbers). |
| 28587 | if test "x$srcdir" = x.; then |
| 28588 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 28589 | s/:*\$(srcdir):*/:/ |
| 28590 | s/:*\${srcdir}:*/:/ |
| 28591 | s/:*@srcdir@:*/:/ |
| 28592 | s/^\([^=]*=[ ]*\):*/\1/ |
| 28593 | s/:*$// |
| 28594 | s/^[^=]*=[ ]*$// |
| 28595 | }' |
| 28596 | fi |
| 28597 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28598 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28599 | fi # test -n "$CONFIG_FILES" |
| 28600 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28601 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28602 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28603 | do |
| 28604 | case $ac_tag in |
| 28605 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 28606 | esac |
| 28607 | case $ac_mode$ac_tag in |
| 28608 | :[FHL]*:*);; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28609 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 28610 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28611 | { (exit 1); exit 1; }; };; |
| 28612 | :[FH]-) ac_tag=-:-;; |
| 28613 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 28614 | esac |
| 28615 | ac_save_IFS=$IFS |
| 28616 | IFS=: |
| 28617 | set x $ac_tag |
| 28618 | IFS=$ac_save_IFS |
| 28619 | shift |
| 28620 | ac_file=$1 |
| 28621 | shift |
| 28622 | |
| 28623 | case $ac_mode in |
| 28624 | :L) ac_source=$1;; |
| 28625 | :[FH]) |
| 28626 | ac_file_inputs= |
| 28627 | for ac_f |
| 28628 | do |
| 28629 | case $ac_f in |
| 28630 | -) ac_f="$tmp/stdin";; |
| 28631 | *) # Look for the file first in the build tree, then in the source tree |
| 28632 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 28633 | # because $ac_f cannot contain `:'. |
| 28634 | test -f "$ac_f" || |
| 28635 | case $ac_f in |
| 28636 | [\\/$]*) false;; |
| 28637 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 28638 | esac || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28639 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 28640 | 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] | 28641 | { (exit 1); exit 1; }; };; |
| 28642 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28643 | ac_file_inputs="$ac_file_inputs $ac_f" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28644 | done |
| 28645 | |
| 28646 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 28647 | # use $as_me), people would be surprised to read: |
| 28648 | # /* config.h. Generated by config.status. */ |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28649 | configure_input="Generated from "`IFS=: |
| 28650 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28651 | if test x"$ac_file" != x-; then |
| 28652 | configure_input="$ac_file. $configure_input" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28653 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 28654 | echo "$as_me: creating $ac_file" >&6;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28655 | fi |
| 28656 | |
| 28657 | case $ac_tag in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28658 | *:-:* | *:-) cat >"$tmp/stdin";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28659 | esac |
| 28660 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28661 | esac |
| 28662 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28663 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28664 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28665 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 28666 | X"$ac_file" : 'X\(//\)$' \| \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28667 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28668 | echo X"$ac_file" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28669 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 28670 | s//\1/ |
| 28671 | q |
| 28672 | } |
| 28673 | /^X\(\/\/\)[^/].*/{ |
| 28674 | s//\1/ |
| 28675 | q |
| 28676 | } |
| 28677 | /^X\(\/\/\)$/{ |
| 28678 | s//\1/ |
| 28679 | q |
| 28680 | } |
| 28681 | /^X\(\/\).*/{ |
| 28682 | s//\1/ |
| 28683 | q |
| 28684 | } |
| 28685 | s/.*/./; q'` |
| 28686 | { as_dir="$ac_dir" |
| 28687 | case $as_dir in #( |
| 28688 | -*) as_dir=./$as_dir;; |
| 28689 | esac |
| 28690 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28691 | as_dirs= |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28692 | while :; do |
| 28693 | case $as_dir in #( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28694 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28695 | *) as_qdir=$as_dir;; |
| 28696 | esac |
| 28697 | as_dirs="'$as_qdir' $as_dirs" |
| 28698 | as_dir=`$as_dirname -- "$as_dir" || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28699 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28700 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 28701 | X"$as_dir" : 'X\(//\)$' \| \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28702 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28703 | echo X"$as_dir" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28704 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 28705 | s//\1/ |
| 28706 | q |
| 28707 | } |
| 28708 | /^X\(\/\/\)[^/].*/{ |
| 28709 | s//\1/ |
| 28710 | q |
| 28711 | } |
| 28712 | /^X\(\/\/\)$/{ |
| 28713 | s//\1/ |
| 28714 | q |
| 28715 | } |
| 28716 | /^X\(\/\).*/{ |
| 28717 | s//\1/ |
| 28718 | q |
| 28719 | } |
| 28720 | s/.*/./; q'` |
| 28721 | test -d "$as_dir" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28722 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28723 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28724 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 28725 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28726 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28727 | ac_builddir=. |
| 28728 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28729 | case "$ac_dir" in |
| 28730 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 28731 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28732 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28733 | # A ".." for each directory in $ac_dir_suffix. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28734 | 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] | 28735 | case $ac_top_builddir_sub in |
| 28736 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 28737 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 28738 | esac ;; |
| 28739 | esac |
| 28740 | ac_abs_top_builddir=$ac_pwd |
| 28741 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 28742 | # for backward compatibility: |
| 28743 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28744 | |
| 28745 | case $srcdir in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28746 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28747 | ac_srcdir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28748 | ac_top_srcdir=$ac_top_builddir_sub |
| 28749 | ac_abs_top_srcdir=$ac_pwd ;; |
| 28750 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28751 | ac_srcdir=$srcdir$ac_dir_suffix; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28752 | ac_top_srcdir=$srcdir |
| 28753 | ac_abs_top_srcdir=$srcdir ;; |
| 28754 | *) # Relative name. |
| 28755 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 28756 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 28757 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28758 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28759 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28760 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28761 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28762 | case $ac_mode in |
| 28763 | :F) |
| 28764 | # |
| 28765 | # CONFIG_FILE |
| 28766 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28767 | |
| 28768 | case $INSTALL in |
| 28769 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28770 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28771 | esac |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 28772 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28773 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28774 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28775 | # If the template does not know about datarootdir, expand it. |
| 28776 | # FIXME: This hack should be removed a few years after 2.60. |
| 28777 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 28778 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28779 | case `sed -n '/datarootdir/ { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28780 | p |
| 28781 | q |
| 28782 | } |
| 28783 | /@datadir@/p |
| 28784 | /@docdir@/p |
| 28785 | /@infodir@/p |
| 28786 | /@localedir@/p |
| 28787 | /@mandir@/p |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28788 | ' $ac_file_inputs` in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28789 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 28790 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28791 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 28792 | 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] | 28793 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28794 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28795 | ac_datarootdir_hack=' |
| 28796 | s&@datadir@&$datadir&g |
| 28797 | s&@docdir@&$docdir&g |
| 28798 | s&@infodir@&$infodir&g |
| 28799 | s&@localedir@&$localedir&g |
| 28800 | s&@mandir@&$mandir&g |
| 28801 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 28802 | esac |
| 28803 | _ACEOF |
| 28804 | |
| 28805 | # Neutralize VPATH when `$srcdir' = `.'. |
| 28806 | # Shell code in configure.ac might set extrasub. |
| 28807 | # FIXME: do we really want to maintain this feature? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28808 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28809 | sed "$ac_vpsub |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28810 | $extrasub |
| 28811 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28812 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28813 | :t |
| 28814 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28815 | s&@configure_input@&$configure_input&;t t |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28816 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 28817 | s&@srcdir@&$ac_srcdir&;t t |
| 28818 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 28819 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 28820 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 28821 | s&@builddir@&$ac_builddir&;t t |
| 28822 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 28823 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 28824 | s&@INSTALL@&$ac_INSTALL&;t t |
| 28825 | $ac_datarootdir_hack |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28826 | " $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] | 28827 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28828 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 28829 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 28830 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28831 | { 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] | 28832 | which seems to be undefined. Please make sure it is defined." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28833 | 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] | 28834 | 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] | 28835 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28836 | rm -f "$tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28837 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28838 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 28839 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 28840 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28841 | ;; |
| 28842 | :H) |
| 28843 | # |
| 28844 | # CONFIG_HEADER |
| 28845 | # |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28846 | _ACEOF |
| 28847 | |
| 28848 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 28849 | # substitutes the proper values into config.h.in to produce config.h. |
| 28850 | rm -f conftest.defines conftest.tail |
| 28851 | # First, append a space to every undef/define line, to ease matching. |
| 28852 | echo 's/$/ /' >conftest.defines |
| 28853 | # Then, protect against being on the right side of a sed subst, or in |
| 28854 | # an unquoted here document, in config.status. If some macros were |
| 28855 | # called several times there might be several #defines for the same |
| 28856 | # symbol, which is useless. But do not sort them, since the last |
| 28857 | # AC_DEFINE must be honored. |
| 28858 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 28859 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 28860 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 28861 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 28862 | # just an empty string. |
| 28863 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 28864 | ac_dB='\\)[ (].*,\\1define\\2' |
| 28865 | ac_dC=' ' |
| 28866 | ac_dD=' ,' |
| 28867 | |
| 28868 | uniq confdefs.h | |
| 28869 | sed -n ' |
| 28870 | t rset |
| 28871 | :rset |
| 28872 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 28873 | t ok |
| 28874 | d |
| 28875 | :ok |
| 28876 | s/[\\&,]/\\&/g |
| 28877 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 28878 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 28879 | ' >>conftest.defines |
| 28880 | |
| 28881 | # Remove the space that was appended to ease matching. |
| 28882 | # Then replace #undef with comments. This is necessary, for |
| 28883 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 28884 | # on some systems where configure will not decide to define it. |
| 28885 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 28886 | echo 's/ $// |
| 28887 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 28888 | |
| 28889 | # Break up conftest.defines: |
| 28890 | ac_max_sed_lines=50 |
| 28891 | |
| 28892 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 28893 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 28894 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 28895 | # et cetera. |
| 28896 | ac_in='$ac_file_inputs' |
| 28897 | ac_out='"$tmp/out1"' |
| 28898 | ac_nxt='"$tmp/out2"' |
| 28899 | |
| 28900 | while : |
| 28901 | do |
| 28902 | # Write a here document: |
| 28903 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28904 | # First, check the format of the line: |
| 28905 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 28906 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 28907 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 28908 | b |
| 28909 | :def |
| 28910 | _ACEOF |
| 28911 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 28912 | echo 'CEOF |
| 28913 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 28914 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 28915 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 28916 | grep . conftest.tail >/dev/null || break |
| 28917 | rm -f conftest.defines |
| 28918 | mv conftest.tail conftest.defines |
| 28919 | done |
| 28920 | rm -f conftest.defines conftest.tail |
| 28921 | |
| 28922 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 28923 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28924 | if test x"$ac_file" != x-; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28925 | echo "/* $configure_input */" >"$tmp/config.h" |
| 28926 | cat "$ac_result" >>"$tmp/config.h" |
| 28927 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 28928 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 28929 | echo "$as_me: $ac_file is unchanged" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28930 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28931 | rm -f $ac_file |
| 28932 | mv "$tmp/config.h" $ac_file |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28933 | fi |
| 28934 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28935 | echo "/* $configure_input */" |
| 28936 | cat "$ac_result" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28937 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28938 | rm -f "$tmp/out12" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28939 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 28940 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28941 | |
| 28942 | esac |
| 28943 | |
| 28944 | done # for ac_tag |
| 28945 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 28946 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28947 | { (exit 0); exit 0; } |
| 28948 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 28949 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28950 | ac_clean_files=$ac_clean_files_save |
| 28951 | |
| 28952 | |
| 28953 | # configure is writing to config.log, and then calls config.status. |
| 28954 | # config.status does its own redirection, appending to config.log. |
| 28955 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 28956 | # by configure, so config.status won't be able to write to it; its |
| 28957 | # output is simply discarded. So we exec the FD to /dev/null, |
| 28958 | # effectively closing config.log, so it can be properly (re)opened and |
| 28959 | # appended to by config.status. When coming back to configure, we |
| 28960 | # need to make the FD available again. |
| 28961 | if test "$no_create" != yes; then |
| 28962 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28963 | ac_config_status_args= |
| 28964 | test "$silent" = yes && |
| 28965 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28966 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28967 | $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] | 28968 | exec 5>>config.log |
| 28969 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 28970 | # would make configure fail if this is the last instruction. |
| 28971 | $ac_cs_success || { (exit 1); exit 1; } |
| 28972 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 28973 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 28974 | |
Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 28975 | echo "creating Modules/Setup" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 28976 | if test ! -f Modules/Setup |
| 28977 | then |
| 28978 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 28979 | fi |
| 28980 | |
Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 28981 | echo "creating Modules/Setup.local" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 28982 | if test ! -f Modules/Setup.local |
| 28983 | then |
| 28984 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 28985 | fi |
| 28986 | |
| 28987 | echo "creating Makefile" |
| 28988 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 28989 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 28990 | Modules/Setup.local Modules/Setup |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 28991 | |
| 28992 | case $ac_sys_system in |
| 28993 | BeOS) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28994 | { echo "$as_me:$LINENO: WARNING: |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 28995 | |
| 28996 | Support for BeOS is deprecated as of Python 2.6. |
| 28997 | See PEP 11 for the gory details. |
| 28998 | " >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28999 | echo "$as_me: WARNING: |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 29000 | |
| 29001 | Support for BeOS is deprecated as of Python 2.6. |
| 29002 | See PEP 11 for the gory details. |
| 29003 | " >&2;} |
| 29004 | ;; |
| 29005 | *) ;; |
| 29006 | esac |
| 29007 | |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 29008 | mv config.c Modules |