Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 2 | # From configure.in Revision: 74978 . |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.61 for python 2.7. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5 | # |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6 | # Report bugs to <http://bugs.python.org/>. |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 7 | # |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10 | # This configure script is free software; the Free Software Foundation |
| 11 | # gives unlimited permission to copy, distribute and modify it. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12 | ## --------------------- ## |
| 13 | ## M4sh Initialization. ## |
| 14 | ## --------------------- ## |
| 15 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16 | # Be more Bourne compatible |
| 17 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 19 | emulate sh |
| 20 | NULLCMD=: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22 | # is contrary to our usage. Disable this feature. |
| 23 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24 | setopt NO_GLOB_SUBST |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 25 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26 | case `(set -o) 2>/dev/null` in |
| 27 | *posix*) set -o posix ;; |
| 28 | esac |
| 29 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 30 | fi |
| 31 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 32 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 33 | |
| 34 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 35 | # PATH needs CR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 36 | # Avoid depending upon Character Ranges. |
| 37 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 38 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 39 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 40 | as_cr_digits='0123456789' |
| 41 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 42 | |
| 43 | # The user is always right. |
| 44 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 45 | echo "#! /bin/sh" >conf$$.sh |
| 46 | echo "exit 0" >>conf$$.sh |
| 47 | chmod +x conf$$.sh |
| 48 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 49 | PATH_SEPARATOR=';' |
| 50 | else |
| 51 | PATH_SEPARATOR=: |
| 52 | fi |
| 53 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 54 | fi |
| 55 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 56 | # Support unset when possible. |
| 57 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 58 | as_unset=unset |
| 59 | else |
| 60 | as_unset=false |
| 61 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 62 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 63 | |
| 64 | # IFS |
| 65 | # We need space, tab and new line, in precisely that order. Quoting is |
| 66 | # there to prevent editors from complaining about space-tab. |
| 67 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 68 | # splitting by setting IFS to empty value.) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 69 | as_nl=' |
| 70 | ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 71 | IFS=" "" $as_nl" |
| 72 | |
| 73 | # Find who we are. Look in the path if we contain no directory separator. |
| 74 | case $0 in |
| 75 | *[\\/]* ) as_myself=$0 ;; |
| 76 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 77 | for as_dir in $PATH |
| 78 | do |
| 79 | IFS=$as_save_IFS |
| 80 | test -z "$as_dir" && as_dir=. |
| 81 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 82 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 83 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 84 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 85 | ;; |
| 86 | esac |
| 87 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 88 | # in which case we are not to be found in the path. |
| 89 | if test "x$as_myself" = x; then |
| 90 | as_myself=$0 |
| 91 | fi |
| 92 | if test ! -f "$as_myself"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 93 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 94 | { (exit 1); exit 1; } |
| 95 | fi |
| 96 | |
| 97 | # Work around bugs in pre-3.0 UWIN ksh. |
| 98 | for as_var in ENV MAIL MAILPATH |
| 99 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 100 | done |
| 101 | PS1='$ ' |
| 102 | PS2='> ' |
| 103 | PS4='+ ' |
| 104 | |
| 105 | # NLS nuisances. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 106 | for as_var in \ |
| 107 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 108 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 109 | LC_TELEPHONE LC_TIME |
| 110 | do |
| 111 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 112 | eval $as_var=C; export $as_var |
| 113 | else |
| 114 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 115 | fi |
| 116 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 117 | |
| 118 | # Required to use basename. |
| 119 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 120 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 121 | as_expr=expr |
| 122 | else |
| 123 | as_expr=false |
| 124 | fi |
| 125 | |
| 126 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 127 | as_basename=basename |
| 128 | else |
| 129 | as_basename=false |
| 130 | fi |
| 131 | |
| 132 | |
| 133 | # Name of the executable. |
| 134 | as_me=`$as_basename -- "$0" || |
| 135 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 136 | X"$0" : 'X\(//\)$' \| \ |
| 137 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 138 | echo X/"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 139 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 140 | s//\1/ |
| 141 | q |
| 142 | } |
| 143 | /^X\/\(\/\/\)$/{ |
| 144 | s//\1/ |
| 145 | q |
| 146 | } |
| 147 | /^X\/\(\/\).*/{ |
| 148 | s//\1/ |
| 149 | q |
| 150 | } |
| 151 | s/.*/./; q'` |
| 152 | |
| 153 | # CDPATH. |
| 154 | $as_unset CDPATH |
| 155 | |
| 156 | |
| 157 | if test "x$CONFIG_SHELL" = x; then |
| 158 | if (eval ":") 2>/dev/null; then |
| 159 | as_have_required=yes |
| 160 | else |
| 161 | as_have_required=no |
| 162 | fi |
| 163 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 164 | if test $as_have_required = yes && (eval ": |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 165 | (as_func_return () { |
| 166 | (exit \$1) |
| 167 | } |
| 168 | as_func_success () { |
| 169 | as_func_return 0 |
| 170 | } |
| 171 | as_func_failure () { |
| 172 | as_func_return 1 |
| 173 | } |
| 174 | as_func_ret_success () { |
| 175 | return 0 |
| 176 | } |
| 177 | as_func_ret_failure () { |
| 178 | return 1 |
| 179 | } |
| 180 | |
| 181 | exitcode=0 |
| 182 | if as_func_success; then |
| 183 | : |
| 184 | else |
| 185 | exitcode=1 |
| 186 | echo as_func_success failed. |
| 187 | fi |
| 188 | |
| 189 | if as_func_failure; then |
| 190 | exitcode=1 |
| 191 | echo as_func_failure succeeded. |
| 192 | fi |
| 193 | |
| 194 | if as_func_ret_success; then |
| 195 | : |
| 196 | else |
| 197 | exitcode=1 |
| 198 | echo as_func_ret_success failed. |
| 199 | fi |
| 200 | |
| 201 | if as_func_ret_failure; then |
| 202 | exitcode=1 |
| 203 | echo as_func_ret_failure succeeded. |
| 204 | fi |
| 205 | |
| 206 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 207 | : |
| 208 | else |
| 209 | exitcode=1 |
| 210 | echo positional parameters were not saved. |
| 211 | fi |
| 212 | |
| 213 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 214 | |
| 215 | ( |
| 216 | as_lineno_1=\$LINENO |
| 217 | as_lineno_2=\$LINENO |
| 218 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 219 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 220 | ") 2> /dev/null; then |
| 221 | : |
| 222 | else |
| 223 | as_candidate_shells= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 225 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 226 | do |
| 227 | IFS=$as_save_IFS |
| 228 | test -z "$as_dir" && as_dir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 229 | case $as_dir in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 230 | /*) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 231 | for as_base in sh bash ksh sh5; do |
| 232 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 233 | done;; |
| 234 | esac |
| 235 | done |
| 236 | IFS=$as_save_IFS |
| 237 | |
| 238 | |
| 239 | for as_shell in $as_candidate_shells $SHELL; do |
| 240 | # Try only shells that exist, to save several forks. |
| 241 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 242 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
| 243 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 244 | emulate sh |
| 245 | NULLCMD=: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 246 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 247 | # is contrary to our usage. Disable this feature. |
| 248 | alias -g '${1+"$@"}'='"$@"' |
| 249 | setopt NO_GLOB_SUBST |
| 250 | else |
| 251 | case `(set -o) 2>/dev/null` in |
| 252 | *posix*) set -o posix ;; |
| 253 | esac |
| 254 | |
| 255 | fi |
| 256 | |
| 257 | |
| 258 | : |
| 259 | _ASEOF |
| 260 | }; then |
| 261 | CONFIG_SHELL=$as_shell |
| 262 | as_have_required=yes |
| 263 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 264 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 265 | emulate sh |
| 266 | NULLCMD=: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 267 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 268 | # is contrary to our usage. Disable this feature. |
| 269 | alias -g '${1+"$@"}'='"$@"' |
| 270 | setopt NO_GLOB_SUBST |
| 271 | else |
| 272 | case `(set -o) 2>/dev/null` in |
| 273 | *posix*) set -o posix ;; |
| 274 | esac |
| 275 | |
| 276 | fi |
| 277 | |
| 278 | |
| 279 | : |
| 280 | (as_func_return () { |
| 281 | (exit $1) |
| 282 | } |
| 283 | as_func_success () { |
| 284 | as_func_return 0 |
| 285 | } |
| 286 | as_func_failure () { |
| 287 | as_func_return 1 |
| 288 | } |
| 289 | as_func_ret_success () { |
| 290 | return 0 |
| 291 | } |
| 292 | as_func_ret_failure () { |
| 293 | return 1 |
| 294 | } |
| 295 | |
| 296 | exitcode=0 |
| 297 | if as_func_success; then |
| 298 | : |
| 299 | else |
| 300 | exitcode=1 |
| 301 | echo as_func_success failed. |
| 302 | fi |
| 303 | |
| 304 | if as_func_failure; then |
| 305 | exitcode=1 |
| 306 | echo as_func_failure succeeded. |
| 307 | fi |
| 308 | |
| 309 | if as_func_ret_success; then |
| 310 | : |
| 311 | else |
| 312 | exitcode=1 |
| 313 | echo as_func_ret_success failed. |
| 314 | fi |
| 315 | |
| 316 | if as_func_ret_failure; then |
| 317 | exitcode=1 |
| 318 | echo as_func_ret_failure succeeded. |
| 319 | fi |
| 320 | |
| 321 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 322 | : |
| 323 | else |
| 324 | exitcode=1 |
| 325 | echo positional parameters were not saved. |
| 326 | fi |
| 327 | |
| 328 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 329 | |
| 330 | ( |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 331 | as_lineno_1=$LINENO |
| 332 | as_lineno_2=$LINENO |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 333 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 334 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 335 | |
| 336 | _ASEOF |
| 337 | }; then |
| 338 | break |
| 339 | fi |
| 340 | |
| 341 | fi |
| 342 | |
| 343 | done |
| 344 | |
| 345 | if test "x$CONFIG_SHELL" != x; then |
| 346 | for as_var in BASH_ENV ENV |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 347 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 348 | done |
| 349 | export CONFIG_SHELL |
| 350 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 351 | fi |
| 352 | |
| 353 | |
| 354 | if test $as_have_required = no; then |
| 355 | echo This script requires a shell more modern than all the |
| 356 | echo shells that I found on your system. Please install a |
| 357 | echo modern shell, or manually run the script under such a |
| 358 | echo shell if you do have one. |
| 359 | { (exit 1); exit 1; } |
| 360 | fi |
| 361 | |
| 362 | |
| 363 | fi |
| 364 | |
| 365 | fi |
| 366 | |
| 367 | |
| 368 | |
| 369 | (eval "as_func_return () { |
| 370 | (exit \$1) |
| 371 | } |
| 372 | as_func_success () { |
| 373 | as_func_return 0 |
| 374 | } |
| 375 | as_func_failure () { |
| 376 | as_func_return 1 |
| 377 | } |
| 378 | as_func_ret_success () { |
| 379 | return 0 |
| 380 | } |
| 381 | as_func_ret_failure () { |
| 382 | return 1 |
| 383 | } |
| 384 | |
| 385 | exitcode=0 |
| 386 | if as_func_success; then |
| 387 | : |
| 388 | else |
| 389 | exitcode=1 |
| 390 | echo as_func_success failed. |
| 391 | fi |
| 392 | |
| 393 | if as_func_failure; then |
| 394 | exitcode=1 |
| 395 | echo as_func_failure succeeded. |
| 396 | fi |
| 397 | |
| 398 | if as_func_ret_success; then |
| 399 | : |
| 400 | else |
| 401 | exitcode=1 |
| 402 | echo as_func_ret_success failed. |
| 403 | fi |
| 404 | |
| 405 | if as_func_ret_failure; then |
| 406 | exitcode=1 |
| 407 | echo as_func_ret_failure succeeded. |
| 408 | fi |
| 409 | |
| 410 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 411 | : |
| 412 | else |
| 413 | exitcode=1 |
| 414 | echo positional parameters were not saved. |
| 415 | fi |
| 416 | |
| 417 | test \$exitcode = 0") || { |
| 418 | echo No shell found that supports shell functions. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 419 | echo Please tell autoconf@gnu.org about your system, |
| 420 | echo including any error possibly output before this |
| 421 | echo message |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 422 | } |
| 423 | |
| 424 | |
| 425 | |
| 426 | as_lineno_1=$LINENO |
| 427 | as_lineno_2=$LINENO |
| 428 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 429 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 430 | |
| 431 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 432 | # uniformly replaced by the line number. The first 'sed' inserts a |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 433 | # line-number line after each line using $LINENO; the second 'sed' |
| 434 | # does the real work. The second script uses 'N' to pair each |
| 435 | # line-number line with the line containing $LINENO, and appends |
| 436 | # trailing '-' during substitution so that $LINENO is not a special |
| 437 | # case at line end. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 438 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 439 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 440 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 441 | sed -n ' |
| 442 | p |
| 443 | /[$]LINENO/= |
| 444 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 445 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 446 | s/[$]LINENO.*/&-/ |
| 447 | t lineno |
| 448 | b |
| 449 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 450 | N |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 451 | :loop |
| 452 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 453 | t loop |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 454 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 455 | ' >$as_me.lineno && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 456 | chmod +x "$as_me.lineno" || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 457 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 458 | { (exit 1); exit 1; }; } |
| 459 | |
| 460 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 461 | # (the dirname of $[0] is not the place where we might find the |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 462 | # original and so on. Autoconf is especially sensitive to this). |
| 463 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 464 | # Exit status is that of the last command. |
| 465 | exit |
| 466 | } |
| 467 | |
| 468 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 469 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 470 | as_dirname=dirname |
| 471 | else |
| 472 | as_dirname=false |
| 473 | fi |
| 474 | |
| 475 | ECHO_C= ECHO_N= ECHO_T= |
| 476 | case `echo -n x` in |
| 477 | -n*) |
| 478 | case `echo 'x\c'` in |
| 479 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 480 | *) ECHO_C='\c';; |
| 481 | esac;; |
| 482 | *) |
| 483 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 484 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 485 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 486 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 487 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 488 | as_expr=expr |
| 489 | else |
| 490 | as_expr=false |
| 491 | fi |
| 492 | |
| 493 | rm -f conf$$ conf$$.exe conf$$.file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 494 | if test -d conf$$.dir; then |
| 495 | rm -f conf$$.dir/conf$$.file |
| 496 | else |
| 497 | rm -f conf$$.dir |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 498 | mkdir conf$$.dir |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 499 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 500 | echo >conf$$.file |
| 501 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 502 | as_ln_s='ln -s' |
| 503 | # ... but there are two gotchas: |
| 504 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 505 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 506 | # In both cases, we have to default to `cp -p'. |
| 507 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 508 | as_ln_s='cp -p' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 509 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 510 | as_ln_s=ln |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 511 | else |
| 512 | as_ln_s='cp -p' |
| 513 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 514 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 515 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 516 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 517 | if mkdir -p . 2>/dev/null; then |
| 518 | as_mkdir_p=: |
| 519 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 520 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 521 | as_mkdir_p=false |
| 522 | fi |
| 523 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 524 | if test -x / >/dev/null 2>&1; then |
| 525 | as_test_x='test -x' |
| 526 | else |
| 527 | if ls -dL / >/dev/null 2>&1; then |
| 528 | as_ls_L_option=L |
| 529 | else |
| 530 | as_ls_L_option= |
| 531 | fi |
| 532 | as_test_x=' |
| 533 | eval sh -c '\'' |
| 534 | if test -d "$1"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 535 | test -d "$1/."; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 536 | else |
| 537 | case $1 in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 538 | -*)set "./$1";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 539 | esac; |
| 540 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 541 | ???[sx]*):;;*)false;;esac;fi |
| 542 | '\'' sh |
| 543 | ' |
| 544 | fi |
| 545 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 546 | |
| 547 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 548 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 549 | |
| 550 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 551 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 552 | |
| 553 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 554 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 555 | exec 7<&0 </dev/null 6>&1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 556 | |
| 557 | # Name of the host. |
| 558 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 559 | # so uname gets run too. |
| 560 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 561 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 562 | # |
| 563 | # Initializations. |
| 564 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 565 | ac_default_prefix=/usr/local |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 566 | ac_clean_files= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 567 | ac_config_libobj_dir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 568 | LIBOBJS= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 569 | cross_compiling=no |
| 570 | subdirs= |
| 571 | MFLAGS= |
| 572 | MAKEFLAGS= |
| 573 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 574 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 575 | # Identity of this package. |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 576 | PACKAGE_NAME='python' |
| 577 | PACKAGE_TARNAME='python' |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 578 | PACKAGE_VERSION='2.7' |
| 579 | PACKAGE_STRING='python 2.7' |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 580 | PACKAGE_BUGREPORT='http://bugs.python.org/' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 581 | |
| 582 | ac_unique_file="Include/object.h" |
| 583 | # Factoring default headers for most tests. |
| 584 | ac_includes_default="\ |
| 585 | #include <stdio.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 586 | #ifdef HAVE_SYS_TYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 587 | # include <sys/types.h> |
| 588 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 589 | #ifdef HAVE_SYS_STAT_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 590 | # include <sys/stat.h> |
| 591 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 592 | #ifdef STDC_HEADERS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 593 | # include <stdlib.h> |
| 594 | # include <stddef.h> |
| 595 | #else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 596 | # ifdef HAVE_STDLIB_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 597 | # include <stdlib.h> |
| 598 | # endif |
| 599 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 600 | #ifdef HAVE_STRING_H |
| 601 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 602 | # include <memory.h> |
| 603 | # endif |
| 604 | # include <string.h> |
| 605 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 606 | #ifdef HAVE_STRINGS_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 607 | # include <strings.h> |
| 608 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 609 | #ifdef HAVE_INTTYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 610 | # include <inttypes.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 611 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 612 | #ifdef HAVE_STDINT_H |
| 613 | # include <stdint.h> |
| 614 | #endif |
| 615 | #ifdef HAVE_UNISTD_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 616 | # include <unistd.h> |
| 617 | #endif" |
| 618 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 619 | ac_subst_vars='SHELL |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 620 | PATH_SEPARATOR |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 621 | PACKAGE_NAME |
| 622 | PACKAGE_TARNAME |
| 623 | PACKAGE_VERSION |
| 624 | PACKAGE_STRING |
| 625 | PACKAGE_BUGREPORT |
| 626 | exec_prefix |
| 627 | prefix |
| 628 | program_transform_name |
| 629 | bindir |
| 630 | sbindir |
| 631 | libexecdir |
| 632 | datarootdir |
| 633 | datadir |
| 634 | sysconfdir |
| 635 | sharedstatedir |
| 636 | localstatedir |
| 637 | includedir |
| 638 | oldincludedir |
| 639 | docdir |
| 640 | infodir |
| 641 | htmldir |
| 642 | dvidir |
| 643 | pdfdir |
| 644 | psdir |
| 645 | libdir |
| 646 | localedir |
| 647 | mandir |
| 648 | DEFS |
| 649 | ECHO_C |
| 650 | ECHO_N |
| 651 | ECHO_T |
| 652 | LIBS |
| 653 | build_alias |
| 654 | host_alias |
| 655 | target_alias |
| 656 | VERSION |
| 657 | SOVERSION |
| 658 | CONFIG_ARGS |
| 659 | UNIVERSALSDK |
| 660 | ARCH_RUN_32BIT |
| 661 | PYTHONFRAMEWORK |
| 662 | PYTHONFRAMEWORKIDENTIFIER |
| 663 | PYTHONFRAMEWORKDIR |
| 664 | PYTHONFRAMEWORKPREFIX |
| 665 | PYTHONFRAMEWORKINSTALLDIR |
| 666 | FRAMEWORKINSTALLFIRST |
| 667 | FRAMEWORKINSTALLLAST |
| 668 | FRAMEWORKALTINSTALLFIRST |
| 669 | FRAMEWORKALTINSTALLLAST |
| 670 | FRAMEWORKUNIXTOOLSPREFIX |
| 671 | MACHDEP |
| 672 | SGI_ABI |
| 673 | EXTRAPLATDIR |
| 674 | EXTRAMACHDEPPATH |
| 675 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET |
| 676 | EXPORT_MACOSX_DEPLOYMENT_TARGET |
| 677 | CC |
| 678 | CFLAGS |
| 679 | LDFLAGS |
| 680 | CPPFLAGS |
| 681 | ac_ct_CC |
| 682 | EXEEXT |
| 683 | OBJEXT |
| 684 | CXX |
| 685 | MAINCC |
| 686 | CPP |
| 687 | GREP |
| 688 | EGREP |
| 689 | BUILDEXEEXT |
| 690 | LIBRARY |
| 691 | LDLIBRARY |
| 692 | DLLLIBRARY |
| 693 | BLDLIBRARY |
| 694 | LDLIBRARYDIR |
| 695 | INSTSONAME |
| 696 | RUNSHARED |
| 697 | LINKCC |
| 698 | GNULD |
| 699 | RANLIB |
| 700 | AR |
| 701 | ARFLAGS |
| 702 | SVNVERSION |
| 703 | INSTALL_PROGRAM |
| 704 | INSTALL_SCRIPT |
| 705 | INSTALL_DATA |
| 706 | LN |
| 707 | OPT |
| 708 | BASECFLAGS |
| 709 | UNIVERSAL_ARCH_FLAGS |
| 710 | OTHER_LIBTOOL_OPT |
| 711 | LIBTOOL_CRUFT |
| 712 | SO |
| 713 | LDSHARED |
| 714 | BLDSHARED |
| 715 | CCSHARED |
| 716 | LINKFORSHARED |
| 717 | CFLAGSFORSHARED |
| 718 | SHLIBS |
| 719 | USE_SIGNAL_MODULE |
| 720 | SIGNAL_OBJS |
| 721 | USE_THREAD_MODULE |
| 722 | LDLAST |
| 723 | THREADOBJ |
| 724 | DLINCLDIR |
| 725 | DYNLOADFILE |
| 726 | MACHDEP_OBJS |
| 727 | TRUE |
| 728 | LIBOBJS |
| 729 | HAVE_GETHOSTBYNAME_R_6_ARG |
| 730 | HAVE_GETHOSTBYNAME_R_5_ARG |
| 731 | HAVE_GETHOSTBYNAME_R_3_ARG |
| 732 | HAVE_GETHOSTBYNAME_R |
| 733 | HAVE_GETHOSTBYNAME |
| 734 | LIBM |
| 735 | LIBC |
| 736 | UNICODE_OBJS |
| 737 | THREADHEADERS |
| 738 | SRCDIRS |
| 739 | LTLIBOBJS' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 740 | ac_subst_files='' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 741 | ac_precious_vars='build_alias |
| 742 | host_alias |
| 743 | target_alias |
| 744 | CC |
| 745 | CFLAGS |
| 746 | LDFLAGS |
| 747 | LIBS |
| 748 | CPPFLAGS |
| 749 | CPP' |
| 750 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 751 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 752 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 753 | ac_init_help= |
| 754 | ac_init_version=false |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 755 | # The variables have the same names as the options, with |
| 756 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 757 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 758 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 759 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 760 | no_recursion= |
| 761 | prefix=NONE |
| 762 | program_prefix=NONE |
| 763 | program_suffix=NONE |
| 764 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 765 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 766 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 767 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 768 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 769 | x_includes=NONE |
| 770 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 771 | |
| 772 | # Installation directory options. |
| 773 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 774 | # and all the variables that are supposed to be based on exec_prefix |
| 775 | # by default will actually change. |
| 776 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 777 | # (The list follows the same order as the GNU Coding Standards.) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 778 | bindir='${exec_prefix}/bin' |
| 779 | sbindir='${exec_prefix}/sbin' |
| 780 | libexecdir='${exec_prefix}/libexec' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 781 | datarootdir='${prefix}/share' |
| 782 | datadir='${datarootdir}' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 783 | sysconfdir='${prefix}/etc' |
| 784 | sharedstatedir='${prefix}/com' |
| 785 | localstatedir='${prefix}/var' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 786 | includedir='${prefix}/include' |
| 787 | oldincludedir='/usr/include' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 788 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 789 | infodir='${datarootdir}/info' |
| 790 | htmldir='${docdir}' |
| 791 | dvidir='${docdir}' |
| 792 | pdfdir='${docdir}' |
| 793 | psdir='${docdir}' |
| 794 | libdir='${exec_prefix}/lib' |
| 795 | localedir='${datarootdir}/locale' |
| 796 | mandir='${datarootdir}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 797 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 798 | ac_prev= |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 799 | ac_dashdash= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 800 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 801 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 802 | # If the previous option needs an argument, assign it. |
| 803 | if test -n "$ac_prev"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 804 | eval $ac_prev=\$ac_option |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 805 | ac_prev= |
| 806 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 807 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 808 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 809 | case $ac_option in |
| 810 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 811 | *) ac_optarg=yes ;; |
| 812 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 813 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 814 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 815 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 816 | case $ac_dashdash$ac_option in |
| 817 | --) |
| 818 | ac_dashdash=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 819 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 820 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 821 | ac_prev=bindir ;; |
| 822 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 823 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 824 | |
| 825 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 826 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 827 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 828 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 829 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 830 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 831 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 832 | ac_prev=cache_file ;; |
| 833 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 834 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 835 | cache_file=$ac_optarg ;; |
| 836 | |
| 837 | --config-cache | -C) |
| 838 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 839 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 840 | -datadir | --datadir | --datadi | --datad) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 841 | ac_prev=datadir ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 842 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 843 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 844 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 845 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 846 | | --dataroo | --dataro | --datar) |
| 847 | ac_prev=datarootdir ;; |
| 848 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 849 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 850 | datarootdir=$ac_optarg ;; |
| 851 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 852 | -disable-* | --disable-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 853 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 854 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 855 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 856 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 857 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 858 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 859 | eval enable_$ac_feature=no ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 860 | |
| 861 | -docdir | --docdir | --docdi | --doc | --do) |
| 862 | ac_prev=docdir ;; |
| 863 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 864 | docdir=$ac_optarg ;; |
| 865 | |
| 866 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 867 | ac_prev=dvidir ;; |
| 868 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 869 | dvidir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 870 | |
| 871 | -enable-* | --enable-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 872 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 873 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 874 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 875 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 876 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 877 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 878 | eval enable_$ac_feature=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 879 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 880 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 881 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 882 | | --exec | --exe | --ex) |
| 883 | ac_prev=exec_prefix ;; |
| 884 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 885 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 886 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 887 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 888 | |
| 889 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 890 | # Obsolete; use --with-gas. |
| 891 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 892 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 893 | -help | --help | --hel | --he | -h) |
| 894 | ac_init_help=long ;; |
| 895 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 896 | ac_init_help=recursive ;; |
| 897 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 898 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 899 | |
| 900 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 901 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 902 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 903 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 904 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 905 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 906 | ac_prev=htmldir ;; |
| 907 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 908 | | --ht=*) |
| 909 | htmldir=$ac_optarg ;; |
| 910 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 911 | -includedir | --includedir | --includedi | --included | --include \ |
| 912 | | --includ | --inclu | --incl | --inc) |
| 913 | ac_prev=includedir ;; |
| 914 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 915 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 916 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 917 | |
| 918 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 919 | ac_prev=infodir ;; |
| 920 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 921 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 922 | |
| 923 | -libdir | --libdir | --libdi | --libd) |
| 924 | ac_prev=libdir ;; |
| 925 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 926 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 927 | |
| 928 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 929 | | --libexe | --libex | --libe) |
| 930 | ac_prev=libexecdir ;; |
| 931 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 932 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 933 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 934 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 935 | -localedir | --localedir | --localedi | --localed | --locale) |
| 936 | ac_prev=localedir ;; |
| 937 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 938 | localedir=$ac_optarg ;; |
| 939 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 940 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 941 | | --localstate | --localstat | --localsta | --localst | --locals) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 942 | ac_prev=localstatedir ;; |
| 943 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 944 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 945 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 946 | |
| 947 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 948 | ac_prev=mandir ;; |
| 949 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 950 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 951 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 952 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 953 | # Obsolete; use --without-fp. |
| 954 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 955 | |
| 956 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 957 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 958 | no_create=yes ;; |
| 959 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 960 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 961 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 962 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 963 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 964 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 965 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 966 | | --oldin | --oldi | --old | --ol | --o) |
| 967 | ac_prev=oldincludedir ;; |
| 968 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 969 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 970 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 971 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 972 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 973 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 974 | ac_prev=prefix ;; |
| 975 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 976 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 977 | |
| 978 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 979 | | --program-pre | --program-pr | --program-p) |
| 980 | ac_prev=program_prefix ;; |
| 981 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 982 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 983 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 984 | |
| 985 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 986 | | --program-suf | --program-su | --program-s) |
| 987 | ac_prev=program_suffix ;; |
| 988 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 989 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 990 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 991 | |
| 992 | -program-transform-name | --program-transform-name \ |
| 993 | | --program-transform-nam | --program-transform-na \ |
| 994 | | --program-transform-n | --program-transform- \ |
| 995 | | --program-transform | --program-transfor \ |
| 996 | | --program-transfo | --program-transf \ |
| 997 | | --program-trans | --program-tran \ |
| 998 | | --progr-tra | --program-tr | --program-t) |
| 999 | ac_prev=program_transform_name ;; |
| 1000 | -program-transform-name=* | --program-transform-name=* \ |
| 1001 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1002 | | --program-transform-n=* | --program-transform-=* \ |
| 1003 | | --program-transform=* | --program-transfor=* \ |
| 1004 | | --program-transfo=* | --program-transf=* \ |
| 1005 | | --program-trans=* | --program-tran=* \ |
| 1006 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1007 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1008 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1009 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1010 | ac_prev=pdfdir ;; |
| 1011 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1012 | pdfdir=$ac_optarg ;; |
| 1013 | |
| 1014 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1015 | ac_prev=psdir ;; |
| 1016 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1017 | psdir=$ac_optarg ;; |
| 1018 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1019 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1020 | | -silent | --silent | --silen | --sile | --sil) |
| 1021 | silent=yes ;; |
| 1022 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1023 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1024 | ac_prev=sbindir ;; |
| 1025 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1026 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1027 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1028 | |
| 1029 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1030 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1031 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1032 | | --sha | --sh) |
| 1033 | ac_prev=sharedstatedir ;; |
| 1034 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1035 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1036 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1037 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1038 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1039 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1040 | -site | --site | --sit) |
| 1041 | ac_prev=site ;; |
| 1042 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1043 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1044 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1045 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1046 | ac_prev=srcdir ;; |
| 1047 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1048 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1049 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1050 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1051 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1052 | ac_prev=sysconfdir ;; |
| 1053 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1054 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1055 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1056 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1057 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1058 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1059 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1060 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1061 | |
| 1062 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1063 | verbose=yes ;; |
| 1064 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1065 | -version | --version | --versio | --versi | --vers | -V) |
| 1066 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1067 | |
| 1068 | -with-* | --with-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1069 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1070 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1071 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1072 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1073 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1074 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1075 | eval with_$ac_package=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1076 | |
| 1077 | -without-* | --without-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1078 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1079 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1080 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1081 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1082 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1083 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1084 | eval with_$ac_package=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1085 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1086 | --x) |
| 1087 | # Obsolete; use --with-x. |
| 1088 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1089 | |
| 1090 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1091 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1092 | ac_prev=x_includes ;; |
| 1093 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1094 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1095 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1096 | |
| 1097 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1098 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1099 | ac_prev=x_libraries ;; |
| 1100 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1101 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1102 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1103 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1104 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1105 | Try \`$0 --help' for more information." >&2 |
| 1106 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1107 | ;; |
| 1108 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1109 | *=*) |
| 1110 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1111 | # Reject names that are not valid shell variable names. |
| 1112 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1113 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1114 | { (exit 1); exit 1; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1115 | eval $ac_envvar=\$ac_optarg |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1116 | export $ac_envvar ;; |
| 1117 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1118 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1119 | # FIXME: should be removed in autoconf 3.0. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1120 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1121 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1122 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1123 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1124 | ;; |
| 1125 | |
| 1126 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1127 | done |
| 1128 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1129 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1130 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1131 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1132 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1133 | fi |
| 1134 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1135 | # Be sure to have absolute directory names. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1136 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1137 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1138 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1139 | libdir localedir mandir |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1140 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1141 | eval ac_val=\$$ac_var |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1142 | case $ac_val in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1143 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1144 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1145 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1146 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1147 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1148 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1149 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1150 | # There might be people who depend on the old broken behavior: `$host' |
| 1151 | # used to hold the argument of --host etc. |
| 1152 | # FIXME: To remove some day. |
| 1153 | build=$build_alias |
| 1154 | host=$host_alias |
| 1155 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1156 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1157 | # FIXME: To remove some day. |
| 1158 | if test "x$host_alias" != x; then |
| 1159 | if test "x$build_alias" = x; then |
| 1160 | cross_compiling=maybe |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1161 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1162 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1163 | elif test "x$build_alias" != "x$host_alias"; then |
| 1164 | cross_compiling=yes |
| 1165 | fi |
| 1166 | fi |
| 1167 | |
| 1168 | ac_tool_prefix= |
| 1169 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1170 | |
| 1171 | test "$silent" = yes && exec 6>/dev/null |
| 1172 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1173 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1174 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1175 | ac_ls_di=`ls -di .` && |
| 1176 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1177 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1178 | { (exit 1); exit 1; }; } |
| 1179 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1180 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1181 | { (exit 1); exit 1; }; } |
| 1182 | |
| 1183 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1184 | # Find the source files, if location was not specified. |
| 1185 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1186 | ac_srcdir_defaulted=yes |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1187 | # Try the directory containing this script, then the parent directory. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1188 | ac_confdir=`$as_dirname -- "$0" || |
| 1189 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1190 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1191 | X"$0" : 'X\(//\)$' \| \ |
| 1192 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 1193 | echo X"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1194 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1195 | s//\1/ |
| 1196 | q |
| 1197 | } |
| 1198 | /^X\(\/\/\)[^/].*/{ |
| 1199 | s//\1/ |
| 1200 | q |
| 1201 | } |
| 1202 | /^X\(\/\/\)$/{ |
| 1203 | s//\1/ |
| 1204 | q |
| 1205 | } |
| 1206 | /^X\(\/\).*/{ |
| 1207 | s//\1/ |
| 1208 | q |
| 1209 | } |
| 1210 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1211 | srcdir=$ac_confdir |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1212 | if test ! -r "$srcdir/$ac_unique_file"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1213 | srcdir=.. |
| 1214 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1215 | else |
| 1216 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1217 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1218 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1219 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1220 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1221 | { (exit 1); exit 1; }; } |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 1222 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1223 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1224 | ac_abs_confdir=`( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1225 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 1226 | { (exit 1); exit 1; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1227 | pwd)` |
| 1228 | # When building in place, set srcdir=. |
| 1229 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1230 | srcdir=. |
| 1231 | fi |
| 1232 | # Remove unnecessary trailing slashes from srcdir. |
| 1233 | # Double slashes in file names in object file debugging info |
| 1234 | # mess up M-x gdb in Emacs. |
| 1235 | case $srcdir in |
| 1236 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1237 | esac |
| 1238 | for ac_var in $ac_precious_vars; do |
| 1239 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1240 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1241 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1242 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1243 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1244 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1245 | # |
| 1246 | # Report the --help message. |
| 1247 | # |
| 1248 | if test "$ac_init_help" = "long"; then |
| 1249 | # Omit some internal or obsolete options to make the list less imposing. |
| 1250 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1251 | cat <<_ACEOF |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1252 | \`configure' configures python 2.7 to adapt to many kinds of systems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1253 | |
| 1254 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1255 | |
| 1256 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1257 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1258 | |
| 1259 | Defaults for the options are specified in brackets. |
| 1260 | |
| 1261 | Configuration: |
| 1262 | -h, --help display this help and exit |
| 1263 | --help=short display options specific to this package |
| 1264 | --help=recursive display the short help of all the included packages |
| 1265 | -V, --version display version information and exit |
| 1266 | -q, --quiet, --silent do not print \`checking...' messages |
| 1267 | --cache-file=FILE cache test results in FILE [disabled] |
| 1268 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1269 | -n, --no-create do not create output files |
| 1270 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1271 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1272 | Installation directories: |
| 1273 | --prefix=PREFIX install architecture-independent files in PREFIX |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1274 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1275 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1276 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1277 | |
| 1278 | By default, \`make install' will install all the files in |
| 1279 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1280 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1281 | for instance \`--prefix=\$HOME'. |
| 1282 | |
| 1283 | For better control, use the options below. |
| 1284 | |
| 1285 | Fine tuning of the installation directories: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1286 | --bindir=DIR user executables [EPREFIX/bin] |
| 1287 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1288 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1289 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1290 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1291 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1292 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1293 | --includedir=DIR C header files [PREFIX/include] |
| 1294 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1295 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1296 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1297 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1298 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1299 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1300 | --docdir=DIR documentation root [DATAROOTDIR/doc/python] |
| 1301 | --htmldir=DIR html documentation [DOCDIR] |
| 1302 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1303 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1304 | --psdir=DIR ps documentation [DOCDIR] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1305 | _ACEOF |
| 1306 | |
| 1307 | cat <<\_ACEOF |
| 1308 | _ACEOF |
| 1309 | fi |
| 1310 | |
| 1311 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1312 | case $ac_init_help in |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1313 | short | recursive ) echo "Configuration of python 2.7:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1314 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1315 | cat <<\_ACEOF |
| 1316 | |
| 1317 | Optional Features: |
| 1318 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1319 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Brett Cannon | 91a1dec | 2008-02-13 19:15:44 +0000 | [diff] [blame] | 1320 | --enable-universalsdk[=SDKDIR] |
Brett Cannon | 9a8bb0e | 2008-02-03 02:07:55 +0000 | [diff] [blame] | 1321 | Build against Mac OS X 10.4u SDK (ppc/i386) |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1322 | --enable-framework[=INSTALLDIR] |
| 1323 | Build (MacOSX|Darwin) framework |
| 1324 | --enable-shared disable/enable building shared python library |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1325 | --enable-profiling enable C-level code profiling |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1326 | --enable-toolbox-glue disable/enable MacOSX glue code for extensions |
| 1327 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 1328 | --disable-ipv6 Disable ipv6 support |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 1329 | --enable-big-digits[=BITS] |
| 1330 | use big digits for Python longs [BITS=30] |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1331 | --enable-unicode[=ucs[24]] |
| 1332 | Enable Unicode strings (default is yes) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1333 | |
| 1334 | Optional Packages: |
| 1335 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1336 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1337 | --with-universal-archs=ARCH |
| 1338 | select architectures for universal build ("32-bit", |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 1339 | "64-bit", "3-way", "intel" or "all") |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1340 | --with-framework-name=FRAMEWORK |
| 1341 | specify an alternate name of the framework built |
| 1342 | with --enable-framework |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1343 | --without-gcc never use gcc |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 1344 | --with-cxx-main=<compiler> |
| 1345 | compile main() and link python executable with C++ |
| 1346 | compiler |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1347 | --with-suffix=.exe set executable suffix |
| 1348 | --with-pydebug build with Py_DEBUG defined |
| 1349 | --with-libs='lib1 ...' link against additional libs |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 1350 | --with-system-ffi build _ctypes module using an installed ffi library |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 1351 | --with-dbmliborder=db1:db2:... |
| 1352 | order to check db backends for dbm. Valid value is a |
| 1353 | colon separated string with the backend names |
| 1354 | `ndbm', `gdbm' and `bdb'. |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1355 | --with-signal-module disable/enable signal module |
| 1356 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 1357 | --with(out)-threads[=DIRECTORY] |
| 1358 | disable/enable thread support |
| 1359 | --with(out)-thread[=DIRECTORY] |
| 1360 | deprecated; use --with(out)-threads |
| 1361 | --with-pth use GNU pth threading libraries |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1362 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1363 | --with(out)-tsc enable/disable timestamp counter profile |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1364 | --with(out)-pymalloc disable/enable specialized mallocs |
| 1365 | --with-wctype-functions use wctype.h functions |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1366 | --with-fpectl enable SIGFPE catching |
| 1367 | --with-libm=STRING math library |
| 1368 | --with-libc=STRING C library |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1369 | |
| 1370 | Some influential environment variables: |
| 1371 | CC C compiler command |
| 1372 | CFLAGS C compiler flags |
| 1373 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1374 | nonstandard directory <lib dir> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1375 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1376 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1377 | you have headers in a nonstandard directory <include dir> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1378 | CPP C preprocessor |
| 1379 | |
| 1380 | Use these variables to override the choices made by `configure' or to help |
| 1381 | it to find libraries and programs with nonstandard names/locations. |
| 1382 | |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 1383 | Report bugs to <http://bugs.python.org/>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1384 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1385 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1386 | fi |
| 1387 | |
| 1388 | if test "$ac_init_help" = "recursive"; then |
| 1389 | # If there are subdirs, report their specific --help. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1390 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1391 | test -d "$ac_dir" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1392 | ac_builddir=. |
| 1393 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1394 | case "$ac_dir" in |
| 1395 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1396 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1397 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1398 | # A ".." for each directory in $ac_dir_suffix. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1399 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1400 | case $ac_top_builddir_sub in |
| 1401 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1402 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1403 | esac ;; |
| 1404 | esac |
| 1405 | ac_abs_top_builddir=$ac_pwd |
| 1406 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1407 | # for backward compatibility: |
| 1408 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1409 | |
| 1410 | case $srcdir in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1411 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1412 | ac_srcdir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1413 | ac_top_srcdir=$ac_top_builddir_sub |
| 1414 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1415 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1416 | ac_srcdir=$srcdir$ac_dir_suffix; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1417 | ac_top_srcdir=$srcdir |
| 1418 | ac_abs_top_srcdir=$srcdir ;; |
| 1419 | *) # Relative name. |
| 1420 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1421 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1422 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1423 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1424 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1425 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1426 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1427 | # Check for guested configure. |
| 1428 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1429 | echo && |
| 1430 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1431 | elif test -f "$ac_srcdir/configure"; then |
| 1432 | echo && |
| 1433 | $SHELL "$ac_srcdir/configure" --help=recursive |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1434 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1435 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1436 | fi || ac_status=$? |
| 1437 | cd "$ac_pwd" || { ac_status=$?; break; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1438 | done |
| 1439 | fi |
| 1440 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1441 | test -n "$ac_init_help" && exit $ac_status |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1442 | if $ac_init_version; then |
| 1443 | cat <<\_ACEOF |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1444 | python configure 2.7 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1445 | generated by GNU Autoconf 2.61 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1446 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1447 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1448 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1449 | This configure script is free software; the Free Software Foundation |
| 1450 | gives unlimited permission to copy, distribute and modify it. |
| 1451 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1452 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1453 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1454 | cat >config.log <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1455 | This file contains any messages produced by compilers while |
| 1456 | running configure, to aid debugging if configure makes a mistake. |
| 1457 | |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1458 | It was created by python $as_me 2.7, which was |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1459 | generated by GNU Autoconf 2.61. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1460 | |
| 1461 | $ $0 $@ |
| 1462 | |
| 1463 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1464 | exec 5>>config.log |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1465 | { |
| 1466 | cat <<_ASUNAME |
| 1467 | ## --------- ## |
| 1468 | ## Platform. ## |
| 1469 | ## --------- ## |
| 1470 | |
| 1471 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1472 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1473 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1474 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1475 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1476 | |
| 1477 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1478 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1479 | |
| 1480 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1481 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1482 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1483 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1484 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1485 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1486 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1487 | |
| 1488 | _ASUNAME |
| 1489 | |
| 1490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1491 | for as_dir in $PATH |
| 1492 | do |
| 1493 | IFS=$as_save_IFS |
| 1494 | test -z "$as_dir" && as_dir=. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1495 | echo "PATH: $as_dir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1496 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1497 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1498 | |
| 1499 | } >&5 |
| 1500 | |
| 1501 | cat >&5 <<_ACEOF |
| 1502 | |
| 1503 | |
| 1504 | ## ----------- ## |
| 1505 | ## Core tests. ## |
| 1506 | ## ----------- ## |
| 1507 | |
| 1508 | _ACEOF |
| 1509 | |
| 1510 | |
| 1511 | # Keep a trace of the command line. |
| 1512 | # Strip out --no-create and --no-recursion so they do not pile up. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1513 | # Strip out --silent because we don't want to record it for future runs. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1514 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1515 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1516 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1517 | ac_configure_args0= |
| 1518 | ac_configure_args1= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1519 | ac_must_keep_next=false |
| 1520 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1521 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1522 | for ac_arg |
| 1523 | do |
| 1524 | case $ac_arg in |
| 1525 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1526 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1527 | | -silent | --silent | --silen | --sile | --sil) |
| 1528 | continue ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1529 | *\'*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1530 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1531 | esac |
| 1532 | case $ac_pass in |
| 1533 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1534 | 2) |
| 1535 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1536 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1537 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1538 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1539 | case $ac_arg in |
| 1540 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1541 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1542 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1543 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1544 | case "$ac_configure_args0 " in |
| 1545 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1546 | esac |
| 1547 | ;; |
| 1548 | -* ) ac_must_keep_next=true ;; |
| 1549 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1550 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1551 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1552 | ;; |
| 1553 | esac |
| 1554 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1555 | done |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1556 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1557 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1558 | |
| 1559 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1560 | # config.log. We remove comments because anyway the quotes in there |
| 1561 | # would cause problems or look ugly. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1562 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1563 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1564 | trap 'exit_status=$? |
| 1565 | # Save into config.log some information that might help in debugging. |
| 1566 | { |
| 1567 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1568 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1569 | cat <<\_ASBOX |
| 1570 | ## ---------------- ## |
| 1571 | ## Cache variables. ## |
| 1572 | ## ---------------- ## |
| 1573 | _ASBOX |
| 1574 | echo |
| 1575 | # The following way of writing the cache mishandles newlines in values, |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1576 | ( |
| 1577 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1578 | eval ac_val=\$$ac_var |
| 1579 | case $ac_val in #( |
| 1580 | *${as_nl}*) |
| 1581 | case $ac_var in #( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1582 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1583 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1584 | esac |
| 1585 | case $ac_var in #( |
| 1586 | _ | IFS | as_nl) ;; #( |
| 1587 | *) $as_unset $ac_var ;; |
| 1588 | esac ;; |
| 1589 | esac |
| 1590 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1591 | (set) 2>&1 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1592 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1593 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1594 | sed -n \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1595 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1596 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1597 | ;; #( |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 1598 | *) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1599 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 1600 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1601 | esac | |
| 1602 | sort |
| 1603 | ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1604 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1605 | |
| 1606 | cat <<\_ASBOX |
| 1607 | ## ----------------- ## |
| 1608 | ## Output variables. ## |
| 1609 | ## ----------------- ## |
| 1610 | _ASBOX |
| 1611 | echo |
| 1612 | for ac_var in $ac_subst_vars |
| 1613 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1614 | eval ac_val=\$$ac_var |
| 1615 | case $ac_val in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1616 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1617 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1618 | echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1619 | done | sort |
| 1620 | echo |
| 1621 | |
| 1622 | if test -n "$ac_subst_files"; then |
| 1623 | cat <<\_ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1624 | ## ------------------- ## |
| 1625 | ## File substitutions. ## |
| 1626 | ## ------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1627 | _ASBOX |
| 1628 | echo |
| 1629 | for ac_var in $ac_subst_files |
| 1630 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1631 | eval ac_val=\$$ac_var |
| 1632 | case $ac_val in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1633 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1634 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1635 | echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1636 | done | sort |
| 1637 | echo |
| 1638 | fi |
| 1639 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1640 | if test -s confdefs.h; then |
| 1641 | cat <<\_ASBOX |
| 1642 | ## ----------- ## |
| 1643 | ## confdefs.h. ## |
| 1644 | ## ----------- ## |
| 1645 | _ASBOX |
| 1646 | echo |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1647 | cat confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1648 | echo |
| 1649 | fi |
| 1650 | test "$ac_signal" != 0 && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1651 | echo "$as_me: caught signal $ac_signal" |
| 1652 | echo "$as_me: exit $exit_status" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1653 | } >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1654 | rm -f core *.core core.conftest.* && |
| 1655 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1656 | exit $exit_status |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1657 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1658 | for ac_signal in 1 2 13 15; do |
| 1659 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1660 | done |
| 1661 | ac_signal=0 |
| 1662 | |
| 1663 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1664 | rm -f -r conftest* confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1665 | |
| 1666 | # Predefined preprocessor variables. |
| 1667 | |
| 1668 | cat >>confdefs.h <<_ACEOF |
| 1669 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1670 | _ACEOF |
| 1671 | |
| 1672 | |
| 1673 | cat >>confdefs.h <<_ACEOF |
| 1674 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1675 | _ACEOF |
| 1676 | |
| 1677 | |
| 1678 | cat >>confdefs.h <<_ACEOF |
| 1679 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1680 | _ACEOF |
| 1681 | |
| 1682 | |
| 1683 | cat >>confdefs.h <<_ACEOF |
| 1684 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1685 | _ACEOF |
| 1686 | |
| 1687 | |
| 1688 | cat >>confdefs.h <<_ACEOF |
| 1689 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1690 | _ACEOF |
| 1691 | |
| 1692 | |
| 1693 | # Let the site file select an alternate cache file if it wants to. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1694 | # Prefer explicitly selected file to automatically selected ones. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1695 | if test -n "$CONFIG_SITE"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1696 | set x "$CONFIG_SITE" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1697 | elif test "x$prefix" != xNONE; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1698 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1699 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1700 | set x "$ac_default_prefix/share/config.site" \ |
| 1701 | "$ac_default_prefix/etc/config.site" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1702 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1703 | shift |
| 1704 | for ac_site_file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1705 | do |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1706 | if test -r "$ac_site_file"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1707 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1708 | echo "$as_me: loading site script $ac_site_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1709 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1710 | . "$ac_site_file" |
| 1711 | fi |
| 1712 | done |
| 1713 | |
| 1714 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1715 | # Some versions of bash will fail to source /dev/null (special |
| 1716 | # files actually), so we avoid doing that. |
| 1717 | if test -f "$cache_file"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1718 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1719 | echo "$as_me: loading cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1720 | case $cache_file in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1721 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1722 | *) . "./$cache_file";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1723 | esac |
| 1724 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1725 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1726 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1727 | echo "$as_me: creating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1728 | >$cache_file |
| 1729 | fi |
| 1730 | |
| 1731 | # Check that the precious variables saved in the cache have kept the same |
| 1732 | # value. |
| 1733 | ac_cache_corrupted=false |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1734 | for ac_var in $ac_precious_vars; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1735 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1736 | eval ac_new_set=\$ac_env_${ac_var}_set |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1737 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1738 | eval ac_new_val=\$ac_env_${ac_var}_value |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1739 | case $ac_old_set,$ac_new_set in |
| 1740 | set,) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1741 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1742 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1743 | ac_cache_corrupted=: ;; |
| 1744 | ,set) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1745 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1746 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1747 | ac_cache_corrupted=: ;; |
| 1748 | ,);; |
| 1749 | *) |
| 1750 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1751 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1752 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1753 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1754 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1755 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1756 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1757 | ac_cache_corrupted=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1758 | fi;; |
| 1759 | esac |
| 1760 | # Pass precious variables to config.status. |
| 1761 | if test "$ac_new_set" = set; then |
| 1762 | case $ac_new_val in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1763 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1764 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1765 | esac |
| 1766 | case " $ac_configure_args " in |
| 1767 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1768 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1769 | esac |
| 1770 | fi |
| 1771 | done |
| 1772 | if $ac_cache_corrupted; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1773 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1774 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1775 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1776 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1777 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1778 | fi |
| 1779 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1780 | |
| 1781 | |
| 1782 | |
| 1783 | |
| 1784 | |
| 1785 | |
| 1786 | |
| 1787 | |
| 1788 | |
| 1789 | |
| 1790 | |
| 1791 | |
| 1792 | |
| 1793 | |
| 1794 | |
| 1795 | |
| 1796 | |
| 1797 | |
| 1798 | |
| 1799 | |
| 1800 | |
| 1801 | |
| 1802 | |
| 1803 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1804 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1805 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1806 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1807 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1808 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1809 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1810 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1811 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1812 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1813 | |
| 1814 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1815 | |
Georg Brandl | bcd64a3 | 2009-03-31 21:45:18 +0000 | [diff] [blame] | 1816 | if test "$prefix" != "/"; then |
| 1817 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` |
| 1818 | fi |
| 1819 | |
| 1820 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1821 | |
| 1822 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1823 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1824 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 1825 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 1826 | # with other autoconf-based packages that include Python.h |
| 1827 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 1828 | rm confdefs.h |
| 1829 | mv confdefs.h.new confdefs.h |
| 1830 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1831 | |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1832 | VERSION=2.7 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1833 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1834 | |
| 1835 | SOVERSION=1.0 |
| 1836 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1837 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1838 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1839 | |
| 1840 | cat >>confdefs.h <<\_ACEOF |
| 1841 | #define _GNU_SOURCE 1 |
| 1842 | _ACEOF |
| 1843 | |
| 1844 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 1845 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1846 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 1847 | # them. |
| 1848 | |
| 1849 | cat >>confdefs.h <<\_ACEOF |
| 1850 | #define _NETBSD_SOURCE 1 |
| 1851 | _ACEOF |
| 1852 | |
| 1853 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 1854 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1855 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 1856 | # them. |
| 1857 | |
| 1858 | cat >>confdefs.h <<\_ACEOF |
| 1859 | #define __BSD_VISIBLE 1 |
| 1860 | _ACEOF |
| 1861 | |
| 1862 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 1863 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1864 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
| 1865 | |
| 1866 | cat >>confdefs.h <<\_ACEOF |
| 1867 | #define _BSD_TYPES 1 |
| 1868 | _ACEOF |
| 1869 | |
| 1870 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1871 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1872 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable |
| 1873 | # them. |
| 1874 | |
| 1875 | cat >>confdefs.h <<\_ACEOF |
| 1876 | #define _DARWIN_C_SOURCE 1 |
| 1877 | _ACEOF |
| 1878 | |
| 1879 | |
| 1880 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1881 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1882 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1883 | # Arguments passed to configure. |
| 1884 | |
| 1885 | CONFIG_ARGS="$ac_configure_args" |
| 1886 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1887 | # Check whether --enable-universalsdk was given. |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1888 | if test "${enable_universalsdk+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1889 | enableval=$enable_universalsdk; |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1890 | case $enableval in |
| 1891 | yes) |
| 1892 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
| 1893 | ;; |
| 1894 | esac |
| 1895 | case $enableval in |
| 1896 | no) |
| 1897 | UNIVERSALSDK= |
| 1898 | enable_universalsdk= |
| 1899 | ;; |
| 1900 | *) |
| 1901 | UNIVERSALSDK=$enableval |
| 1902 | ;; |
| 1903 | esac |
| 1904 | |
| 1905 | else |
| 1906 | |
| 1907 | UNIVERSALSDK= |
| 1908 | enable_universalsdk= |
| 1909 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1910 | fi |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1911 | |
| 1912 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1913 | |
Benjamin Peterson | 0e6ea5d | 2008-07-16 20:17:04 +0000 | [diff] [blame] | 1914 | |
| 1915 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1916 | UNIVERSAL_ARCHS="32-bit" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1917 | { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5 |
| 1918 | echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1919 | |
| 1920 | # Check whether --with-universal-archs was given. |
| 1921 | if test "${with_universal_archs+set}" = set; then |
| 1922 | withval=$with_universal_archs; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1923 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 1924 | echo "${ECHO_T}$withval" >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1925 | UNIVERSAL_ARCHS="$withval" |
Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 1926 | if test "${enable_universalsdk}" ; then |
| 1927 | : |
| 1928 | else |
| 1929 | { { echo "$as_me:$LINENO: error: --with-universal-archs without --enable-universalsdk. See Mac/README" >&5 |
| 1930 | echo "$as_me: error: --with-universal-archs without --enable-universalsdk. See Mac/README" >&2;} |
| 1931 | { (exit 1); exit 1; }; } |
| 1932 | fi |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1933 | |
| 1934 | else |
| 1935 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1936 | { echo "$as_me:$LINENO: result: 32-bit" >&5 |
| 1937 | echo "${ECHO_T}32-bit" >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1938 | |
| 1939 | fi |
| 1940 | |
| 1941 | |
| 1942 | |
| 1943 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1944 | |
| 1945 | # Check whether --with-framework-name was given. |
| 1946 | if test "${with_framework_name+set}" = set; then |
| 1947 | withval=$with_framework_name; |
Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 1948 | if test "${enable_framework}"; then |
| 1949 | : |
| 1950 | else |
| 1951 | { { echo "$as_me:$LINENO: error: --with-framework-name without --enable-framework. See Mac/README" >&5 |
| 1952 | echo "$as_me: error: --with-framework-name without --enable-framework. See Mac/README" >&2;} |
| 1953 | { (exit 1); exit 1; }; } |
| 1954 | fi |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1955 | PYTHONFRAMEWORK=${withval} |
| 1956 | PYTHONFRAMEWORKDIR=${withval}.framework |
| 1957 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` |
| 1958 | |
| 1959 | else |
| 1960 | |
| 1961 | PYTHONFRAMEWORK=Python |
| 1962 | PYTHONFRAMEWORKDIR=Python.framework |
| 1963 | PYTHONFRAMEWORKIDENTIFIER=org.python.python |
| 1964 | |
| 1965 | fi |
| 1966 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1967 | # Check whether --enable-framework was given. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1968 | if test "${enable_framework+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1969 | enableval=$enable_framework; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1970 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1971 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1972 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1973 | esac |
| 1974 | case $enableval in |
| 1975 | no) |
| 1976 | PYTHONFRAMEWORK= |
| 1977 | PYTHONFRAMEWORKDIR=no-framework |
| 1978 | PYTHONFRAMEWORKPREFIX= |
| 1979 | PYTHONFRAMEWORKINSTALLDIR= |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 1980 | FRAMEWORKINSTALLFIRST= |
| 1981 | FRAMEWORKINSTALLLAST= |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 1982 | FRAMEWORKALTINSTALLFIRST= |
| 1983 | FRAMEWORKALTINSTALLLAST= |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 1984 | if test "x${prefix}" = "xNONE"; then |
| 1985 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 1986 | else |
| 1987 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 1988 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1989 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1990 | ;; |
| 1991 | *) |
| 1992 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1993 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 1994 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1995 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall" |
| 1996 | if test "$UNIVERSAL_ARCHS" = "all" |
| 1997 | then |
| 1998 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way" |
Ronald Oussoren | bb8cb0e | 2009-03-30 17:53:39 +0000 | [diff] [blame] | 1999 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way" |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2000 | else |
Ronald Oussoren | bb8cb0e | 2009-03-30 17:53:39 +0000 | [diff] [blame] | 2001 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2002 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" |
| 2003 | fi |
| 2004 | |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2005 | if test "x${prefix}" = "xNONE" ; then |
| 2006 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2007 | else |
| 2008 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2009 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2010 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2011 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2012 | # Add files for Mac specific code to the list of output |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2013 | # files: |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2014 | ac_config_files="$ac_config_files Mac/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2015 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2016 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2017 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2018 | ac_config_files="$ac_config_files Mac/IDLE/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2019 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2020 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" |
| 2021 | |
| 2022 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" |
| 2023 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2024 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2025 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2026 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2027 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2028 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2029 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2030 | PYTHONFRAMEWORKPREFIX= |
| 2031 | PYTHONFRAMEWORKINSTALLDIR= |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2032 | FRAMEWORKINSTALLFIRST= |
| 2033 | FRAMEWORKINSTALLLAST= |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2034 | FRAMEWORKALTINSTALLFIRST= |
| 2035 | FRAMEWORKALTINSTALLLAST= |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2036 | if test "x${prefix}" = "xNONE" ; then |
| 2037 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2038 | else |
| 2039 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2040 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2041 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2042 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2043 | if test "$UNIVERSAL_ARCHS" = "all" |
| 2044 | then |
| 2045 | FRAMEWORKINSTALLLAST=update4wayuniversal |
| 2046 | FRAMEWORKALTINSTALLLAST=update4wayuniversal |
| 2047 | fi |
| 2048 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2049 | fi |
| 2050 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2051 | |
| 2052 | |
| 2053 | |
| 2054 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2055 | |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2056 | |
| 2057 | |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2058 | |
| 2059 | |
| 2060 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2061 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2062 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 2063 | ## AC_HELP_STRING(--with-dyld, |
| 2064 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2065 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2066 | # Set name for machine-dependent library files |
| 2067 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2068 | { echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 2069 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2070 | if test -z "$MACHDEP" |
| 2071 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2072 | ac_sys_system=`uname -s` |
Georg Brandl | fe18a11 | 2009-09-04 07:55:14 +0000 | [diff] [blame] | 2073 | if test "$ac_sys_system" = "AIX" \ |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 2074 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2075 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2076 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2077 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2078 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2079 | ac_md_system=`echo $ac_sys_system | |
| 2080 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 2081 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 2082 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2083 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2084 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2085 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 2086 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 2087 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 2088 | atheos*) MACHDEP="atheos";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 2089 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2090 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2091 | esac |
| 2092 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2093 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2094 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 2095 | # disable features if it is defined, without any means to access these |
| 2096 | # features as extensions. For these systems, we skip the definition of |
| 2097 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 2098 | # some feature, make sure there is no alternative way to access this |
| 2099 | # feature. Also, when using wildcards, make sure you have verified the |
| 2100 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 2101 | # wildcard, and that the wildcard does not include future systems |
| 2102 | # (which may remove their limitations). |
| 2103 | case $ac_sys_system/$ac_sys_release in |
| 2104 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 2105 | # even though select is a POSIX function. Reported by J. Ribbens. |
Martin v. Löwis | 76bafc6 | 2003-10-03 13:47:44 +0000 | [diff] [blame] | 2106 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 2107 | OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123]) |
Martin v. Löwis | cb78de6 | 2007-12-29 18:49:21 +0000 | [diff] [blame] | 2108 | define_xopen_source=no |
| 2109 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 2110 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 2111 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 2112 | |
| 2113 | cat >>confdefs.h <<\_ACEOF |
| 2114 | #define _BSD_SOURCE 1 |
| 2115 | _ACEOF |
| 2116 | |
| 2117 | ;; |
Martin v. Löwis | 4d542ec | 2006-11-25 15:39:19 +0000 | [diff] [blame] | 2118 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
| 2119 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by |
| 2120 | # Marc Recht |
Benjamin Peterson | eac68f4 | 2008-11-16 17:54:55 +0000 | [diff] [blame] | 2121 | NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S]) |
Martin v. Löwis | 4d542ec | 2006-11-25 15:39:19 +0000 | [diff] [blame] | 2122 | define_xopen_source=no;; |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 2123 | # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| 2124 | # of union __?sigval. Reported by Stuart Bishop. |
| 2125 | SunOS/5.6) |
| 2126 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2127 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 2128 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2129 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 2130 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2131 | define_xopen_source=no;; |
| 2132 | # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE, |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 2133 | # but used in struct sockaddr.sa_family. Reported by Tim Rice. |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2134 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 2135 | define_xopen_source=no;; |
Martin v. Löwis | bb86d83 | 2008-11-04 20:40:09 +0000 | [diff] [blame] | 2136 | # On FreeBSD 4, the math functions C89 does not cover are never defined |
| 2137 | # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. |
| 2138 | FreeBSD/4.*) |
| 2139 | define_xopen_source=no;; |
| 2140 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if |
| 2141 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which |
| 2142 | # identifies itself as Darwin/7.* |
| 2143 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 2144 | # disables platform specific features beyond repair. |
| 2145 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 2146 | # has no effect, don't bother defining them |
| 2147 | Darwin/[6789].*) |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 2148 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2149 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
| 2150 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
| 2151 | # or has another value. By not (re)defining it, the defaults come in place. |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 2152 | AIX/4) |
| 2153 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2154 | AIX/5) |
| 2155 | if test `uname -r` -eq 1; then |
| 2156 | define_xopen_source=no |
| 2157 | fi |
| 2158 | ;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 2159 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from |
| 2160 | # defining NI_NUMERICHOST. |
| 2161 | QNX/6.3.2) |
| 2162 | define_xopen_source=no |
| 2163 | ;; |
Martin v. Löwis | a058836 | 2006-04-04 06:03:50 +0000 | [diff] [blame] | 2164 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2165 | esac |
| 2166 | |
| 2167 | if test $define_xopen_source = yes |
| 2168 | then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2169 | # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be |
| 2170 | # defined precisely as g++ defines it |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2171 | # Furthermore, on Solaris 10, XPG6 requires the use of a C99 |
| 2172 | # compiler |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2173 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2174 | SunOS/5.8|SunOS/5.9|SunOS/5.10) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2175 | |
| 2176 | cat >>confdefs.h <<\_ACEOF |
| 2177 | #define _XOPEN_SOURCE 500 |
| 2178 | _ACEOF |
| 2179 | |
| 2180 | ;; |
| 2181 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2182 | |
| 2183 | cat >>confdefs.h <<\_ACEOF |
| 2184 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2185 | _ACEOF |
| 2186 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2187 | ;; |
| 2188 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2189 | |
| 2190 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 2191 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 2192 | # several APIs are not declared. Since this is also needed in some |
| 2193 | # cases for HP-UX, we define it globally. |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2194 | # except for Solaris 10, where it must not be defined, |
| 2195 | # as it implies XPG4.2 |
| 2196 | case $ac_sys_system/$ac_sys_release in |
| 2197 | SunOS/5.10) |
| 2198 | ;; |
| 2199 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2200 | |
| 2201 | cat >>confdefs.h <<\_ACEOF |
| 2202 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 2203 | _ACEOF |
| 2204 | |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2205 | ;; |
| 2206 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2207 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 2208 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2209 | cat >>confdefs.h <<\_ACEOF |
| 2210 | #define _POSIX_C_SOURCE 200112L |
| 2211 | _ACEOF |
| 2212 | |
| 2213 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2214 | fi |
| 2215 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2216 | # |
| 2217 | # SGI compilers allow the specification of the both the ABI and the |
| 2218 | # ISA on the command line. Depending on the values of these switches, |
| 2219 | # different and often incompatable code will be generated. |
| 2220 | # |
| 2221 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 2222 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 2223 | # variable is also adjusted. |
| 2224 | # |
| 2225 | |
| 2226 | if test ! -z "$SGI_ABI" |
| 2227 | then |
| 2228 | CC="cc $SGI_ABI" |
| 2229 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 2230 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 2231 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2232 | { echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 2233 | echo "${ECHO_T}$MACHDEP" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2234 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2235 | # And add extra plat-mac for darwin |
| 2236 | |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 2237 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2238 | { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5 |
| 2239 | echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; } |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2240 | if test -z "$EXTRAPLATDIR" |
| 2241 | then |
| 2242 | case $MACHDEP in |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 2243 | darwin) |
| 2244 | EXTRAPLATDIR="\$(PLATMACDIRS)" |
| 2245 | EXTRAMACHDEPPATH="\$(PLATMACPATH)" |
| 2246 | ;; |
| 2247 | *) |
| 2248 | EXTRAPLATDIR="" |
| 2249 | EXTRAMACHDEPPATH="" |
| 2250 | ;; |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2251 | esac |
| 2252 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2253 | { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5 |
| 2254 | echo "${ECHO_T}$EXTRAPLATDIR" >&6; } |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2255 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2256 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 2257 | # it may influence the way we can build extensions, so distutils |
| 2258 | # needs to check it |
| 2259 | |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2260 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2261 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2262 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2263 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2264 | { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5 |
| 2265 | echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; } |
Mark Dickinson | 6513466 | 2008-04-25 16:11:04 +0000 | [diff] [blame] | 2266 | ac_sys_machine=`uname -m` |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2267 | { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5 |
| 2268 | echo "${ECHO_T}$ac_sys_machine" >&6; } |
Mark Dickinson | 6513466 | 2008-04-25 16:11:04 +0000 | [diff] [blame] | 2269 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2270 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2271 | |
| 2272 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 2273 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 2274 | # just to get things to compile and link. Users are free to override OPT |
| 2275 | # when running configure or make. The build should not break if they do. |
| 2276 | # BASECFLAGS should generally not be messed with, however. |
| 2277 | |
| 2278 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 2279 | # on that fiddles with OPT and BASECFLAGS? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2280 | { echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 2281 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2282 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2283 | # Check whether --with-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2284 | if test "${with_gcc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2285 | withval=$with_gcc; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2286 | case $withval in |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 2287 | no) CC=${CC:-cc} |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2288 | without_gcc=yes;; |
| 2289 | yes) CC=gcc |
| 2290 | without_gcc=no;; |
| 2291 | *) CC=$withval |
| 2292 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2293 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2294 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2295 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2296 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2297 | AIX*) CC=cc_r |
| 2298 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2299 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2300 | case $BE_HOST_CPU in |
| 2301 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 2302 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2303 | without_gcc=yes |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2304 | BASECFLAGS="$BASECFLAGS -export pragma" |
| 2305 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2306 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2307 | ;; |
| 2308 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 2309 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2310 | without_gcc=no |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2311 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2312 | ;; |
| 2313 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2314 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 2315 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2316 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2317 | ;; |
| 2318 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2319 | AR="\$(srcdir)/Modules/ar_beos" |
| 2320 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2321 | ;; |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 2322 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 2323 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2324 | fi |
| 2325 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2326 | { echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 2327 | echo "${ECHO_T}$without_gcc" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2328 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2329 | # If the user switches compilers, we can't believe the cache |
| 2330 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 2331 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2332 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2333 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2334 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2335 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 2336 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2337 | fi |
| 2338 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2339 | ac_ext=c |
| 2340 | ac_cpp='$CPP $CPPFLAGS' |
| 2341 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2342 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2343 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2344 | if test -n "$ac_tool_prefix"; then |
| 2345 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2346 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2347 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2348 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2349 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2351 | else |
| 2352 | if test -n "$CC"; then |
| 2353 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2354 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2356 | for as_dir in $PATH |
| 2357 | do |
| 2358 | IFS=$as_save_IFS |
| 2359 | test -z "$as_dir" && as_dir=. |
| 2360 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2361 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2362 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2363 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2364 | break 2 |
| 2365 | fi |
| 2366 | done |
| 2367 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2368 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2369 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2370 | fi |
| 2371 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2372 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2373 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2374 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2375 | echo "${ECHO_T}$CC" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2376 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2377 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2378 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2379 | fi |
| 2380 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2381 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2382 | fi |
| 2383 | if test -z "$ac_cv_prog_CC"; then |
| 2384 | ac_ct_CC=$CC |
| 2385 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2386 | set dummy gcc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2387 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2388 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2389 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2390 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2391 | else |
| 2392 | if test -n "$ac_ct_CC"; then |
| 2393 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2394 | else |
| 2395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2396 | for as_dir in $PATH |
| 2397 | do |
| 2398 | IFS=$as_save_IFS |
| 2399 | test -z "$as_dir" && as_dir=. |
| 2400 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2401 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2402 | ac_cv_prog_ac_ct_CC="gcc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2403 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2404 | break 2 |
| 2405 | fi |
| 2406 | done |
| 2407 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2408 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2409 | |
| 2410 | fi |
| 2411 | fi |
| 2412 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2413 | if test -n "$ac_ct_CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2414 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2415 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2416 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2417 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2418 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2419 | fi |
| 2420 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2421 | if test "x$ac_ct_CC" = x; then |
| 2422 | CC="" |
| 2423 | else |
| 2424 | case $cross_compiling:$ac_tool_warned in |
| 2425 | yes:) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2426 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2427 | whose name does not start with the host triplet. If you think this |
| 2428 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2429 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2430 | whose name does not start with the host triplet. If you think this |
| 2431 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2432 | ac_tool_warned=yes ;; |
| 2433 | esac |
| 2434 | CC=$ac_ct_CC |
| 2435 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2436 | else |
| 2437 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2438 | fi |
| 2439 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2440 | if test -z "$CC"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2441 | if test -n "$ac_tool_prefix"; then |
| 2442 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2443 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2444 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2445 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2446 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2448 | else |
| 2449 | if test -n "$CC"; then |
| 2450 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2451 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2453 | for as_dir in $PATH |
| 2454 | do |
| 2455 | IFS=$as_save_IFS |
| 2456 | test -z "$as_dir" && as_dir=. |
| 2457 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2458 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2459 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2460 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2461 | break 2 |
| 2462 | fi |
| 2463 | done |
| 2464 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2465 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2466 | |
| 2467 | fi |
| 2468 | fi |
| 2469 | CC=$ac_cv_prog_CC |
| 2470 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2471 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2472 | echo "${ECHO_T}$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2473 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2474 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2475 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2476 | fi |
| 2477 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2478 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2479 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2480 | fi |
| 2481 | if test -z "$CC"; then |
| 2482 | # Extract the first word of "cc", so it can be a program name with args. |
| 2483 | set dummy cc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2484 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2485 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2486 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2488 | else |
| 2489 | if test -n "$CC"; then |
| 2490 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2491 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2492 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2494 | for as_dir in $PATH |
| 2495 | do |
| 2496 | IFS=$as_save_IFS |
| 2497 | test -z "$as_dir" && as_dir=. |
| 2498 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2499 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2500 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2501 | ac_prog_rejected=yes |
| 2502 | continue |
| 2503 | fi |
| 2504 | ac_cv_prog_CC="cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2505 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2506 | break 2 |
| 2507 | fi |
| 2508 | done |
| 2509 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2510 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2511 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2512 | if test $ac_prog_rejected = yes; then |
| 2513 | # We found a bogon in the path, so make sure we never use it. |
| 2514 | set dummy $ac_cv_prog_CC |
| 2515 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2516 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2517 | # We chose a different compiler from the bogus one. |
| 2518 | # However, it has the same basename, so the bogon will be chosen |
| 2519 | # first if we set CC to just the basename; use the full file name. |
| 2520 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2521 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2522 | fi |
| 2523 | fi |
| 2524 | fi |
| 2525 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2526 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2527 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2528 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2529 | echo "${ECHO_T}$CC" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2530 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2531 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2532 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2533 | fi |
| 2534 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2535 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2536 | fi |
| 2537 | if test -z "$CC"; then |
| 2538 | if test -n "$ac_tool_prefix"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2539 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2540 | do |
| 2541 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2542 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2543 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2544 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2545 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2547 | else |
| 2548 | if test -n "$CC"; then |
| 2549 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2550 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2552 | for as_dir in $PATH |
| 2553 | do |
| 2554 | IFS=$as_save_IFS |
| 2555 | test -z "$as_dir" && as_dir=. |
| 2556 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2557 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2558 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2559 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2560 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2561 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2562 | done |
| 2563 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2564 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2565 | |
| 2566 | fi |
| 2567 | fi |
| 2568 | CC=$ac_cv_prog_CC |
| 2569 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2570 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2571 | echo "${ECHO_T}$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2572 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2573 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2574 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2575 | fi |
| 2576 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2577 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2578 | test -n "$CC" && break |
| 2579 | done |
| 2580 | fi |
| 2581 | if test -z "$CC"; then |
| 2582 | ac_ct_CC=$CC |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2583 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2584 | do |
| 2585 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2586 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2587 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2588 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2589 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2591 | else |
| 2592 | if test -n "$ac_ct_CC"; then |
| 2593 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2594 | else |
| 2595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2596 | for as_dir in $PATH |
| 2597 | do |
| 2598 | IFS=$as_save_IFS |
| 2599 | test -z "$as_dir" && as_dir=. |
| 2600 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2601 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2602 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2603 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2604 | break 2 |
| 2605 | fi |
| 2606 | done |
| 2607 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2608 | IFS=$as_save_IFS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2609 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2610 | fi |
| 2611 | fi |
| 2612 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2613 | if test -n "$ac_ct_CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2614 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2615 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2616 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2617 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2618 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2619 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2620 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2621 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2622 | test -n "$ac_ct_CC" && break |
| 2623 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2624 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2625 | if test "x$ac_ct_CC" = x; then |
| 2626 | CC="" |
| 2627 | else |
| 2628 | case $cross_compiling:$ac_tool_warned in |
| 2629 | yes:) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2630 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2631 | whose name does not start with the host triplet. If you think this |
| 2632 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2633 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2634 | whose name does not start with the host triplet. If you think this |
| 2635 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2636 | ac_tool_warned=yes ;; |
| 2637 | esac |
| 2638 | CC=$ac_ct_CC |
| 2639 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2640 | fi |
| 2641 | |
| 2642 | fi |
| 2643 | |
| 2644 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2645 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2646 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2647 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2648 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2649 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2650 | |
| 2651 | # Provide some information about the compiler. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2652 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2653 | ac_compiler=`set X $ac_compile; echo $2` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2654 | { (ac_try="$ac_compiler --version >&5" |
| 2655 | case "(($ac_try" in |
| 2656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2657 | *) ac_try_echo=$ac_try;; |
| 2658 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2660 | (eval "$ac_compiler --version >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2661 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2663 | (exit $ac_status); } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2664 | { (ac_try="$ac_compiler -v >&5" |
| 2665 | case "(($ac_try" in |
| 2666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2667 | *) ac_try_echo=$ac_try;; |
| 2668 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2670 | (eval "$ac_compiler -v >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2671 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2673 | (exit $ac_status); } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2674 | { (ac_try="$ac_compiler -V >&5" |
| 2675 | case "(($ac_try" in |
| 2676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2677 | *) ac_try_echo=$ac_try;; |
| 2678 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2680 | (eval "$ac_compiler -V >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2681 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2683 | (exit $ac_status); } |
| 2684 | |
| 2685 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2686 | /* confdefs.h. */ |
| 2687 | _ACEOF |
| 2688 | cat confdefs.h >>conftest.$ac_ext |
| 2689 | cat >>conftest.$ac_ext <<_ACEOF |
| 2690 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2691 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2692 | int |
| 2693 | main () |
| 2694 | { |
| 2695 | |
| 2696 | ; |
| 2697 | return 0; |
| 2698 | } |
| 2699 | _ACEOF |
| 2700 | ac_clean_files_save=$ac_clean_files |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2701 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2702 | # Try to create an executable without -o first, disregard a.out. |
| 2703 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2704 | # of exeext. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2705 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2706 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2707 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2708 | # |
| 2709 | # List of possible output files, starting from the most likely. |
| 2710 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2711 | # only as a last resort. b.out is created by i960 compilers. |
| 2712 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2713 | # |
| 2714 | # The IRIX 6 linker writes into existing files which may not be |
| 2715 | # executable, retaining their permissions. Remove them first so a |
| 2716 | # subsequent execution test works. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2717 | ac_rmfiles= |
| 2718 | for ac_file in $ac_files |
| 2719 | do |
| 2720 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2721 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2722 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2723 | esac |
| 2724 | done |
| 2725 | rm -f $ac_rmfiles |
| 2726 | |
| 2727 | if { (ac_try="$ac_link_default" |
| 2728 | case "(($ac_try" in |
| 2729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2730 | *) ac_try_echo=$ac_try;; |
| 2731 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2732 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2733 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2734 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2736 | (exit $ac_status); }; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2737 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2738 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2739 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2740 | # so that the user can short-circuit this test for compilers unknown to |
| 2741 | # Autoconf. |
| 2742 | for ac_file in $ac_files '' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2743 | do |
| 2744 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2745 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2746 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2747 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2748 | [ab].out ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2749 | # We found the default executable, but exeext='' is most |
| 2750 | # certainly right. |
| 2751 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2752 | *.* ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2753 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2754 | then :; else |
| 2755 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2756 | fi |
| 2757 | # We set ac_cv_exeext here because the later test for it is not |
| 2758 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2759 | # argument, so we may need to know it at that point already. |
| 2760 | # Even if this section looks crufty: it has the advantage of |
| 2761 | # actually working. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2762 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2763 | * ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2764 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2765 | esac |
| 2766 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2767 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2768 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2769 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2770 | ac_file='' |
| 2771 | fi |
| 2772 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2773 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2774 | echo "${ECHO_T}$ac_file" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2775 | if test -z "$ac_file"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2776 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2777 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2778 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2779 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2780 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2781 | echo "$as_me: error: C compiler cannot create executables |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2782 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2783 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2784 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2785 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2786 | ac_exeext=$ac_cv_exeext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2787 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2788 | # Check that the compiler produces executables we can run. If not, either |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2789 | # the compiler is broken, or we cross compile. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2790 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2791 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2792 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2793 | # If not cross compiling, check that we can run a simple program. |
| 2794 | if test "$cross_compiling" != yes; then |
| 2795 | if { ac_try='./$ac_file' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2796 | { (case "(($ac_try" in |
| 2797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2798 | *) ac_try_echo=$ac_try;; |
| 2799 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2801 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2802 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2804 | (exit $ac_status); }; }; then |
| 2805 | cross_compiling=no |
| 2806 | else |
| 2807 | if test "$cross_compiling" = maybe; then |
| 2808 | cross_compiling=yes |
| 2809 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2810 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2811 | If you meant to cross compile, use \`--host'. |
| 2812 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2813 | echo "$as_me: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2814 | If you meant to cross compile, use \`--host'. |
| 2815 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2816 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2817 | fi |
| 2818 | fi |
| 2819 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2820 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2821 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2822 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2823 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2824 | ac_clean_files=$ac_clean_files_save |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2825 | # Check that the compiler produces executables we can run. If not, either |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2826 | # the compiler is broken, or we cross compile. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2827 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2828 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2829 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2830 | echo "${ECHO_T}$cross_compiling" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2831 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2832 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2833 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2834 | if { (ac_try="$ac_link" |
| 2835 | case "(($ac_try" in |
| 2836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2837 | *) ac_try_echo=$ac_try;; |
| 2838 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2840 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2841 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2843 | (exit $ac_status); }; then |
| 2844 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2845 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2846 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2847 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2848 | for ac_file in conftest.exe conftest conftest.*; do |
| 2849 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2850 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2851 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2852 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2853 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2854 | * ) break;; |
| 2855 | esac |
| 2856 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2857 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2858 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2859 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2860 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2861 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2862 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2863 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2864 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2865 | rm -f conftest$ac_cv_exeext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2866 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2867 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2868 | |
| 2869 | rm -f conftest.$ac_ext |
| 2870 | EXEEXT=$ac_cv_exeext |
| 2871 | ac_exeext=$EXEEXT |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2872 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2873 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2874 | if test "${ac_cv_objext+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2876 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2877 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2878 | /* confdefs.h. */ |
| 2879 | _ACEOF |
| 2880 | cat confdefs.h >>conftest.$ac_ext |
| 2881 | cat >>conftest.$ac_ext <<_ACEOF |
| 2882 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2883 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2884 | int |
| 2885 | main () |
| 2886 | { |
| 2887 | |
| 2888 | ; |
| 2889 | return 0; |
| 2890 | } |
| 2891 | _ACEOF |
| 2892 | rm -f conftest.o conftest.obj |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2893 | if { (ac_try="$ac_compile" |
| 2894 | case "(($ac_try" in |
| 2895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2896 | *) ac_try_echo=$ac_try;; |
| 2897 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2899 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2900 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2902 | (exit $ac_status); }; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2903 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2904 | test -f "$ac_file" || continue; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2905 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2906 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2907 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2908 | break;; |
| 2909 | esac |
| 2910 | done |
| 2911 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2912 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2913 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2914 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2915 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2916 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2917 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2918 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2919 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2920 | fi |
| 2921 | |
| 2922 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2923 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2924 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2925 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2926 | OBJEXT=$ac_cv_objext |
| 2927 | ac_objext=$OBJEXT |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2928 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2929 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2930 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2932 | else |
| 2933 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2934 | /* confdefs.h. */ |
| 2935 | _ACEOF |
| 2936 | cat confdefs.h >>conftest.$ac_ext |
| 2937 | cat >>conftest.$ac_ext <<_ACEOF |
| 2938 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2939 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2940 | int |
| 2941 | main () |
| 2942 | { |
| 2943 | #ifndef __GNUC__ |
| 2944 | choke me |
| 2945 | #endif |
| 2946 | |
| 2947 | ; |
| 2948 | return 0; |
| 2949 | } |
| 2950 | _ACEOF |
| 2951 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2952 | if { (ac_try="$ac_compile" |
| 2953 | case "(($ac_try" in |
| 2954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2955 | *) ac_try_echo=$ac_try;; |
| 2956 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2957 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2958 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2959 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2960 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2961 | rm -f conftest.er1 |
| 2962 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2964 | (exit $ac_status); } && { |
| 2965 | test -z "$ac_c_werror_flag" || |
| 2966 | test ! -s conftest.err |
| 2967 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2968 | ac_compiler_gnu=yes |
| 2969 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2970 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2971 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2972 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2973 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2974 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2975 | |
| 2976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2977 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2978 | |
| 2979 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2980 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2981 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 2982 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2983 | ac_test_CFLAGS=${CFLAGS+set} |
| 2984 | ac_save_CFLAGS=$CFLAGS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2985 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2986 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2987 | if test "${ac_cv_prog_cc_g+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2989 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2990 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2991 | ac_c_werror_flag=yes |
| 2992 | ac_cv_prog_cc_g=no |
| 2993 | CFLAGS="-g" |
| 2994 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2995 | /* confdefs.h. */ |
| 2996 | _ACEOF |
| 2997 | cat confdefs.h >>conftest.$ac_ext |
| 2998 | cat >>conftest.$ac_ext <<_ACEOF |
| 2999 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3000 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3001 | int |
| 3002 | main () |
| 3003 | { |
| 3004 | |
| 3005 | ; |
| 3006 | return 0; |
| 3007 | } |
| 3008 | _ACEOF |
| 3009 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3010 | if { (ac_try="$ac_compile" |
| 3011 | case "(($ac_try" in |
| 3012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3013 | *) ac_try_echo=$ac_try;; |
| 3014 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3016 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3017 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3018 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3019 | rm -f conftest.er1 |
| 3020 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3022 | (exit $ac_status); } && { |
| 3023 | test -z "$ac_c_werror_flag" || |
| 3024 | test ! -s conftest.err |
| 3025 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3026 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3027 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3028 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3029 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3030 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3031 | CFLAGS="" |
| 3032 | cat >conftest.$ac_ext <<_ACEOF |
| 3033 | /* confdefs.h. */ |
| 3034 | _ACEOF |
| 3035 | cat confdefs.h >>conftest.$ac_ext |
| 3036 | cat >>conftest.$ac_ext <<_ACEOF |
| 3037 | /* end confdefs.h. */ |
| 3038 | |
| 3039 | int |
| 3040 | main () |
| 3041 | { |
| 3042 | |
| 3043 | ; |
| 3044 | return 0; |
| 3045 | } |
| 3046 | _ACEOF |
| 3047 | rm -f conftest.$ac_objext |
| 3048 | if { (ac_try="$ac_compile" |
| 3049 | case "(($ac_try" in |
| 3050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3051 | *) ac_try_echo=$ac_try;; |
| 3052 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3054 | (eval "$ac_compile") 2>conftest.er1 |
| 3055 | ac_status=$? |
| 3056 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3057 | rm -f conftest.er1 |
| 3058 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3060 | (exit $ac_status); } && { |
| 3061 | test -z "$ac_c_werror_flag" || |
| 3062 | test ! -s conftest.err |
| 3063 | } && test -s conftest.$ac_objext; then |
| 3064 | : |
| 3065 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3066 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3068 | |
| 3069 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3070 | CFLAGS="-g" |
| 3071 | cat >conftest.$ac_ext <<_ACEOF |
| 3072 | /* confdefs.h. */ |
| 3073 | _ACEOF |
| 3074 | cat confdefs.h >>conftest.$ac_ext |
| 3075 | cat >>conftest.$ac_ext <<_ACEOF |
| 3076 | /* end confdefs.h. */ |
| 3077 | |
| 3078 | int |
| 3079 | main () |
| 3080 | { |
| 3081 | |
| 3082 | ; |
| 3083 | return 0; |
| 3084 | } |
| 3085 | _ACEOF |
| 3086 | rm -f conftest.$ac_objext |
| 3087 | if { (ac_try="$ac_compile" |
| 3088 | case "(($ac_try" in |
| 3089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3090 | *) ac_try_echo=$ac_try;; |
| 3091 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3093 | (eval "$ac_compile") 2>conftest.er1 |
| 3094 | ac_status=$? |
| 3095 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3096 | rm -f conftest.er1 |
| 3097 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3099 | (exit $ac_status); } && { |
| 3100 | test -z "$ac_c_werror_flag" || |
| 3101 | test ! -s conftest.err |
| 3102 | } && test -s conftest.$ac_objext; then |
| 3103 | ac_cv_prog_cc_g=yes |
| 3104 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3105 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3107 | |
| 3108 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3109 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3110 | |
| 3111 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3112 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3113 | |
| 3114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3115 | fi |
| 3116 | |
| 3117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3118 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3119 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3120 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3121 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3122 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3123 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3124 | elif test $ac_cv_prog_cc_g = yes; then |
| 3125 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3126 | CFLAGS="-g -O2" |
| 3127 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3128 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3129 | fi |
| 3130 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3131 | if test "$GCC" = yes; then |
| 3132 | CFLAGS="-O2" |
| 3133 | else |
| 3134 | CFLAGS= |
| 3135 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3136 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3137 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3138 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3139 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3141 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3142 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3143 | ac_save_CC=$CC |
| 3144 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3145 | /* confdefs.h. */ |
| 3146 | _ACEOF |
| 3147 | cat confdefs.h >>conftest.$ac_ext |
| 3148 | cat >>conftest.$ac_ext <<_ACEOF |
| 3149 | /* end confdefs.h. */ |
| 3150 | #include <stdarg.h> |
| 3151 | #include <stdio.h> |
| 3152 | #include <sys/types.h> |
| 3153 | #include <sys/stat.h> |
| 3154 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3155 | struct buf { int x; }; |
| 3156 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3157 | static char *e (p, i) |
| 3158 | char **p; |
| 3159 | int i; |
| 3160 | { |
| 3161 | return p[i]; |
| 3162 | } |
| 3163 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3164 | { |
| 3165 | char *s; |
| 3166 | va_list v; |
| 3167 | va_start (v,p); |
| 3168 | s = g (p, va_arg (v,int)); |
| 3169 | va_end (v); |
| 3170 | return s; |
| 3171 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3172 | |
| 3173 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3174 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3175 | These don't provoke an error unfortunately, instead are silently treated |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3176 | as 'x'. The following induces an error, until -std is added to get |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3177 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3178 | array size at least. It's necessary to write '\x00'==0 to get something |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3179 | that's true only with -std. */ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3180 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3181 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3182 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3183 | inside strings and character constants. */ |
| 3184 | #define FOO(x) 'x' |
| 3185 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3186 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3187 | int test (int i, double x); |
| 3188 | struct s1 {int (*f) (int a);}; |
| 3189 | struct s2 {int (*f) (double a);}; |
| 3190 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3191 | int argc; |
| 3192 | char **argv; |
| 3193 | int |
| 3194 | main () |
| 3195 | { |
| 3196 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3197 | ; |
| 3198 | return 0; |
| 3199 | } |
| 3200 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3201 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3202 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3203 | do |
| 3204 | CC="$ac_save_CC $ac_arg" |
| 3205 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3206 | if { (ac_try="$ac_compile" |
| 3207 | case "(($ac_try" in |
| 3208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3209 | *) ac_try_echo=$ac_try;; |
| 3210 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3212 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3213 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3214 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3215 | rm -f conftest.er1 |
| 3216 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3218 | (exit $ac_status); } && { |
| 3219 | test -z "$ac_c_werror_flag" || |
| 3220 | test ! -s conftest.err |
| 3221 | } && test -s conftest.$ac_objext; then |
| 3222 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3223 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3224 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3225 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3226 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3227 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3228 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3229 | |
| 3230 | rm -f core conftest.err conftest.$ac_objext |
| 3231 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3232 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3233 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3234 | CC=$ac_save_CC |
| 3235 | |
| 3236 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3237 | # AC_CACHE_VAL |
| 3238 | case "x$ac_cv_prog_cc_c89" in |
| 3239 | x) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3240 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3241 | echo "${ECHO_T}none needed" >&6; } ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3242 | xno) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3243 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3244 | echo "${ECHO_T}unsupported" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3245 | *) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3246 | CC="$CC $ac_cv_prog_cc_c89" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3247 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3248 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3249 | esac |
| 3250 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3251 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3252 | ac_ext=c |
| 3253 | ac_cpp='$CPP $CPPFLAGS' |
| 3254 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3255 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3256 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3257 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3258 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3259 | |
| 3260 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3261 | { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5 |
| 3262 | echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3263 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3264 | # Check whether --with-cxx_main was given. |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3265 | if test "${with_cxx_main+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3266 | withval=$with_cxx_main; |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3267 | |
| 3268 | case $withval in |
| 3269 | no) with_cxx_main=no |
| 3270 | MAINCC='$(CC)';; |
| 3271 | yes) with_cxx_main=yes |
| 3272 | MAINCC='$(CXX)';; |
| 3273 | *) with_cxx_main=yes |
| 3274 | MAINCC=$withval |
| 3275 | if test -z "$CXX" |
| 3276 | then |
| 3277 | CXX=$withval |
| 3278 | fi;; |
| 3279 | esac |
| 3280 | else |
| 3281 | |
| 3282 | with_cxx_main=no |
| 3283 | MAINCC='$(CC)' |
| 3284 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3285 | fi |
| 3286 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3287 | { echo "$as_me:$LINENO: result: $with_cxx_main" >&5 |
| 3288 | echo "${ECHO_T}$with_cxx_main" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3289 | |
| 3290 | preset_cxx="$CXX" |
| 3291 | if test -z "$CXX" |
| 3292 | then |
| 3293 | case "$CC" in |
| 3294 | gcc) # Extract the first word of "g++", so it can be a program name with args. |
| 3295 | set dummy g++; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3296 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3297 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3298 | if test "${ac_cv_path_CXX+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3300 | else |
| 3301 | case $CXX in |
| 3302 | [\\/]* | ?:[\\/]*) |
| 3303 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3304 | ;; |
| 3305 | *) |
| 3306 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3307 | for as_dir in notfound |
| 3308 | do |
| 3309 | IFS=$as_save_IFS |
| 3310 | test -z "$as_dir" && as_dir=. |
| 3311 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3312 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3313 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3314 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3315 | break 2 |
| 3316 | fi |
| 3317 | done |
| 3318 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3319 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3320 | |
| 3321 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++" |
| 3322 | ;; |
| 3323 | esac |
| 3324 | fi |
| 3325 | CXX=$ac_cv_path_CXX |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3326 | if test -n "$CXX"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3327 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3328 | echo "${ECHO_T}$CXX" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3329 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3330 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3331 | echo "${ECHO_T}no" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3332 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3333 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3334 | ;; |
| 3335 | cc) # Extract the first word of "c++", so it can be a program name with args. |
| 3336 | set dummy c++; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3337 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3338 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3339 | if test "${ac_cv_path_CXX+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3341 | else |
| 3342 | case $CXX in |
| 3343 | [\\/]* | ?:[\\/]*) |
| 3344 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3345 | ;; |
| 3346 | *) |
| 3347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3348 | for as_dir in notfound |
| 3349 | do |
| 3350 | IFS=$as_save_IFS |
| 3351 | test -z "$as_dir" && as_dir=. |
| 3352 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3353 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3354 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3355 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3356 | break 2 |
| 3357 | fi |
| 3358 | done |
| 3359 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3360 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3361 | |
| 3362 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++" |
| 3363 | ;; |
| 3364 | esac |
| 3365 | fi |
| 3366 | CXX=$ac_cv_path_CXX |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3367 | if test -n "$CXX"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3368 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3369 | echo "${ECHO_T}$CXX" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3370 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3371 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3372 | echo "${ECHO_T}no" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3373 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3374 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3375 | ;; |
| 3376 | esac |
| 3377 | if test "$CXX" = "notfound" |
| 3378 | then |
| 3379 | CXX="" |
| 3380 | fi |
| 3381 | fi |
| 3382 | if test -z "$CXX" |
| 3383 | then |
| 3384 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 3385 | do |
| 3386 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3387 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3388 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3389 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3390 | if test "${ac_cv_prog_CXX+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3392 | else |
| 3393 | if test -n "$CXX"; then |
| 3394 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3395 | else |
| 3396 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3397 | for as_dir in $PATH |
| 3398 | do |
| 3399 | IFS=$as_save_IFS |
| 3400 | test -z "$as_dir" && as_dir=. |
| 3401 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3402 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3403 | ac_cv_prog_CXX="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3404 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3405 | break 2 |
| 3406 | fi |
| 3407 | done |
| 3408 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3409 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3410 | |
| 3411 | fi |
| 3412 | fi |
| 3413 | CXX=$ac_cv_prog_CXX |
| 3414 | if test -n "$CXX"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3415 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3416 | echo "${ECHO_T}$CXX" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3417 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3418 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3419 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3420 | fi |
| 3421 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3422 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3423 | test -n "$CXX" && break |
| 3424 | done |
| 3425 | test -n "$CXX" || CXX="notfound" |
| 3426 | |
| 3427 | if test "$CXX" = "notfound" |
| 3428 | then |
| 3429 | CXX="" |
| 3430 | fi |
| 3431 | fi |
| 3432 | if test "$preset_cxx" != "$CXX" |
| 3433 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3434 | { echo "$as_me:$LINENO: WARNING: |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3435 | |
| 3436 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3437 | If this is not intended, then set CXX on the configure command line. |
| 3438 | " >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3439 | echo "$as_me: WARNING: |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3440 | |
| 3441 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3442 | If this is not intended, then set CXX on the configure command line. |
| 3443 | " >&2;} |
| 3444 | fi |
| 3445 | |
| 3446 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3447 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3448 | |
| 3449 | ac_ext=c |
| 3450 | ac_cpp='$CPP $CPPFLAGS' |
| 3451 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3452 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3453 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3454 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3455 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3456 | # On Suns, sometimes $CPP names a directory. |
| 3457 | if test -n "$CPP" && test -d "$CPP"; then |
| 3458 | CPP= |
| 3459 | fi |
| 3460 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3461 | if test "${ac_cv_prog_CPP+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3463 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3464 | # Double quotes because CPP needs to be expanded |
| 3465 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3466 | do |
| 3467 | ac_preproc_ok=false |
| 3468 | for ac_c_preproc_warn_flag in '' yes |
| 3469 | do |
| 3470 | # Use a header file that comes with gcc, so configuring glibc |
| 3471 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3472 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3473 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3474 | # On the NeXT, cc -E runs the code through the compiler's parser, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3475 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3476 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3477 | /* confdefs.h. */ |
| 3478 | _ACEOF |
| 3479 | cat confdefs.h >>conftest.$ac_ext |
| 3480 | cat >>conftest.$ac_ext <<_ACEOF |
| 3481 | /* end confdefs.h. */ |
| 3482 | #ifdef __STDC__ |
| 3483 | # include <limits.h> |
| 3484 | #else |
| 3485 | # include <assert.h> |
| 3486 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3487 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3488 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3489 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3490 | case "(($ac_try" in |
| 3491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3492 | *) ac_try_echo=$ac_try;; |
| 3493 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3495 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3496 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3497 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3498 | rm -f conftest.er1 |
| 3499 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3501 | (exit $ac_status); } >/dev/null && { |
| 3502 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3503 | test ! -s conftest.err |
| 3504 | }; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3505 | : |
| 3506 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3507 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3509 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3510 | # Broken: fails on valid input. |
| 3511 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3512 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3513 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3514 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3515 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3516 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3517 | # can be detected and how. |
| 3518 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3519 | /* confdefs.h. */ |
| 3520 | _ACEOF |
| 3521 | cat confdefs.h >>conftest.$ac_ext |
| 3522 | cat >>conftest.$ac_ext <<_ACEOF |
| 3523 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3524 | #include <ac_nonexistent.h> |
| 3525 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3526 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3527 | case "(($ac_try" in |
| 3528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3529 | *) ac_try_echo=$ac_try;; |
| 3530 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3532 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3533 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3534 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3535 | rm -f conftest.er1 |
| 3536 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3538 | (exit $ac_status); } >/dev/null && { |
| 3539 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3540 | test ! -s conftest.err |
| 3541 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3542 | # Broken: success on invalid input. |
| 3543 | continue |
| 3544 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3545 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3546 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3547 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3548 | # Passes both tests. |
| 3549 | ac_preproc_ok=: |
| 3550 | break |
| 3551 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3552 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3553 | rm -f conftest.err conftest.$ac_ext |
| 3554 | |
| 3555 | done |
| 3556 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3557 | rm -f conftest.err conftest.$ac_ext |
| 3558 | if $ac_preproc_ok; then |
| 3559 | break |
| 3560 | fi |
| 3561 | |
| 3562 | done |
| 3563 | ac_cv_prog_CPP=$CPP |
| 3564 | |
| 3565 | fi |
| 3566 | CPP=$ac_cv_prog_CPP |
| 3567 | else |
| 3568 | ac_cv_prog_CPP=$CPP |
| 3569 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3570 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3571 | echo "${ECHO_T}$CPP" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3572 | ac_preproc_ok=false |
| 3573 | for ac_c_preproc_warn_flag in '' yes |
| 3574 | do |
| 3575 | # Use a header file that comes with gcc, so configuring glibc |
| 3576 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3577 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3578 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3579 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3580 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3581 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3582 | /* confdefs.h. */ |
| 3583 | _ACEOF |
| 3584 | cat confdefs.h >>conftest.$ac_ext |
| 3585 | cat >>conftest.$ac_ext <<_ACEOF |
| 3586 | /* end confdefs.h. */ |
| 3587 | #ifdef __STDC__ |
| 3588 | # include <limits.h> |
| 3589 | #else |
| 3590 | # include <assert.h> |
| 3591 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3592 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3593 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3594 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3595 | case "(($ac_try" in |
| 3596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3597 | *) ac_try_echo=$ac_try;; |
| 3598 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3600 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3601 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3602 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3603 | rm -f conftest.er1 |
| 3604 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3606 | (exit $ac_status); } >/dev/null && { |
| 3607 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3608 | test ! -s conftest.err |
| 3609 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3610 | : |
| 3611 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3612 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3613 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3614 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3615 | # Broken: fails on valid input. |
| 3616 | continue |
| 3617 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3618 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3619 | rm -f conftest.err conftest.$ac_ext |
| 3620 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3621 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3622 | # can be detected and how. |
| 3623 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3624 | /* confdefs.h. */ |
| 3625 | _ACEOF |
| 3626 | cat confdefs.h >>conftest.$ac_ext |
| 3627 | cat >>conftest.$ac_ext <<_ACEOF |
| 3628 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3629 | #include <ac_nonexistent.h> |
| 3630 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3631 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3632 | case "(($ac_try" in |
| 3633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3634 | *) ac_try_echo=$ac_try;; |
| 3635 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3636 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3637 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3638 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3639 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3640 | rm -f conftest.er1 |
| 3641 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3643 | (exit $ac_status); } >/dev/null && { |
| 3644 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3645 | test ! -s conftest.err |
| 3646 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3647 | # Broken: success on invalid input. |
| 3648 | continue |
| 3649 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3650 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3651 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3652 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3653 | # Passes both tests. |
| 3654 | ac_preproc_ok=: |
| 3655 | break |
| 3656 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3657 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3658 | rm -f conftest.err conftest.$ac_ext |
| 3659 | |
| 3660 | done |
| 3661 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3662 | rm -f conftest.err conftest.$ac_ext |
| 3663 | if $ac_preproc_ok; then |
| 3664 | : |
| 3665 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3666 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3667 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3668 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3669 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3670 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3671 | fi |
| 3672 | |
| 3673 | ac_ext=c |
| 3674 | ac_cpp='$CPP $CPPFLAGS' |
| 3675 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3676 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3677 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3678 | |
| 3679 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3680 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3681 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3682 | if test "${ac_cv_path_GREP+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3684 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3685 | # Extract the first word of "grep ggrep" to use in msg output |
| 3686 | if test -z "$GREP"; then |
| 3687 | set dummy grep ggrep; ac_prog_name=$2 |
| 3688 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3689 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3690 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3691 | ac_path_GREP_found=false |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3692 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3694 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3695 | do |
| 3696 | IFS=$as_save_IFS |
| 3697 | test -z "$as_dir" && as_dir=. |
| 3698 | for ac_prog in grep ggrep; do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3699 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3700 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3701 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 3702 | # Check for GNU ac_path_GREP and select it if it is found. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3703 | # Check for GNU $ac_path_GREP |
| 3704 | case `"$ac_path_GREP" --version 2>&1` in |
| 3705 | *GNU*) |
| 3706 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3707 | *) |
| 3708 | ac_count=0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3709 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3710 | while : |
| 3711 | do |
| 3712 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3713 | mv "conftest.tmp" "conftest.in" |
| 3714 | cp "conftest.in" "conftest.nl" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3715 | echo 'GREP' >> "conftest.nl" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3716 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3717 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3718 | ac_count=`expr $ac_count + 1` |
| 3719 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3720 | # Best one so far, save it but keep looking for a better one |
| 3721 | ac_cv_path_GREP="$ac_path_GREP" |
| 3722 | ac_path_GREP_max=$ac_count |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3723 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3724 | # 10*(2^10) chars as input seems more than enough |
| 3725 | test $ac_count -gt 10 && break |
| 3726 | done |
| 3727 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3728 | esac |
| 3729 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3730 | |
| 3731 | $ac_path_GREP_found && break 3 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3732 | done |
| 3733 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3734 | |
| 3735 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3736 | IFS=$as_save_IFS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3737 | |
| 3738 | |
| 3739 | fi |
| 3740 | |
| 3741 | GREP="$ac_cv_path_GREP" |
| 3742 | if test -z "$GREP"; then |
| 3743 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3744 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3745 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3746 | fi |
| 3747 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3748 | else |
| 3749 | ac_cv_path_GREP=$GREP |
| 3750 | fi |
| 3751 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3752 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3753 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3754 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3755 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3756 | GREP="$ac_cv_path_GREP" |
| 3757 | |
| 3758 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3759 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3760 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3761 | if test "${ac_cv_path_EGREP+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3763 | else |
| 3764 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3765 | then ac_cv_path_EGREP="$GREP -E" |
| 3766 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3767 | # Extract the first word of "egrep" to use in msg output |
| 3768 | if test -z "$EGREP"; then |
| 3769 | set dummy egrep; ac_prog_name=$2 |
| 3770 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3772 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3773 | ac_path_EGREP_found=false |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3774 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3776 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3777 | do |
| 3778 | IFS=$as_save_IFS |
| 3779 | test -z "$as_dir" && as_dir=. |
| 3780 | for ac_prog in egrep; do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3781 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3782 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3783 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 3784 | # Check for GNU ac_path_EGREP and select it if it is found. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3785 | # Check for GNU $ac_path_EGREP |
| 3786 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3787 | *GNU*) |
| 3788 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3789 | *) |
| 3790 | ac_count=0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3791 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3792 | while : |
| 3793 | do |
| 3794 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3795 | mv "conftest.tmp" "conftest.in" |
| 3796 | cp "conftest.in" "conftest.nl" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3797 | echo 'EGREP' >> "conftest.nl" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3798 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3799 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3800 | ac_count=`expr $ac_count + 1` |
| 3801 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3802 | # Best one so far, save it but keep looking for a better one |
| 3803 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3804 | ac_path_EGREP_max=$ac_count |
| 3805 | fi |
| 3806 | # 10*(2^10) chars as input seems more than enough |
| 3807 | test $ac_count -gt 10 && break |
| 3808 | done |
| 3809 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3810 | esac |
| 3811 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3812 | |
| 3813 | $ac_path_EGREP_found && break 3 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3814 | done |
| 3815 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3816 | |
| 3817 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3818 | IFS=$as_save_IFS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3819 | |
| 3820 | |
| 3821 | fi |
| 3822 | |
| 3823 | EGREP="$ac_cv_path_EGREP" |
| 3824 | if test -z "$EGREP"; then |
| 3825 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3826 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3827 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3828 | fi |
| 3829 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3830 | else |
| 3831 | ac_cv_path_EGREP=$EGREP |
| 3832 | fi |
| 3833 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3834 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3835 | fi |
| 3836 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3837 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3838 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3839 | EGREP="$ac_cv_path_EGREP" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3840 | |
| 3841 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3842 | |
| 3843 | { echo "$as_me:$LINENO: checking for AIX" >&5 |
| 3844 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } |
| 3845 | cat >conftest.$ac_ext <<_ACEOF |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3846 | /* confdefs.h. */ |
| 3847 | _ACEOF |
| 3848 | cat confdefs.h >>conftest.$ac_ext |
| 3849 | cat >>conftest.$ac_ext <<_ACEOF |
| 3850 | /* end confdefs.h. */ |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3851 | #ifdef _AIX |
| 3852 | yes |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3853 | #endif |
| 3854 | |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3855 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3856 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3857 | $EGREP "yes" >/dev/null 2>&1; then |
| 3858 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3859 | echo "${ECHO_T}yes" >&6; } |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3860 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3861 | #define _ALL_SOURCE 1 |
| 3862 | _ACEOF |
| 3863 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3864 | else |
| 3865 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3866 | echo "${ECHO_T}no" >&6; } |
| 3867 | fi |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 3868 | rm -f -r conftest* |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3869 | |
| 3870 | |
| 3871 | |
| 3872 | # Check for unsupported systems |
| 3873 | case $ac_sys_system/$ac_sys_release in |
| 3874 | atheos*|Linux*/1*) |
| 3875 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3876 | echo See README for details. |
| 3877 | exit 1;; |
| 3878 | esac |
| 3879 | |
| 3880 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3881 | { echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3882 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3883 | |
| 3884 | # Check whether --with-suffix was given. |
| 3885 | if test "${with_suffix+set}" = set; then |
| 3886 | withval=$with_suffix; |
| 3887 | case $withval in |
| 3888 | no) EXEEXT=;; |
| 3889 | yes) EXEEXT=.exe;; |
| 3890 | *) EXEEXT=$withval;; |
| 3891 | esac |
| 3892 | fi |
| 3893 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3894 | { echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3895 | echo "${ECHO_T}$EXEEXT" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3896 | |
| 3897 | # Test whether we're running on a non-case-sensitive system, in which |
| 3898 | # case we give a warning if no ext is given |
| 3899 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3900 | { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3901 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3902 | if test ! -d CaseSensitiveTestDir; then |
| 3903 | mkdir CaseSensitiveTestDir |
| 3904 | fi |
| 3905 | |
| 3906 | if test -d casesensitivetestdir |
| 3907 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3908 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3909 | echo "${ECHO_T}yes" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3910 | BUILDEXEEXT=.exe |
| 3911 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3912 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3913 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3914 | BUILDEXEEXT=$EXEEXT |
| 3915 | fi |
| 3916 | rmdir CaseSensitiveTestDir |
| 3917 | |
| 3918 | case $MACHDEP in |
| 3919 | bsdos*) |
| 3920 | case $CC in |
| 3921 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3922 | esac;; |
| 3923 | esac |
| 3924 | |
| 3925 | case $ac_sys_system in |
| 3926 | hp*|HP*) |
| 3927 | case $CC in |
| 3928 | cc|*/cc) CC="$CC -Ae";; |
| 3929 | esac;; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3930 | SunOS*) |
| 3931 | # Some functions have a prototype only with that define, e.g. confstr |
| 3932 | |
| 3933 | cat >>confdefs.h <<\_ACEOF |
| 3934 | #define __EXTENSIONS__ 1 |
| 3935 | _ACEOF |
| 3936 | |
| 3937 | ;; |
| 3938 | esac |
| 3939 | |
| 3940 | |
| 3941 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3942 | { echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3943 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3944 | if test -z "$LIBRARY" |
| 3945 | then |
| 3946 | LIBRARY='libpython$(VERSION).a' |
| 3947 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3948 | { echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3949 | echo "${ECHO_T}$LIBRARY" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3950 | |
| 3951 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 3952 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3953 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3954 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3955 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3956 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3957 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3958 | # DLLLIBRARY is the shared (i.e., DLL) library. |
| 3959 | # |
| 3960 | # RUNSHARED is used to run shared python without installed libraries |
| 3961 | # |
| 3962 | # INSTSONAME is the name of the shared library that will be use to install |
| 3963 | # on the system - some systems like version suffix, others don't |
| 3964 | |
| 3965 | |
| 3966 | |
| 3967 | |
| 3968 | |
| 3969 | |
| 3970 | LDLIBRARY="$LIBRARY" |
| 3971 | BLDLIBRARY='$(LDLIBRARY)' |
| 3972 | INSTSONAME='$(LDLIBRARY)' |
| 3973 | DLLLIBRARY='' |
| 3974 | LDLIBRARYDIR='' |
| 3975 | RUNSHARED='' |
| 3976 | |
| 3977 | # LINKCC is the command that links the python executable -- default is $(CC). |
| 3978 | # If CXX is set, and if it is needed to link a main function that was |
| 3979 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3980 | # python might then depend on the C++ runtime |
| 3981 | # This is altered for AIX in order to build the export list before |
| 3982 | # linking. |
| 3983 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3984 | { echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3985 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3986 | if test -z "$LINKCC" |
| 3987 | then |
| 3988 | LINKCC='$(PURIFY) $(MAINCC)' |
| 3989 | case $ac_sys_system in |
| 3990 | AIX*) |
| 3991 | exp_extra="\"\"" |
| 3992 | if test $ac_sys_release -ge 5 -o \ |
| 3993 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 3994 | exp_extra="." |
| 3995 | fi |
| 3996 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3997 | QNX*) |
| 3998 | # qcc must be used because the other compilers do not |
| 3999 | # support -N. |
| 4000 | LINKCC=qcc;; |
| 4001 | esac |
| 4002 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4003 | { echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 4004 | echo "${ECHO_T}$LINKCC" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4005 | |
| 4006 | # GNULD is set to "yes" if the GNU linker is used. If this goes wrong |
| 4007 | # make sure we default having it set to "no": this is used by |
| 4008 | # distutils.unixccompiler to know if it should add --enable-new-dtags |
| 4009 | # to linker command lines, and failing to detect GNU ld simply results |
| 4010 | # in the same bahaviour as before. |
| 4011 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4012 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 4013 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4014 | ac_prog=ld |
| 4015 | if test "$GCC" = yes; then |
| 4016 | ac_prog=`$CC -print-prog-name=ld` |
| 4017 | fi |
| 4018 | case `"$ac_prog" -V 2>&1 < /dev/null` in |
| 4019 | *GNU*) |
| 4020 | GNULD=yes;; |
| 4021 | *) |
| 4022 | GNULD=no;; |
| 4023 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4024 | { echo "$as_me:$LINENO: result: $GNULD" >&5 |
| 4025 | echo "${ECHO_T}$GNULD" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4026 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4027 | { echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 4028 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4029 | # Check whether --enable-shared was given. |
| 4030 | if test "${enable_shared+set}" = set; then |
| 4031 | enableval=$enable_shared; |
| 4032 | fi |
| 4033 | |
| 4034 | |
| 4035 | if test -z "$enable_shared" |
| 4036 | then |
| 4037 | case $ac_sys_system in |
| 4038 | CYGWIN* | atheos*) |
| 4039 | enable_shared="yes";; |
| 4040 | *) |
| 4041 | enable_shared="no";; |
| 4042 | esac |
| 4043 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4044 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 4045 | echo "${ECHO_T}$enable_shared" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4046 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4047 | { echo "$as_me:$LINENO: checking for --enable-profiling" >&5 |
| 4048 | echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4049 | # Check whether --enable-profiling was given. |
| 4050 | if test "${enable_profiling+set}" = set; then |
| 4051 | enableval=$enable_profiling; ac_save_cc="$CC" |
| 4052 | CC="$CC -pg" |
| 4053 | if test "$cross_compiling" = yes; then |
| 4054 | ac_enable_profiling="no" |
| 4055 | else |
| 4056 | cat >conftest.$ac_ext <<_ACEOF |
| 4057 | /* confdefs.h. */ |
| 4058 | _ACEOF |
| 4059 | cat confdefs.h >>conftest.$ac_ext |
| 4060 | cat >>conftest.$ac_ext <<_ACEOF |
| 4061 | /* end confdefs.h. */ |
| 4062 | int main() { return 0; } |
| 4063 | _ACEOF |
| 4064 | rm -f conftest$ac_exeext |
| 4065 | if { (ac_try="$ac_link" |
| 4066 | case "(($ac_try" in |
| 4067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4068 | *) ac_try_echo=$ac_try;; |
| 4069 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4071 | (eval "$ac_link") 2>&5 |
| 4072 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4074 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4075 | { (case "(($ac_try" in |
| 4076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4077 | *) ac_try_echo=$ac_try;; |
| 4078 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4080 | (eval "$ac_try") 2>&5 |
| 4081 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4083 | (exit $ac_status); }; }; then |
| 4084 | ac_enable_profiling="yes" |
| 4085 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4086 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4087 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4088 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4089 | |
| 4090 | ( exit $ac_status ) |
| 4091 | ac_enable_profiling="no" |
| 4092 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4093 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4094 | fi |
| 4095 | |
| 4096 | |
| 4097 | CC="$ac_save_cc" |
| 4098 | fi |
| 4099 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4100 | { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5 |
| 4101 | echo "${ECHO_T}$ac_enable_profiling" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4102 | |
| 4103 | case "$ac_enable_profiling" in |
| 4104 | "yes") |
| 4105 | BASECFLAGS="-pg $BASECFLAGS" |
| 4106 | LDFLAGS="-pg $LDFLAGS" |
| 4107 | ;; |
| 4108 | esac |
| 4109 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4110 | { echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 4111 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4112 | |
| 4113 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 4114 | # library that we build, but we do not want to link against it (we |
| 4115 | # will find it with a -framework option). For this reason there is an |
| 4116 | # extra variable BLDLIBRARY against which Python and the extension |
| 4117 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 4118 | # LDLIBRARY, but empty for MacOSX framework builds. |
| 4119 | if test "$enable_framework" |
| 4120 | then |
| 4121 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 4122 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
| 4123 | BLDLIBRARY='' |
| 4124 | else |
| 4125 | BLDLIBRARY='$(LDLIBRARY)' |
| 4126 | fi |
| 4127 | |
| 4128 | # Other platforms follow |
| 4129 | if test $enable_shared = "yes"; then |
| 4130 | |
| 4131 | cat >>confdefs.h <<\_ACEOF |
| 4132 | #define Py_ENABLE_SHARED 1 |
| 4133 | _ACEOF |
| 4134 | |
| 4135 | case $ac_sys_system in |
| 4136 | BeOS*) |
| 4137 | LDLIBRARY='libpython$(VERSION).so' |
| 4138 | ;; |
| 4139 | CYGWIN*) |
| 4140 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4141 | DLLLIBRARY='libpython$(VERSION).dll' |
| 4142 | ;; |
| 4143 | SunOS*) |
| 4144 | LDLIBRARY='libpython$(VERSION).so' |
| 4145 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4146 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4147 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4148 | ;; |
| 4149 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*) |
| 4150 | LDLIBRARY='libpython$(VERSION).so' |
| 4151 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4152 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4153 | case $ac_sys_system in |
| 4154 | FreeBSD*) |
| 4155 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
| 4156 | ;; |
| 4157 | esac |
| 4158 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4159 | ;; |
| 4160 | hp*|HP*) |
| 4161 | case `uname -m` in |
| 4162 | ia64) |
| 4163 | LDLIBRARY='libpython$(VERSION).so' |
| 4164 | ;; |
| 4165 | *) |
| 4166 | LDLIBRARY='libpython$(VERSION).sl' |
| 4167 | ;; |
| 4168 | esac |
| 4169 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4170 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
| 4171 | ;; |
| 4172 | OSF*) |
| 4173 | LDLIBRARY='libpython$(VERSION).so' |
| 4174 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 4175 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4176 | ;; |
| 4177 | atheos*) |
| 4178 | LDLIBRARY='libpython$(VERSION).so' |
| 4179 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4180 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 4181 | ;; |
| 4182 | Darwin*) |
| 4183 | LDLIBRARY='libpython$(VERSION).dylib' |
| 4184 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4185 | RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}' |
| 4186 | ;; |
| 4187 | |
| 4188 | esac |
| 4189 | else # shared is disabled |
| 4190 | case $ac_sys_system in |
| 4191 | CYGWIN*) |
| 4192 | BLDLIBRARY='$(LIBRARY)' |
| 4193 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4194 | ;; |
| 4195 | esac |
| 4196 | fi |
| 4197 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4198 | { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 4199 | echo "${ECHO_T}$LDLIBRARY" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4200 | |
| 4201 | if test -n "$ac_tool_prefix"; then |
| 4202 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4203 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4204 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4205 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4206 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4208 | else |
| 4209 | if test -n "$RANLIB"; then |
| 4210 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4211 | else |
| 4212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4213 | for as_dir in $PATH |
| 4214 | do |
| 4215 | IFS=$as_save_IFS |
| 4216 | test -z "$as_dir" && as_dir=. |
| 4217 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4218 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4219 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4220 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4221 | break 2 |
| 4222 | fi |
| 4223 | done |
| 4224 | done |
| 4225 | IFS=$as_save_IFS |
| 4226 | |
| 4227 | fi |
| 4228 | fi |
| 4229 | RANLIB=$ac_cv_prog_RANLIB |
| 4230 | if test -n "$RANLIB"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4231 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4232 | echo "${ECHO_T}$RANLIB" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4233 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4234 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4235 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4236 | fi |
| 4237 | |
| 4238 | |
| 4239 | fi |
| 4240 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4241 | ac_ct_RANLIB=$RANLIB |
| 4242 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4243 | set dummy ranlib; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4244 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4245 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4246 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4248 | else |
| 4249 | if test -n "$ac_ct_RANLIB"; then |
| 4250 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4251 | else |
| 4252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4253 | for as_dir in $PATH |
| 4254 | do |
| 4255 | IFS=$as_save_IFS |
| 4256 | test -z "$as_dir" && as_dir=. |
| 4257 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4258 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4259 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4260 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4261 | break 2 |
| 4262 | fi |
| 4263 | done |
| 4264 | done |
| 4265 | IFS=$as_save_IFS |
| 4266 | |
| 4267 | fi |
| 4268 | fi |
| 4269 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4270 | if test -n "$ac_ct_RANLIB"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4271 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4272 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4273 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4274 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4275 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4276 | fi |
| 4277 | |
| 4278 | if test "x$ac_ct_RANLIB" = x; then |
| 4279 | RANLIB=":" |
| 4280 | else |
| 4281 | case $cross_compiling:$ac_tool_warned in |
| 4282 | yes:) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4283 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4284 | whose name does not start with the host triplet. If you think this |
| 4285 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4286 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4287 | whose name does not start with the host triplet. If you think this |
| 4288 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4289 | ac_tool_warned=yes ;; |
| 4290 | esac |
| 4291 | RANLIB=$ac_ct_RANLIB |
| 4292 | fi |
| 4293 | else |
| 4294 | RANLIB="$ac_cv_prog_RANLIB" |
| 4295 | fi |
| 4296 | |
| 4297 | |
| 4298 | for ac_prog in ar aal |
| 4299 | do |
| 4300 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4301 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4302 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4303 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4304 | if test "${ac_cv_prog_AR+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4306 | else |
| 4307 | if test -n "$AR"; then |
| 4308 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4309 | else |
| 4310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4311 | for as_dir in $PATH |
| 4312 | do |
| 4313 | IFS=$as_save_IFS |
| 4314 | test -z "$as_dir" && as_dir=. |
| 4315 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4316 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4317 | ac_cv_prog_AR="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4318 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4319 | break 2 |
| 4320 | fi |
| 4321 | done |
| 4322 | done |
| 4323 | IFS=$as_save_IFS |
| 4324 | |
| 4325 | fi |
| 4326 | fi |
| 4327 | AR=$ac_cv_prog_AR |
| 4328 | if test -n "$AR"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4329 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 4330 | echo "${ECHO_T}$AR" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4331 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4332 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4333 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4334 | fi |
| 4335 | |
| 4336 | |
| 4337 | test -n "$AR" && break |
| 4338 | done |
| 4339 | test -n "$AR" || AR="ar" |
| 4340 | |
| 4341 | |
| 4342 | # tweak ARFLAGS only if the user didn't set it on the command line |
| 4343 | |
| 4344 | if test -z "$ARFLAGS" |
| 4345 | then |
| 4346 | ARFLAGS="rc" |
| 4347 | fi |
| 4348 | |
| 4349 | |
| 4350 | # Extract the first word of "svnversion", so it can be a program name with args. |
| 4351 | set dummy svnversion; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4352 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4353 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4354 | if test "${ac_cv_prog_SVNVERSION+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4356 | else |
| 4357 | if test -n "$SVNVERSION"; then |
| 4358 | ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. |
| 4359 | else |
| 4360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4361 | for as_dir in $PATH |
| 4362 | do |
| 4363 | IFS=$as_save_IFS |
| 4364 | test -z "$as_dir" && as_dir=. |
| 4365 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4366 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4367 | ac_cv_prog_SVNVERSION="found" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4368 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4369 | break 2 |
| 4370 | fi |
| 4371 | done |
| 4372 | done |
| 4373 | IFS=$as_save_IFS |
| 4374 | |
| 4375 | test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found" |
| 4376 | fi |
| 4377 | fi |
| 4378 | SVNVERSION=$ac_cv_prog_SVNVERSION |
| 4379 | if test -n "$SVNVERSION"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4380 | { echo "$as_me:$LINENO: result: $SVNVERSION" >&5 |
| 4381 | echo "${ECHO_T}$SVNVERSION" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4382 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4383 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4384 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4385 | fi |
| 4386 | |
| 4387 | |
| 4388 | if test $SVNVERSION = found |
| 4389 | then |
| 4390 | SVNVERSION="svnversion \$(srcdir)" |
| 4391 | else |
| 4392 | SVNVERSION="echo Unversioned directory" |
| 4393 | fi |
| 4394 | |
| 4395 | case $MACHDEP in |
| 4396 | bsdos*|hp*|HP*) |
| 4397 | # install -d does not work on BSDI or HP-UX |
| 4398 | if test -z "$INSTALL" |
| 4399 | then |
| 4400 | INSTALL="${srcdir}/install-sh -c" |
| 4401 | fi |
| 4402 | esac |
| 4403 | ac_aux_dir= |
| 4404 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 4405 | if test -f "$ac_dir/install-sh"; then |
| 4406 | ac_aux_dir=$ac_dir |
| 4407 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 4408 | break |
| 4409 | elif test -f "$ac_dir/install.sh"; then |
| 4410 | ac_aux_dir=$ac_dir |
| 4411 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 4412 | break |
| 4413 | elif test -f "$ac_dir/shtool"; then |
| 4414 | ac_aux_dir=$ac_dir |
| 4415 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 4416 | break |
| 4417 | fi |
| 4418 | done |
| 4419 | if test -z "$ac_aux_dir"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4420 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
| 4421 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4422 | { (exit 1); exit 1; }; } |
| 4423 | fi |
| 4424 | |
| 4425 | # These three variables are undocumented and unsupported, |
| 4426 | # and are intended to be withdrawn in a future Autoconf release. |
| 4427 | # They can cause serious problems if a builder's source tree is in a directory |
| 4428 | # whose full name contains unusual characters. |
| 4429 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 4430 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 4431 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 4432 | |
| 4433 | |
| 4434 | # Find a good install program. We prefer a C program (faster), |
| 4435 | # so one script is as good as another. But avoid the broken or |
| 4436 | # incompatible versions: |
| 4437 | # SysV /etc/install, /usr/sbin/install |
| 4438 | # SunOS /usr/etc/install |
| 4439 | # IRIX /sbin/install |
| 4440 | # AIX /bin/install |
| 4441 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 4442 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4443 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4444 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 4445 | # OS/2's system install, which has a completely different semantic |
| 4446 | # ./install, which can be erroneously created by make from ./install.sh. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4447 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4448 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4449 | if test -z "$INSTALL"; then |
| 4450 | if test "${ac_cv_path_install+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4451 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4452 | else |
| 4453 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4454 | for as_dir in $PATH |
| 4455 | do |
| 4456 | IFS=$as_save_IFS |
| 4457 | test -z "$as_dir" && as_dir=. |
| 4458 | # Account for people who put trailing slashes in PATH elements. |
| 4459 | case $as_dir/ in |
| 4460 | ./ | .// | /cC/* | \ |
| 4461 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4462 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 4463 | /usr/ucb/* ) ;; |
| 4464 | *) |
| 4465 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4466 | # Don't use installbsd from OSF since it installs stuff as root |
| 4467 | # by default. |
| 4468 | for ac_prog in ginstall scoinst install; do |
| 4469 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4470 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 4471 | if test $ac_prog = install && |
| 4472 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4473 | # AIX install. It has an incompatible calling convention. |
| 4474 | : |
| 4475 | elif test $ac_prog = install && |
| 4476 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4477 | # program-specific install script used by HP pwplus--don't use. |
| 4478 | : |
| 4479 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4480 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4481 | break 3 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4482 | fi |
| 4483 | fi |
| 4484 | done |
| 4485 | done |
| 4486 | ;; |
| 4487 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4488 | done |
| 4489 | IFS=$as_save_IFS |
| 4490 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4491 | |
| 4492 | fi |
| 4493 | if test "${ac_cv_path_install+set}" = set; then |
| 4494 | INSTALL=$ac_cv_path_install |
| 4495 | else |
| 4496 | # As a last resort, use the slow shell script. Don't cache a |
| 4497 | # value for INSTALL within a source directory, because that will |
| 4498 | # break other packages using the cache if that directory is |
| 4499 | # removed, or if the value is a relative name. |
| 4500 | INSTALL=$ac_install_sh |
| 4501 | fi |
| 4502 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4503 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4504 | echo "${ECHO_T}$INSTALL" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4505 | |
| 4506 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4507 | # It thinks the first close brace ends the variable substitution. |
| 4508 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4509 | |
| 4510 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 4511 | |
| 4512 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4513 | |
| 4514 | |
| 4515 | # Not every filesystem supports hard links |
| 4516 | |
| 4517 | if test -z "$LN" ; then |
| 4518 | case $ac_sys_system in |
| 4519 | BeOS*) LN="ln -s";; |
| 4520 | CYGWIN*) LN="ln -s";; |
| 4521 | atheos*) LN="ln -s";; |
| 4522 | *) LN=ln;; |
| 4523 | esac |
| 4524 | fi |
| 4525 | |
| 4526 | # Check for --with-pydebug |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4527 | { echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 4528 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4529 | |
| 4530 | # Check whether --with-pydebug was given. |
| 4531 | if test "${with_pydebug+set}" = set; then |
| 4532 | withval=$with_pydebug; |
| 4533 | if test "$withval" != no |
| 4534 | then |
| 4535 | |
| 4536 | cat >>confdefs.h <<\_ACEOF |
| 4537 | #define Py_DEBUG 1 |
| 4538 | _ACEOF |
| 4539 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4540 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4541 | echo "${ECHO_T}yes" >&6; }; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4542 | Py_DEBUG='true' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4543 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 4544 | echo "${ECHO_T}no" >&6; }; Py_DEBUG='false' |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4545 | fi |
| 4546 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4547 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4548 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4549 | fi |
| 4550 | |
| 4551 | |
| 4552 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 4553 | # merged with this chunk of code? |
| 4554 | |
| 4555 | # Optimizer/debugger flags |
| 4556 | # ------------------------ |
| 4557 | # (The following bit of code is complicated enough - please keep things |
| 4558 | # indented properly. Just pretend you're editing Python code. ;-) |
| 4559 | |
| 4560 | # There are two parallel sets of case statements below, one that checks to |
| 4561 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 4562 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 4563 | # user set OPT. |
| 4564 | |
| 4565 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 4566 | # it on the command line |
| 4567 | |
| 4568 | if test -z "$OPT" |
| 4569 | then |
| 4570 | case $GCC in |
| 4571 | yes) |
| 4572 | if test "$CC" != 'g++' ; then |
| 4573 | STRICT_PROTO="-Wstrict-prototypes" |
| 4574 | fi |
| 4575 | # For gcc 4.x we need to use -fwrapv so lets check if its supported |
| 4576 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then |
| 4577 | WRAP="-fwrapv" |
| 4578 | fi |
| 4579 | case $ac_cv_prog_cc_g in |
| 4580 | yes) |
| 4581 | if test "$Py_DEBUG" = 'true' ; then |
| 4582 | # Optimization messes up debuggers, so turn it off for |
| 4583 | # debug builds. |
| 4584 | OPT="-g -Wall $STRICT_PROTO" |
| 4585 | else |
| 4586 | OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" |
| 4587 | fi |
| 4588 | ;; |
| 4589 | *) |
| 4590 | OPT="-O3 -Wall $STRICT_PROTO" |
| 4591 | ;; |
| 4592 | esac |
| 4593 | case $ac_sys_system in |
| 4594 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 4595 | ;; |
| 4596 | esac |
| 4597 | ;; |
| 4598 | |
| 4599 | *) |
| 4600 | OPT="-O" |
| 4601 | ;; |
| 4602 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4603 | fi |
| 4604 | |
| 4605 | |
| 4606 | |
| 4607 | # The -arch flags for universal builds on OSX |
| 4608 | UNIVERSAL_ARCH_FLAGS= |
| 4609 | |
| 4610 | |
| 4611 | # tweak BASECFLAGS based on compiler and platform |
| 4612 | case $GCC in |
| 4613 | yes) |
| 4614 | # Python violates C99 rules, by casting between incompatible |
| 4615 | # pointer types. GCC may generate bad code as a result of that, |
| 4616 | # so use -fno-strict-aliasing if supported. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4617 | { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 4618 | echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4619 | ac_save_cc="$CC" |
| 4620 | CC="$CC -fno-strict-aliasing" |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 4621 | if test "${ac_cv_no_strict_aliasing_ok+set}" = set; then |
| 4622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4623 | else |
| 4624 | if test "$cross_compiling" = yes; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4625 | ac_cv_no_strict_aliasing_ok=no |
| 4626 | else |
| 4627 | cat >conftest.$ac_ext <<_ACEOF |
| 4628 | /* confdefs.h. */ |
| 4629 | _ACEOF |
| 4630 | cat confdefs.h >>conftest.$ac_ext |
| 4631 | cat >>conftest.$ac_ext <<_ACEOF |
| 4632 | /* end confdefs.h. */ |
| 4633 | int main() { return 0; } |
| 4634 | _ACEOF |
| 4635 | rm -f conftest$ac_exeext |
| 4636 | if { (ac_try="$ac_link" |
| 4637 | case "(($ac_try" in |
| 4638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4639 | *) ac_try_echo=$ac_try;; |
| 4640 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4642 | (eval "$ac_link") 2>&5 |
| 4643 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4645 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4646 | { (case "(($ac_try" in |
| 4647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4648 | *) ac_try_echo=$ac_try;; |
| 4649 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4651 | (eval "$ac_try") 2>&5 |
| 4652 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4654 | (exit $ac_status); }; }; then |
| 4655 | ac_cv_no_strict_aliasing_ok=yes |
| 4656 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4657 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4658 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4660 | |
| 4661 | ( exit $ac_status ) |
| 4662 | ac_cv_no_strict_aliasing_ok=no |
| 4663 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4664 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4665 | fi |
| 4666 | |
| 4667 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 4668 | fi |
| 4669 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4670 | CC="$ac_save_cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4671 | { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 4672 | echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4673 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 4674 | then |
| 4675 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 4676 | fi |
| 4677 | |
| 4678 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 |
| 4679 | # support. Without this, treatment of subnormals doesn't follow |
| 4680 | # the standard. |
| 4681 | case $ac_sys_machine in |
| 4682 | alpha*) |
| 4683 | BASECFLAGS="$BASECFLAGS -mieee" |
| 4684 | ;; |
| 4685 | esac |
| 4686 | |
| 4687 | case $ac_sys_system in |
| 4688 | SCO_SV*) |
| 4689 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 4690 | ;; |
| 4691 | # is there any other compiler on Darwin besides gcc? |
| 4692 | Darwin*) |
| 4693 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd |
| 4694 | # used to be here, but non-Apple gcc doesn't accept them. |
| 4695 | |
| 4696 | |
| 4697 | if test "${enable_universalsdk}"; then |
| 4698 | UNIVERSAL_ARCH_FLAGS="" |
| 4699 | if test "$UNIVERSAL_ARCHS" = "32-bit" ; then |
| 4700 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" |
| 4701 | ARCH_RUN_32BIT="" |
| 4702 | |
| 4703 | elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then |
| 4704 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 4705 | ARCH_RUN_32BIT="true" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4706 | |
| 4707 | elif test "$UNIVERSAL_ARCHS" = "all" ; then |
| 4708 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" |
| 4709 | ARCH_RUN_32BIT="arch -i386 -ppc" |
| 4710 | |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 4711 | elif test "$UNIVERSAL_ARCHS" = "intel" ; then |
| 4712 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" |
| 4713 | ARCH_RUN_32BIT="arch -i386" |
| 4714 | |
| 4715 | elif test "$UNIVERSAL_ARCHS" = "3-way" ; then |
| 4716 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" |
| 4717 | ARCH_RUN_32BIT="arch -i386 -ppc" |
| 4718 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4719 | else |
Ronald Oussoren | a9cfbde | 2009-09-20 20:05:44 +0000 | [diff] [blame] | 4720 | { { echo "$as_me:$LINENO: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&5 |
| 4721 | echo "$as_me: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4722 | { (exit 1); exit 1; }; } |
| 4723 | |
| 4724 | fi |
| 4725 | |
| 4726 | |
| 4727 | BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}" |
| 4728 | tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
| 4729 | if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then |
| 4730 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" |
| 4731 | fi |
| 4732 | fi |
| 4733 | |
| 4734 | # Calculate the right deployment target for this build. |
| 4735 | # |
| 4736 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
| 4737 | if test ${cur_target} '>' 10.2; then |
| 4738 | cur_target=10.3 |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 4739 | if test ${enable_universalsdk}; then |
| 4740 | if test "${UNIVERSAL_ARCHS}" = "all"; then |
| 4741 | # Ensure that the default platform for a |
| 4742 | # 4-way universal build is OSX 10.5, |
| 4743 | # that's the first OS release where |
| 4744 | # 4-way builds make sense. |
| 4745 | cur_target='10.5' |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 4746 | |
| 4747 | elif test "${UNIVERSAL_ARCHS}" = "3-way"; then |
| 4748 | cur_target='10.5' |
| 4749 | |
| 4750 | elif test "${UNIVERSAL_ARCHS}" = "intel"; then |
| 4751 | cur_target='10.5' |
| 4752 | |
| 4753 | elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then |
| 4754 | cur_target='10.5' |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 4755 | fi |
| 4756 | else |
| 4757 | if test `arch` = "i386"; then |
| 4758 | # On Intel macs default to a deployment |
| 4759 | # target of 10.4, that's the first OSX |
| 4760 | # release with Intel support. |
| 4761 | cur_target="10.4" |
| 4762 | fi |
| 4763 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4764 | fi |
| 4765 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
| 4766 | |
| 4767 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
| 4768 | # environment with a value that is the same as what we'll use |
| 4769 | # in the Makefile to ensure that we'll get the same compiler |
| 4770 | # environment during configure and build time. |
| 4771 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" |
| 4772 | export MACOSX_DEPLOYMENT_TARGET |
| 4773 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' |
| 4774 | |
| 4775 | ;; |
| 4776 | OSF*) |
| 4777 | BASECFLAGS="$BASECFLAGS -mieee" |
| 4778 | ;; |
| 4779 | esac |
| 4780 | ;; |
| 4781 | |
| 4782 | *) |
| 4783 | case $ac_sys_system in |
| 4784 | OpenUNIX*|UnixWare*) |
| 4785 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 4786 | ;; |
| 4787 | OSF*) |
| 4788 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 4789 | ;; |
| 4790 | SCO_SV*) |
| 4791 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 4792 | ;; |
| 4793 | esac |
| 4794 | ;; |
| 4795 | esac |
| 4796 | |
| 4797 | if test "$Py_DEBUG" = 'true'; then |
| 4798 | : |
| 4799 | else |
| 4800 | OPT="-DNDEBUG $OPT" |
| 4801 | fi |
| 4802 | |
| 4803 | if test "$ac_arch_flags" |
| 4804 | then |
| 4805 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
| 4806 | fi |
| 4807 | |
| 4808 | # disable check for icc since it seems to pass, but generates a warning |
| 4809 | if test "$CC" = icc |
| 4810 | then |
| 4811 | ac_cv_opt_olimit_ok=no |
| 4812 | fi |
| 4813 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4814 | { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 4815 | 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] | 4816 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4818 | else |
| 4819 | ac_save_cc="$CC" |
| 4820 | CC="$CC -OPT:Olimit=0" |
| 4821 | if test "$cross_compiling" = yes; then |
| 4822 | ac_cv_opt_olimit_ok=no |
| 4823 | else |
| 4824 | cat >conftest.$ac_ext <<_ACEOF |
| 4825 | /* confdefs.h. */ |
| 4826 | _ACEOF |
| 4827 | cat confdefs.h >>conftest.$ac_ext |
| 4828 | cat >>conftest.$ac_ext <<_ACEOF |
| 4829 | /* end confdefs.h. */ |
| 4830 | int main() { return 0; } |
| 4831 | _ACEOF |
| 4832 | rm -f conftest$ac_exeext |
| 4833 | if { (ac_try="$ac_link" |
| 4834 | case "(($ac_try" in |
| 4835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4836 | *) ac_try_echo=$ac_try;; |
| 4837 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4839 | (eval "$ac_link") 2>&5 |
| 4840 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4842 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4843 | { (case "(($ac_try" in |
| 4844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4845 | *) ac_try_echo=$ac_try;; |
| 4846 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4848 | (eval "$ac_try") 2>&5 |
| 4849 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4851 | (exit $ac_status); }; }; then |
| 4852 | ac_cv_opt_olimit_ok=yes |
| 4853 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4854 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4855 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4856 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4857 | |
| 4858 | ( exit $ac_status ) |
| 4859 | ac_cv_opt_olimit_ok=no |
| 4860 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4861 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4862 | fi |
| 4863 | |
| 4864 | |
| 4865 | CC="$ac_save_cc" |
| 4866 | fi |
| 4867 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4868 | { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 4869 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4870 | if test $ac_cv_opt_olimit_ok = yes; then |
| 4871 | case $ac_sys_system in |
| 4872 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 4873 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 4874 | # environment? |
| 4875 | Darwin*) |
| 4876 | ;; |
| 4877 | *) |
| 4878 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 4879 | ;; |
| 4880 | esac |
| 4881 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4882 | { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 4883 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4884 | if test "${ac_cv_olimit_ok+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4886 | else |
| 4887 | ac_save_cc="$CC" |
| 4888 | CC="$CC -Olimit 1500" |
| 4889 | if test "$cross_compiling" = yes; then |
| 4890 | ac_cv_olimit_ok=no |
| 4891 | else |
| 4892 | cat >conftest.$ac_ext <<_ACEOF |
| 4893 | /* confdefs.h. */ |
| 4894 | _ACEOF |
| 4895 | cat confdefs.h >>conftest.$ac_ext |
| 4896 | cat >>conftest.$ac_ext <<_ACEOF |
| 4897 | /* end confdefs.h. */ |
| 4898 | int main() { return 0; } |
| 4899 | _ACEOF |
| 4900 | rm -f conftest$ac_exeext |
| 4901 | if { (ac_try="$ac_link" |
| 4902 | case "(($ac_try" in |
| 4903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4904 | *) ac_try_echo=$ac_try;; |
| 4905 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4907 | (eval "$ac_link") 2>&5 |
| 4908 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4910 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4911 | { (case "(($ac_try" in |
| 4912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4913 | *) ac_try_echo=$ac_try;; |
| 4914 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4915 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4916 | (eval "$ac_try") 2>&5 |
| 4917 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4919 | (exit $ac_status); }; }; then |
| 4920 | ac_cv_olimit_ok=yes |
| 4921 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4922 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4923 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4924 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4925 | |
| 4926 | ( exit $ac_status ) |
| 4927 | ac_cv_olimit_ok=no |
| 4928 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4929 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4930 | fi |
| 4931 | |
| 4932 | |
| 4933 | CC="$ac_save_cc" |
| 4934 | fi |
| 4935 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4936 | { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 4937 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4938 | if test $ac_cv_olimit_ok = yes; then |
| 4939 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
| 4940 | fi |
| 4941 | fi |
| 4942 | |
| 4943 | # Check whether GCC supports PyArg_ParseTuple format |
| 4944 | if test "$GCC" = "yes" |
| 4945 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4946 | { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5 |
| 4947 | echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4948 | save_CFLAGS=$CFLAGS |
| 4949 | CFLAGS="$CFLAGS -Werror" |
| 4950 | cat >conftest.$ac_ext <<_ACEOF |
| 4951 | /* confdefs.h. */ |
| 4952 | _ACEOF |
| 4953 | cat confdefs.h >>conftest.$ac_ext |
| 4954 | cat >>conftest.$ac_ext <<_ACEOF |
| 4955 | /* end confdefs.h. */ |
| 4956 | |
| 4957 | void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); |
| 4958 | |
| 4959 | int |
| 4960 | main () |
| 4961 | { |
| 4962 | |
| 4963 | ; |
| 4964 | return 0; |
| 4965 | } |
| 4966 | _ACEOF |
| 4967 | rm -f conftest.$ac_objext |
| 4968 | if { (ac_try="$ac_compile" |
| 4969 | case "(($ac_try" in |
| 4970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4971 | *) ac_try_echo=$ac_try;; |
| 4972 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4974 | (eval "$ac_compile") 2>conftest.er1 |
| 4975 | ac_status=$? |
| 4976 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4977 | rm -f conftest.er1 |
| 4978 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4980 | (exit $ac_status); } && { |
| 4981 | test -z "$ac_c_werror_flag" || |
| 4982 | test ! -s conftest.err |
| 4983 | } && test -s conftest.$ac_objext; then |
| 4984 | |
| 4985 | cat >>confdefs.h <<\_ACEOF |
| 4986 | #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1 |
| 4987 | _ACEOF |
| 4988 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4989 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4990 | echo "${ECHO_T}yes" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4991 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4992 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4993 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4994 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4995 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4996 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4997 | |
| 4998 | fi |
| 4999 | |
| 5000 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5001 | CFLAGS=$save_CFLAGS |
| 5002 | fi |
| 5003 | |
| 5004 | # On some compilers, pthreads are available without further options |
| 5005 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 5006 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 5007 | # So we have to see first whether pthreads are available without |
| 5008 | # options before we can check whether -Kpthread improves anything. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5009 | { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 5010 | 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] | 5011 | if test "${ac_cv_pthread_is_default+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5013 | else |
| 5014 | if test "$cross_compiling" = yes; then |
| 5015 | ac_cv_pthread_is_default=no |
| 5016 | else |
| 5017 | cat >conftest.$ac_ext <<_ACEOF |
| 5018 | /* confdefs.h. */ |
| 5019 | _ACEOF |
| 5020 | cat confdefs.h >>conftest.$ac_ext |
| 5021 | cat >>conftest.$ac_ext <<_ACEOF |
| 5022 | /* end confdefs.h. */ |
| 5023 | |
| 5024 | #include <pthread.h> |
| 5025 | |
| 5026 | void* routine(void* p){return NULL;} |
| 5027 | |
| 5028 | int main(){ |
| 5029 | pthread_t p; |
| 5030 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5031 | return 1; |
| 5032 | (void)pthread_detach(p); |
| 5033 | return 0; |
| 5034 | } |
| 5035 | |
| 5036 | _ACEOF |
| 5037 | rm -f conftest$ac_exeext |
| 5038 | if { (ac_try="$ac_link" |
| 5039 | case "(($ac_try" in |
| 5040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5041 | *) ac_try_echo=$ac_try;; |
| 5042 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5043 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5044 | (eval "$ac_link") 2>&5 |
| 5045 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5047 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5048 | { (case "(($ac_try" in |
| 5049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5050 | *) ac_try_echo=$ac_try;; |
| 5051 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5052 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5053 | (eval "$ac_try") 2>&5 |
| 5054 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5056 | (exit $ac_status); }; }; then |
| 5057 | |
| 5058 | ac_cv_pthread_is_default=yes |
| 5059 | ac_cv_kthread=no |
| 5060 | ac_cv_pthread=no |
| 5061 | |
| 5062 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5063 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5064 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5065 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5066 | |
| 5067 | ( exit $ac_status ) |
| 5068 | ac_cv_pthread_is_default=no |
| 5069 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5070 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5071 | fi |
| 5072 | |
| 5073 | |
| 5074 | |
| 5075 | fi |
| 5076 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5077 | { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 5078 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5079 | |
| 5080 | |
| 5081 | if test $ac_cv_pthread_is_default = yes |
| 5082 | then |
| 5083 | ac_cv_kpthread=no |
| 5084 | else |
| 5085 | # -Kpthread, if available, provides the right #defines |
| 5086 | # and linker options to make pthread_create available |
| 5087 | # Some compilers won't report that they do not support -Kpthread, |
| 5088 | # so we need to run a program to see whether it really made the |
| 5089 | # function available. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5090 | { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 5091 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5092 | if test "${ac_cv_kpthread+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5094 | else |
| 5095 | ac_save_cc="$CC" |
| 5096 | CC="$CC -Kpthread" |
| 5097 | if test "$cross_compiling" = yes; then |
| 5098 | ac_cv_kpthread=no |
| 5099 | else |
| 5100 | cat >conftest.$ac_ext <<_ACEOF |
| 5101 | /* confdefs.h. */ |
| 5102 | _ACEOF |
| 5103 | cat confdefs.h >>conftest.$ac_ext |
| 5104 | cat >>conftest.$ac_ext <<_ACEOF |
| 5105 | /* end confdefs.h. */ |
| 5106 | |
| 5107 | #include <pthread.h> |
| 5108 | |
| 5109 | void* routine(void* p){return NULL;} |
| 5110 | |
| 5111 | int main(){ |
| 5112 | pthread_t p; |
| 5113 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5114 | return 1; |
| 5115 | (void)pthread_detach(p); |
| 5116 | return 0; |
| 5117 | } |
| 5118 | |
| 5119 | _ACEOF |
| 5120 | rm -f conftest$ac_exeext |
| 5121 | if { (ac_try="$ac_link" |
| 5122 | case "(($ac_try" in |
| 5123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5124 | *) ac_try_echo=$ac_try;; |
| 5125 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5127 | (eval "$ac_link") 2>&5 |
| 5128 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5130 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5131 | { (case "(($ac_try" in |
| 5132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5133 | *) ac_try_echo=$ac_try;; |
| 5134 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5136 | (eval "$ac_try") 2>&5 |
| 5137 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5139 | (exit $ac_status); }; }; then |
| 5140 | ac_cv_kpthread=yes |
| 5141 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5142 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5143 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5144 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5145 | |
| 5146 | ( exit $ac_status ) |
| 5147 | ac_cv_kpthread=no |
| 5148 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5149 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5150 | fi |
| 5151 | |
| 5152 | |
| 5153 | CC="$ac_save_cc" |
| 5154 | fi |
| 5155 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5156 | { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 5157 | echo "${ECHO_T}$ac_cv_kpthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5158 | fi |
| 5159 | |
| 5160 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no |
| 5161 | then |
| 5162 | # -Kthread, if available, provides the right #defines |
| 5163 | # and linker options to make pthread_create available |
| 5164 | # Some compilers won't report that they do not support -Kthread, |
| 5165 | # so we need to run a program to see whether it really made the |
| 5166 | # function available. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5167 | { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 5168 | echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5169 | if test "${ac_cv_kthread+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5171 | else |
| 5172 | ac_save_cc="$CC" |
| 5173 | CC="$CC -Kthread" |
| 5174 | if test "$cross_compiling" = yes; then |
| 5175 | ac_cv_kthread=no |
| 5176 | else |
| 5177 | cat >conftest.$ac_ext <<_ACEOF |
| 5178 | /* confdefs.h. */ |
| 5179 | _ACEOF |
| 5180 | cat confdefs.h >>conftest.$ac_ext |
| 5181 | cat >>conftest.$ac_ext <<_ACEOF |
| 5182 | /* end confdefs.h. */ |
| 5183 | |
| 5184 | #include <pthread.h> |
| 5185 | |
| 5186 | void* routine(void* p){return NULL;} |
| 5187 | |
| 5188 | int main(){ |
| 5189 | pthread_t p; |
| 5190 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5191 | return 1; |
| 5192 | (void)pthread_detach(p); |
| 5193 | return 0; |
| 5194 | } |
| 5195 | |
| 5196 | _ACEOF |
| 5197 | rm -f conftest$ac_exeext |
| 5198 | if { (ac_try="$ac_link" |
| 5199 | case "(($ac_try" in |
| 5200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5201 | *) ac_try_echo=$ac_try;; |
| 5202 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5204 | (eval "$ac_link") 2>&5 |
| 5205 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5207 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5208 | { (case "(($ac_try" in |
| 5209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5210 | *) ac_try_echo=$ac_try;; |
| 5211 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5213 | (eval "$ac_try") 2>&5 |
| 5214 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5216 | (exit $ac_status); }; }; then |
| 5217 | ac_cv_kthread=yes |
| 5218 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5219 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5220 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5221 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5222 | |
| 5223 | ( exit $ac_status ) |
| 5224 | ac_cv_kthread=no |
| 5225 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5226 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5227 | fi |
| 5228 | |
| 5229 | |
| 5230 | CC="$ac_save_cc" |
| 5231 | fi |
| 5232 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5233 | { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 5234 | echo "${ECHO_T}$ac_cv_kthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5235 | fi |
| 5236 | |
| 5237 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no |
| 5238 | then |
| 5239 | # -pthread, if available, provides the right #defines |
| 5240 | # and linker options to make pthread_create available |
| 5241 | # Some compilers won't report that they do not support -pthread, |
| 5242 | # so we need to run a program to see whether it really made the |
| 5243 | # function available. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5244 | { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 5245 | echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5246 | if test "${ac_cv_thread+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5248 | else |
| 5249 | ac_save_cc="$CC" |
| 5250 | CC="$CC -pthread" |
| 5251 | if test "$cross_compiling" = yes; then |
| 5252 | ac_cv_pthread=no |
| 5253 | else |
| 5254 | cat >conftest.$ac_ext <<_ACEOF |
| 5255 | /* confdefs.h. */ |
| 5256 | _ACEOF |
| 5257 | cat confdefs.h >>conftest.$ac_ext |
| 5258 | cat >>conftest.$ac_ext <<_ACEOF |
| 5259 | /* end confdefs.h. */ |
| 5260 | |
| 5261 | #include <pthread.h> |
| 5262 | |
| 5263 | void* routine(void* p){return NULL;} |
| 5264 | |
| 5265 | int main(){ |
| 5266 | pthread_t p; |
| 5267 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5268 | return 1; |
| 5269 | (void)pthread_detach(p); |
| 5270 | return 0; |
| 5271 | } |
| 5272 | |
| 5273 | _ACEOF |
| 5274 | rm -f conftest$ac_exeext |
| 5275 | if { (ac_try="$ac_link" |
| 5276 | case "(($ac_try" in |
| 5277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5278 | *) ac_try_echo=$ac_try;; |
| 5279 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5281 | (eval "$ac_link") 2>&5 |
| 5282 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5284 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5285 | { (case "(($ac_try" in |
| 5286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5287 | *) ac_try_echo=$ac_try;; |
| 5288 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5290 | (eval "$ac_try") 2>&5 |
| 5291 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5293 | (exit $ac_status); }; }; then |
| 5294 | ac_cv_pthread=yes |
| 5295 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5296 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5297 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5298 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5299 | |
| 5300 | ( exit $ac_status ) |
| 5301 | ac_cv_pthread=no |
| 5302 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5303 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5304 | fi |
| 5305 | |
| 5306 | |
| 5307 | CC="$ac_save_cc" |
| 5308 | fi |
| 5309 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5310 | { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 5311 | echo "${ECHO_T}$ac_cv_pthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5312 | fi |
| 5313 | |
| 5314 | # If we have set a CC compiler flag for thread support then |
| 5315 | # check if it works for CXX, too. |
| 5316 | ac_cv_cxx_thread=no |
| 5317 | if test ! -z "$CXX" |
| 5318 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5319 | { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| 5320 | 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] | 5321 | ac_save_cxx="$CXX" |
| 5322 | |
| 5323 | if test "$ac_cv_kpthread" = "yes" |
| 5324 | then |
| 5325 | CXX="$CXX -Kpthread" |
| 5326 | ac_cv_cxx_thread=yes |
| 5327 | elif test "$ac_cv_kthread" = "yes" |
| 5328 | then |
| 5329 | CXX="$CXX -Kthread" |
| 5330 | ac_cv_cxx_thread=yes |
| 5331 | elif test "$ac_cv_pthread" = "yes" |
| 5332 | then |
| 5333 | CXX="$CXX -pthread" |
| 5334 | ac_cv_cxx_thread=yes |
| 5335 | fi |
| 5336 | |
| 5337 | if test $ac_cv_cxx_thread = yes |
| 5338 | then |
| 5339 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 5340 | $CXX -c conftest.$ac_ext 2>&5 |
| 5341 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 5342 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 5343 | then |
| 5344 | ac_cv_cxx_thread=yes |
| 5345 | else |
| 5346 | ac_cv_cxx_thread=no |
| 5347 | fi |
| 5348 | rm -fr conftest* |
| 5349 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5350 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| 5351 | echo "${ECHO_T}$ac_cv_cxx_thread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5352 | fi |
| 5353 | CXX="$ac_save_cxx" |
| 5354 | |
| 5355 | |
| 5356 | # checks for header files |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5357 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5358 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5359 | if test "${ac_cv_header_stdc+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5361 | else |
| 5362 | cat >conftest.$ac_ext <<_ACEOF |
| 5363 | /* confdefs.h. */ |
| 5364 | _ACEOF |
| 5365 | cat confdefs.h >>conftest.$ac_ext |
| 5366 | cat >>conftest.$ac_ext <<_ACEOF |
| 5367 | /* end confdefs.h. */ |
| 5368 | #include <stdlib.h> |
| 5369 | #include <stdarg.h> |
| 5370 | #include <string.h> |
| 5371 | #include <float.h> |
| 5372 | |
| 5373 | int |
| 5374 | main () |
| 5375 | { |
| 5376 | |
| 5377 | ; |
| 5378 | return 0; |
| 5379 | } |
| 5380 | _ACEOF |
| 5381 | rm -f conftest.$ac_objext |
| 5382 | if { (ac_try="$ac_compile" |
| 5383 | case "(($ac_try" in |
| 5384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5385 | *) ac_try_echo=$ac_try;; |
| 5386 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5388 | (eval "$ac_compile") 2>conftest.er1 |
| 5389 | ac_status=$? |
| 5390 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5391 | rm -f conftest.er1 |
| 5392 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5394 | (exit $ac_status); } && { |
| 5395 | test -z "$ac_c_werror_flag" || |
| 5396 | test ! -s conftest.err |
| 5397 | } && test -s conftest.$ac_objext; then |
| 5398 | ac_cv_header_stdc=yes |
| 5399 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5400 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5401 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5402 | |
| 5403 | ac_cv_header_stdc=no |
| 5404 | fi |
| 5405 | |
| 5406 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5407 | |
| 5408 | if test $ac_cv_header_stdc = yes; then |
| 5409 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5410 | cat >conftest.$ac_ext <<_ACEOF |
| 5411 | /* confdefs.h. */ |
| 5412 | _ACEOF |
| 5413 | cat confdefs.h >>conftest.$ac_ext |
| 5414 | cat >>conftest.$ac_ext <<_ACEOF |
| 5415 | /* end confdefs.h. */ |
| 5416 | #include <string.h> |
| 5417 | |
| 5418 | _ACEOF |
| 5419 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5420 | $EGREP "memchr" >/dev/null 2>&1; then |
| 5421 | : |
| 5422 | else |
| 5423 | ac_cv_header_stdc=no |
| 5424 | fi |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 5425 | rm -f -r conftest* |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5426 | |
| 5427 | fi |
| 5428 | |
| 5429 | if test $ac_cv_header_stdc = yes; then |
| 5430 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5431 | cat >conftest.$ac_ext <<_ACEOF |
| 5432 | /* confdefs.h. */ |
| 5433 | _ACEOF |
| 5434 | cat confdefs.h >>conftest.$ac_ext |
| 5435 | cat >>conftest.$ac_ext <<_ACEOF |
| 5436 | /* end confdefs.h. */ |
| 5437 | #include <stdlib.h> |
| 5438 | |
| 5439 | _ACEOF |
| 5440 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5441 | $EGREP "free" >/dev/null 2>&1; then |
| 5442 | : |
| 5443 | else |
| 5444 | ac_cv_header_stdc=no |
| 5445 | fi |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 5446 | rm -f -r conftest* |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5447 | |
| 5448 | fi |
| 5449 | |
| 5450 | if test $ac_cv_header_stdc = yes; then |
| 5451 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5452 | if test "$cross_compiling" = yes; then |
| 5453 | : |
| 5454 | else |
| 5455 | cat >conftest.$ac_ext <<_ACEOF |
| 5456 | /* confdefs.h. */ |
| 5457 | _ACEOF |
| 5458 | cat confdefs.h >>conftest.$ac_ext |
| 5459 | cat >>conftest.$ac_ext <<_ACEOF |
| 5460 | /* end confdefs.h. */ |
| 5461 | #include <ctype.h> |
| 5462 | #include <stdlib.h> |
| 5463 | #if ((' ' & 0x0FF) == 0x020) |
| 5464 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5465 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5466 | #else |
| 5467 | # define ISLOWER(c) \ |
| 5468 | (('a' <= (c) && (c) <= 'i') \ |
| 5469 | || ('j' <= (c) && (c) <= 'r') \ |
| 5470 | || ('s' <= (c) && (c) <= 'z')) |
| 5471 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5472 | #endif |
| 5473 | |
| 5474 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5475 | int |
| 5476 | main () |
| 5477 | { |
| 5478 | int i; |
| 5479 | for (i = 0; i < 256; i++) |
| 5480 | if (XOR (islower (i), ISLOWER (i)) |
| 5481 | || toupper (i) != TOUPPER (i)) |
| 5482 | return 2; |
| 5483 | return 0; |
| 5484 | } |
| 5485 | _ACEOF |
| 5486 | rm -f conftest$ac_exeext |
| 5487 | if { (ac_try="$ac_link" |
| 5488 | case "(($ac_try" in |
| 5489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5490 | *) ac_try_echo=$ac_try;; |
| 5491 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5493 | (eval "$ac_link") 2>&5 |
| 5494 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5496 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5497 | { (case "(($ac_try" in |
| 5498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5499 | *) ac_try_echo=$ac_try;; |
| 5500 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5502 | (eval "$ac_try") 2>&5 |
| 5503 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5505 | (exit $ac_status); }; }; then |
| 5506 | : |
| 5507 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5508 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5509 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5510 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5511 | |
| 5512 | ( exit $ac_status ) |
| 5513 | ac_cv_header_stdc=no |
| 5514 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5515 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5516 | fi |
| 5517 | |
| 5518 | |
| 5519 | fi |
| 5520 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5521 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 5522 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5523 | if test $ac_cv_header_stdc = yes; then |
| 5524 | |
| 5525 | cat >>confdefs.h <<\_ACEOF |
| 5526 | #define STDC_HEADERS 1 |
| 5527 | _ACEOF |
| 5528 | |
| 5529 | fi |
| 5530 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5531 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5532 | |
| 5533 | |
| 5534 | |
| 5535 | |
| 5536 | |
| 5537 | |
| 5538 | |
| 5539 | |
| 5540 | |
| 5541 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 5542 | inttypes.h stdint.h unistd.h |
| 5543 | do |
| 5544 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5545 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5546 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5547 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 5548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5549 | else |
| 5550 | cat >conftest.$ac_ext <<_ACEOF |
| 5551 | /* confdefs.h. */ |
| 5552 | _ACEOF |
| 5553 | cat confdefs.h >>conftest.$ac_ext |
| 5554 | cat >>conftest.$ac_ext <<_ACEOF |
| 5555 | /* end confdefs.h. */ |
| 5556 | $ac_includes_default |
| 5557 | |
| 5558 | #include <$ac_header> |
| 5559 | _ACEOF |
| 5560 | rm -f conftest.$ac_objext |
| 5561 | if { (ac_try="$ac_compile" |
| 5562 | case "(($ac_try" in |
| 5563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5564 | *) ac_try_echo=$ac_try;; |
| 5565 | esac |
| 5566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5567 | (eval "$ac_compile") 2>conftest.er1 |
| 5568 | ac_status=$? |
| 5569 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5570 | rm -f conftest.er1 |
| 5571 | cat conftest.err >&5 |
| 5572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5573 | (exit $ac_status); } && { |
| 5574 | test -z "$ac_c_werror_flag" || |
| 5575 | test ! -s conftest.err |
| 5576 | } && test -s conftest.$ac_objext; then |
| 5577 | eval "$as_ac_Header=yes" |
| 5578 | else |
| 5579 | echo "$as_me: failed program was:" >&5 |
| 5580 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5581 | |
| 5582 | eval "$as_ac_Header=no" |
| 5583 | fi |
| 5584 | |
| 5585 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5586 | fi |
| 5587 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5588 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5589 | echo "${ECHO_T}$ac_res" >&6; } |
| 5590 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5591 | cat >>confdefs.h <<_ACEOF |
| 5592 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5593 | _ACEOF |
| 5594 | |
| 5595 | fi |
| 5596 | |
| 5597 | done |
| 5598 | |
| 5599 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5600 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5601 | |
| 5602 | |
| 5603 | |
| 5604 | |
| 5605 | |
| 5606 | |
| 5607 | |
| 5608 | |
| 5609 | |
| 5610 | |
| 5611 | |
| 5612 | |
| 5613 | |
| 5614 | |
| 5615 | |
| 5616 | |
| 5617 | |
| 5618 | |
| 5619 | |
| 5620 | |
| 5621 | |
| 5622 | |
| 5623 | |
| 5624 | |
| 5625 | |
| 5626 | |
| 5627 | |
| 5628 | |
| 5629 | |
| 5630 | |
| 5631 | |
| 5632 | |
| 5633 | |
| 5634 | |
| 5635 | |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 5636 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 5637 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 5638 | |
Martin v. Löwis | 5f5d99c | 2006-05-16 07:05:37 +0000 | [diff] [blame] | 5639 | |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5640 | |
| 5641 | |
| 5642 | |
| 5643 | |
| 5644 | |
| 5645 | |
| 5646 | |
| 5647 | |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 5648 | |
Christian Heimes | fb2d25a | 2008-01-07 16:12:44 +0000 | [diff] [blame] | 5649 | |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 5650 | |
| 5651 | |
Neal Norwitz | 9fdfaaf | 2008-03-28 05:34:59 +0000 | [diff] [blame] | 5652 | |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 5653 | |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5654 | for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ |
| 5655 | fcntl.h grp.h \ |
Neal Norwitz | 9fdfaaf | 2008-03-28 05:34:59 +0000 | [diff] [blame] | 5656 | 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] | 5657 | 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] | 5658 | unistd.h utime.h \ |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 5659 | sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ |
| 5660 | sys/lock.h sys/mkdev.h sys/modem.h \ |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5661 | 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] | 5662 | sys/termio.h sys/time.h \ |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5663 | 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] | 5664 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
Christian Heimes | fb2d25a | 2008-01-07 16:12:44 +0000 | [diff] [blame] | 5665 | bluetooth/bluetooth.h linux/tipc.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5666 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5667 | 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] | 5668 | 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] | 5669 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5670 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5671 | 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] | 5672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5673 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5674 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5675 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5676 | echo "${ECHO_T}$ac_res" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5677 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5678 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5679 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5680 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5681 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5682 | /* confdefs.h. */ |
| 5683 | _ACEOF |
| 5684 | cat confdefs.h >>conftest.$ac_ext |
| 5685 | cat >>conftest.$ac_ext <<_ACEOF |
| 5686 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5687 | $ac_includes_default |
| 5688 | #include <$ac_header> |
| 5689 | _ACEOF |
| 5690 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5691 | if { (ac_try="$ac_compile" |
| 5692 | case "(($ac_try" in |
| 5693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5694 | *) ac_try_echo=$ac_try;; |
| 5695 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5697 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5698 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5699 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5700 | rm -f conftest.er1 |
| 5701 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5703 | (exit $ac_status); } && { |
| 5704 | test -z "$ac_c_werror_flag" || |
| 5705 | test ! -s conftest.err |
| 5706 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5707 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5708 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5709 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5710 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5711 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5712 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5713 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5714 | |
| 5715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5716 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5717 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5718 | |
| 5719 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5720 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5721 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5722 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5723 | /* confdefs.h. */ |
| 5724 | _ACEOF |
| 5725 | cat confdefs.h >>conftest.$ac_ext |
| 5726 | cat >>conftest.$ac_ext <<_ACEOF |
| 5727 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5728 | #include <$ac_header> |
| 5729 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5730 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5731 | case "(($ac_try" in |
| 5732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5733 | *) ac_try_echo=$ac_try;; |
| 5734 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5736 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5737 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5738 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5739 | rm -f conftest.er1 |
| 5740 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5742 | (exit $ac_status); } >/dev/null && { |
| 5743 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5744 | test ! -s conftest.err |
| 5745 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5746 | ac_header_preproc=yes |
| 5747 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5748 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5749 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5750 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5751 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5752 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5753 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5754 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5755 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5756 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5757 | |
| 5758 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5759 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5760 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5761 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5762 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5763 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 5764 | 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] | 5765 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5766 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5767 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5768 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5769 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5770 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5771 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5772 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 5773 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 5774 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 5775 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5776 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5777 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5778 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 5779 | 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] | 5780 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 5781 | ## -------------------------------------- ## |
| 5782 | ## Report this to http://bugs.python.org/ ## |
| 5783 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5784 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5785 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5786 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5787 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5788 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5789 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5790 | 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] | 5791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5792 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5793 | eval "$as_ac_Header=\$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5794 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5795 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5796 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5797 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5798 | |
| 5799 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5800 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5801 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5802 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5803 | _ACEOF |
| 5804 | |
| 5805 | fi |
| 5806 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5807 | done |
| 5808 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5809 | |
| 5810 | |
| 5811 | |
| 5812 | |
| 5813 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5814 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5815 | 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] | 5816 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 5817 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 5818 | 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] | 5819 | 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] | 5820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5821 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5822 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5823 | /* confdefs.h. */ |
| 5824 | _ACEOF |
| 5825 | cat confdefs.h >>conftest.$ac_ext |
| 5826 | cat >>conftest.$ac_ext <<_ACEOF |
| 5827 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5828 | #include <sys/types.h> |
| 5829 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5830 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5831 | int |
| 5832 | main () |
| 5833 | { |
| 5834 | if ((DIR *) 0) |
| 5835 | return 0; |
| 5836 | ; |
| 5837 | return 0; |
| 5838 | } |
| 5839 | _ACEOF |
| 5840 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5841 | if { (ac_try="$ac_compile" |
| 5842 | case "(($ac_try" in |
| 5843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5844 | *) ac_try_echo=$ac_try;; |
| 5845 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5847 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5848 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5849 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5850 | rm -f conftest.er1 |
| 5851 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5853 | (exit $ac_status); } && { |
| 5854 | test -z "$ac_c_werror_flag" || |
| 5855 | test ! -s conftest.err |
| 5856 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5857 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5858 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5859 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5860 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5861 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5862 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5863 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5864 | |
| 5865 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5866 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5867 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5868 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5869 | echo "${ECHO_T}$ac_res" >&6; } |
| 5870 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5871 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5872 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5873 | _ACEOF |
| 5874 | |
| 5875 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5876 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5877 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5878 | done |
| 5879 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 5880 | if test $ac_header_dirent = dirent.h; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5881 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 5882 | 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] | 5883 | if test "${ac_cv_search_opendir+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5884 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5885 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5886 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5887 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5888 | /* confdefs.h. */ |
| 5889 | _ACEOF |
| 5890 | cat confdefs.h >>conftest.$ac_ext |
| 5891 | cat >>conftest.$ac_ext <<_ACEOF |
| 5892 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5893 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5894 | /* Override any GCC internal prototype to avoid an error. |
| 5895 | Use char because int might match the return type of a GCC |
| 5896 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5897 | #ifdef __cplusplus |
| 5898 | extern "C" |
| 5899 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5900 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5901 | int |
| 5902 | main () |
| 5903 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5904 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5905 | ; |
| 5906 | return 0; |
| 5907 | } |
| 5908 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5909 | for ac_lib in '' dir; do |
| 5910 | if test -z "$ac_lib"; then |
| 5911 | ac_res="none required" |
| 5912 | else |
| 5913 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5914 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5915 | fi |
| 5916 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5917 | if { (ac_try="$ac_link" |
| 5918 | case "(($ac_try" in |
| 5919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5920 | *) ac_try_echo=$ac_try;; |
| 5921 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5923 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5924 | ac_status=$? |
| 5925 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5926 | rm -f conftest.er1 |
| 5927 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5929 | (exit $ac_status); } && { |
| 5930 | test -z "$ac_c_werror_flag" || |
| 5931 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5932 | } && test -s conftest$ac_exeext && |
| 5933 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5934 | ac_cv_search_opendir=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 5935 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5936 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5937 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5938 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5939 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 5940 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5941 | |
| 5942 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 5943 | conftest$ac_exeext |
| 5944 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5945 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5946 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5947 | done |
| 5948 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5949 | : |
| 5950 | else |
| 5951 | ac_cv_search_opendir=no |
| 5952 | fi |
| 5953 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5954 | LIBS=$ac_func_search_save_LIBS |
| 5955 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5956 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 5957 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5958 | ac_res=$ac_cv_search_opendir |
| 5959 | if test "$ac_res" != no; then |
| 5960 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5961 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5962 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5963 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5964 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5965 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 5966 | 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] | 5967 | if test "${ac_cv_search_opendir+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5969 | else |
| 5970 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5971 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5972 | /* confdefs.h. */ |
| 5973 | _ACEOF |
| 5974 | cat confdefs.h >>conftest.$ac_ext |
| 5975 | cat >>conftest.$ac_ext <<_ACEOF |
| 5976 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5977 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5978 | /* Override any GCC internal prototype to avoid an error. |
| 5979 | Use char because int might match the return type of a GCC |
| 5980 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5981 | #ifdef __cplusplus |
| 5982 | extern "C" |
| 5983 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5984 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5985 | int |
| 5986 | main () |
| 5987 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5988 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5989 | ; |
| 5990 | return 0; |
| 5991 | } |
| 5992 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5993 | for ac_lib in '' x; do |
| 5994 | if test -z "$ac_lib"; then |
| 5995 | ac_res="none required" |
| 5996 | else |
| 5997 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5998 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5999 | fi |
| 6000 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6001 | if { (ac_try="$ac_link" |
| 6002 | case "(($ac_try" in |
| 6003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6004 | *) ac_try_echo=$ac_try;; |
| 6005 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6007 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6008 | ac_status=$? |
| 6009 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6010 | rm -f conftest.er1 |
| 6011 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6013 | (exit $ac_status); } && { |
| 6014 | test -z "$ac_c_werror_flag" || |
| 6015 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6016 | } && test -s conftest$ac_exeext && |
| 6017 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6018 | ac_cv_search_opendir=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6019 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6020 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6021 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6022 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6023 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6024 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6025 | |
| 6026 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 6027 | conftest$ac_exeext |
| 6028 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6029 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6030 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6031 | done |
| 6032 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6033 | : |
| 6034 | else |
| 6035 | ac_cv_search_opendir=no |
| 6036 | fi |
| 6037 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6038 | LIBS=$ac_func_search_save_LIBS |
| 6039 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6040 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 6041 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6042 | ac_res=$ac_cv_search_opendir |
| 6043 | if test "$ac_res" != no; then |
| 6044 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6045 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6046 | fi |
| 6047 | |
| 6048 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6049 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6050 | { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 6051 | 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] | 6052 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6054 | else |
| 6055 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6056 | /* confdefs.h. */ |
| 6057 | _ACEOF |
| 6058 | cat confdefs.h >>conftest.$ac_ext |
| 6059 | cat >>conftest.$ac_ext <<_ACEOF |
| 6060 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6061 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6062 | int |
| 6063 | main () |
| 6064 | { |
| 6065 | return makedev(0, 0); |
| 6066 | ; |
| 6067 | return 0; |
| 6068 | } |
| 6069 | _ACEOF |
| 6070 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6071 | if { (ac_try="$ac_link" |
| 6072 | case "(($ac_try" in |
| 6073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6074 | *) ac_try_echo=$ac_try;; |
| 6075 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6077 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6078 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6079 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6080 | rm -f conftest.er1 |
| 6081 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6083 | (exit $ac_status); } && { |
| 6084 | test -z "$ac_c_werror_flag" || |
| 6085 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6086 | } && test -s conftest$ac_exeext && |
| 6087 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6088 | ac_cv_header_sys_types_h_makedev=yes |
| 6089 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6090 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6091 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6092 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6093 | ac_cv_header_sys_types_h_makedev=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6094 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6095 | |
| 6096 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6097 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6098 | |
| 6099 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6100 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 6101 | 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] | 6102 | |
| 6103 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 6104 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6105 | { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 6106 | 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] | 6107 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6109 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6110 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 6111 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6112 | else |
| 6113 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6114 | { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 6115 | 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] | 6116 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6117 | /* confdefs.h. */ |
| 6118 | _ACEOF |
| 6119 | cat confdefs.h >>conftest.$ac_ext |
| 6120 | cat >>conftest.$ac_ext <<_ACEOF |
| 6121 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6122 | $ac_includes_default |
| 6123 | #include <sys/mkdev.h> |
| 6124 | _ACEOF |
| 6125 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6126 | if { (ac_try="$ac_compile" |
| 6127 | case "(($ac_try" in |
| 6128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6129 | *) ac_try_echo=$ac_try;; |
| 6130 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6132 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6133 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6134 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6135 | rm -f conftest.er1 |
| 6136 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6138 | (exit $ac_status); } && { |
| 6139 | test -z "$ac_c_werror_flag" || |
| 6140 | test ! -s conftest.err |
| 6141 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6142 | ac_header_compiler=yes |
| 6143 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6144 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6145 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6146 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6147 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6148 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6149 | |
| 6150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6151 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6152 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6153 | |
| 6154 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6155 | { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 6156 | 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] | 6157 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6158 | /* confdefs.h. */ |
| 6159 | _ACEOF |
| 6160 | cat confdefs.h >>conftest.$ac_ext |
| 6161 | cat >>conftest.$ac_ext <<_ACEOF |
| 6162 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6163 | #include <sys/mkdev.h> |
| 6164 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6165 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6166 | case "(($ac_try" in |
| 6167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6168 | *) ac_try_echo=$ac_try;; |
| 6169 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6171 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6172 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6173 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6174 | rm -f conftest.er1 |
| 6175 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6177 | (exit $ac_status); } >/dev/null && { |
| 6178 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6179 | test ! -s conftest.err |
| 6180 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6181 | ac_header_preproc=yes |
| 6182 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6183 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6184 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6185 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6186 | ac_header_preproc=no |
| 6187 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6188 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6189 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6190 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6191 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6192 | |
| 6193 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6194 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6195 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6196 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6197 | echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6198 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 |
| 6199 | 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] | 6200 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6201 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6202 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6203 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 6204 | echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
| 6205 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 6206 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 6207 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 |
| 6208 | echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} |
| 6209 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6210 | echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6211 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 6212 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} |
| 6213 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 |
| 6214 | 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] | 6215 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6216 | ## -------------------------------------- ## |
| 6217 | ## Report this to http://bugs.python.org/ ## |
| 6218 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6219 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6220 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6221 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6222 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6223 | { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 6224 | 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] | 6225 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6226 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6227 | else |
| 6228 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 6229 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6230 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 6231 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6232 | |
| 6233 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6234 | if test $ac_cv_header_sys_mkdev_h = yes; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6235 | |
| 6236 | cat >>confdefs.h <<\_ACEOF |
| 6237 | #define MAJOR_IN_MKDEV 1 |
| 6238 | _ACEOF |
| 6239 | |
| 6240 | fi |
| 6241 | |
| 6242 | |
| 6243 | |
| 6244 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 6245 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6246 | { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6247 | 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] | 6248 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6250 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6251 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6252 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6253 | else |
| 6254 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6255 | { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 6256 | 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] | 6257 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6258 | /* confdefs.h. */ |
| 6259 | _ACEOF |
| 6260 | cat confdefs.h >>conftest.$ac_ext |
| 6261 | cat >>conftest.$ac_ext <<_ACEOF |
| 6262 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6263 | $ac_includes_default |
| 6264 | #include <sys/sysmacros.h> |
| 6265 | _ACEOF |
| 6266 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6267 | if { (ac_try="$ac_compile" |
| 6268 | case "(($ac_try" in |
| 6269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6270 | *) ac_try_echo=$ac_try;; |
| 6271 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6273 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6274 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6275 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6276 | rm -f conftest.er1 |
| 6277 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6279 | (exit $ac_status); } && { |
| 6280 | test -z "$ac_c_werror_flag" || |
| 6281 | test ! -s conftest.err |
| 6282 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6283 | ac_header_compiler=yes |
| 6284 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6285 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6286 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6287 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6288 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6289 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6290 | |
| 6291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6292 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6293 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6294 | |
| 6295 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6296 | { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 6297 | 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] | 6298 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6299 | /* confdefs.h. */ |
| 6300 | _ACEOF |
| 6301 | cat confdefs.h >>conftest.$ac_ext |
| 6302 | cat >>conftest.$ac_ext <<_ACEOF |
| 6303 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6304 | #include <sys/sysmacros.h> |
| 6305 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6306 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6307 | case "(($ac_try" in |
| 6308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6309 | *) ac_try_echo=$ac_try;; |
| 6310 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6312 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6313 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6314 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6315 | rm -f conftest.er1 |
| 6316 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6318 | (exit $ac_status); } >/dev/null && { |
| 6319 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6320 | test ! -s conftest.err |
| 6321 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6322 | ac_header_preproc=yes |
| 6323 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6324 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6325 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6326 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6327 | ac_header_preproc=no |
| 6328 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6329 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6330 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6331 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6332 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6333 | |
| 6334 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6335 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6336 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6337 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6338 | echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6339 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 |
| 6340 | 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] | 6341 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6342 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6343 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6344 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 6345 | echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
| 6346 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 6347 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 6348 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 |
| 6349 | echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} |
| 6350 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6351 | echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6352 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 6353 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} |
| 6354 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 |
| 6355 | 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] | 6356 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6357 | ## -------------------------------------- ## |
| 6358 | ## Report this to http://bugs.python.org/ ## |
| 6359 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6360 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6361 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6362 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6363 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6364 | { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6365 | 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] | 6366 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6368 | else |
| 6369 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 6370 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6371 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6372 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6373 | |
| 6374 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6375 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6376 | |
| 6377 | cat >>confdefs.h <<\_ACEOF |
| 6378 | #define MAJOR_IN_SYSMACROS 1 |
| 6379 | _ACEOF |
| 6380 | |
| 6381 | fi |
| 6382 | |
| 6383 | |
| 6384 | fi |
| 6385 | fi |
| 6386 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6387 | |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6388 | # On Solaris, term.h requires curses.h |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6389 | |
| 6390 | for ac_header in term.h |
| 6391 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6392 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6393 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6394 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6395 | 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] | 6396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6397 | else |
| 6398 | cat >conftest.$ac_ext <<_ACEOF |
| 6399 | /* confdefs.h. */ |
| 6400 | _ACEOF |
| 6401 | cat confdefs.h >>conftest.$ac_ext |
| 6402 | cat >>conftest.$ac_ext <<_ACEOF |
| 6403 | /* end confdefs.h. */ |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6404 | |
Martin v. Löwis | 5d52e78 | 2004-09-18 10:07:03 +0000 | [diff] [blame] | 6405 | #ifdef HAVE_CURSES_H |
| 6406 | #include <curses.h> |
| 6407 | #endif |
| 6408 | |
| 6409 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6410 | #include <$ac_header> |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6411 | _ACEOF |
| 6412 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6413 | if { (ac_try="$ac_compile" |
| 6414 | case "(($ac_try" in |
| 6415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6416 | *) ac_try_echo=$ac_try;; |
| 6417 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6418 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6419 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6420 | ac_status=$? |
| 6421 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6422 | rm -f conftest.er1 |
| 6423 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6425 | (exit $ac_status); } && { |
| 6426 | test -z "$ac_c_werror_flag" || |
| 6427 | test ! -s conftest.err |
| 6428 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6429 | eval "$as_ac_Header=yes" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6430 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6431 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6432 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6433 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6434 | eval "$as_ac_Header=no" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6435 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6436 | |
| 6437 | 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] | 6438 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6439 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6440 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6441 | echo "${ECHO_T}$ac_res" >&6; } |
| 6442 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6443 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6444 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6445 | _ACEOF |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6446 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6447 | fi |
| 6448 | |
| 6449 | done |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6450 | |
| 6451 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6452 | # On Linux, netlink.h requires asm/types.h |
| 6453 | |
| 6454 | for ac_header in linux/netlink.h |
| 6455 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6456 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6457 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6458 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6459 | 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] | 6460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6461 | else |
| 6462 | cat >conftest.$ac_ext <<_ACEOF |
| 6463 | /* confdefs.h. */ |
| 6464 | _ACEOF |
| 6465 | cat confdefs.h >>conftest.$ac_ext |
| 6466 | cat >>conftest.$ac_ext <<_ACEOF |
| 6467 | /* end confdefs.h. */ |
| 6468 | |
| 6469 | #ifdef HAVE_ASM_TYPES_H |
| 6470 | #include <asm/types.h> |
| 6471 | #endif |
| 6472 | #ifdef HAVE_SYS_SOCKET_H |
| 6473 | #include <sys/socket.h> |
| 6474 | #endif |
| 6475 | |
| 6476 | |
| 6477 | #include <$ac_header> |
| 6478 | _ACEOF |
| 6479 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6480 | if { (ac_try="$ac_compile" |
| 6481 | case "(($ac_try" in |
| 6482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6483 | *) ac_try_echo=$ac_try;; |
| 6484 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6486 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6487 | ac_status=$? |
| 6488 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6489 | rm -f conftest.er1 |
| 6490 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6492 | (exit $ac_status); } && { |
| 6493 | test -z "$ac_c_werror_flag" || |
| 6494 | test ! -s conftest.err |
| 6495 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6496 | eval "$as_ac_Header=yes" |
| 6497 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6498 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6499 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6500 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6501 | eval "$as_ac_Header=no" |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6502 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6503 | |
| 6504 | 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] | 6505 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6506 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6507 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6508 | echo "${ECHO_T}$ac_res" >&6; } |
| 6509 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6510 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6511 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6512 | _ACEOF |
| 6513 | |
| 6514 | fi |
| 6515 | |
| 6516 | done |
| 6517 | |
| 6518 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6519 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6520 | was_it_defined=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6521 | { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 6522 | 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] | 6523 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6524 | /* confdefs.h. */ |
| 6525 | _ACEOF |
| 6526 | cat confdefs.h >>conftest.$ac_ext |
| 6527 | cat >>conftest.$ac_ext <<_ACEOF |
| 6528 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6529 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6530 | |
| 6531 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6532 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6533 | $EGREP "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6534 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6535 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6536 | |
| 6537 | |
| 6538 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6539 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6540 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6541 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6542 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6543 | fi |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 6544 | rm -f -r conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6545 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6546 | { echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 6547 | echo "${ECHO_T}$was_it_defined" >&6; } |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6548 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6549 | # Check whether using makedev requires defining _OSF_SOURCE |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6550 | { echo "$as_me:$LINENO: checking for makedev" >&5 |
| 6551 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6552 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6553 | /* confdefs.h. */ |
| 6554 | _ACEOF |
| 6555 | cat confdefs.h >>conftest.$ac_ext |
| 6556 | cat >>conftest.$ac_ext <<_ACEOF |
| 6557 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6558 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6559 | int |
| 6560 | main () |
| 6561 | { |
| 6562 | makedev(0, 0) |
| 6563 | ; |
| 6564 | return 0; |
| 6565 | } |
| 6566 | _ACEOF |
| 6567 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6568 | if { (ac_try="$ac_link" |
| 6569 | case "(($ac_try" in |
| 6570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6571 | *) ac_try_echo=$ac_try;; |
| 6572 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6574 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6575 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6576 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6577 | rm -f conftest.er1 |
| 6578 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6580 | (exit $ac_status); } && { |
| 6581 | test -z "$ac_c_werror_flag" || |
| 6582 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6583 | } && test -s conftest$ac_exeext && |
| 6584 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6585 | ac_cv_has_makedev=yes |
| 6586 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6587 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6588 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6589 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6590 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6591 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6592 | |
| 6593 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6594 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6595 | if test "$ac_cv_has_makedev" = "no"; then |
| 6596 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 6597 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6598 | /* confdefs.h. */ |
| 6599 | _ACEOF |
| 6600 | cat confdefs.h >>conftest.$ac_ext |
| 6601 | cat >>conftest.$ac_ext <<_ACEOF |
| 6602 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6603 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6604 | #define _OSF_SOURCE 1 |
| 6605 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6606 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6607 | int |
| 6608 | main () |
| 6609 | { |
| 6610 | makedev(0, 0) |
| 6611 | ; |
| 6612 | return 0; |
| 6613 | } |
| 6614 | _ACEOF |
| 6615 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6616 | if { (ac_try="$ac_link" |
| 6617 | case "(($ac_try" in |
| 6618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6619 | *) ac_try_echo=$ac_try;; |
| 6620 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6622 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6623 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6624 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6625 | rm -f conftest.er1 |
| 6626 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6628 | (exit $ac_status); } && { |
| 6629 | test -z "$ac_c_werror_flag" || |
| 6630 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6631 | } && test -s conftest$ac_exeext && |
| 6632 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6633 | ac_cv_has_makedev=yes |
| 6634 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6635 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6636 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6637 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6638 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6639 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6640 | |
| 6641 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6642 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6643 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6644 | |
| 6645 | cat >>confdefs.h <<\_ACEOF |
| 6646 | #define _OSF_SOURCE 1 |
| 6647 | _ACEOF |
| 6648 | |
| 6649 | fi |
| 6650 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6651 | { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 6652 | echo "${ECHO_T}$ac_cv_has_makedev" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6653 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6654 | |
| 6655 | cat >>confdefs.h <<\_ACEOF |
| 6656 | #define HAVE_MAKEDEV 1 |
| 6657 | _ACEOF |
| 6658 | |
| 6659 | fi |
| 6660 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6661 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 6662 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 6663 | # defined, but the compiler does not support pragma redefine_extname, |
| 6664 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 6665 | # structures (such as rlimit64) without declaring them. As a |
| 6666 | # work-around, disable LFS on such configurations |
| 6667 | |
| 6668 | use_lfs=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6669 | { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 6670 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6671 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6672 | /* confdefs.h. */ |
| 6673 | _ACEOF |
| 6674 | cat confdefs.h >>conftest.$ac_ext |
| 6675 | cat >>conftest.$ac_ext <<_ACEOF |
| 6676 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6677 | |
| 6678 | #define _LARGEFILE_SOURCE 1 |
| 6679 | #define _FILE_OFFSET_BITS 64 |
| 6680 | #include <sys/resource.h> |
| 6681 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6682 | int |
| 6683 | main () |
| 6684 | { |
| 6685 | struct rlimit foo; |
| 6686 | ; |
| 6687 | return 0; |
| 6688 | } |
| 6689 | _ACEOF |
| 6690 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6691 | if { (ac_try="$ac_compile" |
| 6692 | case "(($ac_try" in |
| 6693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6694 | *) ac_try_echo=$ac_try;; |
| 6695 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6697 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6698 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6699 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6700 | rm -f conftest.er1 |
| 6701 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6703 | (exit $ac_status); } && { |
| 6704 | test -z "$ac_c_werror_flag" || |
| 6705 | test ! -s conftest.err |
| 6706 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6707 | sol_lfs_bug=no |
| 6708 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6709 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6710 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6711 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6712 | sol_lfs_bug=yes |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6713 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6714 | |
| 6715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6716 | { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 6717 | echo "${ECHO_T}$sol_lfs_bug" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6718 | if test "$sol_lfs_bug" = "yes"; then |
| 6719 | use_lfs=no |
| 6720 | fi |
| 6721 | |
| 6722 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6723 | # Two defines needed to enable largefile support on various platforms |
| 6724 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6725 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6726 | cat >>confdefs.h <<\_ACEOF |
| 6727 | #define _LARGEFILE_SOURCE 1 |
| 6728 | _ACEOF |
| 6729 | |
| 6730 | |
| 6731 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6732 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6733 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6734 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6735 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6736 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 6737 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 6738 | cat >> confdefs.h <<\EOF |
| 6739 | #if defined(SCO_DS) |
| 6740 | #undef _OFF_T |
| 6741 | #endif |
| 6742 | EOF |
| 6743 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6744 | # Type availability checks |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6745 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 6746 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6747 | if test "${ac_cv_type_mode_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6749 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6750 | cat >conftest.$ac_ext <<_ACEOF |
| 6751 | /* confdefs.h. */ |
| 6752 | _ACEOF |
| 6753 | cat confdefs.h >>conftest.$ac_ext |
| 6754 | cat >>conftest.$ac_ext <<_ACEOF |
| 6755 | /* end confdefs.h. */ |
| 6756 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6757 | typedef mode_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6758 | int |
| 6759 | main () |
| 6760 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6761 | if ((ac__type_new_ *) 0) |
| 6762 | return 0; |
| 6763 | if (sizeof (ac__type_new_)) |
| 6764 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6765 | ; |
| 6766 | return 0; |
| 6767 | } |
| 6768 | _ACEOF |
| 6769 | rm -f conftest.$ac_objext |
| 6770 | if { (ac_try="$ac_compile" |
| 6771 | case "(($ac_try" in |
| 6772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6773 | *) ac_try_echo=$ac_try;; |
| 6774 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6776 | (eval "$ac_compile") 2>conftest.er1 |
| 6777 | ac_status=$? |
| 6778 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6779 | rm -f conftest.er1 |
| 6780 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6782 | (exit $ac_status); } && { |
| 6783 | test -z "$ac_c_werror_flag" || |
| 6784 | test ! -s conftest.err |
| 6785 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6786 | ac_cv_type_mode_t=yes |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6787 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6788 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6789 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6790 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6791 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6792 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6793 | |
| 6794 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6795 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6796 | { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 6797 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } |
| 6798 | if test $ac_cv_type_mode_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6799 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6800 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6801 | |
| 6802 | cat >>confdefs.h <<_ACEOF |
| 6803 | #define mode_t int |
| 6804 | _ACEOF |
| 6805 | |
| 6806 | fi |
| 6807 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6808 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 6809 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6810 | if test "${ac_cv_type_off_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6812 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6813 | cat >conftest.$ac_ext <<_ACEOF |
| 6814 | /* confdefs.h. */ |
| 6815 | _ACEOF |
| 6816 | cat confdefs.h >>conftest.$ac_ext |
| 6817 | cat >>conftest.$ac_ext <<_ACEOF |
| 6818 | /* end confdefs.h. */ |
| 6819 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6820 | typedef off_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6821 | int |
| 6822 | main () |
| 6823 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6824 | if ((ac__type_new_ *) 0) |
| 6825 | return 0; |
| 6826 | if (sizeof (ac__type_new_)) |
| 6827 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6828 | ; |
| 6829 | return 0; |
| 6830 | } |
| 6831 | _ACEOF |
| 6832 | rm -f conftest.$ac_objext |
| 6833 | if { (ac_try="$ac_compile" |
| 6834 | case "(($ac_try" in |
| 6835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6836 | *) ac_try_echo=$ac_try;; |
| 6837 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6839 | (eval "$ac_compile") 2>conftest.er1 |
| 6840 | ac_status=$? |
| 6841 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6842 | rm -f conftest.er1 |
| 6843 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6845 | (exit $ac_status); } && { |
| 6846 | test -z "$ac_c_werror_flag" || |
| 6847 | test ! -s conftest.err |
| 6848 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6849 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6850 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6851 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6852 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6853 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6854 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6855 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6856 | |
| 6857 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6858 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6859 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 6860 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
| 6861 | if test $ac_cv_type_off_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6862 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6863 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6864 | |
| 6865 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6866 | #define off_t long int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6867 | _ACEOF |
| 6868 | |
| 6869 | fi |
| 6870 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6871 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 6872 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6873 | if test "${ac_cv_type_pid_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6875 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6876 | cat >conftest.$ac_ext <<_ACEOF |
| 6877 | /* confdefs.h. */ |
| 6878 | _ACEOF |
| 6879 | cat confdefs.h >>conftest.$ac_ext |
| 6880 | cat >>conftest.$ac_ext <<_ACEOF |
| 6881 | /* end confdefs.h. */ |
| 6882 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6883 | typedef pid_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6884 | int |
| 6885 | main () |
| 6886 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6887 | if ((ac__type_new_ *) 0) |
| 6888 | return 0; |
| 6889 | if (sizeof (ac__type_new_)) |
| 6890 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6891 | ; |
| 6892 | return 0; |
| 6893 | } |
| 6894 | _ACEOF |
| 6895 | rm -f conftest.$ac_objext |
| 6896 | if { (ac_try="$ac_compile" |
| 6897 | case "(($ac_try" in |
| 6898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6899 | *) ac_try_echo=$ac_try;; |
| 6900 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6902 | (eval "$ac_compile") 2>conftest.er1 |
| 6903 | ac_status=$? |
| 6904 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6905 | rm -f conftest.er1 |
| 6906 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6908 | (exit $ac_status); } && { |
| 6909 | test -z "$ac_c_werror_flag" || |
| 6910 | test ! -s conftest.err |
| 6911 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6912 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6913 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6914 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6915 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6916 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6917 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6918 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6919 | |
| 6920 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6921 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6922 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 6923 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 6924 | if test $ac_cv_type_pid_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6925 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6926 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6927 | |
| 6928 | cat >>confdefs.h <<_ACEOF |
| 6929 | #define pid_t int |
| 6930 | _ACEOF |
| 6931 | |
| 6932 | fi |
| 6933 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6934 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 6935 | 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] | 6936 | if test "${ac_cv_type_signal+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6938 | else |
| 6939 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6940 | /* confdefs.h. */ |
| 6941 | _ACEOF |
| 6942 | cat confdefs.h >>conftest.$ac_ext |
| 6943 | cat >>conftest.$ac_ext <<_ACEOF |
| 6944 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6945 | #include <sys/types.h> |
| 6946 | #include <signal.h> |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6947 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6948 | int |
| 6949 | main () |
| 6950 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6951 | return *(signal (0, 0)) (0) == 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6952 | ; |
| 6953 | return 0; |
| 6954 | } |
| 6955 | _ACEOF |
| 6956 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6957 | if { (ac_try="$ac_compile" |
| 6958 | case "(($ac_try" in |
| 6959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6960 | *) ac_try_echo=$ac_try;; |
| 6961 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6962 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6963 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6964 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6965 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6966 | rm -f conftest.er1 |
| 6967 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6969 | (exit $ac_status); } && { |
| 6970 | test -z "$ac_c_werror_flag" || |
| 6971 | test ! -s conftest.err |
| 6972 | } && test -s conftest.$ac_objext; then |
| 6973 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6974 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6975 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6976 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6977 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6978 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6979 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6980 | |
| 6981 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6982 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6983 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 6984 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6985 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6986 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6987 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6988 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6989 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6990 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6991 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 6992 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6993 | if test "${ac_cv_type_size_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6995 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6996 | cat >conftest.$ac_ext <<_ACEOF |
| 6997 | /* confdefs.h. */ |
| 6998 | _ACEOF |
| 6999 | cat confdefs.h >>conftest.$ac_ext |
| 7000 | cat >>conftest.$ac_ext <<_ACEOF |
| 7001 | /* end confdefs.h. */ |
| 7002 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7003 | typedef size_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7004 | int |
| 7005 | main () |
| 7006 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7007 | if ((ac__type_new_ *) 0) |
| 7008 | return 0; |
| 7009 | if (sizeof (ac__type_new_)) |
| 7010 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7011 | ; |
| 7012 | return 0; |
| 7013 | } |
| 7014 | _ACEOF |
| 7015 | rm -f conftest.$ac_objext |
| 7016 | if { (ac_try="$ac_compile" |
| 7017 | case "(($ac_try" in |
| 7018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7019 | *) ac_try_echo=$ac_try;; |
| 7020 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7021 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7022 | (eval "$ac_compile") 2>conftest.er1 |
| 7023 | ac_status=$? |
| 7024 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7025 | rm -f conftest.er1 |
| 7026 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7028 | (exit $ac_status); } && { |
| 7029 | test -z "$ac_c_werror_flag" || |
| 7030 | test ! -s conftest.err |
| 7031 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7032 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7033 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7034 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7035 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7036 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7037 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7038 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7039 | |
| 7040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7041 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7042 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 7043 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 7044 | if test $ac_cv_type_size_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7045 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7046 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7047 | |
| 7048 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7049 | #define size_t unsigned int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7050 | _ACEOF |
| 7051 | |
| 7052 | fi |
| 7053 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7054 | { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 7055 | 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] | 7056 | if test "${ac_cv_type_uid_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7058 | else |
| 7059 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7060 | /* confdefs.h. */ |
| 7061 | _ACEOF |
| 7062 | cat confdefs.h >>conftest.$ac_ext |
| 7063 | cat >>conftest.$ac_ext <<_ACEOF |
| 7064 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7065 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7066 | |
| 7067 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7068 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7069 | $EGREP "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7070 | ac_cv_type_uid_t=yes |
| 7071 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7072 | ac_cv_type_uid_t=no |
| 7073 | fi |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7074 | rm -f -r conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7075 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7076 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7077 | { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 7078 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7079 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7080 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7081 | cat >>confdefs.h <<\_ACEOF |
| 7082 | #define uid_t int |
| 7083 | _ACEOF |
| 7084 | |
| 7085 | |
| 7086 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7087 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7088 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7089 | |
| 7090 | fi |
| 7091 | |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7092 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7093 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
| 7094 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7095 | if test "${ac_cv_c_uint32_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7097 | else |
| 7098 | ac_cv_c_uint32_t=no |
| 7099 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ |
| 7100 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 7101 | cat >conftest.$ac_ext <<_ACEOF |
| 7102 | /* confdefs.h. */ |
| 7103 | _ACEOF |
| 7104 | cat confdefs.h >>conftest.$ac_ext |
| 7105 | cat >>conftest.$ac_ext <<_ACEOF |
| 7106 | /* end confdefs.h. */ |
| 7107 | $ac_includes_default |
| 7108 | int |
| 7109 | main () |
| 7110 | { |
| 7111 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
| 7112 | test_array [0] = 0 |
| 7113 | |
| 7114 | ; |
| 7115 | return 0; |
| 7116 | } |
| 7117 | _ACEOF |
| 7118 | rm -f conftest.$ac_objext |
| 7119 | if { (ac_try="$ac_compile" |
| 7120 | case "(($ac_try" in |
| 7121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7122 | *) ac_try_echo=$ac_try;; |
| 7123 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7124 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7125 | (eval "$ac_compile") 2>conftest.er1 |
| 7126 | ac_status=$? |
| 7127 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7128 | rm -f conftest.er1 |
| 7129 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7131 | (exit $ac_status); } && { |
| 7132 | test -z "$ac_c_werror_flag" || |
| 7133 | test ! -s conftest.err |
| 7134 | } && test -s conftest.$ac_objext; then |
| 7135 | case $ac_type in |
| 7136 | uint32_t) ac_cv_c_uint32_t=yes ;; |
| 7137 | *) ac_cv_c_uint32_t=$ac_type ;; |
| 7138 | esac |
| 7139 | |
| 7140 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7141 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7142 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7143 | |
| 7144 | |
| 7145 | fi |
| 7146 | |
| 7147 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7148 | test "$ac_cv_c_uint32_t" != no && break |
| 7149 | done |
| 7150 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7151 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 |
| 7152 | echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7153 | case $ac_cv_c_uint32_t in #( |
| 7154 | no|yes) ;; #( |
| 7155 | *) |
| 7156 | |
| 7157 | cat >>confdefs.h <<\_ACEOF |
| 7158 | #define _UINT32_T 1 |
| 7159 | _ACEOF |
| 7160 | |
| 7161 | |
| 7162 | cat >>confdefs.h <<_ACEOF |
| 7163 | #define uint32_t $ac_cv_c_uint32_t |
| 7164 | _ACEOF |
| 7165 | ;; |
| 7166 | esac |
| 7167 | |
| 7168 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7169 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 7170 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7171 | if test "${ac_cv_c_uint64_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7173 | else |
| 7174 | ac_cv_c_uint64_t=no |
| 7175 | for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \ |
| 7176 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 7177 | cat >conftest.$ac_ext <<_ACEOF |
| 7178 | /* confdefs.h. */ |
| 7179 | _ACEOF |
| 7180 | cat confdefs.h >>conftest.$ac_ext |
| 7181 | cat >>conftest.$ac_ext <<_ACEOF |
| 7182 | /* end confdefs.h. */ |
| 7183 | $ac_includes_default |
| 7184 | int |
| 7185 | main () |
| 7186 | { |
| 7187 | static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)]; |
| 7188 | test_array [0] = 0 |
| 7189 | |
| 7190 | ; |
| 7191 | return 0; |
| 7192 | } |
| 7193 | _ACEOF |
| 7194 | rm -f conftest.$ac_objext |
| 7195 | if { (ac_try="$ac_compile" |
| 7196 | case "(($ac_try" in |
| 7197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7198 | *) ac_try_echo=$ac_try;; |
| 7199 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7201 | (eval "$ac_compile") 2>conftest.er1 |
| 7202 | ac_status=$? |
| 7203 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7204 | rm -f conftest.er1 |
| 7205 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7207 | (exit $ac_status); } && { |
| 7208 | test -z "$ac_c_werror_flag" || |
| 7209 | test ! -s conftest.err |
| 7210 | } && test -s conftest.$ac_objext; then |
| 7211 | case $ac_type in |
| 7212 | uint64_t) ac_cv_c_uint64_t=yes ;; |
| 7213 | *) ac_cv_c_uint64_t=$ac_type ;; |
| 7214 | esac |
| 7215 | |
| 7216 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7217 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7218 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7219 | |
| 7220 | |
| 7221 | fi |
| 7222 | |
| 7223 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7224 | test "$ac_cv_c_uint64_t" != no && break |
| 7225 | done |
| 7226 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7227 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5 |
| 7228 | echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7229 | case $ac_cv_c_uint64_t in #( |
| 7230 | no|yes) ;; #( |
| 7231 | *) |
| 7232 | |
| 7233 | cat >>confdefs.h <<\_ACEOF |
| 7234 | #define _UINT64_T 1 |
| 7235 | _ACEOF |
| 7236 | |
| 7237 | |
| 7238 | cat >>confdefs.h <<_ACEOF |
| 7239 | #define uint64_t $ac_cv_c_uint64_t |
| 7240 | _ACEOF |
| 7241 | ;; |
| 7242 | esac |
| 7243 | |
| 7244 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7245 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
| 7246 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7247 | if test "${ac_cv_c_int32_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7249 | else |
| 7250 | ac_cv_c_int32_t=no |
| 7251 | for ac_type in 'int32_t' 'int' 'long int' \ |
| 7252 | 'long long int' 'short int' 'signed char'; do |
| 7253 | cat >conftest.$ac_ext <<_ACEOF |
| 7254 | /* confdefs.h. */ |
| 7255 | _ACEOF |
| 7256 | cat confdefs.h >>conftest.$ac_ext |
| 7257 | cat >>conftest.$ac_ext <<_ACEOF |
| 7258 | /* end confdefs.h. */ |
| 7259 | $ac_includes_default |
| 7260 | int |
| 7261 | main () |
| 7262 | { |
| 7263 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
| 7264 | test_array [0] = 0 |
| 7265 | |
| 7266 | ; |
| 7267 | return 0; |
| 7268 | } |
| 7269 | _ACEOF |
| 7270 | rm -f conftest.$ac_objext |
| 7271 | if { (ac_try="$ac_compile" |
| 7272 | case "(($ac_try" in |
| 7273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7274 | *) ac_try_echo=$ac_try;; |
| 7275 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7277 | (eval "$ac_compile") 2>conftest.er1 |
| 7278 | ac_status=$? |
| 7279 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7280 | rm -f conftest.er1 |
| 7281 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7283 | (exit $ac_status); } && { |
| 7284 | test -z "$ac_c_werror_flag" || |
| 7285 | test ! -s conftest.err |
| 7286 | } && test -s conftest.$ac_objext; then |
| 7287 | cat >conftest.$ac_ext <<_ACEOF |
| 7288 | /* confdefs.h. */ |
| 7289 | _ACEOF |
| 7290 | cat confdefs.h >>conftest.$ac_ext |
| 7291 | cat >>conftest.$ac_ext <<_ACEOF |
| 7292 | /* end confdefs.h. */ |
| 7293 | $ac_includes_default |
| 7294 | int |
| 7295 | main () |
| 7296 | { |
| 7297 | 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] | 7298 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7299 | test_array [0] = 0 |
| 7300 | |
| 7301 | ; |
| 7302 | return 0; |
| 7303 | } |
| 7304 | _ACEOF |
| 7305 | rm -f conftest.$ac_objext |
| 7306 | if { (ac_try="$ac_compile" |
| 7307 | case "(($ac_try" in |
| 7308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7309 | *) ac_try_echo=$ac_try;; |
| 7310 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7312 | (eval "$ac_compile") 2>conftest.er1 |
| 7313 | ac_status=$? |
| 7314 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7315 | rm -f conftest.er1 |
| 7316 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7318 | (exit $ac_status); } && { |
| 7319 | test -z "$ac_c_werror_flag" || |
| 7320 | test ! -s conftest.err |
| 7321 | } && test -s conftest.$ac_objext; then |
| 7322 | : |
| 7323 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7324 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7325 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7326 | |
| 7327 | case $ac_type in |
| 7328 | int32_t) ac_cv_c_int32_t=yes ;; |
| 7329 | *) ac_cv_c_int32_t=$ac_type ;; |
| 7330 | esac |
| 7331 | |
| 7332 | fi |
| 7333 | |
| 7334 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7335 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7336 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7337 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7338 | |
| 7339 | |
| 7340 | fi |
| 7341 | |
| 7342 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7343 | test "$ac_cv_c_int32_t" != no && break |
| 7344 | done |
| 7345 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7346 | { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
| 7347 | echo "${ECHO_T}$ac_cv_c_int32_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7348 | case $ac_cv_c_int32_t in #( |
| 7349 | no|yes) ;; #( |
| 7350 | *) |
| 7351 | |
| 7352 | cat >>confdefs.h <<_ACEOF |
| 7353 | #define int32_t $ac_cv_c_int32_t |
| 7354 | _ACEOF |
| 7355 | ;; |
| 7356 | esac |
| 7357 | |
| 7358 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7359 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 7360 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7361 | if test "${ac_cv_c_int64_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7362 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7363 | else |
| 7364 | ac_cv_c_int64_t=no |
| 7365 | for ac_type in 'int64_t' 'int' 'long int' \ |
| 7366 | 'long long int' 'short int' 'signed char'; do |
| 7367 | cat >conftest.$ac_ext <<_ACEOF |
| 7368 | /* confdefs.h. */ |
| 7369 | _ACEOF |
| 7370 | cat confdefs.h >>conftest.$ac_ext |
| 7371 | cat >>conftest.$ac_ext <<_ACEOF |
| 7372 | /* end confdefs.h. */ |
| 7373 | $ac_includes_default |
| 7374 | int |
| 7375 | main () |
| 7376 | { |
| 7377 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))]; |
| 7378 | test_array [0] = 0 |
| 7379 | |
| 7380 | ; |
| 7381 | return 0; |
| 7382 | } |
| 7383 | _ACEOF |
| 7384 | rm -f conftest.$ac_objext |
| 7385 | if { (ac_try="$ac_compile" |
| 7386 | case "(($ac_try" in |
| 7387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7388 | *) ac_try_echo=$ac_try;; |
| 7389 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7391 | (eval "$ac_compile") 2>conftest.er1 |
| 7392 | ac_status=$? |
| 7393 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7394 | rm -f conftest.er1 |
| 7395 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7397 | (exit $ac_status); } && { |
| 7398 | test -z "$ac_c_werror_flag" || |
| 7399 | test ! -s conftest.err |
| 7400 | } && test -s conftest.$ac_objext; then |
| 7401 | cat >conftest.$ac_ext <<_ACEOF |
| 7402 | /* confdefs.h. */ |
| 7403 | _ACEOF |
| 7404 | cat confdefs.h >>conftest.$ac_ext |
| 7405 | cat >>conftest.$ac_ext <<_ACEOF |
| 7406 | /* end confdefs.h. */ |
| 7407 | $ac_includes_default |
| 7408 | int |
| 7409 | main () |
| 7410 | { |
| 7411 | 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] | 7412 | < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))]; |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7413 | test_array [0] = 0 |
| 7414 | |
| 7415 | ; |
| 7416 | return 0; |
| 7417 | } |
| 7418 | _ACEOF |
| 7419 | rm -f conftest.$ac_objext |
| 7420 | if { (ac_try="$ac_compile" |
| 7421 | case "(($ac_try" in |
| 7422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7423 | *) ac_try_echo=$ac_try;; |
| 7424 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7426 | (eval "$ac_compile") 2>conftest.er1 |
| 7427 | ac_status=$? |
| 7428 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7429 | rm -f conftest.er1 |
| 7430 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7432 | (exit $ac_status); } && { |
| 7433 | test -z "$ac_c_werror_flag" || |
| 7434 | test ! -s conftest.err |
| 7435 | } && test -s conftest.$ac_objext; then |
| 7436 | : |
| 7437 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7438 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7439 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7440 | |
| 7441 | case $ac_type in |
| 7442 | int64_t) ac_cv_c_int64_t=yes ;; |
| 7443 | *) ac_cv_c_int64_t=$ac_type ;; |
| 7444 | esac |
| 7445 | |
| 7446 | fi |
| 7447 | |
| 7448 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7449 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7450 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7451 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7452 | |
| 7453 | |
| 7454 | fi |
| 7455 | |
| 7456 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7457 | test "$ac_cv_c_int64_t" != no && break |
| 7458 | done |
| 7459 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7460 | { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5 |
| 7461 | echo "${ECHO_T}$ac_cv_c_int64_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7462 | case $ac_cv_c_int64_t in #( |
| 7463 | no|yes) ;; #( |
| 7464 | *) |
| 7465 | |
| 7466 | cat >>confdefs.h <<_ACEOF |
| 7467 | #define int64_t $ac_cv_c_int64_t |
| 7468 | _ACEOF |
| 7469 | ;; |
| 7470 | esac |
| 7471 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7472 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 7473 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7474 | if test "${ac_cv_type_ssize_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7475 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7476 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7477 | cat >conftest.$ac_ext <<_ACEOF |
| 7478 | /* confdefs.h. */ |
| 7479 | _ACEOF |
| 7480 | cat confdefs.h >>conftest.$ac_ext |
| 7481 | cat >>conftest.$ac_ext <<_ACEOF |
| 7482 | /* end confdefs.h. */ |
| 7483 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7484 | typedef ssize_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7485 | int |
| 7486 | main () |
| 7487 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7488 | if ((ac__type_new_ *) 0) |
| 7489 | return 0; |
| 7490 | if (sizeof (ac__type_new_)) |
| 7491 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7492 | ; |
| 7493 | return 0; |
| 7494 | } |
| 7495 | _ACEOF |
| 7496 | rm -f conftest.$ac_objext |
| 7497 | if { (ac_try="$ac_compile" |
| 7498 | case "(($ac_try" in |
| 7499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7500 | *) ac_try_echo=$ac_try;; |
| 7501 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7503 | (eval "$ac_compile") 2>conftest.er1 |
| 7504 | ac_status=$? |
| 7505 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7506 | rm -f conftest.er1 |
| 7507 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7509 | (exit $ac_status); } && { |
| 7510 | test -z "$ac_c_werror_flag" || |
| 7511 | test ! -s conftest.err |
| 7512 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7513 | ac_cv_type_ssize_t=yes |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7514 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7515 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7516 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7517 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7518 | ac_cv_type_ssize_t=no |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7519 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7520 | |
| 7521 | 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] | 7522 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7523 | { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 7524 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } |
| 7525 | if test $ac_cv_type_ssize_t = yes; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7526 | |
| 7527 | cat >>confdefs.h <<\_ACEOF |
| 7528 | #define HAVE_SSIZE_T 1 |
| 7529 | _ACEOF |
| 7530 | |
| 7531 | fi |
| 7532 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7533 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7534 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 7535 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7536 | { echo "$as_me:$LINENO: checking for int" >&5 |
| 7537 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
| 7538 | if test "${ac_cv_type_int+set}" = set; then |
| 7539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7540 | else |
| 7541 | cat >conftest.$ac_ext <<_ACEOF |
| 7542 | /* confdefs.h. */ |
| 7543 | _ACEOF |
| 7544 | cat confdefs.h >>conftest.$ac_ext |
| 7545 | cat >>conftest.$ac_ext <<_ACEOF |
| 7546 | /* end confdefs.h. */ |
| 7547 | $ac_includes_default |
| 7548 | typedef int ac__type_new_; |
| 7549 | int |
| 7550 | main () |
| 7551 | { |
| 7552 | if ((ac__type_new_ *) 0) |
| 7553 | return 0; |
| 7554 | if (sizeof (ac__type_new_)) |
| 7555 | return 0; |
| 7556 | ; |
| 7557 | return 0; |
| 7558 | } |
| 7559 | _ACEOF |
| 7560 | rm -f conftest.$ac_objext |
| 7561 | if { (ac_try="$ac_compile" |
| 7562 | case "(($ac_try" in |
| 7563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7564 | *) ac_try_echo=$ac_try;; |
| 7565 | esac |
| 7566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7567 | (eval "$ac_compile") 2>conftest.er1 |
| 7568 | ac_status=$? |
| 7569 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7570 | rm -f conftest.er1 |
| 7571 | cat conftest.err >&5 |
| 7572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7573 | (exit $ac_status); } && { |
| 7574 | test -z "$ac_c_werror_flag" || |
| 7575 | test ! -s conftest.err |
| 7576 | } && test -s conftest.$ac_objext; then |
| 7577 | ac_cv_type_int=yes |
| 7578 | else |
| 7579 | echo "$as_me: failed program was:" >&5 |
| 7580 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7581 | |
| 7582 | ac_cv_type_int=no |
| 7583 | fi |
| 7584 | |
| 7585 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7586 | fi |
| 7587 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 7588 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
| 7589 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7590 | # The cast to long int works around a bug in the HP C Compiler |
| 7591 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7592 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7593 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7594 | { echo "$as_me:$LINENO: checking size of int" >&5 |
| 7595 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7596 | if test "${ac_cv_sizeof_int+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7598 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7599 | if test "$cross_compiling" = yes; then |
| 7600 | # Depending upon the size, compute the lo and hi bounds. |
| 7601 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7602 | /* confdefs.h. */ |
| 7603 | _ACEOF |
| 7604 | cat confdefs.h >>conftest.$ac_ext |
| 7605 | cat >>conftest.$ac_ext <<_ACEOF |
| 7606 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7607 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7608 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7609 | int |
| 7610 | main () |
| 7611 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7612 | 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] | 7613 | test_array [0] = 0 |
| 7614 | |
| 7615 | ; |
| 7616 | return 0; |
| 7617 | } |
| 7618 | _ACEOF |
| 7619 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7620 | if { (ac_try="$ac_compile" |
| 7621 | case "(($ac_try" in |
| 7622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7623 | *) ac_try_echo=$ac_try;; |
| 7624 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7625 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7626 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7627 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7628 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7629 | rm -f conftest.er1 |
| 7630 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7632 | (exit $ac_status); } && { |
| 7633 | test -z "$ac_c_werror_flag" || |
| 7634 | test ! -s conftest.err |
| 7635 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7636 | ac_lo=0 ac_mid=0 |
| 7637 | while :; do |
| 7638 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7639 | /* confdefs.h. */ |
| 7640 | _ACEOF |
| 7641 | cat confdefs.h >>conftest.$ac_ext |
| 7642 | cat >>conftest.$ac_ext <<_ACEOF |
| 7643 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7644 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7645 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7646 | int |
| 7647 | main () |
| 7648 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7649 | 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] | 7650 | test_array [0] = 0 |
| 7651 | |
| 7652 | ; |
| 7653 | return 0; |
| 7654 | } |
| 7655 | _ACEOF |
| 7656 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7657 | if { (ac_try="$ac_compile" |
| 7658 | case "(($ac_try" in |
| 7659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7660 | *) ac_try_echo=$ac_try;; |
| 7661 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7663 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7664 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7665 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7666 | rm -f conftest.er1 |
| 7667 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7669 | (exit $ac_status); } && { |
| 7670 | test -z "$ac_c_werror_flag" || |
| 7671 | test ! -s conftest.err |
| 7672 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7673 | ac_hi=$ac_mid; break |
| 7674 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7675 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7676 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7677 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7678 | ac_lo=`expr $ac_mid + 1` |
| 7679 | if test $ac_lo -le $ac_mid; then |
| 7680 | ac_lo= ac_hi= |
| 7681 | break |
| 7682 | fi |
| 7683 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7684 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7685 | |
| 7686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7687 | done |
| 7688 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7689 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7690 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7691 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7692 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7693 | /* confdefs.h. */ |
| 7694 | _ACEOF |
| 7695 | cat confdefs.h >>conftest.$ac_ext |
| 7696 | cat >>conftest.$ac_ext <<_ACEOF |
| 7697 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7698 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7699 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7700 | int |
| 7701 | main () |
| 7702 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7703 | 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] | 7704 | test_array [0] = 0 |
| 7705 | |
| 7706 | ; |
| 7707 | return 0; |
| 7708 | } |
| 7709 | _ACEOF |
| 7710 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7711 | if { (ac_try="$ac_compile" |
| 7712 | case "(($ac_try" in |
| 7713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7714 | *) ac_try_echo=$ac_try;; |
| 7715 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7717 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7718 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7719 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7720 | rm -f conftest.er1 |
| 7721 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7723 | (exit $ac_status); } && { |
| 7724 | test -z "$ac_c_werror_flag" || |
| 7725 | test ! -s conftest.err |
| 7726 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7727 | ac_hi=-1 ac_mid=-1 |
| 7728 | while :; do |
| 7729 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7730 | /* confdefs.h. */ |
| 7731 | _ACEOF |
| 7732 | cat confdefs.h >>conftest.$ac_ext |
| 7733 | cat >>conftest.$ac_ext <<_ACEOF |
| 7734 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7735 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7736 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7737 | int |
| 7738 | main () |
| 7739 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7740 | 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] | 7741 | test_array [0] = 0 |
| 7742 | |
| 7743 | ; |
| 7744 | return 0; |
| 7745 | } |
| 7746 | _ACEOF |
| 7747 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7748 | if { (ac_try="$ac_compile" |
| 7749 | case "(($ac_try" in |
| 7750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7751 | *) ac_try_echo=$ac_try;; |
| 7752 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7754 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7755 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7756 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7757 | rm -f conftest.er1 |
| 7758 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7760 | (exit $ac_status); } && { |
| 7761 | test -z "$ac_c_werror_flag" || |
| 7762 | test ! -s conftest.err |
| 7763 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7764 | ac_lo=$ac_mid; break |
| 7765 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7766 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7767 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7768 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7769 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7770 | if test $ac_mid -le $ac_hi; then |
| 7771 | ac_lo= ac_hi= |
| 7772 | break |
| 7773 | fi |
| 7774 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7775 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7776 | |
| 7777 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7778 | done |
| 7779 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7780 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7781 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7782 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7783 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7784 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7785 | |
| 7786 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7787 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7788 | |
| 7789 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7790 | # Binary search between lo and hi bounds. |
| 7791 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7792 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7793 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7794 | /* confdefs.h. */ |
| 7795 | _ACEOF |
| 7796 | cat confdefs.h >>conftest.$ac_ext |
| 7797 | cat >>conftest.$ac_ext <<_ACEOF |
| 7798 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7799 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7800 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7801 | int |
| 7802 | main () |
| 7803 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7804 | 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] | 7805 | test_array [0] = 0 |
| 7806 | |
| 7807 | ; |
| 7808 | return 0; |
| 7809 | } |
| 7810 | _ACEOF |
| 7811 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7812 | if { (ac_try="$ac_compile" |
| 7813 | case "(($ac_try" in |
| 7814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7815 | *) ac_try_echo=$ac_try;; |
| 7816 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7818 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7819 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7820 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7821 | rm -f conftest.er1 |
| 7822 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7824 | (exit $ac_status); } && { |
| 7825 | test -z "$ac_c_werror_flag" || |
| 7826 | test ! -s conftest.err |
| 7827 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7828 | ac_hi=$ac_mid |
| 7829 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7830 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7831 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7832 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7833 | ac_lo=`expr '(' $ac_mid ')' + 1` |
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 | done |
| 7838 | case $ac_lo in |
| 7839 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7840 | '') if test "$ac_cv_type_int" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7841 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7842 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7843 | echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7844 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7845 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7846 | else |
| 7847 | ac_cv_sizeof_int=0 |
| 7848 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7849 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7850 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7851 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7852 | /* confdefs.h. */ |
| 7853 | _ACEOF |
| 7854 | cat confdefs.h >>conftest.$ac_ext |
| 7855 | cat >>conftest.$ac_ext <<_ACEOF |
| 7856 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7857 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7858 | typedef int ac__type_sizeof_; |
| 7859 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 7860 | 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] | 7861 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7862 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7863 | int |
| 7864 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7865 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7866 | |
| 7867 | FILE *f = fopen ("conftest.val", "w"); |
| 7868 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7869 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7870 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7871 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7872 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7873 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7874 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7875 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7876 | } |
| 7877 | else |
| 7878 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7879 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7880 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7881 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7882 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7883 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7884 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7885 | |
| 7886 | ; |
| 7887 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7888 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7889 | _ACEOF |
| 7890 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7891 | if { (ac_try="$ac_link" |
| 7892 | case "(($ac_try" in |
| 7893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7894 | *) ac_try_echo=$ac_try;; |
| 7895 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7897 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7898 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7900 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7901 | { (case "(($ac_try" in |
| 7902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7903 | *) ac_try_echo=$ac_try;; |
| 7904 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7906 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7907 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7909 | (exit $ac_status); }; }; then |
| 7910 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7911 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7912 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7913 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7914 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7915 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7916 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7917 | if test "$ac_cv_type_int" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7918 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7919 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7920 | echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7921 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7922 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7923 | else |
| 7924 | ac_cv_sizeof_int=0 |
| 7925 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7926 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7927 | 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] | 7928 | fi |
| 7929 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7930 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7931 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 7932 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7933 | |
| 7934 | |
| 7935 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7936 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7937 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7938 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7939 | |
| 7940 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7941 | { echo "$as_me:$LINENO: checking for long" >&5 |
| 7942 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } |
| 7943 | if test "${ac_cv_type_long+set}" = set; then |
| 7944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7945 | else |
| 7946 | cat >conftest.$ac_ext <<_ACEOF |
| 7947 | /* confdefs.h. */ |
| 7948 | _ACEOF |
| 7949 | cat confdefs.h >>conftest.$ac_ext |
| 7950 | cat >>conftest.$ac_ext <<_ACEOF |
| 7951 | /* end confdefs.h. */ |
| 7952 | $ac_includes_default |
| 7953 | typedef long ac__type_new_; |
| 7954 | int |
| 7955 | main () |
| 7956 | { |
| 7957 | if ((ac__type_new_ *) 0) |
| 7958 | return 0; |
| 7959 | if (sizeof (ac__type_new_)) |
| 7960 | return 0; |
| 7961 | ; |
| 7962 | return 0; |
| 7963 | } |
| 7964 | _ACEOF |
| 7965 | rm -f conftest.$ac_objext |
| 7966 | if { (ac_try="$ac_compile" |
| 7967 | case "(($ac_try" in |
| 7968 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7969 | *) ac_try_echo=$ac_try;; |
| 7970 | esac |
| 7971 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7972 | (eval "$ac_compile") 2>conftest.er1 |
| 7973 | ac_status=$? |
| 7974 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7975 | rm -f conftest.er1 |
| 7976 | cat conftest.err >&5 |
| 7977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7978 | (exit $ac_status); } && { |
| 7979 | test -z "$ac_c_werror_flag" || |
| 7980 | test ! -s conftest.err |
| 7981 | } && test -s conftest.$ac_objext; then |
| 7982 | ac_cv_type_long=yes |
| 7983 | else |
| 7984 | echo "$as_me: failed program was:" >&5 |
| 7985 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7986 | |
| 7987 | ac_cv_type_long=no |
| 7988 | fi |
| 7989 | |
| 7990 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7991 | fi |
| 7992 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 7993 | echo "${ECHO_T}$ac_cv_type_long" >&6; } |
| 7994 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7995 | # The cast to long int works around a bug in the HP C Compiler |
| 7996 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7997 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7998 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7999 | { echo "$as_me:$LINENO: checking size of long" >&5 |
| 8000 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8001 | if test "${ac_cv_sizeof_long+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8003 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8004 | if test "$cross_compiling" = yes; then |
| 8005 | # Depending upon the size, compute the lo and hi bounds. |
| 8006 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8007 | /* confdefs.h. */ |
| 8008 | _ACEOF |
| 8009 | cat confdefs.h >>conftest.$ac_ext |
| 8010 | cat >>conftest.$ac_ext <<_ACEOF |
| 8011 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8012 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8013 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8014 | int |
| 8015 | main () |
| 8016 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8017 | 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] | 8018 | test_array [0] = 0 |
| 8019 | |
| 8020 | ; |
| 8021 | return 0; |
| 8022 | } |
| 8023 | _ACEOF |
| 8024 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8025 | if { (ac_try="$ac_compile" |
| 8026 | case "(($ac_try" in |
| 8027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8028 | *) ac_try_echo=$ac_try;; |
| 8029 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8031 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8032 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8033 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8034 | rm -f conftest.er1 |
| 8035 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8037 | (exit $ac_status); } && { |
| 8038 | test -z "$ac_c_werror_flag" || |
| 8039 | test ! -s conftest.err |
| 8040 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8041 | ac_lo=0 ac_mid=0 |
| 8042 | while :; do |
| 8043 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8044 | /* confdefs.h. */ |
| 8045 | _ACEOF |
| 8046 | cat confdefs.h >>conftest.$ac_ext |
| 8047 | cat >>conftest.$ac_ext <<_ACEOF |
| 8048 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8049 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8050 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8051 | int |
| 8052 | main () |
| 8053 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8054 | 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] | 8055 | test_array [0] = 0 |
| 8056 | |
| 8057 | ; |
| 8058 | return 0; |
| 8059 | } |
| 8060 | _ACEOF |
| 8061 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8062 | if { (ac_try="$ac_compile" |
| 8063 | case "(($ac_try" in |
| 8064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8065 | *) ac_try_echo=$ac_try;; |
| 8066 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8068 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8069 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8070 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8071 | rm -f conftest.er1 |
| 8072 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8074 | (exit $ac_status); } && { |
| 8075 | test -z "$ac_c_werror_flag" || |
| 8076 | test ! -s conftest.err |
| 8077 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8078 | ac_hi=$ac_mid; break |
| 8079 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8080 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8081 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8082 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8083 | ac_lo=`expr $ac_mid + 1` |
| 8084 | if test $ac_lo -le $ac_mid; then |
| 8085 | ac_lo= ac_hi= |
| 8086 | break |
| 8087 | fi |
| 8088 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8089 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8090 | |
| 8091 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8092 | done |
| 8093 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8094 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8095 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8096 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8097 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8098 | /* confdefs.h. */ |
| 8099 | _ACEOF |
| 8100 | cat confdefs.h >>conftest.$ac_ext |
| 8101 | cat >>conftest.$ac_ext <<_ACEOF |
| 8102 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8103 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8104 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8105 | int |
| 8106 | main () |
| 8107 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8108 | 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] | 8109 | test_array [0] = 0 |
| 8110 | |
| 8111 | ; |
| 8112 | return 0; |
| 8113 | } |
| 8114 | _ACEOF |
| 8115 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8116 | if { (ac_try="$ac_compile" |
| 8117 | case "(($ac_try" in |
| 8118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8119 | *) ac_try_echo=$ac_try;; |
| 8120 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8122 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8123 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8124 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8125 | rm -f conftest.er1 |
| 8126 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8128 | (exit $ac_status); } && { |
| 8129 | test -z "$ac_c_werror_flag" || |
| 8130 | test ! -s conftest.err |
| 8131 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8132 | ac_hi=-1 ac_mid=-1 |
| 8133 | while :; do |
| 8134 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8135 | /* confdefs.h. */ |
| 8136 | _ACEOF |
| 8137 | cat confdefs.h >>conftest.$ac_ext |
| 8138 | cat >>conftest.$ac_ext <<_ACEOF |
| 8139 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8140 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8141 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8142 | int |
| 8143 | main () |
| 8144 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8145 | 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] | 8146 | test_array [0] = 0 |
| 8147 | |
| 8148 | ; |
| 8149 | return 0; |
| 8150 | } |
| 8151 | _ACEOF |
| 8152 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8153 | if { (ac_try="$ac_compile" |
| 8154 | case "(($ac_try" in |
| 8155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8156 | *) ac_try_echo=$ac_try;; |
| 8157 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8159 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8160 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8161 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8162 | rm -f conftest.er1 |
| 8163 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8165 | (exit $ac_status); } && { |
| 8166 | test -z "$ac_c_werror_flag" || |
| 8167 | test ! -s conftest.err |
| 8168 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8169 | ac_lo=$ac_mid; break |
| 8170 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8171 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8172 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8173 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8174 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8175 | if test $ac_mid -le $ac_hi; then |
| 8176 | ac_lo= ac_hi= |
| 8177 | break |
| 8178 | fi |
| 8179 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8180 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8181 | |
| 8182 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8183 | done |
| 8184 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8185 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8186 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8187 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8188 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8189 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8190 | |
| 8191 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8192 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8193 | |
| 8194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8195 | # Binary search between lo and hi bounds. |
| 8196 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8197 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8198 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8199 | /* confdefs.h. */ |
| 8200 | _ACEOF |
| 8201 | cat confdefs.h >>conftest.$ac_ext |
| 8202 | cat >>conftest.$ac_ext <<_ACEOF |
| 8203 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8204 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8205 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8206 | int |
| 8207 | main () |
| 8208 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8209 | 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] | 8210 | test_array [0] = 0 |
| 8211 | |
| 8212 | ; |
| 8213 | return 0; |
| 8214 | } |
| 8215 | _ACEOF |
| 8216 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8217 | if { (ac_try="$ac_compile" |
| 8218 | case "(($ac_try" in |
| 8219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8220 | *) ac_try_echo=$ac_try;; |
| 8221 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8223 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8224 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8225 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8226 | rm -f conftest.er1 |
| 8227 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8229 | (exit $ac_status); } && { |
| 8230 | test -z "$ac_c_werror_flag" || |
| 8231 | test ! -s conftest.err |
| 8232 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8233 | ac_hi=$ac_mid |
| 8234 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8235 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8236 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8237 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8238 | ac_lo=`expr '(' $ac_mid ')' + 1` |
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 | done |
| 8243 | case $ac_lo in |
| 8244 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8245 | '') if test "$ac_cv_type_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8246 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8247 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8248 | echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8249 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8250 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8251 | else |
| 8252 | ac_cv_sizeof_long=0 |
| 8253 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8254 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8255 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8256 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8257 | /* confdefs.h. */ |
| 8258 | _ACEOF |
| 8259 | cat confdefs.h >>conftest.$ac_ext |
| 8260 | cat >>conftest.$ac_ext <<_ACEOF |
| 8261 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8262 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8263 | typedef long ac__type_sizeof_; |
| 8264 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8265 | 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] | 8266 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8267 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8268 | int |
| 8269 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8270 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8271 | |
| 8272 | FILE *f = fopen ("conftest.val", "w"); |
| 8273 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8274 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8275 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8276 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8277 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8278 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8279 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8280 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8281 | } |
| 8282 | else |
| 8283 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8284 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8285 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8286 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8287 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8288 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8289 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8290 | |
| 8291 | ; |
| 8292 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8293 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8294 | _ACEOF |
| 8295 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8296 | if { (ac_try="$ac_link" |
| 8297 | case "(($ac_try" in |
| 8298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8299 | *) ac_try_echo=$ac_try;; |
| 8300 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8302 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8303 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8305 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8306 | { (case "(($ac_try" in |
| 8307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8308 | *) ac_try_echo=$ac_try;; |
| 8309 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8311 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8312 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8314 | (exit $ac_status); }; }; then |
| 8315 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8316 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8317 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8318 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8319 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8320 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8321 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8322 | if test "$ac_cv_type_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8323 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8324 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8325 | echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8326 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8327 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8328 | else |
| 8329 | ac_cv_sizeof_long=0 |
| 8330 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8331 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8332 | 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] | 8333 | fi |
| 8334 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8335 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8336 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 8337 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8338 | |
| 8339 | |
| 8340 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8341 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8342 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8343 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8344 | |
| 8345 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8346 | { echo "$as_me:$LINENO: checking for void *" >&5 |
| 8347 | echo $ECHO_N "checking for void *... $ECHO_C" >&6; } |
| 8348 | if test "${ac_cv_type_void_p+set}" = set; then |
| 8349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8350 | else |
| 8351 | cat >conftest.$ac_ext <<_ACEOF |
| 8352 | /* confdefs.h. */ |
| 8353 | _ACEOF |
| 8354 | cat confdefs.h >>conftest.$ac_ext |
| 8355 | cat >>conftest.$ac_ext <<_ACEOF |
| 8356 | /* end confdefs.h. */ |
| 8357 | $ac_includes_default |
| 8358 | typedef void * ac__type_new_; |
| 8359 | int |
| 8360 | main () |
| 8361 | { |
| 8362 | if ((ac__type_new_ *) 0) |
| 8363 | return 0; |
| 8364 | if (sizeof (ac__type_new_)) |
| 8365 | return 0; |
| 8366 | ; |
| 8367 | return 0; |
| 8368 | } |
| 8369 | _ACEOF |
| 8370 | rm -f conftest.$ac_objext |
| 8371 | if { (ac_try="$ac_compile" |
| 8372 | case "(($ac_try" in |
| 8373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8374 | *) ac_try_echo=$ac_try;; |
| 8375 | esac |
| 8376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8377 | (eval "$ac_compile") 2>conftest.er1 |
| 8378 | ac_status=$? |
| 8379 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8380 | rm -f conftest.er1 |
| 8381 | cat conftest.err >&5 |
| 8382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8383 | (exit $ac_status); } && { |
| 8384 | test -z "$ac_c_werror_flag" || |
| 8385 | test ! -s conftest.err |
| 8386 | } && test -s conftest.$ac_objext; then |
| 8387 | ac_cv_type_void_p=yes |
| 8388 | else |
| 8389 | echo "$as_me: failed program was:" >&5 |
| 8390 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8391 | |
| 8392 | ac_cv_type_void_p=no |
| 8393 | fi |
| 8394 | |
| 8395 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8396 | fi |
| 8397 | { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 8398 | echo "${ECHO_T}$ac_cv_type_void_p" >&6; } |
| 8399 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8400 | # The cast to long int works around a bug in the HP C Compiler |
| 8401 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8402 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8403 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8404 | { echo "$as_me:$LINENO: checking size of void *" >&5 |
| 8405 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8406 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8408 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8409 | if test "$cross_compiling" = yes; then |
| 8410 | # Depending upon the size, compute the lo and hi bounds. |
| 8411 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8412 | /* confdefs.h. */ |
| 8413 | _ACEOF |
| 8414 | cat confdefs.h >>conftest.$ac_ext |
| 8415 | cat >>conftest.$ac_ext <<_ACEOF |
| 8416 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8417 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8418 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8419 | int |
| 8420 | main () |
| 8421 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8422 | 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] | 8423 | test_array [0] = 0 |
| 8424 | |
| 8425 | ; |
| 8426 | return 0; |
| 8427 | } |
| 8428 | _ACEOF |
| 8429 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8430 | if { (ac_try="$ac_compile" |
| 8431 | case "(($ac_try" in |
| 8432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8433 | *) ac_try_echo=$ac_try;; |
| 8434 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8435 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8436 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8437 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8438 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8439 | rm -f conftest.er1 |
| 8440 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8442 | (exit $ac_status); } && { |
| 8443 | test -z "$ac_c_werror_flag" || |
| 8444 | test ! -s conftest.err |
| 8445 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8446 | ac_lo=0 ac_mid=0 |
| 8447 | while :; do |
| 8448 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8449 | /* confdefs.h. */ |
| 8450 | _ACEOF |
| 8451 | cat confdefs.h >>conftest.$ac_ext |
| 8452 | cat >>conftest.$ac_ext <<_ACEOF |
| 8453 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8454 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8455 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8456 | int |
| 8457 | main () |
| 8458 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8459 | 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] | 8460 | test_array [0] = 0 |
| 8461 | |
| 8462 | ; |
| 8463 | return 0; |
| 8464 | } |
| 8465 | _ACEOF |
| 8466 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8467 | if { (ac_try="$ac_compile" |
| 8468 | case "(($ac_try" in |
| 8469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8470 | *) ac_try_echo=$ac_try;; |
| 8471 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8472 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8473 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8474 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8475 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8476 | rm -f conftest.er1 |
| 8477 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8479 | (exit $ac_status); } && { |
| 8480 | test -z "$ac_c_werror_flag" || |
| 8481 | test ! -s conftest.err |
| 8482 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8483 | ac_hi=$ac_mid; break |
| 8484 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8485 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8486 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8487 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8488 | ac_lo=`expr $ac_mid + 1` |
| 8489 | if test $ac_lo -le $ac_mid; then |
| 8490 | ac_lo= ac_hi= |
| 8491 | break |
| 8492 | fi |
| 8493 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8494 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8495 | |
| 8496 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8497 | done |
| 8498 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8499 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8500 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8501 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8502 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8503 | /* confdefs.h. */ |
| 8504 | _ACEOF |
| 8505 | cat confdefs.h >>conftest.$ac_ext |
| 8506 | cat >>conftest.$ac_ext <<_ACEOF |
| 8507 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8508 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8509 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8510 | int |
| 8511 | main () |
| 8512 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8513 | 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] | 8514 | test_array [0] = 0 |
| 8515 | |
| 8516 | ; |
| 8517 | return 0; |
| 8518 | } |
| 8519 | _ACEOF |
| 8520 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8521 | if { (ac_try="$ac_compile" |
| 8522 | case "(($ac_try" in |
| 8523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8524 | *) ac_try_echo=$ac_try;; |
| 8525 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8527 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8528 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8529 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8530 | rm -f conftest.er1 |
| 8531 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8533 | (exit $ac_status); } && { |
| 8534 | test -z "$ac_c_werror_flag" || |
| 8535 | test ! -s conftest.err |
| 8536 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8537 | ac_hi=-1 ac_mid=-1 |
| 8538 | while :; do |
| 8539 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8540 | /* confdefs.h. */ |
| 8541 | _ACEOF |
| 8542 | cat confdefs.h >>conftest.$ac_ext |
| 8543 | cat >>conftest.$ac_ext <<_ACEOF |
| 8544 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8545 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8546 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8547 | int |
| 8548 | main () |
| 8549 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8550 | 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] | 8551 | test_array [0] = 0 |
| 8552 | |
| 8553 | ; |
| 8554 | return 0; |
| 8555 | } |
| 8556 | _ACEOF |
| 8557 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8558 | if { (ac_try="$ac_compile" |
| 8559 | case "(($ac_try" in |
| 8560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8561 | *) ac_try_echo=$ac_try;; |
| 8562 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8563 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8564 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8565 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8566 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8567 | rm -f conftest.er1 |
| 8568 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8570 | (exit $ac_status); } && { |
| 8571 | test -z "$ac_c_werror_flag" || |
| 8572 | test ! -s conftest.err |
| 8573 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8574 | ac_lo=$ac_mid; break |
| 8575 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8576 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8577 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8578 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8579 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8580 | if test $ac_mid -le $ac_hi; then |
| 8581 | ac_lo= ac_hi= |
| 8582 | break |
| 8583 | fi |
| 8584 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8585 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8586 | |
| 8587 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8588 | done |
| 8589 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8590 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8591 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8592 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8593 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8594 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8595 | |
| 8596 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8597 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8598 | |
| 8599 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8600 | # Binary search between lo and hi bounds. |
| 8601 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8602 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8603 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8604 | /* confdefs.h. */ |
| 8605 | _ACEOF |
| 8606 | cat confdefs.h >>conftest.$ac_ext |
| 8607 | cat >>conftest.$ac_ext <<_ACEOF |
| 8608 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8609 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8610 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8611 | int |
| 8612 | main () |
| 8613 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8614 | 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] | 8615 | test_array [0] = 0 |
| 8616 | |
| 8617 | ; |
| 8618 | return 0; |
| 8619 | } |
| 8620 | _ACEOF |
| 8621 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8622 | if { (ac_try="$ac_compile" |
| 8623 | case "(($ac_try" in |
| 8624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8625 | *) ac_try_echo=$ac_try;; |
| 8626 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8628 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8629 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8630 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8631 | rm -f conftest.er1 |
| 8632 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8634 | (exit $ac_status); } && { |
| 8635 | test -z "$ac_c_werror_flag" || |
| 8636 | test ! -s conftest.err |
| 8637 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8638 | ac_hi=$ac_mid |
| 8639 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8640 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8641 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8642 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8643 | ac_lo=`expr '(' $ac_mid ')' + 1` |
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 | done |
| 8648 | case $ac_lo in |
| 8649 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8650 | '') if test "$ac_cv_type_void_p" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8651 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8652 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8653 | echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8654 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8655 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8656 | else |
| 8657 | ac_cv_sizeof_void_p=0 |
| 8658 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8659 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8660 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8661 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8662 | /* confdefs.h. */ |
| 8663 | _ACEOF |
| 8664 | cat confdefs.h >>conftest.$ac_ext |
| 8665 | cat >>conftest.$ac_ext <<_ACEOF |
| 8666 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8667 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8668 | typedef void * ac__type_sizeof_; |
| 8669 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8670 | 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] | 8671 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8672 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8673 | int |
| 8674 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8675 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8676 | |
| 8677 | FILE *f = fopen ("conftest.val", "w"); |
| 8678 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8679 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8680 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8681 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8682 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8683 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8684 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8685 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8686 | } |
| 8687 | else |
| 8688 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8689 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8690 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8691 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8692 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8693 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8694 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8695 | |
| 8696 | ; |
| 8697 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8698 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8699 | _ACEOF |
| 8700 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8701 | if { (ac_try="$ac_link" |
| 8702 | case "(($ac_try" in |
| 8703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8704 | *) ac_try_echo=$ac_try;; |
| 8705 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8706 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8707 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8708 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8710 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8711 | { (case "(($ac_try" in |
| 8712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8713 | *) ac_try_echo=$ac_try;; |
| 8714 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8716 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8717 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8719 | (exit $ac_status); }; }; then |
| 8720 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8721 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8722 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8723 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8724 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8725 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8726 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8727 | if test "$ac_cv_type_void_p" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8728 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8729 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8730 | echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8731 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8732 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8733 | else |
| 8734 | ac_cv_sizeof_void_p=0 |
| 8735 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8736 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8737 | 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] | 8738 | fi |
| 8739 | rm -f conftest.val |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8740 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8741 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 8742 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8743 | |
| 8744 | |
| 8745 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8746 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8747 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8748 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8749 | |
| 8750 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8751 | { echo "$as_me:$LINENO: checking for short" >&5 |
| 8752 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
| 8753 | if test "${ac_cv_type_short+set}" = set; then |
| 8754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8755 | else |
| 8756 | cat >conftest.$ac_ext <<_ACEOF |
| 8757 | /* confdefs.h. */ |
| 8758 | _ACEOF |
| 8759 | cat confdefs.h >>conftest.$ac_ext |
| 8760 | cat >>conftest.$ac_ext <<_ACEOF |
| 8761 | /* end confdefs.h. */ |
| 8762 | $ac_includes_default |
| 8763 | typedef short ac__type_new_; |
| 8764 | int |
| 8765 | main () |
| 8766 | { |
| 8767 | if ((ac__type_new_ *) 0) |
| 8768 | return 0; |
| 8769 | if (sizeof (ac__type_new_)) |
| 8770 | return 0; |
| 8771 | ; |
| 8772 | return 0; |
| 8773 | } |
| 8774 | _ACEOF |
| 8775 | rm -f conftest.$ac_objext |
| 8776 | if { (ac_try="$ac_compile" |
| 8777 | case "(($ac_try" in |
| 8778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8779 | *) ac_try_echo=$ac_try;; |
| 8780 | esac |
| 8781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8782 | (eval "$ac_compile") 2>conftest.er1 |
| 8783 | ac_status=$? |
| 8784 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8785 | rm -f conftest.er1 |
| 8786 | cat conftest.err >&5 |
| 8787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8788 | (exit $ac_status); } && { |
| 8789 | test -z "$ac_c_werror_flag" || |
| 8790 | test ! -s conftest.err |
| 8791 | } && test -s conftest.$ac_objext; then |
| 8792 | ac_cv_type_short=yes |
| 8793 | else |
| 8794 | echo "$as_me: failed program was:" >&5 |
| 8795 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8796 | |
| 8797 | ac_cv_type_short=no |
| 8798 | fi |
| 8799 | |
| 8800 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8801 | fi |
| 8802 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 8803 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
| 8804 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8805 | # The cast to long int works around a bug in the HP C Compiler |
| 8806 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8807 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8808 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8809 | { echo "$as_me:$LINENO: checking size of short" >&5 |
| 8810 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8811 | if test "${ac_cv_sizeof_short+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8812 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8813 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8814 | if test "$cross_compiling" = yes; then |
| 8815 | # Depending upon the size, compute the lo and hi bounds. |
| 8816 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8817 | /* confdefs.h. */ |
| 8818 | _ACEOF |
| 8819 | cat confdefs.h >>conftest.$ac_ext |
| 8820 | cat >>conftest.$ac_ext <<_ACEOF |
| 8821 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8822 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8823 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8824 | int |
| 8825 | main () |
| 8826 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8827 | 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] | 8828 | test_array [0] = 0 |
| 8829 | |
| 8830 | ; |
| 8831 | return 0; |
| 8832 | } |
| 8833 | _ACEOF |
| 8834 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8835 | if { (ac_try="$ac_compile" |
| 8836 | case "(($ac_try" in |
| 8837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8838 | *) ac_try_echo=$ac_try;; |
| 8839 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8841 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8842 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8843 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8844 | rm -f conftest.er1 |
| 8845 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8847 | (exit $ac_status); } && { |
| 8848 | test -z "$ac_c_werror_flag" || |
| 8849 | test ! -s conftest.err |
| 8850 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8851 | ac_lo=0 ac_mid=0 |
| 8852 | while :; do |
| 8853 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8854 | /* confdefs.h. */ |
| 8855 | _ACEOF |
| 8856 | cat confdefs.h >>conftest.$ac_ext |
| 8857 | cat >>conftest.$ac_ext <<_ACEOF |
| 8858 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8859 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8860 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8861 | int |
| 8862 | main () |
| 8863 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8864 | 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] | 8865 | test_array [0] = 0 |
| 8866 | |
| 8867 | ; |
| 8868 | return 0; |
| 8869 | } |
| 8870 | _ACEOF |
| 8871 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8872 | if { (ac_try="$ac_compile" |
| 8873 | case "(($ac_try" in |
| 8874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8875 | *) ac_try_echo=$ac_try;; |
| 8876 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8878 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8879 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8880 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8881 | rm -f conftest.er1 |
| 8882 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8884 | (exit $ac_status); } && { |
| 8885 | test -z "$ac_c_werror_flag" || |
| 8886 | test ! -s conftest.err |
| 8887 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8888 | ac_hi=$ac_mid; break |
| 8889 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8890 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8891 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8892 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8893 | ac_lo=`expr $ac_mid + 1` |
| 8894 | if test $ac_lo -le $ac_mid; then |
| 8895 | ac_lo= ac_hi= |
| 8896 | break |
| 8897 | fi |
| 8898 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8899 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8900 | |
| 8901 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8902 | done |
| 8903 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8904 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8905 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8906 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8907 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8908 | /* confdefs.h. */ |
| 8909 | _ACEOF |
| 8910 | cat confdefs.h >>conftest.$ac_ext |
| 8911 | cat >>conftest.$ac_ext <<_ACEOF |
| 8912 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8913 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8914 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8915 | int |
| 8916 | main () |
| 8917 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8918 | 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] | 8919 | test_array [0] = 0 |
| 8920 | |
| 8921 | ; |
| 8922 | return 0; |
| 8923 | } |
| 8924 | _ACEOF |
| 8925 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8926 | if { (ac_try="$ac_compile" |
| 8927 | case "(($ac_try" in |
| 8928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8929 | *) ac_try_echo=$ac_try;; |
| 8930 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8932 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8933 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8934 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8935 | rm -f conftest.er1 |
| 8936 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8938 | (exit $ac_status); } && { |
| 8939 | test -z "$ac_c_werror_flag" || |
| 8940 | test ! -s conftest.err |
| 8941 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8942 | ac_hi=-1 ac_mid=-1 |
| 8943 | while :; do |
| 8944 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8945 | /* confdefs.h. */ |
| 8946 | _ACEOF |
| 8947 | cat confdefs.h >>conftest.$ac_ext |
| 8948 | cat >>conftest.$ac_ext <<_ACEOF |
| 8949 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8950 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8951 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8952 | int |
| 8953 | main () |
| 8954 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8955 | 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] | 8956 | test_array [0] = 0 |
| 8957 | |
| 8958 | ; |
| 8959 | return 0; |
| 8960 | } |
| 8961 | _ACEOF |
| 8962 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8963 | if { (ac_try="$ac_compile" |
| 8964 | case "(($ac_try" in |
| 8965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8966 | *) ac_try_echo=$ac_try;; |
| 8967 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8969 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8970 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8971 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8972 | rm -f conftest.er1 |
| 8973 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8975 | (exit $ac_status); } && { |
| 8976 | test -z "$ac_c_werror_flag" || |
| 8977 | test ! -s conftest.err |
| 8978 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8979 | ac_lo=$ac_mid; break |
| 8980 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8981 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8982 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8983 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8984 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8985 | if test $ac_mid -le $ac_hi; then |
| 8986 | ac_lo= ac_hi= |
| 8987 | break |
| 8988 | fi |
| 8989 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8990 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8991 | |
| 8992 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8993 | done |
| 8994 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8995 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8996 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8997 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8998 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8999 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9000 | |
| 9001 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9002 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9003 | |
| 9004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9005 | # Binary search between lo and hi bounds. |
| 9006 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9007 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9008 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9009 | /* confdefs.h. */ |
| 9010 | _ACEOF |
| 9011 | cat confdefs.h >>conftest.$ac_ext |
| 9012 | cat >>conftest.$ac_ext <<_ACEOF |
| 9013 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9014 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9015 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9016 | int |
| 9017 | main () |
| 9018 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9019 | 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] | 9020 | test_array [0] = 0 |
| 9021 | |
| 9022 | ; |
| 9023 | return 0; |
| 9024 | } |
| 9025 | _ACEOF |
| 9026 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9027 | if { (ac_try="$ac_compile" |
| 9028 | case "(($ac_try" in |
| 9029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9030 | *) ac_try_echo=$ac_try;; |
| 9031 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9032 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9033 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9034 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9035 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9036 | rm -f conftest.er1 |
| 9037 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9039 | (exit $ac_status); } && { |
| 9040 | test -z "$ac_c_werror_flag" || |
| 9041 | test ! -s conftest.err |
| 9042 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9043 | ac_hi=$ac_mid |
| 9044 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9045 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9046 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9047 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9048 | ac_lo=`expr '(' $ac_mid ')' + 1` |
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 | done |
| 9053 | case $ac_lo in |
| 9054 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9055 | '') if test "$ac_cv_type_short" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9056 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9057 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9058 | echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9059 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9060 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9061 | else |
| 9062 | ac_cv_sizeof_short=0 |
| 9063 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9064 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9065 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9066 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9067 | /* confdefs.h. */ |
| 9068 | _ACEOF |
| 9069 | cat confdefs.h >>conftest.$ac_ext |
| 9070 | cat >>conftest.$ac_ext <<_ACEOF |
| 9071 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9072 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9073 | typedef short ac__type_sizeof_; |
| 9074 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9075 | 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] | 9076 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9077 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9078 | int |
| 9079 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9080 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9081 | |
| 9082 | FILE *f = fopen ("conftest.val", "w"); |
| 9083 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9084 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9085 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9086 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9087 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9088 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9089 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9090 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9091 | } |
| 9092 | else |
| 9093 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9094 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9095 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9096 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9097 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9098 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9099 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9100 | |
| 9101 | ; |
| 9102 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9103 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9104 | _ACEOF |
| 9105 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9106 | if { (ac_try="$ac_link" |
| 9107 | case "(($ac_try" in |
| 9108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9109 | *) ac_try_echo=$ac_try;; |
| 9110 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9112 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9113 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9115 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9116 | { (case "(($ac_try" in |
| 9117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9118 | *) ac_try_echo=$ac_try;; |
| 9119 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9121 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9122 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9124 | (exit $ac_status); }; }; then |
| 9125 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9126 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9127 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9128 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9129 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9130 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9131 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9132 | if test "$ac_cv_type_short" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9133 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9134 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9135 | echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9136 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9137 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9138 | else |
| 9139 | ac_cv_sizeof_short=0 |
| 9140 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9141 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9142 | 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] | 9143 | fi |
| 9144 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9145 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9146 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 9147 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9148 | |
| 9149 | |
| 9150 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9151 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9152 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9153 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9154 | |
| 9155 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9156 | { echo "$as_me:$LINENO: checking for float" >&5 |
| 9157 | echo $ECHO_N "checking for float... $ECHO_C" >&6; } |
| 9158 | if test "${ac_cv_type_float+set}" = set; then |
| 9159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9160 | else |
| 9161 | cat >conftest.$ac_ext <<_ACEOF |
| 9162 | /* confdefs.h. */ |
| 9163 | _ACEOF |
| 9164 | cat confdefs.h >>conftest.$ac_ext |
| 9165 | cat >>conftest.$ac_ext <<_ACEOF |
| 9166 | /* end confdefs.h. */ |
| 9167 | $ac_includes_default |
| 9168 | typedef float ac__type_new_; |
| 9169 | int |
| 9170 | main () |
| 9171 | { |
| 9172 | if ((ac__type_new_ *) 0) |
| 9173 | return 0; |
| 9174 | if (sizeof (ac__type_new_)) |
| 9175 | return 0; |
| 9176 | ; |
| 9177 | return 0; |
| 9178 | } |
| 9179 | _ACEOF |
| 9180 | rm -f conftest.$ac_objext |
| 9181 | if { (ac_try="$ac_compile" |
| 9182 | case "(($ac_try" in |
| 9183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9184 | *) ac_try_echo=$ac_try;; |
| 9185 | esac |
| 9186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9187 | (eval "$ac_compile") 2>conftest.er1 |
| 9188 | ac_status=$? |
| 9189 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9190 | rm -f conftest.er1 |
| 9191 | cat conftest.err >&5 |
| 9192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9193 | (exit $ac_status); } && { |
| 9194 | test -z "$ac_c_werror_flag" || |
| 9195 | test ! -s conftest.err |
| 9196 | } && test -s conftest.$ac_objext; then |
| 9197 | ac_cv_type_float=yes |
| 9198 | else |
| 9199 | echo "$as_me: failed program was:" >&5 |
| 9200 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9201 | |
| 9202 | ac_cv_type_float=no |
| 9203 | fi |
| 9204 | |
| 9205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9206 | fi |
| 9207 | { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 9208 | echo "${ECHO_T}$ac_cv_type_float" >&6; } |
| 9209 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9210 | # The cast to long int works around a bug in the HP C Compiler |
| 9211 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9212 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9213 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9214 | { echo "$as_me:$LINENO: checking size of float" >&5 |
| 9215 | echo $ECHO_N "checking size of float... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9216 | if test "${ac_cv_sizeof_float+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9218 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9219 | if test "$cross_compiling" = yes; then |
| 9220 | # Depending upon the size, compute the lo and hi bounds. |
| 9221 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9222 | /* confdefs.h. */ |
| 9223 | _ACEOF |
| 9224 | cat confdefs.h >>conftest.$ac_ext |
| 9225 | cat >>conftest.$ac_ext <<_ACEOF |
| 9226 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9227 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9228 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9229 | int |
| 9230 | main () |
| 9231 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9232 | 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] | 9233 | test_array [0] = 0 |
| 9234 | |
| 9235 | ; |
| 9236 | return 0; |
| 9237 | } |
| 9238 | _ACEOF |
| 9239 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9240 | if { (ac_try="$ac_compile" |
| 9241 | case "(($ac_try" in |
| 9242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9243 | *) ac_try_echo=$ac_try;; |
| 9244 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9246 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9247 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9248 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9249 | rm -f conftest.er1 |
| 9250 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9252 | (exit $ac_status); } && { |
| 9253 | test -z "$ac_c_werror_flag" || |
| 9254 | test ! -s conftest.err |
| 9255 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9256 | ac_lo=0 ac_mid=0 |
| 9257 | while :; do |
| 9258 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9259 | /* confdefs.h. */ |
| 9260 | _ACEOF |
| 9261 | cat confdefs.h >>conftest.$ac_ext |
| 9262 | cat >>conftest.$ac_ext <<_ACEOF |
| 9263 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9264 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9265 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9266 | int |
| 9267 | main () |
| 9268 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9269 | 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] | 9270 | test_array [0] = 0 |
| 9271 | |
| 9272 | ; |
| 9273 | return 0; |
| 9274 | } |
| 9275 | _ACEOF |
| 9276 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9277 | if { (ac_try="$ac_compile" |
| 9278 | case "(($ac_try" in |
| 9279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9280 | *) ac_try_echo=$ac_try;; |
| 9281 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9282 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9283 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9284 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9285 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9286 | rm -f conftest.er1 |
| 9287 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9289 | (exit $ac_status); } && { |
| 9290 | test -z "$ac_c_werror_flag" || |
| 9291 | test ! -s conftest.err |
| 9292 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9293 | ac_hi=$ac_mid; break |
| 9294 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9295 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9297 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9298 | ac_lo=`expr $ac_mid + 1` |
| 9299 | if test $ac_lo -le $ac_mid; then |
| 9300 | ac_lo= ac_hi= |
| 9301 | break |
| 9302 | fi |
| 9303 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9304 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9305 | |
| 9306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9307 | done |
| 9308 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9309 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9310 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9311 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9312 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9313 | /* confdefs.h. */ |
| 9314 | _ACEOF |
| 9315 | cat confdefs.h >>conftest.$ac_ext |
| 9316 | cat >>conftest.$ac_ext <<_ACEOF |
| 9317 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9318 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9319 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9320 | int |
| 9321 | main () |
| 9322 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9323 | 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] | 9324 | test_array [0] = 0 |
| 9325 | |
| 9326 | ; |
| 9327 | return 0; |
| 9328 | } |
| 9329 | _ACEOF |
| 9330 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9331 | if { (ac_try="$ac_compile" |
| 9332 | case "(($ac_try" in |
| 9333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9334 | *) ac_try_echo=$ac_try;; |
| 9335 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9336 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9337 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9338 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9339 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9340 | rm -f conftest.er1 |
| 9341 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9343 | (exit $ac_status); } && { |
| 9344 | test -z "$ac_c_werror_flag" || |
| 9345 | test ! -s conftest.err |
| 9346 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9347 | ac_hi=-1 ac_mid=-1 |
| 9348 | while :; do |
| 9349 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9350 | /* confdefs.h. */ |
| 9351 | _ACEOF |
| 9352 | cat confdefs.h >>conftest.$ac_ext |
| 9353 | cat >>conftest.$ac_ext <<_ACEOF |
| 9354 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9355 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9356 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9357 | int |
| 9358 | main () |
| 9359 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9360 | 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] | 9361 | test_array [0] = 0 |
| 9362 | |
| 9363 | ; |
| 9364 | return 0; |
| 9365 | } |
| 9366 | _ACEOF |
| 9367 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9368 | if { (ac_try="$ac_compile" |
| 9369 | case "(($ac_try" in |
| 9370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9371 | *) ac_try_echo=$ac_try;; |
| 9372 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9374 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9375 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9376 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9377 | rm -f conftest.er1 |
| 9378 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9380 | (exit $ac_status); } && { |
| 9381 | test -z "$ac_c_werror_flag" || |
| 9382 | test ! -s conftest.err |
| 9383 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9384 | ac_lo=$ac_mid; break |
| 9385 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9386 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9387 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9388 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9389 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9390 | if test $ac_mid -le $ac_hi; then |
| 9391 | ac_lo= ac_hi= |
| 9392 | break |
| 9393 | fi |
| 9394 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9395 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9396 | |
| 9397 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9398 | done |
| 9399 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9400 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9401 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9402 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9403 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9404 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9405 | |
| 9406 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9407 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9408 | |
| 9409 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9410 | # Binary search between lo and hi bounds. |
| 9411 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9412 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9413 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9414 | /* confdefs.h. */ |
| 9415 | _ACEOF |
| 9416 | cat confdefs.h >>conftest.$ac_ext |
| 9417 | cat >>conftest.$ac_ext <<_ACEOF |
| 9418 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9419 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9420 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9421 | int |
| 9422 | main () |
| 9423 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9424 | 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] | 9425 | test_array [0] = 0 |
| 9426 | |
| 9427 | ; |
| 9428 | return 0; |
| 9429 | } |
| 9430 | _ACEOF |
| 9431 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9432 | if { (ac_try="$ac_compile" |
| 9433 | case "(($ac_try" in |
| 9434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9435 | *) ac_try_echo=$ac_try;; |
| 9436 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9438 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9439 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9440 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9441 | rm -f conftest.er1 |
| 9442 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9444 | (exit $ac_status); } && { |
| 9445 | test -z "$ac_c_werror_flag" || |
| 9446 | test ! -s conftest.err |
| 9447 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9448 | ac_hi=$ac_mid |
| 9449 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9450 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9451 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9452 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9453 | ac_lo=`expr '(' $ac_mid ')' + 1` |
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 | done |
| 9458 | case $ac_lo in |
| 9459 | ?*) ac_cv_sizeof_float=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9460 | '') if test "$ac_cv_type_float" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9461 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9462 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9463 | echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9464 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9465 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9466 | else |
| 9467 | ac_cv_sizeof_float=0 |
| 9468 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9469 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9470 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9471 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9472 | /* confdefs.h. */ |
| 9473 | _ACEOF |
| 9474 | cat confdefs.h >>conftest.$ac_ext |
| 9475 | cat >>conftest.$ac_ext <<_ACEOF |
| 9476 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9477 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9478 | typedef float ac__type_sizeof_; |
| 9479 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9480 | 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] | 9481 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9482 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9483 | int |
| 9484 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9485 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9486 | |
| 9487 | FILE *f = fopen ("conftest.val", "w"); |
| 9488 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9489 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9490 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9491 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9492 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9493 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9494 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9495 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9496 | } |
| 9497 | else |
| 9498 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9499 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9500 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9501 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9502 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9503 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9504 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9505 | |
| 9506 | ; |
| 9507 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9508 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9509 | _ACEOF |
| 9510 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9511 | if { (ac_try="$ac_link" |
| 9512 | case "(($ac_try" in |
| 9513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9514 | *) ac_try_echo=$ac_try;; |
| 9515 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9517 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9518 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9520 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9521 | { (case "(($ac_try" in |
| 9522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9523 | *) ac_try_echo=$ac_try;; |
| 9524 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9526 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9527 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9529 | (exit $ac_status); }; }; then |
| 9530 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9531 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9532 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9533 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9534 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9535 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9536 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9537 | if test "$ac_cv_type_float" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9538 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9539 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9540 | echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9541 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9542 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9543 | else |
| 9544 | ac_cv_sizeof_float=0 |
| 9545 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9546 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9547 | 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] | 9548 | fi |
| 9549 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9550 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9551 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 9552 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9553 | |
| 9554 | |
| 9555 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9556 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9557 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9558 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9559 | |
| 9560 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9561 | { echo "$as_me:$LINENO: checking for double" >&5 |
| 9562 | echo $ECHO_N "checking for double... $ECHO_C" >&6; } |
| 9563 | if test "${ac_cv_type_double+set}" = set; then |
| 9564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9565 | else |
| 9566 | cat >conftest.$ac_ext <<_ACEOF |
| 9567 | /* confdefs.h. */ |
| 9568 | _ACEOF |
| 9569 | cat confdefs.h >>conftest.$ac_ext |
| 9570 | cat >>conftest.$ac_ext <<_ACEOF |
| 9571 | /* end confdefs.h. */ |
| 9572 | $ac_includes_default |
| 9573 | typedef double ac__type_new_; |
| 9574 | int |
| 9575 | main () |
| 9576 | { |
| 9577 | if ((ac__type_new_ *) 0) |
| 9578 | return 0; |
| 9579 | if (sizeof (ac__type_new_)) |
| 9580 | return 0; |
| 9581 | ; |
| 9582 | return 0; |
| 9583 | } |
| 9584 | _ACEOF |
| 9585 | rm -f conftest.$ac_objext |
| 9586 | if { (ac_try="$ac_compile" |
| 9587 | case "(($ac_try" in |
| 9588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9589 | *) ac_try_echo=$ac_try;; |
| 9590 | esac |
| 9591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9592 | (eval "$ac_compile") 2>conftest.er1 |
| 9593 | ac_status=$? |
| 9594 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9595 | rm -f conftest.er1 |
| 9596 | cat conftest.err >&5 |
| 9597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9598 | (exit $ac_status); } && { |
| 9599 | test -z "$ac_c_werror_flag" || |
| 9600 | test ! -s conftest.err |
| 9601 | } && test -s conftest.$ac_objext; then |
| 9602 | ac_cv_type_double=yes |
| 9603 | else |
| 9604 | echo "$as_me: failed program was:" >&5 |
| 9605 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9606 | |
| 9607 | ac_cv_type_double=no |
| 9608 | fi |
| 9609 | |
| 9610 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9611 | fi |
| 9612 | { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 9613 | echo "${ECHO_T}$ac_cv_type_double" >&6; } |
| 9614 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9615 | # The cast to long int works around a bug in the HP C Compiler |
| 9616 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9617 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9618 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9619 | { echo "$as_me:$LINENO: checking size of double" >&5 |
| 9620 | echo $ECHO_N "checking size of double... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9621 | if test "${ac_cv_sizeof_double+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9623 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9624 | if test "$cross_compiling" = yes; then |
| 9625 | # Depending upon the size, compute the lo and hi bounds. |
| 9626 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9627 | /* confdefs.h. */ |
| 9628 | _ACEOF |
| 9629 | cat confdefs.h >>conftest.$ac_ext |
| 9630 | cat >>conftest.$ac_ext <<_ACEOF |
| 9631 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9632 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9633 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9634 | int |
| 9635 | main () |
| 9636 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9637 | 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] | 9638 | test_array [0] = 0 |
| 9639 | |
| 9640 | ; |
| 9641 | return 0; |
| 9642 | } |
| 9643 | _ACEOF |
| 9644 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9645 | if { (ac_try="$ac_compile" |
| 9646 | case "(($ac_try" in |
| 9647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9648 | *) ac_try_echo=$ac_try;; |
| 9649 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9651 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9652 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9653 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9654 | rm -f conftest.er1 |
| 9655 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9657 | (exit $ac_status); } && { |
| 9658 | test -z "$ac_c_werror_flag" || |
| 9659 | test ! -s conftest.err |
| 9660 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9661 | ac_lo=0 ac_mid=0 |
| 9662 | while :; do |
| 9663 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9664 | /* confdefs.h. */ |
| 9665 | _ACEOF |
| 9666 | cat confdefs.h >>conftest.$ac_ext |
| 9667 | cat >>conftest.$ac_ext <<_ACEOF |
| 9668 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9669 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9670 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9671 | int |
| 9672 | main () |
| 9673 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9674 | 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] | 9675 | test_array [0] = 0 |
| 9676 | |
| 9677 | ; |
| 9678 | return 0; |
| 9679 | } |
| 9680 | _ACEOF |
| 9681 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9682 | if { (ac_try="$ac_compile" |
| 9683 | case "(($ac_try" in |
| 9684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9685 | *) ac_try_echo=$ac_try;; |
| 9686 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9687 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9688 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9689 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9690 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9691 | rm -f conftest.er1 |
| 9692 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9694 | (exit $ac_status); } && { |
| 9695 | test -z "$ac_c_werror_flag" || |
| 9696 | test ! -s conftest.err |
| 9697 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9698 | ac_hi=$ac_mid; break |
| 9699 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9700 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9701 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9702 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9703 | ac_lo=`expr $ac_mid + 1` |
| 9704 | if test $ac_lo -le $ac_mid; then |
| 9705 | ac_lo= ac_hi= |
| 9706 | break |
| 9707 | fi |
| 9708 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9709 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9710 | |
| 9711 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9712 | done |
| 9713 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9714 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9715 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9716 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9717 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9718 | /* confdefs.h. */ |
| 9719 | _ACEOF |
| 9720 | cat confdefs.h >>conftest.$ac_ext |
| 9721 | cat >>conftest.$ac_ext <<_ACEOF |
| 9722 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9723 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9724 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9725 | int |
| 9726 | main () |
| 9727 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9728 | 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] | 9729 | test_array [0] = 0 |
| 9730 | |
| 9731 | ; |
| 9732 | return 0; |
| 9733 | } |
| 9734 | _ACEOF |
| 9735 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9736 | if { (ac_try="$ac_compile" |
| 9737 | case "(($ac_try" in |
| 9738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9739 | *) ac_try_echo=$ac_try;; |
| 9740 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9742 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9743 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9744 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9745 | rm -f conftest.er1 |
| 9746 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9748 | (exit $ac_status); } && { |
| 9749 | test -z "$ac_c_werror_flag" || |
| 9750 | test ! -s conftest.err |
| 9751 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9752 | ac_hi=-1 ac_mid=-1 |
| 9753 | while :; do |
| 9754 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9755 | /* confdefs.h. */ |
| 9756 | _ACEOF |
| 9757 | cat confdefs.h >>conftest.$ac_ext |
| 9758 | cat >>conftest.$ac_ext <<_ACEOF |
| 9759 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9760 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9761 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9762 | int |
| 9763 | main () |
| 9764 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9765 | 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] | 9766 | test_array [0] = 0 |
| 9767 | |
| 9768 | ; |
| 9769 | return 0; |
| 9770 | } |
| 9771 | _ACEOF |
| 9772 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9773 | if { (ac_try="$ac_compile" |
| 9774 | case "(($ac_try" in |
| 9775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9776 | *) ac_try_echo=$ac_try;; |
| 9777 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9779 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9780 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9781 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9782 | rm -f conftest.er1 |
| 9783 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9785 | (exit $ac_status); } && { |
| 9786 | test -z "$ac_c_werror_flag" || |
| 9787 | test ! -s conftest.err |
| 9788 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9789 | ac_lo=$ac_mid; break |
| 9790 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9791 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9792 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9793 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9794 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9795 | if test $ac_mid -le $ac_hi; then |
| 9796 | ac_lo= ac_hi= |
| 9797 | break |
| 9798 | fi |
| 9799 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9800 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9801 | |
| 9802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9803 | done |
| 9804 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9805 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9806 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9807 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9808 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9809 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9810 | |
| 9811 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9812 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9813 | |
| 9814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9815 | # Binary search between lo and hi bounds. |
| 9816 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9817 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9818 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9819 | /* confdefs.h. */ |
| 9820 | _ACEOF |
| 9821 | cat confdefs.h >>conftest.$ac_ext |
| 9822 | cat >>conftest.$ac_ext <<_ACEOF |
| 9823 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9824 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9825 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9826 | int |
| 9827 | main () |
| 9828 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9829 | 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] | 9830 | test_array [0] = 0 |
| 9831 | |
| 9832 | ; |
| 9833 | return 0; |
| 9834 | } |
| 9835 | _ACEOF |
| 9836 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9837 | if { (ac_try="$ac_compile" |
| 9838 | case "(($ac_try" in |
| 9839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9840 | *) ac_try_echo=$ac_try;; |
| 9841 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9843 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9844 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9845 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9846 | rm -f conftest.er1 |
| 9847 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9849 | (exit $ac_status); } && { |
| 9850 | test -z "$ac_c_werror_flag" || |
| 9851 | test ! -s conftest.err |
| 9852 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9853 | ac_hi=$ac_mid |
| 9854 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9855 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9856 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9857 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9858 | ac_lo=`expr '(' $ac_mid ')' + 1` |
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 | done |
| 9863 | case $ac_lo in |
| 9864 | ?*) ac_cv_sizeof_double=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9865 | '') if test "$ac_cv_type_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9866 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9867 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9868 | echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9869 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9870 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9871 | else |
| 9872 | ac_cv_sizeof_double=0 |
| 9873 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9874 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9875 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9876 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9877 | /* confdefs.h. */ |
| 9878 | _ACEOF |
| 9879 | cat confdefs.h >>conftest.$ac_ext |
| 9880 | cat >>conftest.$ac_ext <<_ACEOF |
| 9881 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9882 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9883 | typedef double ac__type_sizeof_; |
| 9884 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9885 | 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] | 9886 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9887 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9888 | int |
| 9889 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9890 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9891 | |
| 9892 | FILE *f = fopen ("conftest.val", "w"); |
| 9893 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9894 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9895 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9896 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9897 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9898 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9899 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9900 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9901 | } |
| 9902 | else |
| 9903 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9904 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9905 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9906 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9907 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9908 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9909 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9910 | |
| 9911 | ; |
| 9912 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9913 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9914 | _ACEOF |
| 9915 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9916 | if { (ac_try="$ac_link" |
| 9917 | case "(($ac_try" in |
| 9918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9919 | *) ac_try_echo=$ac_try;; |
| 9920 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9922 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9923 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9925 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9926 | { (case "(($ac_try" in |
| 9927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9928 | *) ac_try_echo=$ac_try;; |
| 9929 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9931 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9932 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9934 | (exit $ac_status); }; }; then |
| 9935 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9936 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9937 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9938 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9939 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9940 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9941 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9942 | if test "$ac_cv_type_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9943 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9944 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9945 | echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9946 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9947 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9948 | else |
| 9949 | ac_cv_sizeof_double=0 |
| 9950 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9951 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9952 | 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] | 9953 | fi |
| 9954 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9955 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9956 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 9957 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9958 | |
| 9959 | |
| 9960 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9961 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9962 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9963 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9964 | |
| 9965 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9966 | { echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 9967 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; } |
| 9968 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 9969 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9970 | else |
| 9971 | cat >conftest.$ac_ext <<_ACEOF |
| 9972 | /* confdefs.h. */ |
| 9973 | _ACEOF |
| 9974 | cat confdefs.h >>conftest.$ac_ext |
| 9975 | cat >>conftest.$ac_ext <<_ACEOF |
| 9976 | /* end confdefs.h. */ |
| 9977 | $ac_includes_default |
| 9978 | typedef fpos_t ac__type_new_; |
| 9979 | int |
| 9980 | main () |
| 9981 | { |
| 9982 | if ((ac__type_new_ *) 0) |
| 9983 | return 0; |
| 9984 | if (sizeof (ac__type_new_)) |
| 9985 | return 0; |
| 9986 | ; |
| 9987 | return 0; |
| 9988 | } |
| 9989 | _ACEOF |
| 9990 | rm -f conftest.$ac_objext |
| 9991 | if { (ac_try="$ac_compile" |
| 9992 | case "(($ac_try" in |
| 9993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9994 | *) ac_try_echo=$ac_try;; |
| 9995 | esac |
| 9996 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9997 | (eval "$ac_compile") 2>conftest.er1 |
| 9998 | ac_status=$? |
| 9999 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10000 | rm -f conftest.er1 |
| 10001 | cat conftest.err >&5 |
| 10002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10003 | (exit $ac_status); } && { |
| 10004 | test -z "$ac_c_werror_flag" || |
| 10005 | test ! -s conftest.err |
| 10006 | } && test -s conftest.$ac_objext; then |
| 10007 | ac_cv_type_fpos_t=yes |
| 10008 | else |
| 10009 | echo "$as_me: failed program was:" >&5 |
| 10010 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10011 | |
| 10012 | ac_cv_type_fpos_t=no |
| 10013 | fi |
| 10014 | |
| 10015 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10016 | fi |
| 10017 | { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 10018 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; } |
| 10019 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10020 | # The cast to long int works around a bug in the HP C Compiler |
| 10021 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10022 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10023 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10024 | { echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 10025 | 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] | 10026 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10027 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10028 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10029 | if test "$cross_compiling" = yes; then |
| 10030 | # Depending upon the size, compute the lo and hi bounds. |
| 10031 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10032 | /* confdefs.h. */ |
| 10033 | _ACEOF |
| 10034 | cat confdefs.h >>conftest.$ac_ext |
| 10035 | cat >>conftest.$ac_ext <<_ACEOF |
| 10036 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10037 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10038 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10039 | int |
| 10040 | main () |
| 10041 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10042 | 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] | 10043 | test_array [0] = 0 |
| 10044 | |
| 10045 | ; |
| 10046 | return 0; |
| 10047 | } |
| 10048 | _ACEOF |
| 10049 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10050 | if { (ac_try="$ac_compile" |
| 10051 | case "(($ac_try" in |
| 10052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10053 | *) ac_try_echo=$ac_try;; |
| 10054 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10056 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10057 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10058 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10059 | rm -f conftest.er1 |
| 10060 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10062 | (exit $ac_status); } && { |
| 10063 | test -z "$ac_c_werror_flag" || |
| 10064 | test ! -s conftest.err |
| 10065 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10066 | ac_lo=0 ac_mid=0 |
| 10067 | while :; do |
| 10068 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10069 | /* confdefs.h. */ |
| 10070 | _ACEOF |
| 10071 | cat confdefs.h >>conftest.$ac_ext |
| 10072 | cat >>conftest.$ac_ext <<_ACEOF |
| 10073 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10074 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10075 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10076 | int |
| 10077 | main () |
| 10078 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10079 | 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] | 10080 | test_array [0] = 0 |
| 10081 | |
| 10082 | ; |
| 10083 | return 0; |
| 10084 | } |
| 10085 | _ACEOF |
| 10086 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10087 | if { (ac_try="$ac_compile" |
| 10088 | case "(($ac_try" in |
| 10089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10090 | *) ac_try_echo=$ac_try;; |
| 10091 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10093 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10094 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10095 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10096 | rm -f conftest.er1 |
| 10097 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10099 | (exit $ac_status); } && { |
| 10100 | test -z "$ac_c_werror_flag" || |
| 10101 | test ! -s conftest.err |
| 10102 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10103 | ac_hi=$ac_mid; break |
| 10104 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10105 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10107 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10108 | ac_lo=`expr $ac_mid + 1` |
| 10109 | if test $ac_lo -le $ac_mid; then |
| 10110 | ac_lo= ac_hi= |
| 10111 | break |
| 10112 | fi |
| 10113 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10114 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10115 | |
| 10116 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10117 | done |
| 10118 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10119 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10120 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10121 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10122 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10123 | /* confdefs.h. */ |
| 10124 | _ACEOF |
| 10125 | cat confdefs.h >>conftest.$ac_ext |
| 10126 | cat >>conftest.$ac_ext <<_ACEOF |
| 10127 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10128 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10129 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10130 | int |
| 10131 | main () |
| 10132 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10133 | 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] | 10134 | test_array [0] = 0 |
| 10135 | |
| 10136 | ; |
| 10137 | return 0; |
| 10138 | } |
| 10139 | _ACEOF |
| 10140 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10141 | if { (ac_try="$ac_compile" |
| 10142 | case "(($ac_try" in |
| 10143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10144 | *) ac_try_echo=$ac_try;; |
| 10145 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10147 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10148 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10149 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10150 | rm -f conftest.er1 |
| 10151 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10153 | (exit $ac_status); } && { |
| 10154 | test -z "$ac_c_werror_flag" || |
| 10155 | test ! -s conftest.err |
| 10156 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10157 | ac_hi=-1 ac_mid=-1 |
| 10158 | while :; do |
| 10159 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10160 | /* confdefs.h. */ |
| 10161 | _ACEOF |
| 10162 | cat confdefs.h >>conftest.$ac_ext |
| 10163 | cat >>conftest.$ac_ext <<_ACEOF |
| 10164 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10165 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10166 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10167 | int |
| 10168 | main () |
| 10169 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10170 | 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] | 10171 | test_array [0] = 0 |
| 10172 | |
| 10173 | ; |
| 10174 | return 0; |
| 10175 | } |
| 10176 | _ACEOF |
| 10177 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10178 | if { (ac_try="$ac_compile" |
| 10179 | case "(($ac_try" in |
| 10180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10181 | *) ac_try_echo=$ac_try;; |
| 10182 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10183 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10184 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10185 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10186 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10187 | rm -f conftest.er1 |
| 10188 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10190 | (exit $ac_status); } && { |
| 10191 | test -z "$ac_c_werror_flag" || |
| 10192 | test ! -s conftest.err |
| 10193 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10194 | ac_lo=$ac_mid; break |
| 10195 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10196 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10197 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10198 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10199 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10200 | if test $ac_mid -le $ac_hi; then |
| 10201 | ac_lo= ac_hi= |
| 10202 | break |
| 10203 | fi |
| 10204 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10205 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10206 | |
| 10207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10208 | done |
| 10209 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10210 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10211 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10212 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10213 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10214 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10215 | |
| 10216 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10217 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10218 | |
| 10219 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10220 | # Binary search between lo and hi bounds. |
| 10221 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10222 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10223 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10224 | /* confdefs.h. */ |
| 10225 | _ACEOF |
| 10226 | cat confdefs.h >>conftest.$ac_ext |
| 10227 | cat >>conftest.$ac_ext <<_ACEOF |
| 10228 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10229 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10230 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10231 | int |
| 10232 | main () |
| 10233 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10234 | 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] | 10235 | test_array [0] = 0 |
| 10236 | |
| 10237 | ; |
| 10238 | return 0; |
| 10239 | } |
| 10240 | _ACEOF |
| 10241 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10242 | if { (ac_try="$ac_compile" |
| 10243 | case "(($ac_try" in |
| 10244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10245 | *) ac_try_echo=$ac_try;; |
| 10246 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10248 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10249 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10250 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10251 | rm -f conftest.er1 |
| 10252 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10254 | (exit $ac_status); } && { |
| 10255 | test -z "$ac_c_werror_flag" || |
| 10256 | test ! -s conftest.err |
| 10257 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10258 | ac_hi=$ac_mid |
| 10259 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10260 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10261 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10262 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10263 | ac_lo=`expr '(' $ac_mid ')' + 1` |
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 | done |
| 10268 | case $ac_lo in |
| 10269 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10270 | '') if test "$ac_cv_type_fpos_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10271 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10272 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10273 | echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10274 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10275 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10276 | else |
| 10277 | ac_cv_sizeof_fpos_t=0 |
| 10278 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10279 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10280 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10281 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10282 | /* confdefs.h. */ |
| 10283 | _ACEOF |
| 10284 | cat confdefs.h >>conftest.$ac_ext |
| 10285 | cat >>conftest.$ac_ext <<_ACEOF |
| 10286 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10287 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10288 | typedef fpos_t ac__type_sizeof_; |
| 10289 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10290 | 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] | 10291 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10292 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10293 | int |
| 10294 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10295 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10296 | |
| 10297 | FILE *f = fopen ("conftest.val", "w"); |
| 10298 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10299 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10300 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10301 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10302 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10303 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10304 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10305 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10306 | } |
| 10307 | else |
| 10308 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10309 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10310 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10311 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10312 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10313 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10314 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10315 | |
| 10316 | ; |
| 10317 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10318 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10319 | _ACEOF |
| 10320 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10321 | if { (ac_try="$ac_link" |
| 10322 | case "(($ac_try" in |
| 10323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10324 | *) ac_try_echo=$ac_try;; |
| 10325 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10326 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10327 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10328 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10330 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10331 | { (case "(($ac_try" in |
| 10332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10333 | *) ac_try_echo=$ac_try;; |
| 10334 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10336 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10337 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10339 | (exit $ac_status); }; }; then |
| 10340 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10341 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10342 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10343 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10344 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10345 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10346 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10347 | if test "$ac_cv_type_fpos_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10348 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10349 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10350 | echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10351 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10352 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10353 | else |
| 10354 | ac_cv_sizeof_fpos_t=0 |
| 10355 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10356 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10357 | 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] | 10358 | fi |
| 10359 | rm -f conftest.val |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10360 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10361 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 10362 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10363 | |
| 10364 | |
| 10365 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10366 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10367 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10368 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10369 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10370 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10371 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 10372 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
| 10373 | if test "${ac_cv_type_size_t+set}" = set; then |
| 10374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10375 | else |
| 10376 | cat >conftest.$ac_ext <<_ACEOF |
| 10377 | /* confdefs.h. */ |
| 10378 | _ACEOF |
| 10379 | cat confdefs.h >>conftest.$ac_ext |
| 10380 | cat >>conftest.$ac_ext <<_ACEOF |
| 10381 | /* end confdefs.h. */ |
| 10382 | $ac_includes_default |
| 10383 | typedef size_t ac__type_new_; |
| 10384 | int |
| 10385 | main () |
| 10386 | { |
| 10387 | if ((ac__type_new_ *) 0) |
| 10388 | return 0; |
| 10389 | if (sizeof (ac__type_new_)) |
| 10390 | return 0; |
| 10391 | ; |
| 10392 | return 0; |
| 10393 | } |
| 10394 | _ACEOF |
| 10395 | rm -f conftest.$ac_objext |
| 10396 | if { (ac_try="$ac_compile" |
| 10397 | case "(($ac_try" in |
| 10398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10399 | *) ac_try_echo=$ac_try;; |
| 10400 | esac |
| 10401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10402 | (eval "$ac_compile") 2>conftest.er1 |
| 10403 | ac_status=$? |
| 10404 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10405 | rm -f conftest.er1 |
| 10406 | cat conftest.err >&5 |
| 10407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10408 | (exit $ac_status); } && { |
| 10409 | test -z "$ac_c_werror_flag" || |
| 10410 | test ! -s conftest.err |
| 10411 | } && test -s conftest.$ac_objext; then |
| 10412 | ac_cv_type_size_t=yes |
| 10413 | else |
| 10414 | echo "$as_me: failed program was:" >&5 |
| 10415 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10416 | |
| 10417 | ac_cv_type_size_t=no |
| 10418 | fi |
| 10419 | |
| 10420 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10421 | fi |
| 10422 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 10423 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 10424 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10425 | # The cast to long int works around a bug in the HP C Compiler |
| 10426 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10427 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10428 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10429 | { echo "$as_me:$LINENO: checking size of size_t" >&5 |
| 10430 | 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] | 10431 | if test "${ac_cv_sizeof_size_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10432 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10433 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10434 | if test "$cross_compiling" = yes; then |
| 10435 | # Depending upon the size, compute the lo and hi bounds. |
| 10436 | cat >conftest.$ac_ext <<_ACEOF |
| 10437 | /* confdefs.h. */ |
| 10438 | _ACEOF |
| 10439 | cat confdefs.h >>conftest.$ac_ext |
| 10440 | cat >>conftest.$ac_ext <<_ACEOF |
| 10441 | /* end confdefs.h. */ |
| 10442 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10443 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10444 | int |
| 10445 | main () |
| 10446 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10447 | 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] | 10448 | test_array [0] = 0 |
| 10449 | |
| 10450 | ; |
| 10451 | return 0; |
| 10452 | } |
| 10453 | _ACEOF |
| 10454 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10455 | if { (ac_try="$ac_compile" |
| 10456 | case "(($ac_try" in |
| 10457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10458 | *) ac_try_echo=$ac_try;; |
| 10459 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10461 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10462 | ac_status=$? |
| 10463 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10464 | rm -f conftest.er1 |
| 10465 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10467 | (exit $ac_status); } && { |
| 10468 | test -z "$ac_c_werror_flag" || |
| 10469 | test ! -s conftest.err |
| 10470 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10471 | ac_lo=0 ac_mid=0 |
| 10472 | while :; do |
| 10473 | cat >conftest.$ac_ext <<_ACEOF |
| 10474 | /* confdefs.h. */ |
| 10475 | _ACEOF |
| 10476 | cat confdefs.h >>conftest.$ac_ext |
| 10477 | cat >>conftest.$ac_ext <<_ACEOF |
| 10478 | /* end confdefs.h. */ |
| 10479 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10480 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10481 | int |
| 10482 | main () |
| 10483 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10484 | 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] | 10485 | test_array [0] = 0 |
| 10486 | |
| 10487 | ; |
| 10488 | return 0; |
| 10489 | } |
| 10490 | _ACEOF |
| 10491 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10492 | if { (ac_try="$ac_compile" |
| 10493 | case "(($ac_try" in |
| 10494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10495 | *) ac_try_echo=$ac_try;; |
| 10496 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10498 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10499 | ac_status=$? |
| 10500 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10501 | rm -f conftest.er1 |
| 10502 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10504 | (exit $ac_status); } && { |
| 10505 | test -z "$ac_c_werror_flag" || |
| 10506 | test ! -s conftest.err |
| 10507 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10508 | ac_hi=$ac_mid; break |
| 10509 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10510 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10511 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10512 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10513 | ac_lo=`expr $ac_mid + 1` |
| 10514 | if test $ac_lo -le $ac_mid; then |
| 10515 | ac_lo= ac_hi= |
| 10516 | break |
| 10517 | fi |
| 10518 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10519 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10520 | |
| 10521 | 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] | 10522 | done |
| 10523 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10524 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10525 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10526 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10527 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10528 | /* confdefs.h. */ |
| 10529 | _ACEOF |
| 10530 | cat confdefs.h >>conftest.$ac_ext |
| 10531 | cat >>conftest.$ac_ext <<_ACEOF |
| 10532 | /* end confdefs.h. */ |
| 10533 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10534 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10535 | int |
| 10536 | main () |
| 10537 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10538 | 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] | 10539 | test_array [0] = 0 |
| 10540 | |
| 10541 | ; |
| 10542 | return 0; |
| 10543 | } |
| 10544 | _ACEOF |
| 10545 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10546 | if { (ac_try="$ac_compile" |
| 10547 | case "(($ac_try" in |
| 10548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10549 | *) ac_try_echo=$ac_try;; |
| 10550 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10552 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10553 | ac_status=$? |
| 10554 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10555 | rm -f conftest.er1 |
| 10556 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10558 | (exit $ac_status); } && { |
| 10559 | test -z "$ac_c_werror_flag" || |
| 10560 | test ! -s conftest.err |
| 10561 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10562 | ac_hi=-1 ac_mid=-1 |
| 10563 | while :; do |
| 10564 | cat >conftest.$ac_ext <<_ACEOF |
| 10565 | /* confdefs.h. */ |
| 10566 | _ACEOF |
| 10567 | cat confdefs.h >>conftest.$ac_ext |
| 10568 | cat >>conftest.$ac_ext <<_ACEOF |
| 10569 | /* end confdefs.h. */ |
| 10570 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10571 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10572 | int |
| 10573 | main () |
| 10574 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10575 | 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] | 10576 | test_array [0] = 0 |
| 10577 | |
| 10578 | ; |
| 10579 | return 0; |
| 10580 | } |
| 10581 | _ACEOF |
| 10582 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10583 | if { (ac_try="$ac_compile" |
| 10584 | case "(($ac_try" in |
| 10585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10586 | *) ac_try_echo=$ac_try;; |
| 10587 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10588 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10589 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10590 | ac_status=$? |
| 10591 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10592 | rm -f conftest.er1 |
| 10593 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10595 | (exit $ac_status); } && { |
| 10596 | test -z "$ac_c_werror_flag" || |
| 10597 | test ! -s conftest.err |
| 10598 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10599 | ac_lo=$ac_mid; break |
| 10600 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10601 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10602 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10603 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10604 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10605 | if test $ac_mid -le $ac_hi; then |
| 10606 | ac_lo= ac_hi= |
| 10607 | break |
| 10608 | fi |
| 10609 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10610 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10611 | |
| 10612 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10613 | done |
| 10614 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10615 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10616 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10617 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10618 | ac_lo= ac_hi= |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10619 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10620 | |
| 10621 | 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] | 10622 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10623 | |
| 10624 | 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] | 10625 | # Binary search between lo and hi bounds. |
| 10626 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10627 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10628 | cat >conftest.$ac_ext <<_ACEOF |
| 10629 | /* confdefs.h. */ |
| 10630 | _ACEOF |
| 10631 | cat confdefs.h >>conftest.$ac_ext |
| 10632 | cat >>conftest.$ac_ext <<_ACEOF |
| 10633 | /* end confdefs.h. */ |
| 10634 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10635 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10636 | int |
| 10637 | main () |
| 10638 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10639 | 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] | 10640 | test_array [0] = 0 |
| 10641 | |
| 10642 | ; |
| 10643 | return 0; |
| 10644 | } |
| 10645 | _ACEOF |
| 10646 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10647 | if { (ac_try="$ac_compile" |
| 10648 | case "(($ac_try" in |
| 10649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10650 | *) ac_try_echo=$ac_try;; |
| 10651 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10652 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10653 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10654 | ac_status=$? |
| 10655 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10656 | rm -f conftest.er1 |
| 10657 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10659 | (exit $ac_status); } && { |
| 10660 | test -z "$ac_c_werror_flag" || |
| 10661 | test ! -s conftest.err |
| 10662 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10663 | ac_hi=$ac_mid |
| 10664 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10665 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10666 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10667 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10668 | ac_lo=`expr '(' $ac_mid ')' + 1` |
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 | done |
| 10673 | case $ac_lo in |
| 10674 | ?*) ac_cv_sizeof_size_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10675 | '') if test "$ac_cv_type_size_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10676 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10677 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10678 | echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10679 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10680 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10681 | else |
| 10682 | ac_cv_sizeof_size_t=0 |
| 10683 | fi ;; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10684 | esac |
| 10685 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10686 | cat >conftest.$ac_ext <<_ACEOF |
| 10687 | /* confdefs.h. */ |
| 10688 | _ACEOF |
| 10689 | cat confdefs.h >>conftest.$ac_ext |
| 10690 | cat >>conftest.$ac_ext <<_ACEOF |
| 10691 | /* end confdefs.h. */ |
| 10692 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10693 | typedef size_t ac__type_sizeof_; |
| 10694 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10695 | 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] | 10696 | #include <stdio.h> |
| 10697 | #include <stdlib.h> |
| 10698 | int |
| 10699 | main () |
| 10700 | { |
| 10701 | |
| 10702 | FILE *f = fopen ("conftest.val", "w"); |
| 10703 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10704 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10705 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10706 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10707 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10708 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10709 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10710 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10711 | } |
| 10712 | else |
| 10713 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10714 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10715 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10716 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10717 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10718 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10719 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10720 | |
| 10721 | ; |
| 10722 | return 0; |
| 10723 | } |
| 10724 | _ACEOF |
| 10725 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10726 | if { (ac_try="$ac_link" |
| 10727 | case "(($ac_try" in |
| 10728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10729 | *) ac_try_echo=$ac_try;; |
| 10730 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10732 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10733 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10735 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10736 | { (case "(($ac_try" in |
| 10737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10738 | *) ac_try_echo=$ac_try;; |
| 10739 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10741 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10742 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10744 | (exit $ac_status); }; }; then |
| 10745 | ac_cv_sizeof_size_t=`cat conftest.val` |
| 10746 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10747 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10748 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10749 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10750 | |
| 10751 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10752 | if test "$ac_cv_type_size_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10753 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10754 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10755 | echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10756 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10757 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10758 | else |
| 10759 | ac_cv_sizeof_size_t=0 |
| 10760 | fi |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10761 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10762 | 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] | 10763 | fi |
| 10764 | rm -f conftest.val |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10765 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10766 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 |
| 10767 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10768 | |
| 10769 | |
| 10770 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10771 | cat >>confdefs.h <<_ACEOF |
| 10772 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 10773 | _ACEOF |
| 10774 | |
| 10775 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10776 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 10777 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
| 10778 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 10779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10780 | else |
| 10781 | cat >conftest.$ac_ext <<_ACEOF |
| 10782 | /* confdefs.h. */ |
| 10783 | _ACEOF |
| 10784 | cat confdefs.h >>conftest.$ac_ext |
| 10785 | cat >>conftest.$ac_ext <<_ACEOF |
| 10786 | /* end confdefs.h. */ |
| 10787 | $ac_includes_default |
| 10788 | typedef pid_t ac__type_new_; |
| 10789 | int |
| 10790 | main () |
| 10791 | { |
| 10792 | if ((ac__type_new_ *) 0) |
| 10793 | return 0; |
| 10794 | if (sizeof (ac__type_new_)) |
| 10795 | return 0; |
| 10796 | ; |
| 10797 | return 0; |
| 10798 | } |
| 10799 | _ACEOF |
| 10800 | rm -f conftest.$ac_objext |
| 10801 | if { (ac_try="$ac_compile" |
| 10802 | case "(($ac_try" in |
| 10803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10804 | *) ac_try_echo=$ac_try;; |
| 10805 | esac |
| 10806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10807 | (eval "$ac_compile") 2>conftest.er1 |
| 10808 | ac_status=$? |
| 10809 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10810 | rm -f conftest.er1 |
| 10811 | cat conftest.err >&5 |
| 10812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10813 | (exit $ac_status); } && { |
| 10814 | test -z "$ac_c_werror_flag" || |
| 10815 | test ! -s conftest.err |
| 10816 | } && test -s conftest.$ac_objext; then |
| 10817 | ac_cv_type_pid_t=yes |
| 10818 | else |
| 10819 | echo "$as_me: failed program was:" >&5 |
| 10820 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10821 | |
| 10822 | ac_cv_type_pid_t=no |
| 10823 | fi |
| 10824 | |
| 10825 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10826 | fi |
| 10827 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 10828 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 10829 | |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10830 | # The cast to long int works around a bug in the HP C Compiler |
| 10831 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10832 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10833 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10834 | { echo "$as_me:$LINENO: checking size of pid_t" >&5 |
| 10835 | echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10836 | if test "${ac_cv_sizeof_pid_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10838 | else |
| 10839 | if test "$cross_compiling" = yes; then |
| 10840 | # Depending upon the size, compute the lo and hi bounds. |
| 10841 | cat >conftest.$ac_ext <<_ACEOF |
| 10842 | /* confdefs.h. */ |
| 10843 | _ACEOF |
| 10844 | cat confdefs.h >>conftest.$ac_ext |
| 10845 | cat >>conftest.$ac_ext <<_ACEOF |
| 10846 | /* end confdefs.h. */ |
| 10847 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10848 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10849 | int |
| 10850 | main () |
| 10851 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10852 | 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] | 10853 | test_array [0] = 0 |
| 10854 | |
| 10855 | ; |
| 10856 | return 0; |
| 10857 | } |
| 10858 | _ACEOF |
| 10859 | rm -f conftest.$ac_objext |
| 10860 | if { (ac_try="$ac_compile" |
| 10861 | case "(($ac_try" in |
| 10862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10863 | *) ac_try_echo=$ac_try;; |
| 10864 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10866 | (eval "$ac_compile") 2>conftest.er1 |
| 10867 | ac_status=$? |
| 10868 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10869 | rm -f conftest.er1 |
| 10870 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10872 | (exit $ac_status); } && { |
| 10873 | test -z "$ac_c_werror_flag" || |
| 10874 | test ! -s conftest.err |
| 10875 | } && test -s conftest.$ac_objext; then |
| 10876 | ac_lo=0 ac_mid=0 |
| 10877 | while :; do |
| 10878 | cat >conftest.$ac_ext <<_ACEOF |
| 10879 | /* confdefs.h. */ |
| 10880 | _ACEOF |
| 10881 | cat confdefs.h >>conftest.$ac_ext |
| 10882 | cat >>conftest.$ac_ext <<_ACEOF |
| 10883 | /* end confdefs.h. */ |
| 10884 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10885 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10886 | int |
| 10887 | main () |
| 10888 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10889 | 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] | 10890 | test_array [0] = 0 |
| 10891 | |
| 10892 | ; |
| 10893 | return 0; |
| 10894 | } |
| 10895 | _ACEOF |
| 10896 | rm -f conftest.$ac_objext |
| 10897 | if { (ac_try="$ac_compile" |
| 10898 | case "(($ac_try" in |
| 10899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10900 | *) ac_try_echo=$ac_try;; |
| 10901 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10903 | (eval "$ac_compile") 2>conftest.er1 |
| 10904 | ac_status=$? |
| 10905 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10906 | rm -f conftest.er1 |
| 10907 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10909 | (exit $ac_status); } && { |
| 10910 | test -z "$ac_c_werror_flag" || |
| 10911 | test ! -s conftest.err |
| 10912 | } && test -s conftest.$ac_objext; then |
| 10913 | ac_hi=$ac_mid; break |
| 10914 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10915 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10916 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10917 | |
| 10918 | ac_lo=`expr $ac_mid + 1` |
| 10919 | if test $ac_lo -le $ac_mid; then |
| 10920 | ac_lo= ac_hi= |
| 10921 | break |
| 10922 | fi |
| 10923 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 10924 | fi |
| 10925 | |
| 10926 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10927 | done |
| 10928 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10929 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10930 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10931 | |
| 10932 | cat >conftest.$ac_ext <<_ACEOF |
| 10933 | /* confdefs.h. */ |
| 10934 | _ACEOF |
| 10935 | cat confdefs.h >>conftest.$ac_ext |
| 10936 | cat >>conftest.$ac_ext <<_ACEOF |
| 10937 | /* end confdefs.h. */ |
| 10938 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10939 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10940 | int |
| 10941 | main () |
| 10942 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10943 | 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] | 10944 | test_array [0] = 0 |
| 10945 | |
| 10946 | ; |
| 10947 | return 0; |
| 10948 | } |
| 10949 | _ACEOF |
| 10950 | rm -f conftest.$ac_objext |
| 10951 | if { (ac_try="$ac_compile" |
| 10952 | case "(($ac_try" in |
| 10953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10954 | *) ac_try_echo=$ac_try;; |
| 10955 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10957 | (eval "$ac_compile") 2>conftest.er1 |
| 10958 | ac_status=$? |
| 10959 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10960 | rm -f conftest.er1 |
| 10961 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10963 | (exit $ac_status); } && { |
| 10964 | test -z "$ac_c_werror_flag" || |
| 10965 | test ! -s conftest.err |
| 10966 | } && test -s conftest.$ac_objext; then |
| 10967 | ac_hi=-1 ac_mid=-1 |
| 10968 | while :; do |
| 10969 | cat >conftest.$ac_ext <<_ACEOF |
| 10970 | /* confdefs.h. */ |
| 10971 | _ACEOF |
| 10972 | cat confdefs.h >>conftest.$ac_ext |
| 10973 | cat >>conftest.$ac_ext <<_ACEOF |
| 10974 | /* end confdefs.h. */ |
| 10975 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10976 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10977 | int |
| 10978 | main () |
| 10979 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10980 | 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] | 10981 | test_array [0] = 0 |
| 10982 | |
| 10983 | ; |
| 10984 | return 0; |
| 10985 | } |
| 10986 | _ACEOF |
| 10987 | rm -f conftest.$ac_objext |
| 10988 | if { (ac_try="$ac_compile" |
| 10989 | case "(($ac_try" in |
| 10990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10991 | *) ac_try_echo=$ac_try;; |
| 10992 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10994 | (eval "$ac_compile") 2>conftest.er1 |
| 10995 | ac_status=$? |
| 10996 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10997 | rm -f conftest.er1 |
| 10998 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11000 | (exit $ac_status); } && { |
| 11001 | test -z "$ac_c_werror_flag" || |
| 11002 | test ! -s conftest.err |
| 11003 | } && test -s conftest.$ac_objext; then |
| 11004 | ac_lo=$ac_mid; break |
| 11005 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11006 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11007 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11008 | |
| 11009 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11010 | if test $ac_mid -le $ac_hi; then |
| 11011 | ac_lo= ac_hi= |
| 11012 | break |
| 11013 | fi |
| 11014 | ac_mid=`expr 2 '*' $ac_mid` |
| 11015 | fi |
| 11016 | |
| 11017 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11018 | done |
| 11019 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11020 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11021 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11022 | |
| 11023 | ac_lo= ac_hi= |
| 11024 | fi |
| 11025 | |
| 11026 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11027 | fi |
| 11028 | |
| 11029 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11030 | # Binary search between lo and hi bounds. |
| 11031 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11032 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11033 | cat >conftest.$ac_ext <<_ACEOF |
| 11034 | /* confdefs.h. */ |
| 11035 | _ACEOF |
| 11036 | cat confdefs.h >>conftest.$ac_ext |
| 11037 | cat >>conftest.$ac_ext <<_ACEOF |
| 11038 | /* end confdefs.h. */ |
| 11039 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11040 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11041 | int |
| 11042 | main () |
| 11043 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11044 | 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] | 11045 | test_array [0] = 0 |
| 11046 | |
| 11047 | ; |
| 11048 | return 0; |
| 11049 | } |
| 11050 | _ACEOF |
| 11051 | rm -f conftest.$ac_objext |
| 11052 | if { (ac_try="$ac_compile" |
| 11053 | case "(($ac_try" in |
| 11054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11055 | *) ac_try_echo=$ac_try;; |
| 11056 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11058 | (eval "$ac_compile") 2>conftest.er1 |
| 11059 | ac_status=$? |
| 11060 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11061 | rm -f conftest.er1 |
| 11062 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11064 | (exit $ac_status); } && { |
| 11065 | test -z "$ac_c_werror_flag" || |
| 11066 | test ! -s conftest.err |
| 11067 | } && test -s conftest.$ac_objext; then |
| 11068 | ac_hi=$ac_mid |
| 11069 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11070 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11071 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11072 | |
| 11073 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 11074 | fi |
| 11075 | |
| 11076 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11077 | done |
| 11078 | case $ac_lo in |
| 11079 | ?*) ac_cv_sizeof_pid_t=$ac_lo;; |
| 11080 | '') if test "$ac_cv_type_pid_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11081 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11082 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11083 | echo "$as_me: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11084 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11085 | { (exit 77); exit 77; }; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11086 | else |
| 11087 | ac_cv_sizeof_pid_t=0 |
| 11088 | fi ;; |
| 11089 | esac |
| 11090 | else |
| 11091 | cat >conftest.$ac_ext <<_ACEOF |
| 11092 | /* confdefs.h. */ |
| 11093 | _ACEOF |
| 11094 | cat confdefs.h >>conftest.$ac_ext |
| 11095 | cat >>conftest.$ac_ext <<_ACEOF |
| 11096 | /* end confdefs.h. */ |
| 11097 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11098 | typedef pid_t ac__type_sizeof_; |
| 11099 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11100 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11101 | #include <stdio.h> |
| 11102 | #include <stdlib.h> |
| 11103 | int |
| 11104 | main () |
| 11105 | { |
| 11106 | |
| 11107 | FILE *f = fopen ("conftest.val", "w"); |
| 11108 | if (! f) |
| 11109 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11110 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11111 | { |
| 11112 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11113 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11114 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11115 | fprintf (f, "%ld\n", i); |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11116 | } |
| 11117 | else |
| 11118 | { |
| 11119 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11120 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11121 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11122 | fprintf (f, "%lu\n", i); |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11123 | } |
| 11124 | return ferror (f) || fclose (f) != 0; |
| 11125 | |
| 11126 | ; |
| 11127 | return 0; |
| 11128 | } |
| 11129 | _ACEOF |
| 11130 | rm -f conftest$ac_exeext |
| 11131 | if { (ac_try="$ac_link" |
| 11132 | case "(($ac_try" in |
| 11133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11134 | *) ac_try_echo=$ac_try;; |
| 11135 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11137 | (eval "$ac_link") 2>&5 |
| 11138 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11140 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11141 | { (case "(($ac_try" in |
| 11142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11143 | *) ac_try_echo=$ac_try;; |
| 11144 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11146 | (eval "$ac_try") 2>&5 |
| 11147 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11149 | (exit $ac_status); }; }; then |
| 11150 | ac_cv_sizeof_pid_t=`cat conftest.val` |
| 11151 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11152 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11153 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11154 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11155 | |
| 11156 | ( exit $ac_status ) |
| 11157 | if test "$ac_cv_type_pid_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11158 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11159 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11160 | echo "$as_me: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11161 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11162 | { (exit 77); exit 77; }; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11163 | else |
| 11164 | ac_cv_sizeof_pid_t=0 |
| 11165 | fi |
| 11166 | fi |
| 11167 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11168 | fi |
| 11169 | rm -f conftest.val |
| 11170 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11171 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5 |
| 11172 | echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11173 | |
| 11174 | |
| 11175 | |
| 11176 | cat >>confdefs.h <<_ACEOF |
| 11177 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t |
| 11178 | _ACEOF |
| 11179 | |
| 11180 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11181 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11182 | { echo "$as_me:$LINENO: checking for long long support" >&5 |
| 11183 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11184 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11185 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11186 | /* confdefs.h. */ |
| 11187 | _ACEOF |
| 11188 | cat confdefs.h >>conftest.$ac_ext |
| 11189 | cat >>conftest.$ac_ext <<_ACEOF |
| 11190 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11191 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11192 | int |
| 11193 | main () |
| 11194 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11195 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11196 | ; |
| 11197 | return 0; |
| 11198 | } |
| 11199 | _ACEOF |
| 11200 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11201 | if { (ac_try="$ac_compile" |
| 11202 | case "(($ac_try" in |
| 11203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11204 | *) ac_try_echo=$ac_try;; |
| 11205 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11207 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11208 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11209 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11210 | rm -f conftest.er1 |
| 11211 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11213 | (exit $ac_status); } && { |
| 11214 | test -z "$ac_c_werror_flag" || |
| 11215 | test ! -s conftest.err |
| 11216 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11217 | |
| 11218 | |
| 11219 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11220 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11221 | _ACEOF |
| 11222 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11223 | have_long_long=yes |
| 11224 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11225 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11226 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11227 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11228 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11229 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11230 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11231 | |
| 11232 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11233 | { echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 11234 | echo "${ECHO_T}$have_long_long" >&6; } |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 11235 | if test "$have_long_long" = yes ; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11236 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 11237 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
| 11238 | if test "${ac_cv_type_long_long+set}" = set; then |
| 11239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11240 | else |
| 11241 | cat >conftest.$ac_ext <<_ACEOF |
| 11242 | /* confdefs.h. */ |
| 11243 | _ACEOF |
| 11244 | cat confdefs.h >>conftest.$ac_ext |
| 11245 | cat >>conftest.$ac_ext <<_ACEOF |
| 11246 | /* end confdefs.h. */ |
| 11247 | $ac_includes_default |
| 11248 | typedef long long ac__type_new_; |
| 11249 | int |
| 11250 | main () |
| 11251 | { |
| 11252 | if ((ac__type_new_ *) 0) |
| 11253 | return 0; |
| 11254 | if (sizeof (ac__type_new_)) |
| 11255 | return 0; |
| 11256 | ; |
| 11257 | return 0; |
| 11258 | } |
| 11259 | _ACEOF |
| 11260 | rm -f conftest.$ac_objext |
| 11261 | if { (ac_try="$ac_compile" |
| 11262 | case "(($ac_try" in |
| 11263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11264 | *) ac_try_echo=$ac_try;; |
| 11265 | esac |
| 11266 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11267 | (eval "$ac_compile") 2>conftest.er1 |
| 11268 | ac_status=$? |
| 11269 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11270 | rm -f conftest.er1 |
| 11271 | cat conftest.err >&5 |
| 11272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11273 | (exit $ac_status); } && { |
| 11274 | test -z "$ac_c_werror_flag" || |
| 11275 | test ! -s conftest.err |
| 11276 | } && test -s conftest.$ac_objext; then |
| 11277 | ac_cv_type_long_long=yes |
| 11278 | else |
| 11279 | echo "$as_me: failed program was:" >&5 |
| 11280 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11281 | |
| 11282 | ac_cv_type_long_long=no |
| 11283 | fi |
| 11284 | |
| 11285 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11286 | fi |
| 11287 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 11288 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
| 11289 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11290 | # The cast to long int works around a bug in the HP C Compiler |
| 11291 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11292 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11293 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11294 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
| 11295 | 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] | 11296 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11298 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11299 | if test "$cross_compiling" = yes; then |
| 11300 | # Depending upon the size, compute the lo and hi bounds. |
| 11301 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11302 | /* confdefs.h. */ |
| 11303 | _ACEOF |
| 11304 | cat confdefs.h >>conftest.$ac_ext |
| 11305 | cat >>conftest.$ac_ext <<_ACEOF |
| 11306 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11307 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11308 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11309 | int |
| 11310 | main () |
| 11311 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11312 | 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] | 11313 | test_array [0] = 0 |
| 11314 | |
| 11315 | ; |
| 11316 | return 0; |
| 11317 | } |
| 11318 | _ACEOF |
| 11319 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11320 | if { (ac_try="$ac_compile" |
| 11321 | case "(($ac_try" in |
| 11322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11323 | *) ac_try_echo=$ac_try;; |
| 11324 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11326 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11327 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11328 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11329 | rm -f conftest.er1 |
| 11330 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11332 | (exit $ac_status); } && { |
| 11333 | test -z "$ac_c_werror_flag" || |
| 11334 | test ! -s conftest.err |
| 11335 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11336 | ac_lo=0 ac_mid=0 |
| 11337 | while :; do |
| 11338 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11339 | /* confdefs.h. */ |
| 11340 | _ACEOF |
| 11341 | cat confdefs.h >>conftest.$ac_ext |
| 11342 | cat >>conftest.$ac_ext <<_ACEOF |
| 11343 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11344 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11345 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11346 | int |
| 11347 | main () |
| 11348 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11349 | 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] | 11350 | test_array [0] = 0 |
| 11351 | |
| 11352 | ; |
| 11353 | return 0; |
| 11354 | } |
| 11355 | _ACEOF |
| 11356 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11357 | if { (ac_try="$ac_compile" |
| 11358 | case "(($ac_try" in |
| 11359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11360 | *) ac_try_echo=$ac_try;; |
| 11361 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11363 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11364 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11365 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11366 | rm -f conftest.er1 |
| 11367 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11369 | (exit $ac_status); } && { |
| 11370 | test -z "$ac_c_werror_flag" || |
| 11371 | test ! -s conftest.err |
| 11372 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11373 | ac_hi=$ac_mid; break |
| 11374 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11375 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11376 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11377 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11378 | ac_lo=`expr $ac_mid + 1` |
| 11379 | if test $ac_lo -le $ac_mid; then |
| 11380 | ac_lo= ac_hi= |
| 11381 | break |
| 11382 | fi |
| 11383 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11384 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11385 | |
| 11386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11387 | done |
| 11388 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11389 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11390 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11391 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11392 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11393 | /* confdefs.h. */ |
| 11394 | _ACEOF |
| 11395 | cat confdefs.h >>conftest.$ac_ext |
| 11396 | cat >>conftest.$ac_ext <<_ACEOF |
| 11397 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11398 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11399 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11400 | int |
| 11401 | main () |
| 11402 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11403 | 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] | 11404 | test_array [0] = 0 |
| 11405 | |
| 11406 | ; |
| 11407 | return 0; |
| 11408 | } |
| 11409 | _ACEOF |
| 11410 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11411 | if { (ac_try="$ac_compile" |
| 11412 | case "(($ac_try" in |
| 11413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11414 | *) ac_try_echo=$ac_try;; |
| 11415 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11417 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11418 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11419 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11420 | rm -f conftest.er1 |
| 11421 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11423 | (exit $ac_status); } && { |
| 11424 | test -z "$ac_c_werror_flag" || |
| 11425 | test ! -s conftest.err |
| 11426 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11427 | ac_hi=-1 ac_mid=-1 |
| 11428 | while :; do |
| 11429 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11430 | /* confdefs.h. */ |
| 11431 | _ACEOF |
| 11432 | cat confdefs.h >>conftest.$ac_ext |
| 11433 | cat >>conftest.$ac_ext <<_ACEOF |
| 11434 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11435 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11436 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11437 | int |
| 11438 | main () |
| 11439 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11440 | 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] | 11441 | test_array [0] = 0 |
| 11442 | |
| 11443 | ; |
| 11444 | return 0; |
| 11445 | } |
| 11446 | _ACEOF |
| 11447 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11448 | if { (ac_try="$ac_compile" |
| 11449 | case "(($ac_try" in |
| 11450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11451 | *) ac_try_echo=$ac_try;; |
| 11452 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11454 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11455 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11456 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11457 | rm -f conftest.er1 |
| 11458 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11460 | (exit $ac_status); } && { |
| 11461 | test -z "$ac_c_werror_flag" || |
| 11462 | test ! -s conftest.err |
| 11463 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11464 | ac_lo=$ac_mid; break |
| 11465 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11466 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11467 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11468 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11469 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11470 | if test $ac_mid -le $ac_hi; then |
| 11471 | ac_lo= ac_hi= |
| 11472 | break |
| 11473 | fi |
| 11474 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11475 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11476 | |
| 11477 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11478 | done |
| 11479 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11480 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11481 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11482 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11483 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11484 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11485 | |
| 11486 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11487 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11488 | |
| 11489 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11490 | # Binary search between lo and hi bounds. |
| 11491 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11492 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11493 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11494 | /* confdefs.h. */ |
| 11495 | _ACEOF |
| 11496 | cat confdefs.h >>conftest.$ac_ext |
| 11497 | cat >>conftest.$ac_ext <<_ACEOF |
| 11498 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11499 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11500 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11501 | int |
| 11502 | main () |
| 11503 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11504 | 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] | 11505 | test_array [0] = 0 |
| 11506 | |
| 11507 | ; |
| 11508 | return 0; |
| 11509 | } |
| 11510 | _ACEOF |
| 11511 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11512 | if { (ac_try="$ac_compile" |
| 11513 | case "(($ac_try" in |
| 11514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11515 | *) ac_try_echo=$ac_try;; |
| 11516 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11518 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11519 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11520 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11521 | rm -f conftest.er1 |
| 11522 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11524 | (exit $ac_status); } && { |
| 11525 | test -z "$ac_c_werror_flag" || |
| 11526 | test ! -s conftest.err |
| 11527 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11528 | ac_hi=$ac_mid |
| 11529 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11530 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11531 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11532 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11533 | ac_lo=`expr '(' $ac_mid ')' + 1` |
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 | done |
| 11538 | case $ac_lo in |
| 11539 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11540 | '') if test "$ac_cv_type_long_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11541 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11542 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11543 | echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11544 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11545 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11546 | else |
| 11547 | ac_cv_sizeof_long_long=0 |
| 11548 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11549 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11550 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11551 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11552 | /* confdefs.h. */ |
| 11553 | _ACEOF |
| 11554 | cat confdefs.h >>conftest.$ac_ext |
| 11555 | cat >>conftest.$ac_ext <<_ACEOF |
| 11556 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11557 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11558 | typedef long long ac__type_sizeof_; |
| 11559 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11560 | 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] | 11561 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11562 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11563 | int |
| 11564 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11565 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11566 | |
| 11567 | FILE *f = fopen ("conftest.val", "w"); |
| 11568 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11569 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11570 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11571 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11572 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11573 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11574 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11575 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11576 | } |
| 11577 | else |
| 11578 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11579 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11580 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11581 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11582 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11583 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11584 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11585 | |
| 11586 | ; |
| 11587 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11588 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11589 | _ACEOF |
| 11590 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11591 | if { (ac_try="$ac_link" |
| 11592 | case "(($ac_try" in |
| 11593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11594 | *) ac_try_echo=$ac_try;; |
| 11595 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11597 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11598 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11600 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11601 | { (case "(($ac_try" in |
| 11602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11603 | *) ac_try_echo=$ac_try;; |
| 11604 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11605 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11606 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11607 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11609 | (exit $ac_status); }; }; then |
| 11610 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11611 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11612 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11613 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11614 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11615 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11616 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11617 | if test "$ac_cv_type_long_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11618 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11619 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11620 | echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11621 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11622 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11623 | else |
| 11624 | ac_cv_sizeof_long_long=0 |
| 11625 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11626 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11627 | 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] | 11628 | fi |
| 11629 | rm -f conftest.val |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11630 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11631 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 11632 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11633 | |
| 11634 | |
| 11635 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11636 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11637 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11638 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11639 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11640 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11641 | fi |
| 11642 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11643 | { echo "$as_me:$LINENO: checking for long double support" >&5 |
| 11644 | echo $ECHO_N "checking for long double support... $ECHO_C" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11645 | have_long_double=no |
| 11646 | cat >conftest.$ac_ext <<_ACEOF |
| 11647 | /* confdefs.h. */ |
| 11648 | _ACEOF |
| 11649 | cat confdefs.h >>conftest.$ac_ext |
| 11650 | cat >>conftest.$ac_ext <<_ACEOF |
| 11651 | /* end confdefs.h. */ |
| 11652 | |
| 11653 | int |
| 11654 | main () |
| 11655 | { |
| 11656 | long double x; x = (long double)0.; |
| 11657 | ; |
| 11658 | return 0; |
| 11659 | } |
| 11660 | _ACEOF |
| 11661 | rm -f conftest.$ac_objext |
| 11662 | if { (ac_try="$ac_compile" |
| 11663 | case "(($ac_try" in |
| 11664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11665 | *) ac_try_echo=$ac_try;; |
| 11666 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11668 | (eval "$ac_compile") 2>conftest.er1 |
| 11669 | ac_status=$? |
| 11670 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11671 | rm -f conftest.er1 |
| 11672 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11674 | (exit $ac_status); } && { |
| 11675 | test -z "$ac_c_werror_flag" || |
| 11676 | test ! -s conftest.err |
| 11677 | } && test -s conftest.$ac_objext; then |
| 11678 | |
| 11679 | |
| 11680 | cat >>confdefs.h <<\_ACEOF |
| 11681 | #define HAVE_LONG_DOUBLE 1 |
| 11682 | _ACEOF |
| 11683 | |
| 11684 | have_long_double=yes |
| 11685 | |
| 11686 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11687 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11688 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11689 | |
| 11690 | |
| 11691 | fi |
| 11692 | |
| 11693 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11694 | { echo "$as_me:$LINENO: result: $have_long_double" >&5 |
| 11695 | echo "${ECHO_T}$have_long_double" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11696 | if test "$have_long_double" = yes ; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11697 | { echo "$as_me:$LINENO: checking for long double" >&5 |
| 11698 | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } |
| 11699 | if test "${ac_cv_type_long_double+set}" = set; then |
| 11700 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11701 | else |
| 11702 | cat >conftest.$ac_ext <<_ACEOF |
| 11703 | /* confdefs.h. */ |
| 11704 | _ACEOF |
| 11705 | cat confdefs.h >>conftest.$ac_ext |
| 11706 | cat >>conftest.$ac_ext <<_ACEOF |
| 11707 | /* end confdefs.h. */ |
| 11708 | $ac_includes_default |
| 11709 | typedef long double ac__type_new_; |
| 11710 | int |
| 11711 | main () |
| 11712 | { |
| 11713 | if ((ac__type_new_ *) 0) |
| 11714 | return 0; |
| 11715 | if (sizeof (ac__type_new_)) |
| 11716 | return 0; |
| 11717 | ; |
| 11718 | return 0; |
| 11719 | } |
| 11720 | _ACEOF |
| 11721 | rm -f conftest.$ac_objext |
| 11722 | if { (ac_try="$ac_compile" |
| 11723 | case "(($ac_try" in |
| 11724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11725 | *) ac_try_echo=$ac_try;; |
| 11726 | esac |
| 11727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11728 | (eval "$ac_compile") 2>conftest.er1 |
| 11729 | ac_status=$? |
| 11730 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11731 | rm -f conftest.er1 |
| 11732 | cat conftest.err >&5 |
| 11733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11734 | (exit $ac_status); } && { |
| 11735 | test -z "$ac_c_werror_flag" || |
| 11736 | test ! -s conftest.err |
| 11737 | } && test -s conftest.$ac_objext; then |
| 11738 | ac_cv_type_long_double=yes |
| 11739 | else |
| 11740 | echo "$as_me: failed program was:" >&5 |
| 11741 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11742 | |
| 11743 | ac_cv_type_long_double=no |
| 11744 | fi |
| 11745 | |
| 11746 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11747 | fi |
| 11748 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 |
| 11749 | echo "${ECHO_T}$ac_cv_type_long_double" >&6; } |
| 11750 | |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11751 | # The cast to long int works around a bug in the HP C Compiler |
| 11752 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11753 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11754 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11755 | { echo "$as_me:$LINENO: checking size of long double" >&5 |
| 11756 | echo $ECHO_N "checking size of long double... $ECHO_C" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11757 | if test "${ac_cv_sizeof_long_double+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11759 | else |
| 11760 | if test "$cross_compiling" = yes; then |
| 11761 | # Depending upon the size, compute the lo and hi bounds. |
| 11762 | cat >conftest.$ac_ext <<_ACEOF |
| 11763 | /* confdefs.h. */ |
| 11764 | _ACEOF |
| 11765 | cat confdefs.h >>conftest.$ac_ext |
| 11766 | cat >>conftest.$ac_ext <<_ACEOF |
| 11767 | /* end confdefs.h. */ |
| 11768 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11769 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11770 | int |
| 11771 | main () |
| 11772 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11773 | 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] | 11774 | test_array [0] = 0 |
| 11775 | |
| 11776 | ; |
| 11777 | return 0; |
| 11778 | } |
| 11779 | _ACEOF |
| 11780 | rm -f conftest.$ac_objext |
| 11781 | if { (ac_try="$ac_compile" |
| 11782 | case "(($ac_try" in |
| 11783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11784 | *) ac_try_echo=$ac_try;; |
| 11785 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11787 | (eval "$ac_compile") 2>conftest.er1 |
| 11788 | ac_status=$? |
| 11789 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11790 | rm -f conftest.er1 |
| 11791 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11793 | (exit $ac_status); } && { |
| 11794 | test -z "$ac_c_werror_flag" || |
| 11795 | test ! -s conftest.err |
| 11796 | } && test -s conftest.$ac_objext; then |
| 11797 | ac_lo=0 ac_mid=0 |
| 11798 | while :; do |
| 11799 | cat >conftest.$ac_ext <<_ACEOF |
| 11800 | /* confdefs.h. */ |
| 11801 | _ACEOF |
| 11802 | cat confdefs.h >>conftest.$ac_ext |
| 11803 | cat >>conftest.$ac_ext <<_ACEOF |
| 11804 | /* end confdefs.h. */ |
| 11805 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11806 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11807 | int |
| 11808 | main () |
| 11809 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11810 | 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] | 11811 | test_array [0] = 0 |
| 11812 | |
| 11813 | ; |
| 11814 | return 0; |
| 11815 | } |
| 11816 | _ACEOF |
| 11817 | rm -f conftest.$ac_objext |
| 11818 | if { (ac_try="$ac_compile" |
| 11819 | case "(($ac_try" in |
| 11820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11821 | *) ac_try_echo=$ac_try;; |
| 11822 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11823 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11824 | (eval "$ac_compile") 2>conftest.er1 |
| 11825 | ac_status=$? |
| 11826 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11827 | rm -f conftest.er1 |
| 11828 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11830 | (exit $ac_status); } && { |
| 11831 | test -z "$ac_c_werror_flag" || |
| 11832 | test ! -s conftest.err |
| 11833 | } && test -s conftest.$ac_objext; then |
| 11834 | ac_hi=$ac_mid; break |
| 11835 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11836 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11837 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11838 | |
| 11839 | ac_lo=`expr $ac_mid + 1` |
| 11840 | if test $ac_lo -le $ac_mid; then |
| 11841 | ac_lo= ac_hi= |
| 11842 | break |
| 11843 | fi |
| 11844 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 11845 | fi |
| 11846 | |
| 11847 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11848 | done |
| 11849 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11850 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11851 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11852 | |
| 11853 | cat >conftest.$ac_ext <<_ACEOF |
| 11854 | /* confdefs.h. */ |
| 11855 | _ACEOF |
| 11856 | cat confdefs.h >>conftest.$ac_ext |
| 11857 | cat >>conftest.$ac_ext <<_ACEOF |
| 11858 | /* end confdefs.h. */ |
| 11859 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11860 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11861 | int |
| 11862 | main () |
| 11863 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11864 | 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] | 11865 | test_array [0] = 0 |
| 11866 | |
| 11867 | ; |
| 11868 | return 0; |
| 11869 | } |
| 11870 | _ACEOF |
| 11871 | rm -f conftest.$ac_objext |
| 11872 | if { (ac_try="$ac_compile" |
| 11873 | case "(($ac_try" in |
| 11874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11875 | *) ac_try_echo=$ac_try;; |
| 11876 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11878 | (eval "$ac_compile") 2>conftest.er1 |
| 11879 | ac_status=$? |
| 11880 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11881 | rm -f conftest.er1 |
| 11882 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11884 | (exit $ac_status); } && { |
| 11885 | test -z "$ac_c_werror_flag" || |
| 11886 | test ! -s conftest.err |
| 11887 | } && test -s conftest.$ac_objext; then |
| 11888 | ac_hi=-1 ac_mid=-1 |
| 11889 | while :; do |
| 11890 | cat >conftest.$ac_ext <<_ACEOF |
| 11891 | /* confdefs.h. */ |
| 11892 | _ACEOF |
| 11893 | cat confdefs.h >>conftest.$ac_ext |
| 11894 | cat >>conftest.$ac_ext <<_ACEOF |
| 11895 | /* end confdefs.h. */ |
| 11896 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11897 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11898 | int |
| 11899 | main () |
| 11900 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11901 | 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] | 11902 | test_array [0] = 0 |
| 11903 | |
| 11904 | ; |
| 11905 | return 0; |
| 11906 | } |
| 11907 | _ACEOF |
| 11908 | rm -f conftest.$ac_objext |
| 11909 | if { (ac_try="$ac_compile" |
| 11910 | case "(($ac_try" in |
| 11911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11912 | *) ac_try_echo=$ac_try;; |
| 11913 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11914 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11915 | (eval "$ac_compile") 2>conftest.er1 |
| 11916 | ac_status=$? |
| 11917 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11918 | rm -f conftest.er1 |
| 11919 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11921 | (exit $ac_status); } && { |
| 11922 | test -z "$ac_c_werror_flag" || |
| 11923 | test ! -s conftest.err |
| 11924 | } && test -s conftest.$ac_objext; then |
| 11925 | ac_lo=$ac_mid; break |
| 11926 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11927 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11928 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11929 | |
| 11930 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11931 | if test $ac_mid -le $ac_hi; then |
| 11932 | ac_lo= ac_hi= |
| 11933 | break |
| 11934 | fi |
| 11935 | ac_mid=`expr 2 '*' $ac_mid` |
| 11936 | fi |
| 11937 | |
| 11938 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11939 | done |
| 11940 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11941 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11942 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11943 | |
| 11944 | ac_lo= ac_hi= |
| 11945 | fi |
| 11946 | |
| 11947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11948 | fi |
| 11949 | |
| 11950 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11951 | # Binary search between lo and hi bounds. |
| 11952 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11953 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11954 | cat >conftest.$ac_ext <<_ACEOF |
| 11955 | /* confdefs.h. */ |
| 11956 | _ACEOF |
| 11957 | cat confdefs.h >>conftest.$ac_ext |
| 11958 | cat >>conftest.$ac_ext <<_ACEOF |
| 11959 | /* end confdefs.h. */ |
| 11960 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11961 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11962 | int |
| 11963 | main () |
| 11964 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11965 | 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] | 11966 | test_array [0] = 0 |
| 11967 | |
| 11968 | ; |
| 11969 | return 0; |
| 11970 | } |
| 11971 | _ACEOF |
| 11972 | rm -f conftest.$ac_objext |
| 11973 | if { (ac_try="$ac_compile" |
| 11974 | case "(($ac_try" in |
| 11975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11976 | *) ac_try_echo=$ac_try;; |
| 11977 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11979 | (eval "$ac_compile") 2>conftest.er1 |
| 11980 | ac_status=$? |
| 11981 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11982 | rm -f conftest.er1 |
| 11983 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11985 | (exit $ac_status); } && { |
| 11986 | test -z "$ac_c_werror_flag" || |
| 11987 | test ! -s conftest.err |
| 11988 | } && test -s conftest.$ac_objext; then |
| 11989 | ac_hi=$ac_mid |
| 11990 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11991 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11992 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11993 | |
| 11994 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 11995 | fi |
| 11996 | |
| 11997 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11998 | done |
| 11999 | case $ac_lo in |
| 12000 | ?*) ac_cv_sizeof_long_double=$ac_lo;; |
| 12001 | '') if test "$ac_cv_type_long_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12002 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12003 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12004 | echo "$as_me: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12005 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12006 | { (exit 77); exit 77; }; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12007 | else |
| 12008 | ac_cv_sizeof_long_double=0 |
| 12009 | fi ;; |
| 12010 | esac |
| 12011 | else |
| 12012 | cat >conftest.$ac_ext <<_ACEOF |
| 12013 | /* confdefs.h. */ |
| 12014 | _ACEOF |
| 12015 | cat confdefs.h >>conftest.$ac_ext |
| 12016 | cat >>conftest.$ac_ext <<_ACEOF |
| 12017 | /* end confdefs.h. */ |
| 12018 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12019 | typedef long double ac__type_sizeof_; |
| 12020 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12021 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12022 | #include <stdio.h> |
| 12023 | #include <stdlib.h> |
| 12024 | int |
| 12025 | main () |
| 12026 | { |
| 12027 | |
| 12028 | FILE *f = fopen ("conftest.val", "w"); |
| 12029 | if (! f) |
| 12030 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12031 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12032 | { |
| 12033 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12034 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12035 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12036 | fprintf (f, "%ld\n", i); |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12037 | } |
| 12038 | else |
| 12039 | { |
| 12040 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12041 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12042 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12043 | fprintf (f, "%lu\n", i); |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12044 | } |
| 12045 | return ferror (f) || fclose (f) != 0; |
| 12046 | |
| 12047 | ; |
| 12048 | return 0; |
| 12049 | } |
| 12050 | _ACEOF |
| 12051 | rm -f conftest$ac_exeext |
| 12052 | if { (ac_try="$ac_link" |
| 12053 | case "(($ac_try" in |
| 12054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12055 | *) ac_try_echo=$ac_try;; |
| 12056 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12058 | (eval "$ac_link") 2>&5 |
| 12059 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12061 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12062 | { (case "(($ac_try" in |
| 12063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12064 | *) ac_try_echo=$ac_try;; |
| 12065 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12067 | (eval "$ac_try") 2>&5 |
| 12068 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12070 | (exit $ac_status); }; }; then |
| 12071 | ac_cv_sizeof_long_double=`cat conftest.val` |
| 12072 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12073 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12074 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12075 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12076 | |
| 12077 | ( exit $ac_status ) |
| 12078 | if test "$ac_cv_type_long_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12079 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12080 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12081 | echo "$as_me: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12082 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12083 | { (exit 77); exit 77; }; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12084 | else |
| 12085 | ac_cv_sizeof_long_double=0 |
| 12086 | fi |
| 12087 | fi |
| 12088 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 12089 | fi |
| 12090 | rm -f conftest.val |
| 12091 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12092 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5 |
| 12093 | echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12094 | |
| 12095 | |
| 12096 | |
| 12097 | cat >>confdefs.h <<_ACEOF |
| 12098 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double |
| 12099 | _ACEOF |
| 12100 | |
| 12101 | |
| 12102 | fi |
| 12103 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12104 | { echo "$as_me:$LINENO: checking for _Bool support" >&5 |
| 12105 | echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12106 | have_c99_bool=no |
| 12107 | cat >conftest.$ac_ext <<_ACEOF |
| 12108 | /* confdefs.h. */ |
| 12109 | _ACEOF |
| 12110 | cat confdefs.h >>conftest.$ac_ext |
| 12111 | cat >>conftest.$ac_ext <<_ACEOF |
| 12112 | /* end confdefs.h. */ |
| 12113 | |
| 12114 | int |
| 12115 | main () |
| 12116 | { |
| 12117 | _Bool x; x = (_Bool)0; |
| 12118 | ; |
| 12119 | return 0; |
| 12120 | } |
| 12121 | _ACEOF |
| 12122 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12123 | if { (ac_try="$ac_compile" |
| 12124 | case "(($ac_try" in |
| 12125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12126 | *) ac_try_echo=$ac_try;; |
| 12127 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12129 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12130 | ac_status=$? |
| 12131 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12132 | rm -f conftest.er1 |
| 12133 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12135 | (exit $ac_status); } && { |
| 12136 | test -z "$ac_c_werror_flag" || |
| 12137 | test ! -s conftest.err |
| 12138 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12139 | |
| 12140 | |
| 12141 | cat >>confdefs.h <<\_ACEOF |
| 12142 | #define HAVE_C99_BOOL 1 |
| 12143 | _ACEOF |
| 12144 | |
| 12145 | have_c99_bool=yes |
| 12146 | |
| 12147 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12148 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12149 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12150 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12151 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12152 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12153 | |
| 12154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12155 | { echo "$as_me:$LINENO: result: $have_c99_bool" >&5 |
| 12156 | echo "${ECHO_T}$have_c99_bool" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12157 | if test "$have_c99_bool" = yes ; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12158 | { echo "$as_me:$LINENO: checking for _Bool" >&5 |
| 12159 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; } |
| 12160 | if test "${ac_cv_type__Bool+set}" = set; then |
| 12161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12162 | else |
| 12163 | cat >conftest.$ac_ext <<_ACEOF |
| 12164 | /* confdefs.h. */ |
| 12165 | _ACEOF |
| 12166 | cat confdefs.h >>conftest.$ac_ext |
| 12167 | cat >>conftest.$ac_ext <<_ACEOF |
| 12168 | /* end confdefs.h. */ |
| 12169 | $ac_includes_default |
| 12170 | typedef _Bool ac__type_new_; |
| 12171 | int |
| 12172 | main () |
| 12173 | { |
| 12174 | if ((ac__type_new_ *) 0) |
| 12175 | return 0; |
| 12176 | if (sizeof (ac__type_new_)) |
| 12177 | return 0; |
| 12178 | ; |
| 12179 | return 0; |
| 12180 | } |
| 12181 | _ACEOF |
| 12182 | rm -f conftest.$ac_objext |
| 12183 | if { (ac_try="$ac_compile" |
| 12184 | case "(($ac_try" in |
| 12185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12186 | *) ac_try_echo=$ac_try;; |
| 12187 | esac |
| 12188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12189 | (eval "$ac_compile") 2>conftest.er1 |
| 12190 | ac_status=$? |
| 12191 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12192 | rm -f conftest.er1 |
| 12193 | cat conftest.err >&5 |
| 12194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12195 | (exit $ac_status); } && { |
| 12196 | test -z "$ac_c_werror_flag" || |
| 12197 | test ! -s conftest.err |
| 12198 | } && test -s conftest.$ac_objext; then |
| 12199 | ac_cv_type__Bool=yes |
| 12200 | else |
| 12201 | echo "$as_me: failed program was:" >&5 |
| 12202 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12203 | |
| 12204 | ac_cv_type__Bool=no |
| 12205 | fi |
| 12206 | |
| 12207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12208 | fi |
| 12209 | { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
| 12210 | echo "${ECHO_T}$ac_cv_type__Bool" >&6; } |
| 12211 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12212 | # The cast to long int works around a bug in the HP C Compiler |
| 12213 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12214 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12215 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12216 | { echo "$as_me:$LINENO: checking size of _Bool" >&5 |
| 12217 | echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12218 | if test "${ac_cv_sizeof__Bool+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12220 | else |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12221 | if test "$cross_compiling" = yes; then |
| 12222 | # Depending upon the size, compute the lo and hi bounds. |
| 12223 | cat >conftest.$ac_ext <<_ACEOF |
| 12224 | /* confdefs.h. */ |
| 12225 | _ACEOF |
| 12226 | cat confdefs.h >>conftest.$ac_ext |
| 12227 | cat >>conftest.$ac_ext <<_ACEOF |
| 12228 | /* end confdefs.h. */ |
| 12229 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12230 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12231 | int |
| 12232 | main () |
| 12233 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12234 | 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] | 12235 | test_array [0] = 0 |
| 12236 | |
| 12237 | ; |
| 12238 | return 0; |
| 12239 | } |
| 12240 | _ACEOF |
| 12241 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12242 | if { (ac_try="$ac_compile" |
| 12243 | case "(($ac_try" in |
| 12244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12245 | *) ac_try_echo=$ac_try;; |
| 12246 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12248 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12249 | ac_status=$? |
| 12250 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12251 | rm -f conftest.er1 |
| 12252 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12254 | (exit $ac_status); } && { |
| 12255 | test -z "$ac_c_werror_flag" || |
| 12256 | test ! -s conftest.err |
| 12257 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12258 | ac_lo=0 ac_mid=0 |
| 12259 | while :; do |
| 12260 | cat >conftest.$ac_ext <<_ACEOF |
| 12261 | /* confdefs.h. */ |
| 12262 | _ACEOF |
| 12263 | cat confdefs.h >>conftest.$ac_ext |
| 12264 | cat >>conftest.$ac_ext <<_ACEOF |
| 12265 | /* end confdefs.h. */ |
| 12266 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12267 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12268 | int |
| 12269 | main () |
| 12270 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12271 | 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] | 12272 | test_array [0] = 0 |
| 12273 | |
| 12274 | ; |
| 12275 | return 0; |
| 12276 | } |
| 12277 | _ACEOF |
| 12278 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12279 | if { (ac_try="$ac_compile" |
| 12280 | case "(($ac_try" in |
| 12281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12282 | *) ac_try_echo=$ac_try;; |
| 12283 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12285 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12286 | ac_status=$? |
| 12287 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12288 | rm -f conftest.er1 |
| 12289 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12291 | (exit $ac_status); } && { |
| 12292 | test -z "$ac_c_werror_flag" || |
| 12293 | test ! -s conftest.err |
| 12294 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12295 | ac_hi=$ac_mid; break |
| 12296 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12297 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12298 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12299 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12300 | ac_lo=`expr $ac_mid + 1` |
| 12301 | if test $ac_lo -le $ac_mid; then |
| 12302 | ac_lo= ac_hi= |
| 12303 | break |
| 12304 | fi |
| 12305 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12306 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12307 | |
| 12308 | 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] | 12309 | done |
| 12310 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12311 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12312 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12313 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12314 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12315 | /* confdefs.h. */ |
| 12316 | _ACEOF |
| 12317 | cat confdefs.h >>conftest.$ac_ext |
| 12318 | cat >>conftest.$ac_ext <<_ACEOF |
| 12319 | /* end confdefs.h. */ |
| 12320 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12321 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12322 | int |
| 12323 | main () |
| 12324 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12325 | 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] | 12326 | test_array [0] = 0 |
| 12327 | |
| 12328 | ; |
| 12329 | return 0; |
| 12330 | } |
| 12331 | _ACEOF |
| 12332 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12333 | if { (ac_try="$ac_compile" |
| 12334 | case "(($ac_try" in |
| 12335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12336 | *) ac_try_echo=$ac_try;; |
| 12337 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12339 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12340 | ac_status=$? |
| 12341 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12342 | rm -f conftest.er1 |
| 12343 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12345 | (exit $ac_status); } && { |
| 12346 | test -z "$ac_c_werror_flag" || |
| 12347 | test ! -s conftest.err |
| 12348 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12349 | ac_hi=-1 ac_mid=-1 |
| 12350 | while :; do |
| 12351 | cat >conftest.$ac_ext <<_ACEOF |
| 12352 | /* confdefs.h. */ |
| 12353 | _ACEOF |
| 12354 | cat confdefs.h >>conftest.$ac_ext |
| 12355 | cat >>conftest.$ac_ext <<_ACEOF |
| 12356 | /* end confdefs.h. */ |
| 12357 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12358 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12359 | int |
| 12360 | main () |
| 12361 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12362 | 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] | 12363 | test_array [0] = 0 |
| 12364 | |
| 12365 | ; |
| 12366 | return 0; |
| 12367 | } |
| 12368 | _ACEOF |
| 12369 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12370 | if { (ac_try="$ac_compile" |
| 12371 | case "(($ac_try" in |
| 12372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12373 | *) ac_try_echo=$ac_try;; |
| 12374 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12376 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12377 | ac_status=$? |
| 12378 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12379 | rm -f conftest.er1 |
| 12380 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12382 | (exit $ac_status); } && { |
| 12383 | test -z "$ac_c_werror_flag" || |
| 12384 | test ! -s conftest.err |
| 12385 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12386 | ac_lo=$ac_mid; break |
| 12387 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12388 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12389 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12390 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12391 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12392 | if test $ac_mid -le $ac_hi; then |
| 12393 | ac_lo= ac_hi= |
| 12394 | break |
| 12395 | fi |
| 12396 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12397 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12398 | |
| 12399 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12400 | done |
| 12401 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12402 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12403 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12404 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12405 | ac_lo= ac_hi= |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12406 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12407 | |
| 12408 | 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] | 12409 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12410 | |
| 12411 | 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] | 12412 | # Binary search between lo and hi bounds. |
| 12413 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12414 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12415 | cat >conftest.$ac_ext <<_ACEOF |
| 12416 | /* confdefs.h. */ |
| 12417 | _ACEOF |
| 12418 | cat confdefs.h >>conftest.$ac_ext |
| 12419 | cat >>conftest.$ac_ext <<_ACEOF |
| 12420 | /* end confdefs.h. */ |
| 12421 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12422 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12423 | int |
| 12424 | main () |
| 12425 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12426 | 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] | 12427 | test_array [0] = 0 |
| 12428 | |
| 12429 | ; |
| 12430 | return 0; |
| 12431 | } |
| 12432 | _ACEOF |
| 12433 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12434 | if { (ac_try="$ac_compile" |
| 12435 | case "(($ac_try" in |
| 12436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12437 | *) ac_try_echo=$ac_try;; |
| 12438 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12440 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12441 | ac_status=$? |
| 12442 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12443 | rm -f conftest.er1 |
| 12444 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12446 | (exit $ac_status); } && { |
| 12447 | test -z "$ac_c_werror_flag" || |
| 12448 | test ! -s conftest.err |
| 12449 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12450 | ac_hi=$ac_mid |
| 12451 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12452 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12453 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12454 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12455 | ac_lo=`expr '(' $ac_mid ')' + 1` |
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 | done |
| 12460 | case $ac_lo in |
| 12461 | ?*) ac_cv_sizeof__Bool=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12462 | '') if test "$ac_cv_type__Bool" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12463 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12464 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12465 | echo "$as_me: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12466 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12467 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12468 | else |
| 12469 | ac_cv_sizeof__Bool=0 |
| 12470 | fi ;; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12471 | esac |
| 12472 | else |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12473 | cat >conftest.$ac_ext <<_ACEOF |
| 12474 | /* confdefs.h. */ |
| 12475 | _ACEOF |
| 12476 | cat confdefs.h >>conftest.$ac_ext |
| 12477 | cat >>conftest.$ac_ext <<_ACEOF |
| 12478 | /* end confdefs.h. */ |
| 12479 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12480 | typedef _Bool ac__type_sizeof_; |
| 12481 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12482 | 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] | 12483 | #include <stdio.h> |
| 12484 | #include <stdlib.h> |
| 12485 | int |
| 12486 | main () |
| 12487 | { |
| 12488 | |
| 12489 | FILE *f = fopen ("conftest.val", "w"); |
| 12490 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12491 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12492 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12493 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12494 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12495 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12496 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12497 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12498 | } |
| 12499 | else |
| 12500 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12501 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12502 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12503 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12504 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12505 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12506 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12507 | |
| 12508 | ; |
| 12509 | return 0; |
| 12510 | } |
| 12511 | _ACEOF |
| 12512 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12513 | if { (ac_try="$ac_link" |
| 12514 | case "(($ac_try" in |
| 12515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12516 | *) ac_try_echo=$ac_try;; |
| 12517 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12519 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12520 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12522 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12523 | { (case "(($ac_try" in |
| 12524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12525 | *) ac_try_echo=$ac_try;; |
| 12526 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12527 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12528 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12529 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12531 | (exit $ac_status); }; }; then |
| 12532 | ac_cv_sizeof__Bool=`cat conftest.val` |
| 12533 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12534 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12535 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12536 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12537 | |
| 12538 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12539 | if test "$ac_cv_type__Bool" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12540 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12541 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12542 | echo "$as_me: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12543 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12544 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12545 | else |
| 12546 | ac_cv_sizeof__Bool=0 |
| 12547 | fi |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12548 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12549 | 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] | 12550 | fi |
| 12551 | rm -f conftest.val |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12552 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12553 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5 |
| 12554 | echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12555 | |
| 12556 | |
| 12557 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12558 | cat >>confdefs.h <<_ACEOF |
| 12559 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool |
| 12560 | _ACEOF |
| 12561 | |
| 12562 | |
| 12563 | fi |
| 12564 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12565 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 12566 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12567 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12569 | else |
| 12570 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12571 | /* confdefs.h. */ |
| 12572 | _ACEOF |
| 12573 | cat confdefs.h >>conftest.$ac_ext |
| 12574 | cat >>conftest.$ac_ext <<_ACEOF |
| 12575 | /* end confdefs.h. */ |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 12576 | #ifdef HAVE_STDINT_H |
| 12577 | #include <stdint.h> |
| 12578 | #endif |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12579 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12580 | typedef uintptr_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12581 | int |
| 12582 | main () |
| 12583 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12584 | if ((ac__type_new_ *) 0) |
| 12585 | return 0; |
| 12586 | if (sizeof (ac__type_new_)) |
| 12587 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12588 | ; |
| 12589 | return 0; |
| 12590 | } |
| 12591 | _ACEOF |
| 12592 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12593 | if { (ac_try="$ac_compile" |
| 12594 | case "(($ac_try" in |
| 12595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12596 | *) ac_try_echo=$ac_try;; |
| 12597 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12598 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12599 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12600 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12601 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12602 | rm -f conftest.er1 |
| 12603 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12605 | (exit $ac_status); } && { |
| 12606 | test -z "$ac_c_werror_flag" || |
| 12607 | test ! -s conftest.err |
| 12608 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12609 | ac_cv_type_uintptr_t=yes |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12610 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12611 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12612 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12613 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12614 | ac_cv_type_uintptr_t=no |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12615 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12616 | |
| 12617 | 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] | 12618 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12619 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 12620 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } |
| 12621 | if test $ac_cv_type_uintptr_t = yes; then |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12622 | |
| 12623 | cat >>confdefs.h <<_ACEOF |
| 12624 | #define HAVE_UINTPTR_T 1 |
| 12625 | _ACEOF |
| 12626 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12627 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 12628 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } |
| 12629 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 12630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12631 | else |
| 12632 | cat >conftest.$ac_ext <<_ACEOF |
| 12633 | /* confdefs.h. */ |
| 12634 | _ACEOF |
| 12635 | cat confdefs.h >>conftest.$ac_ext |
| 12636 | cat >>conftest.$ac_ext <<_ACEOF |
| 12637 | /* end confdefs.h. */ |
| 12638 | $ac_includes_default |
| 12639 | typedef uintptr_t ac__type_new_; |
| 12640 | int |
| 12641 | main () |
| 12642 | { |
| 12643 | if ((ac__type_new_ *) 0) |
| 12644 | return 0; |
| 12645 | if (sizeof (ac__type_new_)) |
| 12646 | return 0; |
| 12647 | ; |
| 12648 | return 0; |
| 12649 | } |
| 12650 | _ACEOF |
| 12651 | rm -f conftest.$ac_objext |
| 12652 | if { (ac_try="$ac_compile" |
| 12653 | case "(($ac_try" in |
| 12654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12655 | *) ac_try_echo=$ac_try;; |
| 12656 | esac |
| 12657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12658 | (eval "$ac_compile") 2>conftest.er1 |
| 12659 | ac_status=$? |
| 12660 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12661 | rm -f conftest.er1 |
| 12662 | cat conftest.err >&5 |
| 12663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12664 | (exit $ac_status); } && { |
| 12665 | test -z "$ac_c_werror_flag" || |
| 12666 | test ! -s conftest.err |
| 12667 | } && test -s conftest.$ac_objext; then |
| 12668 | ac_cv_type_uintptr_t=yes |
| 12669 | else |
| 12670 | echo "$as_me: failed program was:" >&5 |
| 12671 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12672 | |
| 12673 | ac_cv_type_uintptr_t=no |
| 12674 | fi |
| 12675 | |
| 12676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12677 | fi |
| 12678 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 12679 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } |
| 12680 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12681 | # The cast to long int works around a bug in the HP C Compiler |
| 12682 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12683 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12684 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12685 | { echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 12686 | 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] | 12687 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12689 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12690 | if test "$cross_compiling" = yes; then |
| 12691 | # Depending upon the size, compute the lo and hi bounds. |
| 12692 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12693 | /* confdefs.h. */ |
| 12694 | _ACEOF |
| 12695 | cat confdefs.h >>conftest.$ac_ext |
| 12696 | cat >>conftest.$ac_ext <<_ACEOF |
| 12697 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12698 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12699 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12700 | int |
| 12701 | main () |
| 12702 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12703 | 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] | 12704 | test_array [0] = 0 |
| 12705 | |
| 12706 | ; |
| 12707 | return 0; |
| 12708 | } |
| 12709 | _ACEOF |
| 12710 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12711 | if { (ac_try="$ac_compile" |
| 12712 | case "(($ac_try" in |
| 12713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12714 | *) ac_try_echo=$ac_try;; |
| 12715 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12717 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12718 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12719 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12720 | rm -f conftest.er1 |
| 12721 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12723 | (exit $ac_status); } && { |
| 12724 | test -z "$ac_c_werror_flag" || |
| 12725 | test ! -s conftest.err |
| 12726 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12727 | ac_lo=0 ac_mid=0 |
| 12728 | while :; do |
| 12729 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12730 | /* confdefs.h. */ |
| 12731 | _ACEOF |
| 12732 | cat confdefs.h >>conftest.$ac_ext |
| 12733 | cat >>conftest.$ac_ext <<_ACEOF |
| 12734 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12735 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12736 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12737 | int |
| 12738 | main () |
| 12739 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12740 | 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] | 12741 | test_array [0] = 0 |
| 12742 | |
| 12743 | ; |
| 12744 | return 0; |
| 12745 | } |
| 12746 | _ACEOF |
| 12747 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12748 | if { (ac_try="$ac_compile" |
| 12749 | case "(($ac_try" in |
| 12750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12751 | *) ac_try_echo=$ac_try;; |
| 12752 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12754 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12755 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12756 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12757 | rm -f conftest.er1 |
| 12758 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12760 | (exit $ac_status); } && { |
| 12761 | test -z "$ac_c_werror_flag" || |
| 12762 | test ! -s conftest.err |
| 12763 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12764 | ac_hi=$ac_mid; break |
| 12765 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12766 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12767 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12768 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12769 | ac_lo=`expr $ac_mid + 1` |
| 12770 | if test $ac_lo -le $ac_mid; then |
| 12771 | ac_lo= ac_hi= |
| 12772 | break |
| 12773 | fi |
| 12774 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12775 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12776 | |
| 12777 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12778 | done |
| 12779 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12780 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12781 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12782 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12783 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12784 | /* confdefs.h. */ |
| 12785 | _ACEOF |
| 12786 | cat confdefs.h >>conftest.$ac_ext |
| 12787 | cat >>conftest.$ac_ext <<_ACEOF |
| 12788 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12789 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12790 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12791 | int |
| 12792 | main () |
| 12793 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12794 | 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] | 12795 | test_array [0] = 0 |
| 12796 | |
| 12797 | ; |
| 12798 | return 0; |
| 12799 | } |
| 12800 | _ACEOF |
| 12801 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12802 | if { (ac_try="$ac_compile" |
| 12803 | case "(($ac_try" in |
| 12804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12805 | *) ac_try_echo=$ac_try;; |
| 12806 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12808 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12809 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12810 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12811 | rm -f conftest.er1 |
| 12812 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12814 | (exit $ac_status); } && { |
| 12815 | test -z "$ac_c_werror_flag" || |
| 12816 | test ! -s conftest.err |
| 12817 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12818 | ac_hi=-1 ac_mid=-1 |
| 12819 | while :; do |
| 12820 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12821 | /* confdefs.h. */ |
| 12822 | _ACEOF |
| 12823 | cat confdefs.h >>conftest.$ac_ext |
| 12824 | cat >>conftest.$ac_ext <<_ACEOF |
| 12825 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12826 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12827 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12828 | int |
| 12829 | main () |
| 12830 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12831 | 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] | 12832 | test_array [0] = 0 |
| 12833 | |
| 12834 | ; |
| 12835 | return 0; |
| 12836 | } |
| 12837 | _ACEOF |
| 12838 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12839 | if { (ac_try="$ac_compile" |
| 12840 | case "(($ac_try" in |
| 12841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12842 | *) ac_try_echo=$ac_try;; |
| 12843 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12845 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12846 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12847 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12848 | rm -f conftest.er1 |
| 12849 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12851 | (exit $ac_status); } && { |
| 12852 | test -z "$ac_c_werror_flag" || |
| 12853 | test ! -s conftest.err |
| 12854 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12855 | ac_lo=$ac_mid; break |
| 12856 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12857 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12858 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12859 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12860 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12861 | if test $ac_mid -le $ac_hi; then |
| 12862 | ac_lo= ac_hi= |
| 12863 | break |
| 12864 | fi |
| 12865 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12866 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12867 | |
| 12868 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12869 | done |
| 12870 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12871 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12872 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12873 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12874 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12875 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12876 | |
| 12877 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12878 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12879 | |
| 12880 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12881 | # Binary search between lo and hi bounds. |
| 12882 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12883 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12884 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12885 | /* confdefs.h. */ |
| 12886 | _ACEOF |
| 12887 | cat confdefs.h >>conftest.$ac_ext |
| 12888 | cat >>conftest.$ac_ext <<_ACEOF |
| 12889 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12890 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12891 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12892 | int |
| 12893 | main () |
| 12894 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12895 | 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] | 12896 | test_array [0] = 0 |
| 12897 | |
| 12898 | ; |
| 12899 | return 0; |
| 12900 | } |
| 12901 | _ACEOF |
| 12902 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12903 | if { (ac_try="$ac_compile" |
| 12904 | case "(($ac_try" in |
| 12905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12906 | *) ac_try_echo=$ac_try;; |
| 12907 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12909 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12910 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12911 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12912 | rm -f conftest.er1 |
| 12913 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12915 | (exit $ac_status); } && { |
| 12916 | test -z "$ac_c_werror_flag" || |
| 12917 | test ! -s conftest.err |
| 12918 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12919 | ac_hi=$ac_mid |
| 12920 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12921 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12922 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12923 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12924 | ac_lo=`expr '(' $ac_mid ')' + 1` |
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 | done |
| 12929 | case $ac_lo in |
| 12930 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12931 | '') if test "$ac_cv_type_uintptr_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12932 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12933 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12934 | echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12935 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12936 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12937 | else |
| 12938 | ac_cv_sizeof_uintptr_t=0 |
| 12939 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12940 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12941 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12942 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12943 | /* confdefs.h. */ |
| 12944 | _ACEOF |
| 12945 | cat confdefs.h >>conftest.$ac_ext |
| 12946 | cat >>conftest.$ac_ext <<_ACEOF |
| 12947 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12948 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12949 | typedef uintptr_t ac__type_sizeof_; |
| 12950 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12951 | 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] | 12952 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12953 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12954 | int |
| 12955 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12956 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12957 | |
| 12958 | FILE *f = fopen ("conftest.val", "w"); |
| 12959 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12960 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12961 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12962 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12963 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12964 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12965 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12966 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12967 | } |
| 12968 | else |
| 12969 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12970 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12971 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12972 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12973 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12974 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12975 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12976 | |
| 12977 | ; |
| 12978 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12979 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12980 | _ACEOF |
| 12981 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12982 | if { (ac_try="$ac_link" |
| 12983 | case "(($ac_try" in |
| 12984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12985 | *) ac_try_echo=$ac_try;; |
| 12986 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12988 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12989 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12991 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12992 | { (case "(($ac_try" in |
| 12993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12994 | *) ac_try_echo=$ac_try;; |
| 12995 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12996 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12997 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12998 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13000 | (exit $ac_status); }; }; then |
| 13001 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13002 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13003 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13004 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13005 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13006 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13007 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13008 | if test "$ac_cv_type_uintptr_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13009 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13010 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13011 | echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13012 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13013 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13014 | else |
| 13015 | ac_cv_sizeof_uintptr_t=0 |
| 13016 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13017 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13018 | 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] | 13019 | fi |
| 13020 | rm -f conftest.val |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13021 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13022 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 13023 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13024 | |
| 13025 | |
| 13026 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13027 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13028 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13029 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13030 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13031 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13032 | fi |
| 13033 | |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 13034 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13035 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 13036 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
| 13037 | if test "${ac_cv_type_off_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13039 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13040 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13041 | /* confdefs.h. */ |
| 13042 | _ACEOF |
| 13043 | cat confdefs.h >>conftest.$ac_ext |
| 13044 | cat >>conftest.$ac_ext <<_ACEOF |
| 13045 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13046 | |
| 13047 | #ifdef HAVE_SYS_TYPES_H |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13048 | #include <sys/types.h> |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13049 | #endif |
| 13050 | |
| 13051 | |
| 13052 | typedef off_t ac__type_new_; |
| 13053 | int |
| 13054 | main () |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13055 | { |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13056 | if ((ac__type_new_ *) 0) |
| 13057 | return 0; |
| 13058 | if (sizeof (ac__type_new_)) |
| 13059 | return 0; |
| 13060 | ; |
| 13061 | return 0; |
| 13062 | } |
| 13063 | _ACEOF |
| 13064 | rm -f conftest.$ac_objext |
| 13065 | if { (ac_try="$ac_compile" |
| 13066 | case "(($ac_try" in |
| 13067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13068 | *) ac_try_echo=$ac_try;; |
| 13069 | esac |
| 13070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13071 | (eval "$ac_compile") 2>conftest.er1 |
| 13072 | ac_status=$? |
| 13073 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13074 | rm -f conftest.er1 |
| 13075 | cat conftest.err >&5 |
| 13076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13077 | (exit $ac_status); } && { |
| 13078 | test -z "$ac_c_werror_flag" || |
| 13079 | test ! -s conftest.err |
| 13080 | } && test -s conftest.$ac_objext; then |
| 13081 | ac_cv_type_off_t=yes |
| 13082 | else |
| 13083 | echo "$as_me: failed program was:" >&5 |
| 13084 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13085 | |
| 13086 | ac_cv_type_off_t=no |
| 13087 | fi |
| 13088 | |
| 13089 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13090 | fi |
| 13091 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 13092 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
| 13093 | |
| 13094 | # The cast to long int works around a bug in the HP C Compiler |
| 13095 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13096 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13097 | # This bug is HP SR number 8606223364. |
| 13098 | { echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 13099 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; } |
| 13100 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 13101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13102 | else |
| 13103 | if test "$cross_compiling" = yes; then |
| 13104 | # Depending upon the size, compute the lo and hi bounds. |
| 13105 | cat >conftest.$ac_ext <<_ACEOF |
| 13106 | /* confdefs.h. */ |
| 13107 | _ACEOF |
| 13108 | cat confdefs.h >>conftest.$ac_ext |
| 13109 | cat >>conftest.$ac_ext <<_ACEOF |
| 13110 | /* end confdefs.h. */ |
| 13111 | |
| 13112 | #ifdef HAVE_SYS_TYPES_H |
| 13113 | #include <sys/types.h> |
| 13114 | #endif |
| 13115 | |
| 13116 | |
| 13117 | typedef off_t ac__type_sizeof_; |
| 13118 | int |
| 13119 | main () |
| 13120 | { |
| 13121 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 13122 | test_array [0] = 0 |
| 13123 | |
| 13124 | ; |
| 13125 | return 0; |
| 13126 | } |
| 13127 | _ACEOF |
| 13128 | rm -f conftest.$ac_objext |
| 13129 | if { (ac_try="$ac_compile" |
| 13130 | case "(($ac_try" in |
| 13131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13132 | *) ac_try_echo=$ac_try;; |
| 13133 | esac |
| 13134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13135 | (eval "$ac_compile") 2>conftest.er1 |
| 13136 | ac_status=$? |
| 13137 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13138 | rm -f conftest.er1 |
| 13139 | cat conftest.err >&5 |
| 13140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13141 | (exit $ac_status); } && { |
| 13142 | test -z "$ac_c_werror_flag" || |
| 13143 | test ! -s conftest.err |
| 13144 | } && test -s conftest.$ac_objext; then |
| 13145 | ac_lo=0 ac_mid=0 |
| 13146 | while :; do |
| 13147 | cat >conftest.$ac_ext <<_ACEOF |
| 13148 | /* confdefs.h. */ |
| 13149 | _ACEOF |
| 13150 | cat confdefs.h >>conftest.$ac_ext |
| 13151 | cat >>conftest.$ac_ext <<_ACEOF |
| 13152 | /* end confdefs.h. */ |
| 13153 | |
| 13154 | #ifdef HAVE_SYS_TYPES_H |
| 13155 | #include <sys/types.h> |
| 13156 | #endif |
| 13157 | |
| 13158 | |
| 13159 | typedef off_t ac__type_sizeof_; |
| 13160 | int |
| 13161 | main () |
| 13162 | { |
| 13163 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13164 | test_array [0] = 0 |
| 13165 | |
| 13166 | ; |
| 13167 | return 0; |
| 13168 | } |
| 13169 | _ACEOF |
| 13170 | rm -f conftest.$ac_objext |
| 13171 | if { (ac_try="$ac_compile" |
| 13172 | case "(($ac_try" in |
| 13173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13174 | *) ac_try_echo=$ac_try;; |
| 13175 | esac |
| 13176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13177 | (eval "$ac_compile") 2>conftest.er1 |
| 13178 | ac_status=$? |
| 13179 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13180 | rm -f conftest.er1 |
| 13181 | cat conftest.err >&5 |
| 13182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13183 | (exit $ac_status); } && { |
| 13184 | test -z "$ac_c_werror_flag" || |
| 13185 | test ! -s conftest.err |
| 13186 | } && test -s conftest.$ac_objext; then |
| 13187 | ac_hi=$ac_mid; break |
| 13188 | else |
| 13189 | echo "$as_me: failed program was:" >&5 |
| 13190 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13191 | |
| 13192 | ac_lo=`expr $ac_mid + 1` |
| 13193 | if test $ac_lo -le $ac_mid; then |
| 13194 | ac_lo= ac_hi= |
| 13195 | break |
| 13196 | fi |
| 13197 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 13198 | fi |
| 13199 | |
| 13200 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13201 | done |
| 13202 | else |
| 13203 | echo "$as_me: failed program was:" >&5 |
| 13204 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13205 | |
| 13206 | cat >conftest.$ac_ext <<_ACEOF |
| 13207 | /* confdefs.h. */ |
| 13208 | _ACEOF |
| 13209 | cat confdefs.h >>conftest.$ac_ext |
| 13210 | cat >>conftest.$ac_ext <<_ACEOF |
| 13211 | /* end confdefs.h. */ |
| 13212 | |
| 13213 | #ifdef HAVE_SYS_TYPES_H |
| 13214 | #include <sys/types.h> |
| 13215 | #endif |
| 13216 | |
| 13217 | |
| 13218 | typedef off_t ac__type_sizeof_; |
| 13219 | int |
| 13220 | main () |
| 13221 | { |
| 13222 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
| 13223 | test_array [0] = 0 |
| 13224 | |
| 13225 | ; |
| 13226 | return 0; |
| 13227 | } |
| 13228 | _ACEOF |
| 13229 | rm -f conftest.$ac_objext |
| 13230 | if { (ac_try="$ac_compile" |
| 13231 | case "(($ac_try" in |
| 13232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13233 | *) ac_try_echo=$ac_try;; |
| 13234 | esac |
| 13235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13236 | (eval "$ac_compile") 2>conftest.er1 |
| 13237 | ac_status=$? |
| 13238 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13239 | rm -f conftest.er1 |
| 13240 | cat conftest.err >&5 |
| 13241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13242 | (exit $ac_status); } && { |
| 13243 | test -z "$ac_c_werror_flag" || |
| 13244 | test ! -s conftest.err |
| 13245 | } && test -s conftest.$ac_objext; then |
| 13246 | ac_hi=-1 ac_mid=-1 |
| 13247 | while :; do |
| 13248 | cat >conftest.$ac_ext <<_ACEOF |
| 13249 | /* confdefs.h. */ |
| 13250 | _ACEOF |
| 13251 | cat confdefs.h >>conftest.$ac_ext |
| 13252 | cat >>conftest.$ac_ext <<_ACEOF |
| 13253 | /* end confdefs.h. */ |
| 13254 | |
| 13255 | #ifdef HAVE_SYS_TYPES_H |
| 13256 | #include <sys/types.h> |
| 13257 | #endif |
| 13258 | |
| 13259 | |
| 13260 | typedef off_t ac__type_sizeof_; |
| 13261 | int |
| 13262 | main () |
| 13263 | { |
| 13264 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 13265 | test_array [0] = 0 |
| 13266 | |
| 13267 | ; |
| 13268 | return 0; |
| 13269 | } |
| 13270 | _ACEOF |
| 13271 | rm -f conftest.$ac_objext |
| 13272 | if { (ac_try="$ac_compile" |
| 13273 | case "(($ac_try" in |
| 13274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13275 | *) ac_try_echo=$ac_try;; |
| 13276 | esac |
| 13277 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13278 | (eval "$ac_compile") 2>conftest.er1 |
| 13279 | ac_status=$? |
| 13280 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13281 | rm -f conftest.er1 |
| 13282 | cat conftest.err >&5 |
| 13283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13284 | (exit $ac_status); } && { |
| 13285 | test -z "$ac_c_werror_flag" || |
| 13286 | test ! -s conftest.err |
| 13287 | } && test -s conftest.$ac_objext; then |
| 13288 | ac_lo=$ac_mid; break |
| 13289 | else |
| 13290 | echo "$as_me: failed program was:" >&5 |
| 13291 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13292 | |
| 13293 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13294 | if test $ac_mid -le $ac_hi; then |
| 13295 | ac_lo= ac_hi= |
| 13296 | break |
| 13297 | fi |
| 13298 | ac_mid=`expr 2 '*' $ac_mid` |
| 13299 | fi |
| 13300 | |
| 13301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13302 | done |
| 13303 | else |
| 13304 | echo "$as_me: failed program was:" >&5 |
| 13305 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13306 | |
| 13307 | ac_lo= ac_hi= |
| 13308 | fi |
| 13309 | |
| 13310 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13311 | fi |
| 13312 | |
| 13313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13314 | # Binary search between lo and hi bounds. |
| 13315 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13316 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13317 | cat >conftest.$ac_ext <<_ACEOF |
| 13318 | /* confdefs.h. */ |
| 13319 | _ACEOF |
| 13320 | cat confdefs.h >>conftest.$ac_ext |
| 13321 | cat >>conftest.$ac_ext <<_ACEOF |
| 13322 | /* end confdefs.h. */ |
| 13323 | |
| 13324 | #ifdef HAVE_SYS_TYPES_H |
| 13325 | #include <sys/types.h> |
| 13326 | #endif |
| 13327 | |
| 13328 | |
| 13329 | typedef off_t ac__type_sizeof_; |
| 13330 | int |
| 13331 | main () |
| 13332 | { |
| 13333 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13334 | test_array [0] = 0 |
| 13335 | |
| 13336 | ; |
| 13337 | return 0; |
| 13338 | } |
| 13339 | _ACEOF |
| 13340 | rm -f conftest.$ac_objext |
| 13341 | if { (ac_try="$ac_compile" |
| 13342 | case "(($ac_try" in |
| 13343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13344 | *) ac_try_echo=$ac_try;; |
| 13345 | esac |
| 13346 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13347 | (eval "$ac_compile") 2>conftest.er1 |
| 13348 | ac_status=$? |
| 13349 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13350 | rm -f conftest.er1 |
| 13351 | cat conftest.err >&5 |
| 13352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13353 | (exit $ac_status); } && { |
| 13354 | test -z "$ac_c_werror_flag" || |
| 13355 | test ! -s conftest.err |
| 13356 | } && test -s conftest.$ac_objext; then |
| 13357 | ac_hi=$ac_mid |
| 13358 | else |
| 13359 | echo "$as_me: failed program was:" >&5 |
| 13360 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13361 | |
| 13362 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 13363 | fi |
| 13364 | |
| 13365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13366 | done |
| 13367 | case $ac_lo in |
| 13368 | ?*) ac_cv_sizeof_off_t=$ac_lo;; |
| 13369 | '') if test "$ac_cv_type_off_t" = yes; then |
| 13370 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t) |
| 13371 | See \`config.log' for more details." >&5 |
| 13372 | echo "$as_me: error: cannot compute sizeof (off_t) |
| 13373 | See \`config.log' for more details." >&2;} |
| 13374 | { (exit 77); exit 77; }; } |
| 13375 | else |
| 13376 | ac_cv_sizeof_off_t=0 |
| 13377 | fi ;; |
| 13378 | esac |
| 13379 | else |
| 13380 | cat >conftest.$ac_ext <<_ACEOF |
| 13381 | /* confdefs.h. */ |
| 13382 | _ACEOF |
| 13383 | cat confdefs.h >>conftest.$ac_ext |
| 13384 | cat >>conftest.$ac_ext <<_ACEOF |
| 13385 | /* end confdefs.h. */ |
| 13386 | |
| 13387 | #ifdef HAVE_SYS_TYPES_H |
| 13388 | #include <sys/types.h> |
| 13389 | #endif |
| 13390 | |
| 13391 | |
| 13392 | typedef off_t ac__type_sizeof_; |
| 13393 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13394 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13395 | #include <stdio.h> |
| 13396 | #include <stdlib.h> |
| 13397 | int |
| 13398 | main () |
| 13399 | { |
| 13400 | |
| 13401 | FILE *f = fopen ("conftest.val", "w"); |
| 13402 | if (! f) |
| 13403 | return 1; |
| 13404 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 13405 | { |
| 13406 | long int i = longval (); |
| 13407 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13408 | return 1; |
| 13409 | fprintf (f, "%ld\n", i); |
| 13410 | } |
| 13411 | else |
| 13412 | { |
| 13413 | unsigned long int i = ulongval (); |
| 13414 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13415 | return 1; |
| 13416 | fprintf (f, "%lu\n", i); |
| 13417 | } |
| 13418 | return ferror (f) || fclose (f) != 0; |
| 13419 | |
| 13420 | ; |
| 13421 | return 0; |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13422 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13423 | _ACEOF |
| 13424 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13425 | if { (ac_try="$ac_link" |
| 13426 | case "(($ac_try" in |
| 13427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13428 | *) ac_try_echo=$ac_try;; |
| 13429 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13431 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13432 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13434 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13435 | { (case "(($ac_try" in |
| 13436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13437 | *) ac_try_echo=$ac_try;; |
| 13438 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13440 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13441 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13443 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13444 | ac_cv_sizeof_off_t=`cat conftest.val` |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13445 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13446 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13447 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13448 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13449 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13450 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13451 | if test "$ac_cv_type_off_t" = yes; then |
| 13452 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t) |
| 13453 | See \`config.log' for more details." >&5 |
| 13454 | echo "$as_me: error: cannot compute sizeof (off_t) |
| 13455 | See \`config.log' for more details." >&2;} |
| 13456 | { (exit 77); exit 77; }; } |
| 13457 | else |
| 13458 | ac_cv_sizeof_off_t=0 |
| 13459 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13460 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13461 | 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] | 13462 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13463 | rm -f conftest.val |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13464 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13465 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 13466 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13467 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13468 | |
| 13469 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13470 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13471 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13472 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13473 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13474 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13475 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13476 | { echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 13477 | echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; } |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 13478 | if test "$have_long_long" = yes -a \ |
| 13479 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 13480 | "$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] | 13481 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13482 | cat >>confdefs.h <<\_ACEOF |
| 13483 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 13484 | _ACEOF |
| 13485 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13486 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 13487 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13488 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13489 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13490 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13491 | fi |
| 13492 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13493 | { echo "$as_me:$LINENO: checking for time_t" >&5 |
| 13494 | echo $ECHO_N "checking for time_t... $ECHO_C" >&6; } |
| 13495 | if test "${ac_cv_type_time_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13497 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13498 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13499 | /* confdefs.h. */ |
| 13500 | _ACEOF |
| 13501 | cat confdefs.h >>conftest.$ac_ext |
| 13502 | cat >>conftest.$ac_ext <<_ACEOF |
| 13503 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13504 | |
| 13505 | #ifdef HAVE_SYS_TYPES_H |
| 13506 | #include <sys/types.h> |
| 13507 | #endif |
| 13508 | #ifdef HAVE_TIME_H |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13509 | #include <time.h> |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13510 | #endif |
| 13511 | |
| 13512 | |
| 13513 | typedef time_t ac__type_new_; |
| 13514 | int |
| 13515 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13516 | { |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13517 | if ((ac__type_new_ *) 0) |
| 13518 | return 0; |
| 13519 | if (sizeof (ac__type_new_)) |
| 13520 | return 0; |
| 13521 | ; |
| 13522 | return 0; |
| 13523 | } |
| 13524 | _ACEOF |
| 13525 | rm -f conftest.$ac_objext |
| 13526 | if { (ac_try="$ac_compile" |
| 13527 | case "(($ac_try" in |
| 13528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13529 | *) ac_try_echo=$ac_try;; |
| 13530 | esac |
| 13531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13532 | (eval "$ac_compile") 2>conftest.er1 |
| 13533 | ac_status=$? |
| 13534 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13535 | rm -f conftest.er1 |
| 13536 | cat conftest.err >&5 |
| 13537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13538 | (exit $ac_status); } && { |
| 13539 | test -z "$ac_c_werror_flag" || |
| 13540 | test ! -s conftest.err |
| 13541 | } && test -s conftest.$ac_objext; then |
| 13542 | ac_cv_type_time_t=yes |
| 13543 | else |
| 13544 | echo "$as_me: failed program was:" >&5 |
| 13545 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13546 | |
| 13547 | ac_cv_type_time_t=no |
| 13548 | fi |
| 13549 | |
| 13550 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13551 | fi |
| 13552 | { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5 |
| 13553 | echo "${ECHO_T}$ac_cv_type_time_t" >&6; } |
| 13554 | |
| 13555 | # The cast to long int works around a bug in the HP C Compiler |
| 13556 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13557 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13558 | # This bug is HP SR number 8606223364. |
| 13559 | { echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 13560 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; } |
| 13561 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 13562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13563 | else |
| 13564 | if test "$cross_compiling" = yes; then |
| 13565 | # Depending upon the size, compute the lo and hi bounds. |
| 13566 | cat >conftest.$ac_ext <<_ACEOF |
| 13567 | /* confdefs.h. */ |
| 13568 | _ACEOF |
| 13569 | cat confdefs.h >>conftest.$ac_ext |
| 13570 | cat >>conftest.$ac_ext <<_ACEOF |
| 13571 | /* end confdefs.h. */ |
| 13572 | |
| 13573 | #ifdef HAVE_SYS_TYPES_H |
| 13574 | #include <sys/types.h> |
| 13575 | #endif |
| 13576 | #ifdef HAVE_TIME_H |
| 13577 | #include <time.h> |
| 13578 | #endif |
| 13579 | |
| 13580 | |
| 13581 | typedef time_t ac__type_sizeof_; |
| 13582 | int |
| 13583 | main () |
| 13584 | { |
| 13585 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 13586 | test_array [0] = 0 |
| 13587 | |
| 13588 | ; |
| 13589 | return 0; |
| 13590 | } |
| 13591 | _ACEOF |
| 13592 | rm -f conftest.$ac_objext |
| 13593 | if { (ac_try="$ac_compile" |
| 13594 | case "(($ac_try" in |
| 13595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13596 | *) ac_try_echo=$ac_try;; |
| 13597 | esac |
| 13598 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13599 | (eval "$ac_compile") 2>conftest.er1 |
| 13600 | ac_status=$? |
| 13601 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13602 | rm -f conftest.er1 |
| 13603 | cat conftest.err >&5 |
| 13604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13605 | (exit $ac_status); } && { |
| 13606 | test -z "$ac_c_werror_flag" || |
| 13607 | test ! -s conftest.err |
| 13608 | } && test -s conftest.$ac_objext; then |
| 13609 | ac_lo=0 ac_mid=0 |
| 13610 | while :; do |
| 13611 | cat >conftest.$ac_ext <<_ACEOF |
| 13612 | /* confdefs.h. */ |
| 13613 | _ACEOF |
| 13614 | cat confdefs.h >>conftest.$ac_ext |
| 13615 | cat >>conftest.$ac_ext <<_ACEOF |
| 13616 | /* end confdefs.h. */ |
| 13617 | |
| 13618 | #ifdef HAVE_SYS_TYPES_H |
| 13619 | #include <sys/types.h> |
| 13620 | #endif |
| 13621 | #ifdef HAVE_TIME_H |
| 13622 | #include <time.h> |
| 13623 | #endif |
| 13624 | |
| 13625 | |
| 13626 | typedef time_t ac__type_sizeof_; |
| 13627 | int |
| 13628 | main () |
| 13629 | { |
| 13630 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13631 | test_array [0] = 0 |
| 13632 | |
| 13633 | ; |
| 13634 | return 0; |
| 13635 | } |
| 13636 | _ACEOF |
| 13637 | rm -f conftest.$ac_objext |
| 13638 | if { (ac_try="$ac_compile" |
| 13639 | case "(($ac_try" in |
| 13640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13641 | *) ac_try_echo=$ac_try;; |
| 13642 | esac |
| 13643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13644 | (eval "$ac_compile") 2>conftest.er1 |
| 13645 | ac_status=$? |
| 13646 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13647 | rm -f conftest.er1 |
| 13648 | cat conftest.err >&5 |
| 13649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13650 | (exit $ac_status); } && { |
| 13651 | test -z "$ac_c_werror_flag" || |
| 13652 | test ! -s conftest.err |
| 13653 | } && test -s conftest.$ac_objext; then |
| 13654 | ac_hi=$ac_mid; break |
| 13655 | else |
| 13656 | echo "$as_me: failed program was:" >&5 |
| 13657 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13658 | |
| 13659 | ac_lo=`expr $ac_mid + 1` |
| 13660 | if test $ac_lo -le $ac_mid; then |
| 13661 | ac_lo= ac_hi= |
| 13662 | break |
| 13663 | fi |
| 13664 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 13665 | fi |
| 13666 | |
| 13667 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13668 | done |
| 13669 | else |
| 13670 | echo "$as_me: failed program was:" >&5 |
| 13671 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13672 | |
| 13673 | cat >conftest.$ac_ext <<_ACEOF |
| 13674 | /* confdefs.h. */ |
| 13675 | _ACEOF |
| 13676 | cat confdefs.h >>conftest.$ac_ext |
| 13677 | cat >>conftest.$ac_ext <<_ACEOF |
| 13678 | /* end confdefs.h. */ |
| 13679 | |
| 13680 | #ifdef HAVE_SYS_TYPES_H |
| 13681 | #include <sys/types.h> |
| 13682 | #endif |
| 13683 | #ifdef HAVE_TIME_H |
| 13684 | #include <time.h> |
| 13685 | #endif |
| 13686 | |
| 13687 | |
| 13688 | typedef time_t ac__type_sizeof_; |
| 13689 | int |
| 13690 | main () |
| 13691 | { |
| 13692 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
| 13693 | test_array [0] = 0 |
| 13694 | |
| 13695 | ; |
| 13696 | return 0; |
| 13697 | } |
| 13698 | _ACEOF |
| 13699 | rm -f conftest.$ac_objext |
| 13700 | if { (ac_try="$ac_compile" |
| 13701 | case "(($ac_try" in |
| 13702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13703 | *) ac_try_echo=$ac_try;; |
| 13704 | esac |
| 13705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13706 | (eval "$ac_compile") 2>conftest.er1 |
| 13707 | ac_status=$? |
| 13708 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13709 | rm -f conftest.er1 |
| 13710 | cat conftest.err >&5 |
| 13711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13712 | (exit $ac_status); } && { |
| 13713 | test -z "$ac_c_werror_flag" || |
| 13714 | test ! -s conftest.err |
| 13715 | } && test -s conftest.$ac_objext; then |
| 13716 | ac_hi=-1 ac_mid=-1 |
| 13717 | while :; do |
| 13718 | cat >conftest.$ac_ext <<_ACEOF |
| 13719 | /* confdefs.h. */ |
| 13720 | _ACEOF |
| 13721 | cat confdefs.h >>conftest.$ac_ext |
| 13722 | cat >>conftest.$ac_ext <<_ACEOF |
| 13723 | /* end confdefs.h. */ |
| 13724 | |
| 13725 | #ifdef HAVE_SYS_TYPES_H |
| 13726 | #include <sys/types.h> |
| 13727 | #endif |
| 13728 | #ifdef HAVE_TIME_H |
| 13729 | #include <time.h> |
| 13730 | #endif |
| 13731 | |
| 13732 | |
| 13733 | typedef time_t ac__type_sizeof_; |
| 13734 | int |
| 13735 | main () |
| 13736 | { |
| 13737 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 13738 | test_array [0] = 0 |
| 13739 | |
| 13740 | ; |
| 13741 | return 0; |
| 13742 | } |
| 13743 | _ACEOF |
| 13744 | rm -f conftest.$ac_objext |
| 13745 | if { (ac_try="$ac_compile" |
| 13746 | case "(($ac_try" in |
| 13747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13748 | *) ac_try_echo=$ac_try;; |
| 13749 | esac |
| 13750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13751 | (eval "$ac_compile") 2>conftest.er1 |
| 13752 | ac_status=$? |
| 13753 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13754 | rm -f conftest.er1 |
| 13755 | cat conftest.err >&5 |
| 13756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13757 | (exit $ac_status); } && { |
| 13758 | test -z "$ac_c_werror_flag" || |
| 13759 | test ! -s conftest.err |
| 13760 | } && test -s conftest.$ac_objext; then |
| 13761 | ac_lo=$ac_mid; break |
| 13762 | else |
| 13763 | echo "$as_me: failed program was:" >&5 |
| 13764 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13765 | |
| 13766 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13767 | if test $ac_mid -le $ac_hi; then |
| 13768 | ac_lo= ac_hi= |
| 13769 | break |
| 13770 | fi |
| 13771 | ac_mid=`expr 2 '*' $ac_mid` |
| 13772 | fi |
| 13773 | |
| 13774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13775 | done |
| 13776 | else |
| 13777 | echo "$as_me: failed program was:" >&5 |
| 13778 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13779 | |
| 13780 | ac_lo= ac_hi= |
| 13781 | fi |
| 13782 | |
| 13783 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13784 | fi |
| 13785 | |
| 13786 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13787 | # Binary search between lo and hi bounds. |
| 13788 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13789 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13790 | cat >conftest.$ac_ext <<_ACEOF |
| 13791 | /* confdefs.h. */ |
| 13792 | _ACEOF |
| 13793 | cat confdefs.h >>conftest.$ac_ext |
| 13794 | cat >>conftest.$ac_ext <<_ACEOF |
| 13795 | /* end confdefs.h. */ |
| 13796 | |
| 13797 | #ifdef HAVE_SYS_TYPES_H |
| 13798 | #include <sys/types.h> |
| 13799 | #endif |
| 13800 | #ifdef HAVE_TIME_H |
| 13801 | #include <time.h> |
| 13802 | #endif |
| 13803 | |
| 13804 | |
| 13805 | typedef time_t ac__type_sizeof_; |
| 13806 | int |
| 13807 | main () |
| 13808 | { |
| 13809 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13810 | test_array [0] = 0 |
| 13811 | |
| 13812 | ; |
| 13813 | return 0; |
| 13814 | } |
| 13815 | _ACEOF |
| 13816 | rm -f conftest.$ac_objext |
| 13817 | if { (ac_try="$ac_compile" |
| 13818 | case "(($ac_try" in |
| 13819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13820 | *) ac_try_echo=$ac_try;; |
| 13821 | esac |
| 13822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13823 | (eval "$ac_compile") 2>conftest.er1 |
| 13824 | ac_status=$? |
| 13825 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13826 | rm -f conftest.er1 |
| 13827 | cat conftest.err >&5 |
| 13828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13829 | (exit $ac_status); } && { |
| 13830 | test -z "$ac_c_werror_flag" || |
| 13831 | test ! -s conftest.err |
| 13832 | } && test -s conftest.$ac_objext; then |
| 13833 | ac_hi=$ac_mid |
| 13834 | else |
| 13835 | echo "$as_me: failed program was:" >&5 |
| 13836 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13837 | |
| 13838 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 13839 | fi |
| 13840 | |
| 13841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13842 | done |
| 13843 | case $ac_lo in |
| 13844 | ?*) ac_cv_sizeof_time_t=$ac_lo;; |
| 13845 | '') if test "$ac_cv_type_time_t" = yes; then |
| 13846 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t) |
| 13847 | See \`config.log' for more details." >&5 |
| 13848 | echo "$as_me: error: cannot compute sizeof (time_t) |
| 13849 | See \`config.log' for more details." >&2;} |
| 13850 | { (exit 77); exit 77; }; } |
| 13851 | else |
| 13852 | ac_cv_sizeof_time_t=0 |
| 13853 | fi ;; |
| 13854 | esac |
| 13855 | else |
| 13856 | cat >conftest.$ac_ext <<_ACEOF |
| 13857 | /* confdefs.h. */ |
| 13858 | _ACEOF |
| 13859 | cat confdefs.h >>conftest.$ac_ext |
| 13860 | cat >>conftest.$ac_ext <<_ACEOF |
| 13861 | /* end confdefs.h. */ |
| 13862 | |
| 13863 | #ifdef HAVE_SYS_TYPES_H |
| 13864 | #include <sys/types.h> |
| 13865 | #endif |
| 13866 | #ifdef HAVE_TIME_H |
| 13867 | #include <time.h> |
| 13868 | #endif |
| 13869 | |
| 13870 | |
| 13871 | typedef time_t ac__type_sizeof_; |
| 13872 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13873 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13874 | #include <stdio.h> |
| 13875 | #include <stdlib.h> |
| 13876 | int |
| 13877 | main () |
| 13878 | { |
| 13879 | |
| 13880 | FILE *f = fopen ("conftest.val", "w"); |
| 13881 | if (! f) |
| 13882 | return 1; |
| 13883 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 13884 | { |
| 13885 | long int i = longval (); |
| 13886 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13887 | return 1; |
| 13888 | fprintf (f, "%ld\n", i); |
| 13889 | } |
| 13890 | else |
| 13891 | { |
| 13892 | unsigned long int i = ulongval (); |
| 13893 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13894 | return 1; |
| 13895 | fprintf (f, "%lu\n", i); |
| 13896 | } |
| 13897 | return ferror (f) || fclose (f) != 0; |
| 13898 | |
| 13899 | ; |
| 13900 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13901 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13902 | _ACEOF |
| 13903 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13904 | if { (ac_try="$ac_link" |
| 13905 | case "(($ac_try" in |
| 13906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13907 | *) ac_try_echo=$ac_try;; |
| 13908 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13910 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13911 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13913 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13914 | { (case "(($ac_try" in |
| 13915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13916 | *) ac_try_echo=$ac_try;; |
| 13917 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13919 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13920 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13922 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13923 | ac_cv_sizeof_time_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13924 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13925 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13926 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13927 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13928 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13929 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13930 | if test "$ac_cv_type_time_t" = yes; then |
| 13931 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t) |
| 13932 | See \`config.log' for more details." >&5 |
| 13933 | echo "$as_me: error: cannot compute sizeof (time_t) |
| 13934 | See \`config.log' for more details." >&2;} |
| 13935 | { (exit 77); exit 77; }; } |
| 13936 | else |
| 13937 | ac_cv_sizeof_time_t=0 |
| 13938 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13939 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13940 | 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] | 13941 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13942 | rm -f conftest.val |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13943 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13944 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 13945 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13946 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13947 | |
| 13948 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13949 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13950 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13951 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13952 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13953 | |
| 13954 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13955 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 13956 | ac_save_cc="$CC" |
| 13957 | if test "$ac_cv_kpthread" = "yes" |
| 13958 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 13959 | elif test "$ac_cv_kthread" = "yes" |
| 13960 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13961 | elif test "$ac_cv_pthread" = "yes" |
| 13962 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 13963 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13964 | { echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 13965 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13966 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13967 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13968 | /* confdefs.h. */ |
| 13969 | _ACEOF |
| 13970 | cat confdefs.h >>conftest.$ac_ext |
| 13971 | cat >>conftest.$ac_ext <<_ACEOF |
| 13972 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13973 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13974 | int |
| 13975 | main () |
| 13976 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 13977 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13978 | ; |
| 13979 | return 0; |
| 13980 | } |
| 13981 | _ACEOF |
| 13982 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13983 | if { (ac_try="$ac_compile" |
| 13984 | case "(($ac_try" in |
| 13985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13986 | *) ac_try_echo=$ac_try;; |
| 13987 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13989 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13990 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13991 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13992 | rm -f conftest.er1 |
| 13993 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13995 | (exit $ac_status); } && { |
| 13996 | test -z "$ac_c_werror_flag" || |
| 13997 | test ! -s conftest.err |
| 13998 | } && test -s conftest.$ac_objext; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13999 | have_pthread_t=yes |
| 14000 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14001 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14002 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14003 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14004 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14005 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14006 | |
| 14007 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14008 | { echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 14009 | echo "${ECHO_T}$have_pthread_t" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14010 | if test "$have_pthread_t" = yes ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14011 | { echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 14012 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; } |
| 14013 | if test "${ac_cv_type_pthread_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14014 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14015 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14016 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14017 | /* confdefs.h. */ |
| 14018 | _ACEOF |
| 14019 | cat confdefs.h >>conftest.$ac_ext |
| 14020 | cat >>conftest.$ac_ext <<_ACEOF |
| 14021 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14022 | |
| 14023 | #ifdef HAVE_PTHREAD_H |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14024 | #include <pthread.h> |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14025 | #endif |
| 14026 | |
| 14027 | |
| 14028 | typedef pthread_t ac__type_new_; |
| 14029 | int |
| 14030 | main () |
| 14031 | { |
| 14032 | if ((ac__type_new_ *) 0) |
| 14033 | return 0; |
| 14034 | if (sizeof (ac__type_new_)) |
| 14035 | return 0; |
| 14036 | ; |
| 14037 | return 0; |
| 14038 | } |
| 14039 | _ACEOF |
| 14040 | rm -f conftest.$ac_objext |
| 14041 | if { (ac_try="$ac_compile" |
| 14042 | case "(($ac_try" in |
| 14043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14044 | *) ac_try_echo=$ac_try;; |
| 14045 | esac |
| 14046 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14047 | (eval "$ac_compile") 2>conftest.er1 |
| 14048 | ac_status=$? |
| 14049 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14050 | rm -f conftest.er1 |
| 14051 | cat conftest.err >&5 |
| 14052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14053 | (exit $ac_status); } && { |
| 14054 | test -z "$ac_c_werror_flag" || |
| 14055 | test ! -s conftest.err |
| 14056 | } && test -s conftest.$ac_objext; then |
| 14057 | ac_cv_type_pthread_t=yes |
| 14058 | else |
| 14059 | echo "$as_me: failed program was:" >&5 |
| 14060 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14061 | |
| 14062 | ac_cv_type_pthread_t=no |
| 14063 | fi |
| 14064 | |
| 14065 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14066 | fi |
| 14067 | { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_t" >&5 |
| 14068 | echo "${ECHO_T}$ac_cv_type_pthread_t" >&6; } |
| 14069 | |
| 14070 | # The cast to long int works around a bug in the HP C Compiler |
| 14071 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14072 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14073 | # This bug is HP SR number 8606223364. |
| 14074 | { echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 14075 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; } |
| 14076 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 14077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14078 | else |
| 14079 | if test "$cross_compiling" = yes; then |
| 14080 | # Depending upon the size, compute the lo and hi bounds. |
| 14081 | cat >conftest.$ac_ext <<_ACEOF |
| 14082 | /* confdefs.h. */ |
| 14083 | _ACEOF |
| 14084 | cat confdefs.h >>conftest.$ac_ext |
| 14085 | cat >>conftest.$ac_ext <<_ACEOF |
| 14086 | /* end confdefs.h. */ |
| 14087 | |
| 14088 | #ifdef HAVE_PTHREAD_H |
| 14089 | #include <pthread.h> |
| 14090 | #endif |
| 14091 | |
| 14092 | |
| 14093 | typedef pthread_t ac__type_sizeof_; |
| 14094 | int |
| 14095 | main () |
| 14096 | { |
| 14097 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 14098 | test_array [0] = 0 |
| 14099 | |
| 14100 | ; |
| 14101 | return 0; |
| 14102 | } |
| 14103 | _ACEOF |
| 14104 | rm -f conftest.$ac_objext |
| 14105 | if { (ac_try="$ac_compile" |
| 14106 | case "(($ac_try" in |
| 14107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14108 | *) ac_try_echo=$ac_try;; |
| 14109 | esac |
| 14110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14111 | (eval "$ac_compile") 2>conftest.er1 |
| 14112 | ac_status=$? |
| 14113 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14114 | rm -f conftest.er1 |
| 14115 | cat conftest.err >&5 |
| 14116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14117 | (exit $ac_status); } && { |
| 14118 | test -z "$ac_c_werror_flag" || |
| 14119 | test ! -s conftest.err |
| 14120 | } && test -s conftest.$ac_objext; then |
| 14121 | ac_lo=0 ac_mid=0 |
| 14122 | while :; do |
| 14123 | cat >conftest.$ac_ext <<_ACEOF |
| 14124 | /* confdefs.h. */ |
| 14125 | _ACEOF |
| 14126 | cat confdefs.h >>conftest.$ac_ext |
| 14127 | cat >>conftest.$ac_ext <<_ACEOF |
| 14128 | /* end confdefs.h. */ |
| 14129 | |
| 14130 | #ifdef HAVE_PTHREAD_H |
| 14131 | #include <pthread.h> |
| 14132 | #endif |
| 14133 | |
| 14134 | |
| 14135 | typedef pthread_t ac__type_sizeof_; |
| 14136 | int |
| 14137 | main () |
| 14138 | { |
| 14139 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 14140 | test_array [0] = 0 |
| 14141 | |
| 14142 | ; |
| 14143 | return 0; |
| 14144 | } |
| 14145 | _ACEOF |
| 14146 | rm -f conftest.$ac_objext |
| 14147 | if { (ac_try="$ac_compile" |
| 14148 | case "(($ac_try" in |
| 14149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14150 | *) ac_try_echo=$ac_try;; |
| 14151 | esac |
| 14152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14153 | (eval "$ac_compile") 2>conftest.er1 |
| 14154 | ac_status=$? |
| 14155 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14156 | rm -f conftest.er1 |
| 14157 | cat conftest.err >&5 |
| 14158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14159 | (exit $ac_status); } && { |
| 14160 | test -z "$ac_c_werror_flag" || |
| 14161 | test ! -s conftest.err |
| 14162 | } && test -s conftest.$ac_objext; then |
| 14163 | ac_hi=$ac_mid; break |
| 14164 | else |
| 14165 | echo "$as_me: failed program was:" >&5 |
| 14166 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14167 | |
| 14168 | ac_lo=`expr $ac_mid + 1` |
| 14169 | if test $ac_lo -le $ac_mid; then |
| 14170 | ac_lo= ac_hi= |
| 14171 | break |
| 14172 | fi |
| 14173 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 14174 | fi |
| 14175 | |
| 14176 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14177 | done |
| 14178 | else |
| 14179 | echo "$as_me: failed program was:" >&5 |
| 14180 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14181 | |
| 14182 | cat >conftest.$ac_ext <<_ACEOF |
| 14183 | /* confdefs.h. */ |
| 14184 | _ACEOF |
| 14185 | cat confdefs.h >>conftest.$ac_ext |
| 14186 | cat >>conftest.$ac_ext <<_ACEOF |
| 14187 | /* end confdefs.h. */ |
| 14188 | |
| 14189 | #ifdef HAVE_PTHREAD_H |
| 14190 | #include <pthread.h> |
| 14191 | #endif |
| 14192 | |
| 14193 | |
| 14194 | typedef pthread_t ac__type_sizeof_; |
| 14195 | int |
| 14196 | main () |
| 14197 | { |
| 14198 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
| 14199 | test_array [0] = 0 |
| 14200 | |
| 14201 | ; |
| 14202 | return 0; |
| 14203 | } |
| 14204 | _ACEOF |
| 14205 | rm -f conftest.$ac_objext |
| 14206 | if { (ac_try="$ac_compile" |
| 14207 | case "(($ac_try" in |
| 14208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14209 | *) ac_try_echo=$ac_try;; |
| 14210 | esac |
| 14211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14212 | (eval "$ac_compile") 2>conftest.er1 |
| 14213 | ac_status=$? |
| 14214 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14215 | rm -f conftest.er1 |
| 14216 | cat conftest.err >&5 |
| 14217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14218 | (exit $ac_status); } && { |
| 14219 | test -z "$ac_c_werror_flag" || |
| 14220 | test ! -s conftest.err |
| 14221 | } && test -s conftest.$ac_objext; then |
| 14222 | ac_hi=-1 ac_mid=-1 |
| 14223 | while :; do |
| 14224 | cat >conftest.$ac_ext <<_ACEOF |
| 14225 | /* confdefs.h. */ |
| 14226 | _ACEOF |
| 14227 | cat confdefs.h >>conftest.$ac_ext |
| 14228 | cat >>conftest.$ac_ext <<_ACEOF |
| 14229 | /* end confdefs.h. */ |
| 14230 | |
| 14231 | #ifdef HAVE_PTHREAD_H |
| 14232 | #include <pthread.h> |
| 14233 | #endif |
| 14234 | |
| 14235 | |
| 14236 | typedef pthread_t ac__type_sizeof_; |
| 14237 | int |
| 14238 | main () |
| 14239 | { |
| 14240 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 14241 | test_array [0] = 0 |
| 14242 | |
| 14243 | ; |
| 14244 | return 0; |
| 14245 | } |
| 14246 | _ACEOF |
| 14247 | rm -f conftest.$ac_objext |
| 14248 | if { (ac_try="$ac_compile" |
| 14249 | case "(($ac_try" in |
| 14250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14251 | *) ac_try_echo=$ac_try;; |
| 14252 | esac |
| 14253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14254 | (eval "$ac_compile") 2>conftest.er1 |
| 14255 | ac_status=$? |
| 14256 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14257 | rm -f conftest.er1 |
| 14258 | cat conftest.err >&5 |
| 14259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14260 | (exit $ac_status); } && { |
| 14261 | test -z "$ac_c_werror_flag" || |
| 14262 | test ! -s conftest.err |
| 14263 | } && test -s conftest.$ac_objext; then |
| 14264 | ac_lo=$ac_mid; break |
| 14265 | else |
| 14266 | echo "$as_me: failed program was:" >&5 |
| 14267 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14268 | |
| 14269 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 14270 | if test $ac_mid -le $ac_hi; then |
| 14271 | ac_lo= ac_hi= |
| 14272 | break |
| 14273 | fi |
| 14274 | ac_mid=`expr 2 '*' $ac_mid` |
| 14275 | fi |
| 14276 | |
| 14277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14278 | done |
| 14279 | else |
| 14280 | echo "$as_me: failed program was:" >&5 |
| 14281 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14282 | |
| 14283 | ac_lo= ac_hi= |
| 14284 | fi |
| 14285 | |
| 14286 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14287 | fi |
| 14288 | |
| 14289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14290 | # Binary search between lo and hi bounds. |
| 14291 | while test "x$ac_lo" != "x$ac_hi"; do |
| 14292 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 14293 | cat >conftest.$ac_ext <<_ACEOF |
| 14294 | /* confdefs.h. */ |
| 14295 | _ACEOF |
| 14296 | cat confdefs.h >>conftest.$ac_ext |
| 14297 | cat >>conftest.$ac_ext <<_ACEOF |
| 14298 | /* end confdefs.h. */ |
| 14299 | |
| 14300 | #ifdef HAVE_PTHREAD_H |
| 14301 | #include <pthread.h> |
| 14302 | #endif |
| 14303 | |
| 14304 | |
| 14305 | typedef pthread_t ac__type_sizeof_; |
| 14306 | int |
| 14307 | main () |
| 14308 | { |
| 14309 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 14310 | test_array [0] = 0 |
| 14311 | |
| 14312 | ; |
| 14313 | return 0; |
| 14314 | } |
| 14315 | _ACEOF |
| 14316 | rm -f conftest.$ac_objext |
| 14317 | if { (ac_try="$ac_compile" |
| 14318 | case "(($ac_try" in |
| 14319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14320 | *) ac_try_echo=$ac_try;; |
| 14321 | esac |
| 14322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14323 | (eval "$ac_compile") 2>conftest.er1 |
| 14324 | ac_status=$? |
| 14325 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14326 | rm -f conftest.er1 |
| 14327 | cat conftest.err >&5 |
| 14328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14329 | (exit $ac_status); } && { |
| 14330 | test -z "$ac_c_werror_flag" || |
| 14331 | test ! -s conftest.err |
| 14332 | } && test -s conftest.$ac_objext; then |
| 14333 | ac_hi=$ac_mid |
| 14334 | else |
| 14335 | echo "$as_me: failed program was:" >&5 |
| 14336 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14337 | |
| 14338 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 14339 | fi |
| 14340 | |
| 14341 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14342 | done |
| 14343 | case $ac_lo in |
| 14344 | ?*) ac_cv_sizeof_pthread_t=$ac_lo;; |
| 14345 | '') if test "$ac_cv_type_pthread_t" = yes; then |
| 14346 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t) |
| 14347 | See \`config.log' for more details." >&5 |
| 14348 | echo "$as_me: error: cannot compute sizeof (pthread_t) |
| 14349 | See \`config.log' for more details." >&2;} |
| 14350 | { (exit 77); exit 77; }; } |
| 14351 | else |
| 14352 | ac_cv_sizeof_pthread_t=0 |
| 14353 | fi ;; |
| 14354 | esac |
| 14355 | else |
| 14356 | cat >conftest.$ac_ext <<_ACEOF |
| 14357 | /* confdefs.h. */ |
| 14358 | _ACEOF |
| 14359 | cat confdefs.h >>conftest.$ac_ext |
| 14360 | cat >>conftest.$ac_ext <<_ACEOF |
| 14361 | /* end confdefs.h. */ |
| 14362 | |
| 14363 | #ifdef HAVE_PTHREAD_H |
| 14364 | #include <pthread.h> |
| 14365 | #endif |
| 14366 | |
| 14367 | |
| 14368 | typedef pthread_t ac__type_sizeof_; |
| 14369 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 14370 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 14371 | #include <stdio.h> |
| 14372 | #include <stdlib.h> |
| 14373 | int |
| 14374 | main () |
| 14375 | { |
| 14376 | |
| 14377 | FILE *f = fopen ("conftest.val", "w"); |
| 14378 | if (! f) |
| 14379 | return 1; |
| 14380 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 14381 | { |
| 14382 | long int i = longval (); |
| 14383 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14384 | return 1; |
| 14385 | fprintf (f, "%ld\n", i); |
| 14386 | } |
| 14387 | else |
| 14388 | { |
| 14389 | unsigned long int i = ulongval (); |
| 14390 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14391 | return 1; |
| 14392 | fprintf (f, "%lu\n", i); |
| 14393 | } |
| 14394 | return ferror (f) || fclose (f) != 0; |
| 14395 | |
| 14396 | ; |
| 14397 | return 0; |
| 14398 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14399 | _ACEOF |
| 14400 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14401 | if { (ac_try="$ac_link" |
| 14402 | case "(($ac_try" in |
| 14403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14404 | *) ac_try_echo=$ac_try;; |
| 14405 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14407 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14408 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14410 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14411 | { (case "(($ac_try" in |
| 14412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14413 | *) ac_try_echo=$ac_try;; |
| 14414 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14416 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14417 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14419 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14420 | ac_cv_sizeof_pthread_t=`cat conftest.val` |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14421 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14422 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14423 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14424 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14425 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14426 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14427 | if test "$ac_cv_type_pthread_t" = yes; then |
| 14428 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t) |
| 14429 | See \`config.log' for more details." >&5 |
| 14430 | echo "$as_me: error: cannot compute sizeof (pthread_t) |
| 14431 | See \`config.log' for more details." >&2;} |
| 14432 | { (exit 77); exit 77; }; } |
| 14433 | else |
| 14434 | ac_cv_sizeof_pthread_t=0 |
| 14435 | fi |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14436 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14437 | 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] | 14438 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14439 | rm -f conftest.val |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14440 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14441 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14442 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14443 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14444 | |
| 14445 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14446 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14447 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14448 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14449 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14450 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14451 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 14452 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14453 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14454 | { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 14455 | 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] | 14456 | # Check whether --enable-toolbox-glue was given. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14457 | if test "${enable_toolbox_glue+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14458 | enableval=$enable_toolbox_glue; |
| 14459 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14460 | |
| 14461 | |
| 14462 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14463 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14464 | case $ac_sys_system/$ac_sys_release in |
| 14465 | Darwin/*) |
| 14466 | enable_toolbox_glue="yes";; |
| 14467 | *) |
| 14468 | enable_toolbox_glue="no";; |
| 14469 | esac |
| 14470 | fi |
| 14471 | case "$enable_toolbox_glue" in |
| 14472 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14473 | extra_machdep_objs="Python/mactoolboxglue.o" |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14474 | extra_undefs="-u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14475 | |
| 14476 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14477 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14478 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14479 | |
| 14480 | ;; |
| 14481 | *) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14482 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 14483 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14484 | ;; |
| 14485 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14486 | { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 14487 | echo "${ECHO_T}$enable_toolbox_glue" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14488 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14489 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 14490 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14491 | case $ac_sys_system/$ac_sys_release in |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 14492 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 14493 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 14494 | ;; |
| 14495 | Darwin/*) |
| 14496 | OTHER_LIBTOOL_OPT="" |
| 14497 | ;; |
| 14498 | esac |
| 14499 | |
| 14500 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14501 | ARCH_RUN_32BIT="" |
| 14502 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 14503 | case $ac_sys_system/$ac_sys_release in |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 14504 | Darwin/[01567]\..*) |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14505 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
| 14506 | if test "${enable_universalsdk}"; then |
| 14507 | : |
| 14508 | else |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14509 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`" |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14510 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 14511 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14512 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 14513 | Darwin/*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 14514 | gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3` |
| 14515 | if test ${gcc_version} '<' 4.0 |
| 14516 | then |
| 14517 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 14518 | else |
| 14519 | LIBTOOL_CRUFT="" |
| 14520 | fi |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14521 | if test "$cross_compiling" = yes; then |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 14522 | ac_osx_32bit=yes |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14523 | else |
| 14524 | cat >conftest.$ac_ext <<_ACEOF |
| 14525 | /* confdefs.h. */ |
| 14526 | _ACEOF |
| 14527 | cat confdefs.h >>conftest.$ac_ext |
| 14528 | cat >>conftest.$ac_ext <<_ACEOF |
| 14529 | /* end confdefs.h. */ |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 14530 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14531 | #include <unistd.h> |
| 14532 | int main(int argc, char*argv[]) |
| 14533 | { |
| 14534 | if (sizeof(long) == 4) { |
| 14535 | return 0; |
| 14536 | } else { |
| 14537 | return 1; |
| 14538 | } |
Ronald Oussoren | 84ddd72 | 2009-09-08 07:17:10 +0000 | [diff] [blame] | 14539 | } |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 14540 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14541 | _ACEOF |
| 14542 | rm -f conftest$ac_exeext |
| 14543 | if { (ac_try="$ac_link" |
| 14544 | case "(($ac_try" in |
| 14545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14546 | *) ac_try_echo=$ac_try;; |
| 14547 | esac |
| 14548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14549 | (eval "$ac_link") 2>&5 |
| 14550 | ac_status=$? |
| 14551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14552 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14553 | { (case "(($ac_try" in |
| 14554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14555 | *) ac_try_echo=$ac_try;; |
| 14556 | esac |
| 14557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14558 | (eval "$ac_try") 2>&5 |
| 14559 | ac_status=$? |
| 14560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14561 | (exit $ac_status); }; }; then |
| 14562 | ac_osx_32bit=yes |
| 14563 | else |
| 14564 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14565 | echo "$as_me: failed program was:" >&5 |
| 14566 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14567 | |
| 14568 | ( exit $ac_status ) |
| 14569 | ac_osx_32bit=no |
| 14570 | fi |
| 14571 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 14572 | fi |
| 14573 | |
| 14574 | |
| 14575 | |
| 14576 | if test "${ac_osx_32bit}" = "yes"; then |
| 14577 | case `arch` in |
| 14578 | i386) |
| 14579 | MACOSX_DEFAULT_ARCH="i386" |
| 14580 | ;; |
| 14581 | ppc) |
| 14582 | MACOSX_DEFAULT_ARCH="ppc" |
| 14583 | ;; |
| 14584 | *) |
| 14585 | { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5 |
| 14586 | echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;} |
| 14587 | { (exit 1); exit 1; }; } |
| 14588 | ;; |
| 14589 | esac |
| 14590 | else |
| 14591 | case `arch` in |
| 14592 | i386) |
| 14593 | MACOSX_DEFAULT_ARCH="x86_64" |
| 14594 | ;; |
| 14595 | ppc) |
| 14596 | MACOSX_DEFAULT_ARCH="ppc64" |
| 14597 | ;; |
| 14598 | *) |
| 14599 | { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5 |
| 14600 | echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;} |
| 14601 | { (exit 1); exit 1; }; } |
| 14602 | ;; |
| 14603 | esac |
| 14604 | |
| 14605 | #ARCH_RUN_32BIT="true" |
| 14606 | fi |
| 14607 | |
| 14608 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 14609 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14610 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14611 | esac |
| 14612 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14613 | { echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 14614 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14615 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14616 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 14617 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14618 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14619 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14620 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14621 | cat >>confdefs.h <<\_ACEOF |
| 14622 | #define WITH_NEXT_FRAMEWORK 1 |
| 14623 | _ACEOF |
| 14624 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14625 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 14626 | echo "${ECHO_T}yes" >&6; } |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 14627 | if test $enable_shared = "yes" |
| 14628 | then |
Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 14629 | { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." >&5 |
| 14630 | 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] | 14631 | { (exit 1); exit 1; }; } |
| 14632 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14633 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14634 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14635 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14636 | fi |
| 14637 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14638 | { echo "$as_me:$LINENO: checking for dyld" >&5 |
| 14639 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14640 | case $ac_sys_system/$ac_sys_release in |
| 14641 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14642 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14643 | cat >>confdefs.h <<\_ACEOF |
| 14644 | #define WITH_DYLD 1 |
| 14645 | _ACEOF |
| 14646 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14647 | { echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 14648 | echo "${ECHO_T}always on for Darwin" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14649 | ;; |
| 14650 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14651 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14652 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14653 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14654 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14655 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14656 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14657 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14658 | |
| 14659 | |
| 14660 | |
| 14661 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14662 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 14663 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14664 | { echo "$as_me:$LINENO: checking SO" >&5 |
| 14665 | echo $ECHO_N "checking SO... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14666 | if test -z "$SO" |
| 14667 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14668 | case $ac_sys_system in |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 14669 | hp*|HP*) |
| 14670 | case `uname -m` in |
| 14671 | ia64) SO=.so;; |
| 14672 | *) SO=.sl;; |
| 14673 | esac |
| 14674 | ;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 14675 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14676 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14677 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 14678 | else |
| 14679 | # this might also be a termcap variable, see #610332 |
| 14680 | echo |
| 14681 | echo '=====================================================================' |
| 14682 | echo '+ +' |
| 14683 | echo '+ WARNING: You have set SO in your environment. +' |
| 14684 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 14685 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 14686 | echo '+ +' |
| 14687 | echo '=====================================================================' |
| 14688 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14689 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14690 | { echo "$as_me:$LINENO: result: $SO" >&5 |
| 14691 | echo "${ECHO_T}$SO" >&6; } |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 14692 | |
Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 14693 | |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 14694 | cat >>confdefs.h <<_ACEOF |
| 14695 | #define SHLIB_EXT "$SO" |
| 14696 | _ACEOF |
| 14697 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14698 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 14699 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14700 | # (Shared libraries in this instance are shared modules to be loaded into |
| 14701 | # Python, as opposed to building Python itself as a shared library.) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14702 | { echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 14703 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14704 | if test -z "$LDSHARED" |
| 14705 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14706 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14707 | AIX*) |
| 14708 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 14709 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14710 | ;; |
| 14711 | BeOS*) |
| 14712 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 14713 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14714 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 14715 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 14716 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14717 | SunOS/5*) |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 14718 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 14719 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 14720 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 14721 | fi ;; |
Thomas Heller | dc96a77 | 2008-04-04 10:07:55 +0000 | [diff] [blame] | 14722 | hp*|HP*) |
| 14723 | if test "$GCC" = "yes" |
| 14724 | then LDSHARED='$(CC) -shared' |
| 14725 | else LDSHARED='ld -b'; |
| 14726 | fi ;; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14727 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 14728 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14729 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 14730 | if test "$enable_framework" ; then |
| 14731 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14732 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 14733 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14734 | else |
| 14735 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 14736 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14737 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14738 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14739 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 14740 | if test "$enable_framework" ; then |
| 14741 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14742 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 14743 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14744 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 14745 | # No framework, use the Python app as bundle-loader |
| 14746 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 14747 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14748 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14749 | Darwin/*) |
| 14750 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 14751 | # This allows an extension to be used in any Python |
Ronald Oussoren | 38f1b98 | 2007-09-02 09:46:07 +0000 | [diff] [blame] | 14752 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 14753 | if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14754 | then |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14755 | if test "${enable_universalsdk}"; then |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 14756 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14757 | fi |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14758 | LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
| 14759 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14760 | else |
| 14761 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 14762 | if test "$enable_framework" ; then |
| 14763 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14764 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 14765 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14766 | else |
| 14767 | # No framework, use the Python app as bundle-loader |
| 14768 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 14769 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
| 14770 | fi |
| 14771 | fi |
| 14772 | ;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 14773 | Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 14774 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 14775 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 14776 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 14777 | then |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 14778 | LDSHARED="$CC -shared ${LDFLAGS}" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 14779 | else |
| 14780 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 14781 | fi;; |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 14782 | OpenBSD*) |
| 14783 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 14784 | then |
| 14785 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 14786 | else |
| 14787 | case `uname -r` in |
| 14788 | [01].* | 2.[0-7] | 2.[0-7].*) |
| 14789 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 14790 | ;; |
| 14791 | *) |
| 14792 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 14793 | ;; |
| 14794 | esac |
| 14795 | fi;; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 14796 | NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 14797 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14798 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 14799 | then LDSHARED='$(CC) -shared' |
| 14800 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14801 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 14802 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 14803 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14804 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14805 | *) LDSHARED="ld";; |
| 14806 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14807 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14808 | { echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 14809 | echo "${ECHO_T}$LDSHARED" >&6; } |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14810 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14811 | # 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] | 14812 | # library (module) -- this is only needed for a few systems |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14813 | { echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 14814 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14815 | if test -z "$CCSHARED" |
| 14816 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 14817 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 14818 | SunOS*) if test "$GCC" = yes; |
Martin v. Löwis | eb62357 | 2007-03-12 10:50:39 +0000 | [diff] [blame] | 14819 | then CCSHARED="-fPIC"; |
| 14820 | elif test `uname -p` = sparc; |
| 14821 | then CCSHARED="-xcode=pic32"; |
| 14822 | else CCSHARED="-Kpic"; |
| 14823 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 14824 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 14825 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 14826 | else CCSHARED="+z"; |
| 14827 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14828 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 14829 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 14830 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 14831 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14832 | if test "$GCC" = "yes" |
| 14833 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14834 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14835 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 14836 | SCO_SV*) |
| 14837 | if test "$GCC" = "yes" |
| 14838 | then CCSHARED="-fPIC" |
| 14839 | else CCSHARED="-Kpic -belf" |
| 14840 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14841 | IRIX*/6*) case $CC in |
| 14842 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 14843 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14844 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14845 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14846 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14847 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14848 | { echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 14849 | echo "${ECHO_T}$CCSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14850 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14851 | # the python executable -- this is only needed for a few systems |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14852 | { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 14853 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14854 | if test -z "$LINKFORSHARED" |
| 14855 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 14856 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14857 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 14858 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14859 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 14860 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 14861 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14862 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14863 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14864 | Darwin/*) |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14865 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, |
| 14866 | # which is |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14867 | # not used by the core itself but which needs to be in the core so |
| 14868 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 14869 | # -prebind is no longer used, because it actually seems to give a |
| 14870 | # slowdown in stead of a speedup, maybe due to the large number of |
| 14871 | # dynamic loads Python does. |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14872 | |
| 14873 | LINKFORSHARED="$extra_undefs" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14874 | if test "$enable_framework" |
| 14875 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14876 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14877 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14878 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 14879 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 14880 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 14881 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 14882 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 14883 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 14884 | then |
| 14885 | LINKFORSHARED="-Wl,--export-dynamic" |
| 14886 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14887 | SunOS/5*) case $CC in |
| 14888 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 14889 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 14890 | then |
| 14891 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14892 | fi;; |
| 14893 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 14894 | CYGWIN*) |
| 14895 | if test $enable_shared = "no" |
| 14896 | then |
| 14897 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 14898 | fi;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 14899 | QNX*) |
| 14900 | # -Wl,-E causes the symbols to be added to the dynamic |
| 14901 | # symbol table so that they can be found when a module |
| 14902 | # is loaded. -N 2048K causes the stack size to be set |
| 14903 | # to 2048 kilobytes so that the stack doesn't overflow |
| 14904 | # when running test_compile.py. |
| 14905 | LINKFORSHARED='-Wl,-E -N 2048K';; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14906 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14907 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14908 | { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 14909 | echo "${ECHO_T}$LINKFORSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14910 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14911 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 14912 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14913 | { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 14914 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 14915 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 14916 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 14917 | case $ac_sys_system in |
| 14918 | CYGWIN*) |
| 14919 | # Cygwin needs CCSHARED when building extension DLLs |
| 14920 | # but not when building the interpreter DLL. |
| 14921 | CFLAGSFORSHARED='';; |
| 14922 | *) |
| 14923 | CFLAGSFORSHARED='$(CCSHARED)' |
| 14924 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 14925 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14926 | { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 14927 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 14928 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14929 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 14930 | # library (with --enable-shared). |
| 14931 | # 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] | 14932 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 14933 | # if it is not required, since it creates a dependency of the shared library |
| 14934 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 14935 | # don't need to link LIBS explicitly. The default should be only changed |
| 14936 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14937 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14938 | { echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 14939 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14940 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14941 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 14942 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14943 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14944 | { echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 14945 | echo "${ECHO_T}$SHLIBS" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14946 | |
| 14947 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14948 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14949 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14950 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 14951 | 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] | 14952 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14954 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14955 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14956 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14957 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14958 | /* confdefs.h. */ |
| 14959 | _ACEOF |
| 14960 | cat confdefs.h >>conftest.$ac_ext |
| 14961 | cat >>conftest.$ac_ext <<_ACEOF |
| 14962 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14963 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14964 | /* Override any GCC internal prototype to avoid an error. |
| 14965 | Use char because int might match the return type of a GCC |
| 14966 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14967 | #ifdef __cplusplus |
| 14968 | extern "C" |
| 14969 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14970 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14971 | int |
| 14972 | main () |
| 14973 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14974 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14975 | ; |
| 14976 | return 0; |
| 14977 | } |
| 14978 | _ACEOF |
| 14979 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14980 | if { (ac_try="$ac_link" |
| 14981 | case "(($ac_try" in |
| 14982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14983 | *) ac_try_echo=$ac_try;; |
| 14984 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14986 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14987 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14988 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14989 | rm -f conftest.er1 |
| 14990 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14992 | (exit $ac_status); } && { |
| 14993 | test -z "$ac_c_werror_flag" || |
| 14994 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14995 | } && test -s conftest$ac_exeext && |
| 14996 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14997 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14998 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14999 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15000 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15001 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15002 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15003 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15004 | |
| 15005 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15006 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15007 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15008 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15009 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 15010 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 15011 | if test $ac_cv_lib_dl_dlopen = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15012 | cat >>confdefs.h <<_ACEOF |
| 15013 | #define HAVE_LIBDL 1 |
| 15014 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15015 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15016 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15017 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15018 | fi |
| 15019 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15020 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15021 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 15022 | 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] | 15023 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15025 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15026 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15027 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15028 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15029 | /* confdefs.h. */ |
| 15030 | _ACEOF |
| 15031 | cat confdefs.h >>conftest.$ac_ext |
| 15032 | cat >>conftest.$ac_ext <<_ACEOF |
| 15033 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15034 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15035 | /* Override any GCC internal prototype to avoid an error. |
| 15036 | Use char because int might match the return type of a GCC |
| 15037 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15038 | #ifdef __cplusplus |
| 15039 | extern "C" |
| 15040 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15041 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15042 | int |
| 15043 | main () |
| 15044 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15045 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15046 | ; |
| 15047 | return 0; |
| 15048 | } |
| 15049 | _ACEOF |
| 15050 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15051 | if { (ac_try="$ac_link" |
| 15052 | case "(($ac_try" in |
| 15053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15054 | *) ac_try_echo=$ac_try;; |
| 15055 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15057 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15058 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15059 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15060 | rm -f conftest.er1 |
| 15061 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15063 | (exit $ac_status); } && { |
| 15064 | test -z "$ac_c_werror_flag" || |
| 15065 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15066 | } && test -s conftest$ac_exeext && |
| 15067 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15068 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15069 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15070 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15071 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15072 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15073 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15074 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15075 | |
| 15076 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15077 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15078 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15079 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15080 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 15081 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
| 15082 | if test $ac_cv_lib_dld_shl_load = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15083 | cat >>confdefs.h <<_ACEOF |
| 15084 | #define HAVE_LIBDLD 1 |
| 15085 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15086 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15087 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15088 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15089 | fi |
| 15090 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15091 | |
Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 15092 | # only check for sem_init if thread support is requested |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15093 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15094 | { echo "$as_me:$LINENO: checking for library containing sem_init" >&5 |
| 15095 | 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] | 15096 | if test "${ac_cv_search_sem_init+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15097 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 15098 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 15099 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15100 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15101 | /* confdefs.h. */ |
| 15102 | _ACEOF |
| 15103 | cat confdefs.h >>conftest.$ac_ext |
| 15104 | cat >>conftest.$ac_ext <<_ACEOF |
| 15105 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15106 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15107 | /* Override any GCC internal prototype to avoid an error. |
| 15108 | Use char because int might match the return type of a GCC |
| 15109 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15110 | #ifdef __cplusplus |
| 15111 | extern "C" |
| 15112 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15113 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15114 | int |
| 15115 | main () |
| 15116 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15117 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15118 | ; |
| 15119 | return 0; |
| 15120 | } |
| 15121 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15122 | for ac_lib in '' pthread rt posix4; do |
| 15123 | if test -z "$ac_lib"; then |
| 15124 | ac_res="none required" |
| 15125 | else |
| 15126 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15127 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15128 | fi |
| 15129 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15130 | if { (ac_try="$ac_link" |
| 15131 | case "(($ac_try" in |
| 15132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15133 | *) ac_try_echo=$ac_try;; |
| 15134 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15136 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15137 | ac_status=$? |
| 15138 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15139 | rm -f conftest.er1 |
| 15140 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15142 | (exit $ac_status); } && { |
| 15143 | test -z "$ac_c_werror_flag" || |
| 15144 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15145 | } && test -s conftest$ac_exeext && |
| 15146 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15147 | ac_cv_search_sem_init=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 15148 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15149 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15150 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15151 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15152 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 15153 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15154 | |
| 15155 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 15156 | conftest$ac_exeext |
| 15157 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 15158 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15159 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15160 | done |
| 15161 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 15162 | : |
| 15163 | else |
| 15164 | ac_cv_search_sem_init=no |
| 15165 | fi |
| 15166 | rm conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 15167 | LIBS=$ac_func_search_save_LIBS |
| 15168 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15169 | { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 15170 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15171 | ac_res=$ac_cv_search_sem_init |
| 15172 | if test "$ac_res" != no; then |
| 15173 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 15174 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 15175 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 15176 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15177 | # posix4 on Solaris 2.6 |
| 15178 | # pthread (first!) on Linux |
| 15179 | fi |
| 15180 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15181 | # check if we need libintl for locale functions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15182 | { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| 15183 | 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] | 15184 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15186 | else |
| 15187 | ac_check_lib_save_LIBS=$LIBS |
| 15188 | LIBS="-lintl $LIBS" |
| 15189 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15190 | /* confdefs.h. */ |
| 15191 | _ACEOF |
| 15192 | cat confdefs.h >>conftest.$ac_ext |
| 15193 | cat >>conftest.$ac_ext <<_ACEOF |
| 15194 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15195 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15196 | /* Override any GCC internal prototype to avoid an error. |
| 15197 | Use char because int might match the return type of a GCC |
| 15198 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15199 | #ifdef __cplusplus |
| 15200 | extern "C" |
| 15201 | #endif |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15202 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15203 | int |
| 15204 | main () |
| 15205 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15206 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15207 | ; |
| 15208 | return 0; |
| 15209 | } |
| 15210 | _ACEOF |
| 15211 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15212 | if { (ac_try="$ac_link" |
| 15213 | case "(($ac_try" in |
| 15214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15215 | *) ac_try_echo=$ac_try;; |
| 15216 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15218 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15219 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15220 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15221 | rm -f conftest.er1 |
| 15222 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15224 | (exit $ac_status); } && { |
| 15225 | test -z "$ac_c_werror_flag" || |
| 15226 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15227 | } && test -s conftest$ac_exeext && |
| 15228 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15229 | ac_cv_lib_intl_textdomain=yes |
| 15230 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15231 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15232 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15233 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15234 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15235 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15236 | |
| 15237 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15238 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15239 | LIBS=$ac_check_lib_save_LIBS |
| 15240 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15241 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| 15242 | echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; } |
| 15243 | if test $ac_cv_lib_intl_textdomain = yes; then |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15244 | |
| 15245 | cat >>confdefs.h <<\_ACEOF |
| 15246 | #define WITH_LIBINTL 1 |
| 15247 | _ACEOF |
| 15248 | |
| 15249 | fi |
| 15250 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15251 | |
| 15252 | # checks for system dependent C++ extensions support |
| 15253 | case "$ac_sys_system" in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15254 | AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 15255 | 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] | 15256 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15257 | /* confdefs.h. */ |
| 15258 | _ACEOF |
| 15259 | cat confdefs.h >>conftest.$ac_ext |
| 15260 | cat >>conftest.$ac_ext <<_ACEOF |
| 15261 | /* end confdefs.h. */ |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15262 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15263 | int |
| 15264 | main () |
| 15265 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15266 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15267 | ; |
| 15268 | return 0; |
| 15269 | } |
| 15270 | _ACEOF |
| 15271 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15272 | if { (ac_try="$ac_link" |
| 15273 | case "(($ac_try" in |
| 15274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15275 | *) ac_try_echo=$ac_try;; |
| 15276 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15277 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15278 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15279 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15280 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15281 | rm -f conftest.er1 |
| 15282 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15284 | (exit $ac_status); } && { |
| 15285 | test -z "$ac_c_werror_flag" || |
| 15286 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15287 | } && test -s conftest$ac_exeext && |
| 15288 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15289 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15290 | cat >>confdefs.h <<\_ACEOF |
| 15291 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 15292 | _ACEOF |
| 15293 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15294 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15295 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15296 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15297 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15298 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15299 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15300 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15301 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15302 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15303 | |
| 15304 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15305 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15306 | *) ;; |
| 15307 | esac |
| 15308 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 15309 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15310 | # BeOS' sockets are stashed in libnet. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15311 | { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 15312 | 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] | 15313 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15315 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15316 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15317 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15318 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15319 | /* confdefs.h. */ |
| 15320 | _ACEOF |
| 15321 | cat confdefs.h >>conftest.$ac_ext |
| 15322 | cat >>conftest.$ac_ext <<_ACEOF |
| 15323 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15324 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15325 | /* Override any GCC internal prototype to avoid an error. |
| 15326 | Use char because int might match the return type of a GCC |
| 15327 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15328 | #ifdef __cplusplus |
| 15329 | extern "C" |
| 15330 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15331 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15332 | int |
| 15333 | main () |
| 15334 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15335 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15336 | ; |
| 15337 | return 0; |
| 15338 | } |
| 15339 | _ACEOF |
| 15340 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15341 | if { (ac_try="$ac_link" |
| 15342 | case "(($ac_try" in |
| 15343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15344 | *) ac_try_echo=$ac_try;; |
| 15345 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15346 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15347 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15348 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15349 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15350 | rm -f conftest.er1 |
| 15351 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15353 | (exit $ac_status); } && { |
| 15354 | test -z "$ac_c_werror_flag" || |
| 15355 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15356 | } && test -s conftest$ac_exeext && |
| 15357 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15358 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15359 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15360 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15362 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15363 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15364 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15365 | |
| 15366 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15367 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15368 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15369 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15370 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 15371 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; } |
| 15372 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15373 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15374 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 15375 | # SVR4 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15376 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 15377 | 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] | 15378 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15380 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15381 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15382 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15383 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15384 | /* confdefs.h. */ |
| 15385 | _ACEOF |
| 15386 | cat confdefs.h >>conftest.$ac_ext |
| 15387 | cat >>conftest.$ac_ext <<_ACEOF |
| 15388 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15389 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15390 | /* Override any GCC internal prototype to avoid an error. |
| 15391 | Use char because int might match the return type of a GCC |
| 15392 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15393 | #ifdef __cplusplus |
| 15394 | extern "C" |
| 15395 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15396 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15397 | int |
| 15398 | main () |
| 15399 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15400 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15401 | ; |
| 15402 | return 0; |
| 15403 | } |
| 15404 | _ACEOF |
| 15405 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15406 | if { (ac_try="$ac_link" |
| 15407 | case "(($ac_try" in |
| 15408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15409 | *) ac_try_echo=$ac_try;; |
| 15410 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15412 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15413 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15414 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15415 | rm -f conftest.er1 |
| 15416 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15418 | (exit $ac_status); } && { |
| 15419 | test -z "$ac_c_werror_flag" || |
| 15420 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15421 | } && test -s conftest$ac_exeext && |
| 15422 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15423 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15424 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15425 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15426 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15427 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15428 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15429 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15430 | |
| 15431 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15432 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15433 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15434 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15435 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 15436 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } |
| 15437 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15438 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15439 | fi |
| 15440 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 15441 | |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 15442 | case "$ac_sys_system" in |
| 15443 | BeOS*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15444 | { echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 15445 | 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] | 15446 | if test "${ac_cv_lib_net_socket+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15448 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15449 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15450 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15451 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15452 | /* confdefs.h. */ |
| 15453 | _ACEOF |
| 15454 | cat confdefs.h >>conftest.$ac_ext |
| 15455 | cat >>conftest.$ac_ext <<_ACEOF |
| 15456 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15457 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15458 | /* Override any GCC internal prototype to avoid an error. |
| 15459 | Use char because int might match the return type of a GCC |
| 15460 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15461 | #ifdef __cplusplus |
| 15462 | extern "C" |
| 15463 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15464 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15465 | int |
| 15466 | main () |
| 15467 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15468 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15469 | ; |
| 15470 | return 0; |
| 15471 | } |
| 15472 | _ACEOF |
| 15473 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15474 | if { (ac_try="$ac_link" |
| 15475 | case "(($ac_try" in |
| 15476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15477 | *) ac_try_echo=$ac_try;; |
| 15478 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15480 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15481 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15482 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15483 | rm -f conftest.er1 |
| 15484 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15486 | (exit $ac_status); } && { |
| 15487 | test -z "$ac_c_werror_flag" || |
| 15488 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15489 | } && test -s conftest$ac_exeext && |
| 15490 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15491 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15492 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15493 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15494 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15495 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15496 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15497 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15498 | |
| 15499 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15500 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15501 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15502 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15503 | { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 15504 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; } |
| 15505 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15506 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15507 | fi |
| 15508 | # BeOS |
| 15509 | ;; |
| 15510 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 15511 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15512 | { echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 15513 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15514 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15515 | # Check whether --with-libs was given. |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 15516 | if test "${with_libs+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15517 | withval=$with_libs; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15518 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 15519 | echo "${ECHO_T}$withval" >&6; } |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 15520 | LIBS="$withval $LIBS" |
| 15521 | |
| 15522 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15523 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15524 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15525 | fi |
| 15526 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15527 | |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15528 | # Check for use of the system libffi library |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15529 | { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5 |
| 15530 | 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] | 15531 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15532 | # Check whether --with-system_ffi was given. |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15533 | if test "${with_system_ffi+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15534 | withval=$with_system_ffi; |
| 15535 | fi |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15536 | |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15537 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15538 | { echo "$as_me:$LINENO: result: $with_system_ffi" >&5 |
| 15539 | echo "${ECHO_T}$with_system_ffi" >&6; } |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15540 | |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15541 | # Check for --with-dbmliborder |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15542 | { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5 |
| 15543 | echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; } |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15544 | |
| 15545 | # Check whether --with-dbmliborder was given. |
| 15546 | if test "${with_dbmliborder+set}" = set; then |
| 15547 | withval=$with_dbmliborder; |
| 15548 | if test x$with_dbmliborder = xyes |
| 15549 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15550 | { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5 |
| 15551 | echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;} |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15552 | { (exit 1); exit 1; }; } |
| 15553 | else |
| 15554 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do |
| 15555 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb |
| 15556 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15557 | { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5 |
| 15558 | echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;} |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15559 | { (exit 1); exit 1; }; } |
| 15560 | fi |
| 15561 | done |
| 15562 | fi |
| 15563 | fi |
| 15564 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15565 | { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5 |
| 15566 | echo "${ECHO_T}$with_dbmliborder" >&6; } |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15567 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 15568 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15569 | |
| 15570 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15571 | { echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 15572 | 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] | 15573 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15574 | # Check whether --with-signal-module was given. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15575 | if test "${with_signal_module+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15576 | withval=$with_signal_module; |
| 15577 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15578 | |
| 15579 | |
| 15580 | if test -z "$with_signal_module" |
| 15581 | then with_signal_module="yes" |
| 15582 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15583 | { echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 15584 | echo "${ECHO_T}$with_signal_module" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15585 | |
| 15586 | if test "${with_signal_module}" = "yes"; then |
| 15587 | USE_SIGNAL_MODULE="" |
| 15588 | SIGNAL_OBJS="" |
| 15589 | else |
| 15590 | USE_SIGNAL_MODULE="#" |
| 15591 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 15592 | fi |
| 15593 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 15594 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 15595 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15596 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 15597 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15598 | { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 15599 | 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] | 15600 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15601 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15602 | # Check whether --with-dec-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15603 | if test "${with_dec_threads+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15604 | withval=$with_dec_threads; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15605 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 15606 | echo "${ECHO_T}$withval" >&6; } |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15607 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15608 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15609 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15610 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15611 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15612 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15613 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15614 | fi |
| 15615 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15616 | |
| 15617 | # Templates for things AC_DEFINEd more than once. |
| 15618 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15619 | |
| 15620 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15621 | |
| 15622 | |
| 15623 | |
| 15624 | |
| 15625 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15626 | { echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 15627 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15628 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15629 | # Check whether --with-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15630 | if test "${with_threads+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15631 | withval=$with_threads; |
| 15632 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15633 | |
| 15634 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15635 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15636 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15637 | # Check whether --with-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15638 | if test "${with_thread+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15639 | withval=$with_thread; with_threads=$with_thread |
| 15640 | fi |
| 15641 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15642 | |
| 15643 | if test -z "$with_threads" |
| 15644 | then with_threads="yes" |
| 15645 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15646 | { echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 15647 | echo "${ECHO_T}$with_threads" >&6; } |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15648 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15649 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15650 | if test "$with_threads" = "no" |
| 15651 | then |
| 15652 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15653 | elif test "$ac_cv_pthread_is_default" = yes |
| 15654 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15655 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15656 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15657 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15658 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15659 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15660 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15661 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15662 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15663 | |
| 15664 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15665 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15666 | elif test "$ac_cv_kpthread" = "yes" |
| 15667 | then |
| 15668 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15669 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 15670 | CXX="$CXX -Kpthread" |
| 15671 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15672 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 15673 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15674 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 15675 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15676 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15677 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 15678 | elif test "$ac_cv_kthread" = "yes" |
| 15679 | then |
| 15680 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15681 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 15682 | CXX="$CXX -Kthread" |
| 15683 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 15684 | cat >>confdefs.h <<\_ACEOF |
| 15685 | #define WITH_THREAD 1 |
| 15686 | _ACEOF |
| 15687 | |
| 15688 | posix_threads=yes |
| 15689 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15690 | elif test "$ac_cv_pthread" = "yes" |
| 15691 | then |
| 15692 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15693 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 15694 | CXX="$CXX -pthread" |
| 15695 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15696 | cat >>confdefs.h <<\_ACEOF |
| 15697 | #define WITH_THREAD 1 |
| 15698 | _ACEOF |
| 15699 | |
| 15700 | posix_threads=yes |
| 15701 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15702 | else |
| 15703 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 15704 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 15705 | fi |
| 15706 | if test ! -z "$withval" -a -d "$withval" |
| 15707 | then LDFLAGS="$LDFLAGS -L$withval" |
| 15708 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15709 | |
| 15710 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 15711 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 15712 | # (e.g. gnu pth with pthread emulation) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15713 | { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 15714 | 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] | 15715 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15716 | /* confdefs.h. */ |
| 15717 | _ACEOF |
| 15718 | cat confdefs.h >>conftest.$ac_ext |
| 15719 | cat >>conftest.$ac_ext <<_ACEOF |
| 15720 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 15721 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15722 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 15723 | #ifdef _POSIX_THREADS |
| 15724 | yes |
| 15725 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15726 | |
| 15727 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15728 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15729 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15730 | unistd_defines_pthreads=yes |
| 15731 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15732 | unistd_defines_pthreads=no |
| 15733 | fi |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 15734 | rm -f -r conftest* |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15735 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15736 | { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 15737 | echo "${ECHO_T}$unistd_defines_pthreads" >&6; } |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15738 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15739 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 15740 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15741 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 15742 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15743 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15744 | { echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 15745 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15746 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15748 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15749 | { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 15750 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15751 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15752 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15753 | { echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 15754 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15755 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15756 | /* confdefs.h. */ |
| 15757 | _ACEOF |
| 15758 | cat confdefs.h >>conftest.$ac_ext |
| 15759 | cat >>conftest.$ac_ext <<_ACEOF |
| 15760 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15761 | $ac_includes_default |
| 15762 | #include <cthreads.h> |
| 15763 | _ACEOF |
| 15764 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15765 | if { (ac_try="$ac_compile" |
| 15766 | case "(($ac_try" in |
| 15767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15768 | *) ac_try_echo=$ac_try;; |
| 15769 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15771 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15772 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15773 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15774 | rm -f conftest.er1 |
| 15775 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15777 | (exit $ac_status); } && { |
| 15778 | test -z "$ac_c_werror_flag" || |
| 15779 | test ! -s conftest.err |
| 15780 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15781 | ac_header_compiler=yes |
| 15782 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15783 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15784 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15785 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15786 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15787 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15788 | |
| 15789 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15790 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15791 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15792 | |
| 15793 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15794 | { echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 15795 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15796 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15797 | /* confdefs.h. */ |
| 15798 | _ACEOF |
| 15799 | cat confdefs.h >>conftest.$ac_ext |
| 15800 | cat >>conftest.$ac_ext <<_ACEOF |
| 15801 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15802 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15803 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15804 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15805 | case "(($ac_try" in |
| 15806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15807 | *) ac_try_echo=$ac_try;; |
| 15808 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15810 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15811 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15812 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15813 | rm -f conftest.er1 |
| 15814 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15816 | (exit $ac_status); } >/dev/null && { |
| 15817 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 15818 | test ! -s conftest.err |
| 15819 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15820 | ac_header_preproc=yes |
| 15821 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15822 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15823 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15824 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15825 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15826 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15827 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15828 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15829 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15830 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15831 | |
| 15832 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15833 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15834 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15835 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15836 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15837 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5 |
| 15838 | 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] | 15839 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15840 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15841 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15842 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 15843 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 15844 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 15845 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 15846 | { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5 |
| 15847 | echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;} |
| 15848 | { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 15849 | echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15850 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 15851 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 15852 | { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5 |
| 15853 | 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] | 15854 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 15855 | ## -------------------------------------- ## |
| 15856 | ## Report this to http://bugs.python.org/ ## |
| 15857 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15858 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15859 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15860 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15861 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15862 | { echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 15863 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15864 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15866 | else |
| 15867 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15868 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15869 | { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 15870 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15871 | |
| 15872 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15873 | if test $ac_cv_header_cthreads_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15874 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15875 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15876 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15877 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15878 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15879 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15880 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15881 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15882 | |
| 15883 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15884 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15885 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15886 | |
| 15887 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15888 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15889 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15890 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15891 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15892 | { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 15893 | 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] | 15894 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15896 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15897 | { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 15898 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15899 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15900 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15901 | { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 15902 | 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] | 15903 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15904 | /* confdefs.h. */ |
| 15905 | _ACEOF |
| 15906 | cat confdefs.h >>conftest.$ac_ext |
| 15907 | cat >>conftest.$ac_ext <<_ACEOF |
| 15908 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15909 | $ac_includes_default |
| 15910 | #include <mach/cthreads.h> |
| 15911 | _ACEOF |
| 15912 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15913 | if { (ac_try="$ac_compile" |
| 15914 | case "(($ac_try" in |
| 15915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15916 | *) ac_try_echo=$ac_try;; |
| 15917 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15919 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15920 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15921 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15922 | rm -f conftest.er1 |
| 15923 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15925 | (exit $ac_status); } && { |
| 15926 | test -z "$ac_c_werror_flag" || |
| 15927 | test ! -s conftest.err |
| 15928 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15929 | ac_header_compiler=yes |
| 15930 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15931 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15932 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15933 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15934 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15935 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15936 | |
| 15937 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15938 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15939 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15940 | |
| 15941 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15942 | { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 15943 | 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] | 15944 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15945 | /* confdefs.h. */ |
| 15946 | _ACEOF |
| 15947 | cat confdefs.h >>conftest.$ac_ext |
| 15948 | cat >>conftest.$ac_ext <<_ACEOF |
| 15949 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15950 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15951 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15952 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15953 | case "(($ac_try" in |
| 15954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15955 | *) ac_try_echo=$ac_try;; |
| 15956 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15957 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15958 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15959 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15960 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15961 | rm -f conftest.er1 |
| 15962 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15964 | (exit $ac_status); } >/dev/null && { |
| 15965 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 15966 | test ! -s conftest.err |
| 15967 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15968 | ac_header_preproc=yes |
| 15969 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15970 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15971 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15972 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15973 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15974 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15975 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15976 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15977 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15978 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15979 | |
| 15980 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15981 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15982 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15983 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15984 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15985 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5 |
| 15986 | 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] | 15987 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15988 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15989 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15990 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 15991 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 15992 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 15993 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 15994 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5 |
| 15995 | echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;} |
| 15996 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 15997 | echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15998 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 15999 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 16000 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5 |
| 16001 | 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] | 16002 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 16003 | ## -------------------------------------- ## |
| 16004 | ## Report this to http://bugs.python.org/ ## |
| 16005 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16006 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16007 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16008 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16009 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16010 | { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 16011 | 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] | 16012 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16014 | else |
| 16015 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16016 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16017 | { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 16018 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16019 | |
| 16020 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16021 | if test $ac_cv_header_mach_cthreads_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16022 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16023 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16024 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16025 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16026 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16027 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16028 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16029 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16030 | |
| 16031 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16032 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16033 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16034 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16035 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16036 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16037 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16038 | { echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 16039 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16040 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16041 | # Check whether --with-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16042 | if test "${with_pth+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16043 | withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5 |
| 16044 | echo "${ECHO_T}$withval" >&6; } |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 16045 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16046 | #define WITH_THREAD 1 |
| 16047 | _ACEOF |
| 16048 | |
| 16049 | |
| 16050 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16051 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16052 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16053 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 16054 | LIBS="-lpth $LIBS" |
| 16055 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16056 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16057 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16058 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16059 | |
| 16060 | # Just looking for pthread_create in libpthread is not enough: |
| 16061 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 16062 | # So we really have to include pthread.h, and then link. |
| 16063 | _libs=$LIBS |
| 16064 | LIBS="$LIBS -lpthread" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16065 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 16066 | 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] | 16067 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16068 | /* confdefs.h. */ |
| 16069 | _ACEOF |
| 16070 | cat confdefs.h >>conftest.$ac_ext |
| 16071 | cat >>conftest.$ac_ext <<_ACEOF |
| 16072 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16073 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16074 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16075 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16076 | int |
| 16077 | main () |
| 16078 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16079 | |
| 16080 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16081 | ; |
| 16082 | return 0; |
| 16083 | } |
| 16084 | _ACEOF |
| 16085 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16086 | if { (ac_try="$ac_link" |
| 16087 | case "(($ac_try" in |
| 16088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16089 | *) ac_try_echo=$ac_try;; |
| 16090 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16091 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16092 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16093 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16094 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16095 | rm -f conftest.er1 |
| 16096 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16098 | (exit $ac_status); } && { |
| 16099 | test -z "$ac_c_werror_flag" || |
| 16100 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16101 | } && test -s conftest$ac_exeext && |
| 16102 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16103 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16104 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16105 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16106 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16107 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16108 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16109 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 16110 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16111 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16112 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16113 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16114 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16115 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16116 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16117 | LIBS=$_libs |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16118 | { echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 16119 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16120 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16122 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16123 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16124 | /* confdefs.h. */ |
| 16125 | _ACEOF |
| 16126 | cat confdefs.h >>conftest.$ac_ext |
| 16127 | cat >>conftest.$ac_ext <<_ACEOF |
| 16128 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16129 | /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach. |
| 16130 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16131 | #define pthread_detach innocuous_pthread_detach |
| 16132 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16133 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16134 | which can conflict with char pthread_detach (); below. |
| 16135 | 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] | 16136 | <limits.h> exists even on freestanding compilers. */ |
| 16137 | |
| 16138 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16139 | # include <limits.h> |
| 16140 | #else |
| 16141 | # include <assert.h> |
| 16142 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16143 | |
| 16144 | #undef pthread_detach |
| 16145 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16146 | /* Override any GCC internal prototype to avoid an error. |
| 16147 | Use char because int might match the return type of a GCC |
| 16148 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16149 | #ifdef __cplusplus |
| 16150 | extern "C" |
| 16151 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16152 | char pthread_detach (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16153 | /* The GNU C library defines this for functions which it implements |
| 16154 | to always fail with ENOSYS. Some functions are actually named |
| 16155 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16156 | #if defined __stub_pthread_detach || defined __stub___pthread_detach |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16157 | choke me |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16158 | #endif |
| 16159 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16160 | int |
| 16161 | main () |
| 16162 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16163 | return pthread_detach (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16164 | ; |
| 16165 | return 0; |
| 16166 | } |
| 16167 | _ACEOF |
| 16168 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16169 | if { (ac_try="$ac_link" |
| 16170 | case "(($ac_try" in |
| 16171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16172 | *) ac_try_echo=$ac_try;; |
| 16173 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16175 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16176 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16177 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16178 | rm -f conftest.er1 |
| 16179 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16181 | (exit $ac_status); } && { |
| 16182 | test -z "$ac_c_werror_flag" || |
| 16183 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16184 | } && test -s conftest$ac_exeext && |
| 16185 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16186 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16187 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16188 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16190 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16191 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16192 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16193 | |
| 16194 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16195 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16196 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16197 | { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 16198 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; } |
| 16199 | if test $ac_cv_func_pthread_detach = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16200 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16201 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16202 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16203 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 16204 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16205 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16206 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16207 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16208 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16209 | { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 16210 | 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] | 16211 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16213 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16214 | { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 16215 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16216 | else |
| 16217 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16218 | { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 16219 | 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] | 16220 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16221 | /* confdefs.h. */ |
| 16222 | _ACEOF |
| 16223 | cat confdefs.h >>conftest.$ac_ext |
| 16224 | cat >>conftest.$ac_ext <<_ACEOF |
| 16225 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16226 | $ac_includes_default |
| 16227 | #include <atheos/threads.h> |
| 16228 | _ACEOF |
| 16229 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16230 | if { (ac_try="$ac_compile" |
| 16231 | case "(($ac_try" in |
| 16232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16233 | *) ac_try_echo=$ac_try;; |
| 16234 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16236 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16237 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16238 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16239 | rm -f conftest.er1 |
| 16240 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16242 | (exit $ac_status); } && { |
| 16243 | test -z "$ac_c_werror_flag" || |
| 16244 | test ! -s conftest.err |
| 16245 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16246 | ac_header_compiler=yes |
| 16247 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16248 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16249 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16250 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16251 | ac_header_compiler=no |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16252 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16253 | |
| 16254 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16255 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16256 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16257 | |
| 16258 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16259 | { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 16260 | 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] | 16261 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16262 | /* confdefs.h. */ |
| 16263 | _ACEOF |
| 16264 | cat confdefs.h >>conftest.$ac_ext |
| 16265 | cat >>conftest.$ac_ext <<_ACEOF |
| 16266 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16267 | #include <atheos/threads.h> |
| 16268 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16269 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16270 | case "(($ac_try" in |
| 16271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16272 | *) ac_try_echo=$ac_try;; |
| 16273 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16275 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16276 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16277 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16278 | rm -f conftest.er1 |
| 16279 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16281 | (exit $ac_status); } >/dev/null && { |
| 16282 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16283 | test ! -s conftest.err |
| 16284 | }; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16285 | ac_header_preproc=yes |
| 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 | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16290 | ac_header_preproc=no |
| 16291 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16292 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16293 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16294 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16295 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16296 | |
| 16297 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16298 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16299 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16300 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16301 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16302 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5 |
| 16303 | 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] | 16304 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16305 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16306 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16307 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 16308 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 16309 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 16310 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 16311 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5 |
| 16312 | echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;} |
| 16313 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16314 | echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16315 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 16316 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;} |
| 16317 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5 |
| 16318 | 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] | 16319 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 16320 | ## -------------------------------------- ## |
| 16321 | ## Report this to http://bugs.python.org/ ## |
| 16322 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16323 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16324 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16325 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16326 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16327 | { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 16328 | 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] | 16329 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16331 | else |
| 16332 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 16333 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16334 | { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 16335 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16336 | |
| 16337 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16338 | if test $ac_cv_header_atheos_threads_h = yes; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16339 | cat >>confdefs.h <<\_ACEOF |
| 16340 | #define WITH_THREAD 1 |
| 16341 | _ACEOF |
| 16342 | |
| 16343 | |
| 16344 | cat >>confdefs.h <<\_ACEOF |
| 16345 | #define ATHEOS_THREADS 1 |
| 16346 | _ACEOF |
| 16347 | |
| 16348 | THREADOBJ="Python/thread.o" |
| 16349 | else |
| 16350 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16351 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16352 | { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 16353 | 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] | 16354 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16356 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16357 | { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 16358 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16359 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16360 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16361 | { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 16362 | 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] | 16363 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16364 | /* confdefs.h. */ |
| 16365 | _ACEOF |
| 16366 | cat confdefs.h >>conftest.$ac_ext |
| 16367 | cat >>conftest.$ac_ext <<_ACEOF |
| 16368 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16369 | $ac_includes_default |
| 16370 | #include <kernel/OS.h> |
| 16371 | _ACEOF |
| 16372 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16373 | if { (ac_try="$ac_compile" |
| 16374 | case "(($ac_try" in |
| 16375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16376 | *) ac_try_echo=$ac_try;; |
| 16377 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16379 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16380 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16381 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16382 | rm -f conftest.er1 |
| 16383 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16385 | (exit $ac_status); } && { |
| 16386 | test -z "$ac_c_werror_flag" || |
| 16387 | test ! -s conftest.err |
| 16388 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16389 | ac_header_compiler=yes |
| 16390 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16391 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16392 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16393 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16394 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16395 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16396 | |
| 16397 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16398 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16399 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16400 | |
| 16401 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16402 | { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 16403 | 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] | 16404 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16405 | /* confdefs.h. */ |
| 16406 | _ACEOF |
| 16407 | cat confdefs.h >>conftest.$ac_ext |
| 16408 | cat >>conftest.$ac_ext <<_ACEOF |
| 16409 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16410 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16411 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16412 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16413 | case "(($ac_try" in |
| 16414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16415 | *) ac_try_echo=$ac_try;; |
| 16416 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16418 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16419 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16420 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16421 | rm -f conftest.er1 |
| 16422 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16424 | (exit $ac_status); } >/dev/null && { |
| 16425 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16426 | test ! -s conftest.err |
| 16427 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16428 | ac_header_preproc=yes |
| 16429 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16430 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16431 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16432 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16433 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16434 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16435 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16436 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16437 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16438 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16439 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16440 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16441 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16442 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16443 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16444 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16445 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5 |
| 16446 | 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] | 16447 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16448 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16449 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16450 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 16451 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| 16452 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 16453 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 16454 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5 |
| 16455 | echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;} |
| 16456 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16457 | echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16458 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 16459 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;} |
| 16460 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5 |
| 16461 | 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] | 16462 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 16463 | ## -------------------------------------- ## |
| 16464 | ## Report this to http://bugs.python.org/ ## |
| 16465 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16466 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16467 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16468 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16469 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16470 | { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 16471 | 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] | 16472 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16474 | else |
| 16475 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 16476 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16477 | { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 16478 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16479 | |
| 16480 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16481 | if test $ac_cv_header_kernel_OS_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16482 | cat >>confdefs.h <<\_ACEOF |
| 16483 | #define WITH_THREAD 1 |
| 16484 | _ACEOF |
| 16485 | |
| 16486 | |
| 16487 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16488 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16489 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16490 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16491 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16492 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16493 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16494 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 16495 | 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] | 16496 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16498 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16499 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16500 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16501 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16502 | /* confdefs.h. */ |
| 16503 | _ACEOF |
| 16504 | cat confdefs.h >>conftest.$ac_ext |
| 16505 | cat >>conftest.$ac_ext <<_ACEOF |
| 16506 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16507 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16508 | /* Override any GCC internal prototype to avoid an error. |
| 16509 | Use char because int might match the return type of a GCC |
| 16510 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16511 | #ifdef __cplusplus |
| 16512 | extern "C" |
| 16513 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16514 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16515 | int |
| 16516 | main () |
| 16517 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16518 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16519 | ; |
| 16520 | return 0; |
| 16521 | } |
| 16522 | _ACEOF |
| 16523 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16524 | if { (ac_try="$ac_link" |
| 16525 | case "(($ac_try" in |
| 16526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16527 | *) ac_try_echo=$ac_try;; |
| 16528 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16530 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16531 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16532 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16533 | rm -f conftest.er1 |
| 16534 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16536 | (exit $ac_status); } && { |
| 16537 | test -z "$ac_c_werror_flag" || |
| 16538 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16539 | } && test -s conftest$ac_exeext && |
| 16540 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16541 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16542 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16543 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16544 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16545 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16546 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16547 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16548 | |
| 16549 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16550 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16551 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16552 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16553 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 16554 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; } |
| 16555 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16556 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16557 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16558 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16559 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16560 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16561 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16562 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16563 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16564 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16565 | { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 16566 | 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] | 16567 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16569 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16570 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16571 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16572 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16573 | /* confdefs.h. */ |
| 16574 | _ACEOF |
| 16575 | cat confdefs.h >>conftest.$ac_ext |
| 16576 | cat >>conftest.$ac_ext <<_ACEOF |
| 16577 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16578 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16579 | /* Override any GCC internal prototype to avoid an error. |
| 16580 | Use char because int might match the return type of a GCC |
| 16581 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16582 | #ifdef __cplusplus |
| 16583 | extern "C" |
| 16584 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16585 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16586 | int |
| 16587 | main () |
| 16588 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16589 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16590 | ; |
| 16591 | return 0; |
| 16592 | } |
| 16593 | _ACEOF |
| 16594 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16595 | if { (ac_try="$ac_link" |
| 16596 | case "(($ac_try" in |
| 16597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16598 | *) ac_try_echo=$ac_try;; |
| 16599 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16601 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16602 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16603 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16604 | rm -f conftest.er1 |
| 16605 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16607 | (exit $ac_status); } && { |
| 16608 | test -z "$ac_c_werror_flag" || |
| 16609 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16610 | } && test -s conftest$ac_exeext && |
| 16611 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16612 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16613 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16614 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16615 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16616 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16617 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16618 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16619 | |
| 16620 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16621 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16622 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16623 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16624 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 16625 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; } |
| 16626 | 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] | 16627 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16628 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16629 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16630 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16631 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16632 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16633 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 16634 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 16635 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16636 | { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 16637 | 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] | 16638 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16640 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16641 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16642 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16643 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16644 | /* confdefs.h. */ |
| 16645 | _ACEOF |
| 16646 | cat confdefs.h >>conftest.$ac_ext |
| 16647 | cat >>conftest.$ac_ext <<_ACEOF |
| 16648 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16649 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16650 | /* Override any GCC internal prototype to avoid an error. |
| 16651 | Use char because int might match the return type of a GCC |
| 16652 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16653 | #ifdef __cplusplus |
| 16654 | extern "C" |
| 16655 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16656 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16657 | int |
| 16658 | main () |
| 16659 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16660 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16661 | ; |
| 16662 | return 0; |
| 16663 | } |
| 16664 | _ACEOF |
| 16665 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16666 | if { (ac_try="$ac_link" |
| 16667 | case "(($ac_try" in |
| 16668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16669 | *) ac_try_echo=$ac_try;; |
| 16670 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16671 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16672 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16673 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16674 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16675 | rm -f conftest.er1 |
| 16676 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16678 | (exit $ac_status); } && { |
| 16679 | test -z "$ac_c_werror_flag" || |
| 16680 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16681 | } && test -s conftest$ac_exeext && |
| 16682 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16683 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16684 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16685 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16686 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16687 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16688 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16689 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16690 | |
| 16691 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16692 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16693 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16694 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16695 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 16696 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; } |
| 16697 | 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] | 16698 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16699 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16700 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16701 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16702 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16703 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16704 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16705 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16706 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16707 | { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 16708 | 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] | 16709 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16711 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16712 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16713 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16714 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16715 | /* confdefs.h. */ |
| 16716 | _ACEOF |
| 16717 | cat confdefs.h >>conftest.$ac_ext |
| 16718 | cat >>conftest.$ac_ext <<_ACEOF |
| 16719 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16720 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16721 | /* Override any GCC internal prototype to avoid an error. |
| 16722 | Use char because int might match the return type of a GCC |
| 16723 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16724 | #ifdef __cplusplus |
| 16725 | extern "C" |
| 16726 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16727 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16728 | int |
| 16729 | main () |
| 16730 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16731 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16732 | ; |
| 16733 | return 0; |
| 16734 | } |
| 16735 | _ACEOF |
| 16736 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16737 | if { (ac_try="$ac_link" |
| 16738 | case "(($ac_try" in |
| 16739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16740 | *) ac_try_echo=$ac_try;; |
| 16741 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16743 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16744 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16745 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16746 | rm -f conftest.er1 |
| 16747 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16749 | (exit $ac_status); } && { |
| 16750 | test -z "$ac_c_werror_flag" || |
| 16751 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16752 | } && test -s conftest$ac_exeext && |
| 16753 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16754 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16755 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16756 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16757 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16758 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16759 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16760 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16761 | |
| 16762 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16763 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16764 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16765 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16766 | { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 16767 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; } |
| 16768 | if test $ac_cv_lib_cma_pthread_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16769 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16770 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16771 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16772 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16773 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16774 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16775 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16776 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 16777 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16778 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 16779 | fi |
| 16780 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16781 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16782 | fi |
| 16783 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 16784 | fi |
| 16785 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16786 | fi |
| 16787 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16788 | fi |
| 16789 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 16790 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16791 | fi |
| 16792 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16793 | |
| 16794 | fi |
| 16795 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16796 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16797 | |
| 16798 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16799 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16800 | fi |
| 16801 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16802 | fi |
| 16803 | |
| 16804 | |
| 16805 | fi |
| 16806 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16807 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16808 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16809 | { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 16810 | 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] | 16811 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16812 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16813 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16814 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16815 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16816 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16817 | /* confdefs.h. */ |
| 16818 | _ACEOF |
| 16819 | cat confdefs.h >>conftest.$ac_ext |
| 16820 | cat >>conftest.$ac_ext <<_ACEOF |
| 16821 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16822 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16823 | /* Override any GCC internal prototype to avoid an error. |
| 16824 | Use char because int might match the return type of a GCC |
| 16825 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16826 | #ifdef __cplusplus |
| 16827 | extern "C" |
| 16828 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16829 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16830 | int |
| 16831 | main () |
| 16832 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16833 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16834 | ; |
| 16835 | return 0; |
| 16836 | } |
| 16837 | _ACEOF |
| 16838 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16839 | if { (ac_try="$ac_link" |
| 16840 | case "(($ac_try" in |
| 16841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16842 | *) ac_try_echo=$ac_try;; |
| 16843 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16845 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16846 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16847 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16848 | rm -f conftest.er1 |
| 16849 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16851 | (exit $ac_status); } && { |
| 16852 | test -z "$ac_c_werror_flag" || |
| 16853 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16854 | } && test -s conftest$ac_exeext && |
| 16855 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16856 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16857 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16858 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16859 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16860 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16861 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16862 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16863 | |
| 16864 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16865 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16866 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16867 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16868 | { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 16869 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; } |
| 16870 | if test $ac_cv_lib_mpc_usconfig = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16871 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16872 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16873 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16874 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16875 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16876 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16877 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16878 | fi |
| 16879 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 16880 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 16881 | if test "$posix_threads" != "yes"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16882 | { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 16883 | 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] | 16884 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16886 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16887 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16888 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16889 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16890 | /* confdefs.h. */ |
| 16891 | _ACEOF |
| 16892 | cat confdefs.h >>conftest.$ac_ext |
| 16893 | cat >>conftest.$ac_ext <<_ACEOF |
| 16894 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16895 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16896 | /* Override any GCC internal prototype to avoid an error. |
| 16897 | Use char because int might match the return type of a GCC |
| 16898 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16899 | #ifdef __cplusplus |
| 16900 | extern "C" |
| 16901 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16902 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16903 | int |
| 16904 | main () |
| 16905 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16906 | return thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16907 | ; |
| 16908 | return 0; |
| 16909 | } |
| 16910 | _ACEOF |
| 16911 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16912 | if { (ac_try="$ac_link" |
| 16913 | case "(($ac_try" in |
| 16914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16915 | *) ac_try_echo=$ac_try;; |
| 16916 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16918 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16919 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16920 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16921 | rm -f conftest.er1 |
| 16922 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16924 | (exit $ac_status); } && { |
| 16925 | test -z "$ac_c_werror_flag" || |
| 16926 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16927 | } && test -s conftest$ac_exeext && |
| 16928 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16929 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16930 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16931 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16932 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16933 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16934 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16935 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16936 | |
| 16937 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16938 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16939 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16940 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16941 | { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 16942 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; } |
| 16943 | if test $ac_cv_lib_thread_thr_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16944 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16945 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16946 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16947 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 16948 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16949 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 16950 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16951 | fi |
| 16952 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 16953 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16954 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16955 | if test "$USE_THREAD_MODULE" != "#" |
| 16956 | then |
| 16957 | # If the above checks didn't disable threads, (at least) OSF1 |
| 16958 | # needs this '-threads' argument during linking. |
| 16959 | case $ac_sys_system in |
| 16960 | OSF1) LDLAST=-threads;; |
| 16961 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 16962 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16963 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 16964 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16965 | if test "$posix_threads" = "yes"; then |
| 16966 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 16967 | |
| 16968 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16969 | #define _POSIX_THREADS 1 |
| 16970 | _ACEOF |
| 16971 | |
| 16972 | fi |
| 16973 | |
| 16974 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 16975 | case $ac_sys_system/$ac_sys_release in |
| 16976 | SunOS/5.6) |
| 16977 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 16978 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 16979 | _ACEOF |
| 16980 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16981 | ;; |
| 16982 | SunOS/5.8) |
| 16983 | cat >>confdefs.h <<\_ACEOF |
| 16984 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 16985 | _ACEOF |
| 16986 | |
| 16987 | ;; |
Christian Heimes | cba36bb | 2008-01-30 22:54:18 +0000 | [diff] [blame] | 16988 | AIX/5) |
| 16989 | cat >>confdefs.h <<\_ACEOF |
| 16990 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 16991 | _ACEOF |
| 16992 | |
| 16993 | ;; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16994 | esac |
| 16995 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16996 | { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 16997 | 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] | 16998 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17000 | else |
| 17001 | if test "$cross_compiling" = yes; then |
| 17002 | ac_cv_pthread_system_supported=no |
| 17003 | else |
| 17004 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17005 | /* confdefs.h. */ |
| 17006 | _ACEOF |
| 17007 | cat confdefs.h >>conftest.$ac_ext |
| 17008 | cat >>conftest.$ac_ext <<_ACEOF |
| 17009 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17010 | #include <pthread.h> |
| 17011 | void *foo(void *parm) { |
| 17012 | return NULL; |
| 17013 | } |
| 17014 | main() { |
| 17015 | pthread_attr_t attr; |
| 17016 | pthread_t id; |
| 17017 | if (pthread_attr_init(&attr)) exit(-1); |
| 17018 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 17019 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 17020 | exit(0); |
| 17021 | } |
| 17022 | _ACEOF |
| 17023 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17024 | if { (ac_try="$ac_link" |
| 17025 | case "(($ac_try" in |
| 17026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17027 | *) ac_try_echo=$ac_try;; |
| 17028 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17030 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17031 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17033 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17034 | { (case "(($ac_try" in |
| 17035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17036 | *) ac_try_echo=$ac_try;; |
| 17037 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17039 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17040 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17042 | (exit $ac_status); }; }; then |
| 17043 | ac_cv_pthread_system_supported=yes |
| 17044 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17045 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17046 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17047 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17048 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17049 | ( exit $ac_status ) |
| 17050 | ac_cv_pthread_system_supported=no |
| 17051 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17052 | 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] | 17053 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 17054 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17055 | |
| 17056 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17057 | fi |
| 17058 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17059 | { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 17060 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17061 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 17062 | |
| 17063 | cat >>confdefs.h <<\_ACEOF |
| 17064 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 17065 | _ACEOF |
| 17066 | |
| 17067 | fi |
| 17068 | |
| 17069 | for ac_func in pthread_sigmask |
| 17070 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17071 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17072 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17073 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17074 | 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] | 17075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17076 | else |
| 17077 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17078 | /* confdefs.h. */ |
| 17079 | _ACEOF |
| 17080 | cat confdefs.h >>conftest.$ac_ext |
| 17081 | cat >>conftest.$ac_ext <<_ACEOF |
| 17082 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17083 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17084 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17085 | #define $ac_func innocuous_$ac_func |
| 17086 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17087 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17088 | which can conflict with char $ac_func (); below. |
| 17089 | 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] | 17090 | <limits.h> exists even on freestanding compilers. */ |
| 17091 | |
| 17092 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17093 | # include <limits.h> |
| 17094 | #else |
| 17095 | # include <assert.h> |
| 17096 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17097 | |
| 17098 | #undef $ac_func |
| 17099 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17100 | /* Override any GCC internal prototype to avoid an error. |
| 17101 | Use char because int might match the return type of a GCC |
| 17102 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17103 | #ifdef __cplusplus |
| 17104 | extern "C" |
| 17105 | #endif |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17106 | char $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17107 | /* The GNU C library defines this for functions which it implements |
| 17108 | to always fail with ENOSYS. Some functions are actually named |
| 17109 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17110 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17111 | choke me |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17112 | #endif |
| 17113 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17114 | int |
| 17115 | main () |
| 17116 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17117 | return $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17118 | ; |
| 17119 | return 0; |
| 17120 | } |
| 17121 | _ACEOF |
| 17122 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17123 | if { (ac_try="$ac_link" |
| 17124 | case "(($ac_try" in |
| 17125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17126 | *) ac_try_echo=$ac_try;; |
| 17127 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17129 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17130 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17131 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17132 | rm -f conftest.er1 |
| 17133 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17135 | (exit $ac_status); } && { |
| 17136 | test -z "$ac_c_werror_flag" || |
| 17137 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17138 | } && test -s conftest$ac_exeext && |
| 17139 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17140 | eval "$as_ac_var=yes" |
| 17141 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17142 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17144 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17145 | eval "$as_ac_var=no" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17146 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17147 | |
| 17148 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17149 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17150 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17151 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17152 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17153 | echo "${ECHO_T}$ac_res" >&6; } |
| 17154 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17155 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17156 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17157 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 17158 | case $ac_sys_system in |
| 17159 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17160 | |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 17161 | cat >>confdefs.h <<\_ACEOF |
| 17162 | #define HAVE_BROKEN_PTHREAD_SIGMASK 1 |
| 17163 | _ACEOF |
| 17164 | |
| 17165 | ;; |
| 17166 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17167 | fi |
| 17168 | done |
| 17169 | |
| 17170 | fi |
| 17171 | |
| 17172 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17173 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17174 | |
| 17175 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17176 | { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 17177 | 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] | 17178 | # Check whether --enable-ipv6 was given. |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17179 | if test "${enable_ipv6+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17180 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17181 | no) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17182 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17183 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17184 | ipv6=no |
| 17185 | ;; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17186 | *) { echo "$as_me:$LINENO: result: yes" >&5 |
| 17187 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17188 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17189 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17190 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17191 | |
| 17192 | ipv6=yes |
| 17193 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17194 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17195 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17196 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17197 | if test "$cross_compiling" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17198 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17199 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17200 | ipv6=no |
| 17201 | |
| 17202 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17203 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17204 | /* confdefs.h. */ |
| 17205 | _ACEOF |
| 17206 | cat confdefs.h >>conftest.$ac_ext |
| 17207 | cat >>conftest.$ac_ext <<_ACEOF |
| 17208 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17209 | /* AF_INET6 available check */ |
| 17210 | #include <sys/types.h> |
| 17211 | #include <sys/socket.h> |
| 17212 | main() |
| 17213 | { |
| 17214 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 17215 | exit(1); |
| 17216 | else |
| 17217 | exit(0); |
| 17218 | } |
| 17219 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17220 | _ACEOF |
| 17221 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17222 | if { (ac_try="$ac_link" |
| 17223 | case "(($ac_try" in |
| 17224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17225 | *) ac_try_echo=$ac_try;; |
| 17226 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17228 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17229 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17231 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17232 | { (case "(($ac_try" in |
| 17233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17234 | *) ac_try_echo=$ac_try;; |
| 17235 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17237 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17238 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17240 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17241 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17242 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17243 | ipv6=yes |
| 17244 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17245 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17246 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17247 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17248 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17249 | ( exit $ac_status ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17250 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17251 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17252 | ipv6=no |
| 17253 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17254 | 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] | 17255 | fi |
| 17256 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17257 | |
| 17258 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17259 | if test "$ipv6" = "yes"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17260 | { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 17261 | 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] | 17262 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17263 | /* confdefs.h. */ |
| 17264 | _ACEOF |
| 17265 | cat confdefs.h >>conftest.$ac_ext |
| 17266 | cat >>conftest.$ac_ext <<_ACEOF |
| 17267 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17268 | #include <sys/types.h> |
| 17269 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17270 | int |
| 17271 | main () |
| 17272 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17273 | struct sockaddr_in6 x; |
| 17274 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17275 | ; |
| 17276 | return 0; |
| 17277 | } |
| 17278 | _ACEOF |
| 17279 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17280 | if { (ac_try="$ac_compile" |
| 17281 | case "(($ac_try" in |
| 17282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17283 | *) ac_try_echo=$ac_try;; |
| 17284 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17286 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17287 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17288 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17289 | rm -f conftest.er1 |
| 17290 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17292 | (exit $ac_status); } && { |
| 17293 | test -z "$ac_c_werror_flag" || |
| 17294 | test ! -s conftest.err |
| 17295 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17296 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17297 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17298 | ipv6=yes |
| 17299 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17300 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17301 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17302 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17303 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17304 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17305 | ipv6=no |
| 17306 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17307 | |
| 17308 | 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] | 17309 | fi |
| 17310 | |
| 17311 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17312 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17313 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17314 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17315 | |
| 17316 | fi |
| 17317 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17318 | fi |
| 17319 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17320 | |
| 17321 | ipv6type=unknown |
| 17322 | ipv6lib=none |
| 17323 | ipv6trylibc=no |
| 17324 | |
| 17325 | if test "$ipv6" = "yes"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17326 | { echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 17327 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; } |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 17328 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 17329 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17330 | case $i in |
| 17331 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17332 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17333 | /* confdefs.h. */ |
| 17334 | _ACEOF |
| 17335 | cat confdefs.h >>conftest.$ac_ext |
| 17336 | cat >>conftest.$ac_ext <<_ACEOF |
| 17337 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17338 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17339 | #include <netinet/in.h> |
| 17340 | #ifdef IPV6_INRIA_VERSION |
| 17341 | yes |
| 17342 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17343 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17344 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17345 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 17346 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17347 | fi |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 17348 | rm -f -r conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17349 | |
| 17350 | ;; |
| 17351 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17352 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17353 | /* confdefs.h. */ |
| 17354 | _ACEOF |
| 17355 | cat confdefs.h >>conftest.$ac_ext |
| 17356 | cat >>conftest.$ac_ext <<_ACEOF |
| 17357 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17358 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17359 | #include <netinet/in.h> |
| 17360 | #ifdef __KAME__ |
| 17361 | yes |
| 17362 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17363 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17364 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17365 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17366 | ipv6type=$i; |
| 17367 | ipv6lib=inet6 |
| 17368 | ipv6libdir=/usr/local/v6/lib |
| 17369 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17370 | fi |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 17371 | rm -f -r conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17372 | |
| 17373 | ;; |
| 17374 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17375 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17376 | /* confdefs.h. */ |
| 17377 | _ACEOF |
| 17378 | cat confdefs.h >>conftest.$ac_ext |
| 17379 | cat >>conftest.$ac_ext <<_ACEOF |
| 17380 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17381 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17382 | #include <features.h> |
| 17383 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 17384 | yes |
| 17385 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17386 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17387 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17388 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17389 | ipv6type=$i; |
| 17390 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17391 | fi |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 17392 | rm -f -r conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17393 | |
| 17394 | ;; |
| 17395 | linux-inet6) |
| 17396 | if test -d /usr/inet6; then |
| 17397 | ipv6type=$i |
| 17398 | ipv6lib=inet6 |
| 17399 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 17400 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17401 | fi |
| 17402 | ;; |
| 17403 | solaris) |
| 17404 | if test -f /etc/netconfig; then |
| 17405 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 17406 | ipv6type=$i |
| 17407 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17408 | fi |
| 17409 | fi |
| 17410 | ;; |
| 17411 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17412 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17413 | /* confdefs.h. */ |
| 17414 | _ACEOF |
| 17415 | cat confdefs.h >>conftest.$ac_ext |
| 17416 | cat >>conftest.$ac_ext <<_ACEOF |
| 17417 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17418 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17419 | #include <sys/param.h> |
| 17420 | #ifdef _TOSHIBA_INET6 |
| 17421 | yes |
| 17422 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17423 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17424 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17425 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17426 | ipv6type=$i; |
| 17427 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 17428 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17429 | fi |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 17430 | rm -f -r conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17431 | |
| 17432 | ;; |
| 17433 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17434 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17435 | /* confdefs.h. */ |
| 17436 | _ACEOF |
| 17437 | cat confdefs.h >>conftest.$ac_ext |
| 17438 | cat >>conftest.$ac_ext <<_ACEOF |
| 17439 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17440 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17441 | #include </usr/local/v6/include/sys/v6config.h> |
| 17442 | #ifdef __V6D__ |
| 17443 | yes |
| 17444 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17445 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17446 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17447 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17448 | ipv6type=$i; |
| 17449 | ipv6lib=v6; |
| 17450 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 17451 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17452 | fi |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 17453 | rm -f -r conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17454 | |
| 17455 | ;; |
| 17456 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17457 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17458 | /* confdefs.h. */ |
| 17459 | _ACEOF |
| 17460 | cat confdefs.h >>conftest.$ac_ext |
| 17461 | cat >>conftest.$ac_ext <<_ACEOF |
| 17462 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17463 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17464 | #include <sys/param.h> |
| 17465 | #ifdef _ZETA_MINAMI_INET6 |
| 17466 | yes |
| 17467 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17468 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17469 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17470 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17471 | ipv6type=$i; |
| 17472 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 17473 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17474 | fi |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 17475 | rm -f -r conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17476 | |
| 17477 | ;; |
| 17478 | esac |
| 17479 | if test "$ipv6type" != "unknown"; then |
| 17480 | break |
| 17481 | fi |
| 17482 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17483 | { echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 17484 | echo "${ECHO_T}$ipv6type" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17485 | fi |
| 17486 | |
| 17487 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 17488 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 17489 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 17490 | echo "using lib$ipv6lib" |
| 17491 | else |
| 17492 | if test $ipv6trylibc = "yes"; then |
| 17493 | echo "using libc" |
| 17494 | else |
| 17495 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 17496 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 17497 | echo 'ipv6 kit and compile beforehand.' |
| 17498 | exit 1 |
| 17499 | fi |
| 17500 | fi |
| 17501 | fi |
| 17502 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17503 | { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5 |
| 17504 | 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] | 17505 | cat >conftest.$ac_ext <<_ACEOF |
| 17506 | /* confdefs.h. */ |
| 17507 | _ACEOF |
| 17508 | cat confdefs.h >>conftest.$ac_ext |
| 17509 | cat >>conftest.$ac_ext <<_ACEOF |
| 17510 | /* end confdefs.h. */ |
| 17511 | #include <Carbon/Carbon.h> |
| 17512 | int |
| 17513 | main () |
| 17514 | { |
| 17515 | FSIORefNum fRef = 0 |
| 17516 | ; |
| 17517 | return 0; |
| 17518 | } |
| 17519 | _ACEOF |
| 17520 | rm -f conftest.$ac_objext |
| 17521 | if { (ac_try="$ac_compile" |
| 17522 | case "(($ac_try" in |
| 17523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17524 | *) ac_try_echo=$ac_try;; |
| 17525 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17527 | (eval "$ac_compile") 2>conftest.er1 |
| 17528 | ac_status=$? |
| 17529 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17530 | rm -f conftest.er1 |
| 17531 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17533 | (exit $ac_status); } && { |
| 17534 | test -z "$ac_c_werror_flag" || |
| 17535 | test ! -s conftest.err |
| 17536 | } && test -s conftest.$ac_objext; then |
| 17537 | |
| 17538 | cat >>confdefs.h <<\_ACEOF |
| 17539 | #define HAVE_OSX105_SDK 1 |
| 17540 | _ACEOF |
| 17541 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17542 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17543 | echo "${ECHO_T}yes" >&6; } |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17544 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17545 | echo "$as_me: failed program was:" >&5 |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17546 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17547 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17548 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17549 | echo "${ECHO_T}no" >&6; } |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17550 | |
| 17551 | fi |
| 17552 | |
| 17553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17554 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17555 | # Check for --with-doc-strings |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17556 | { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 17557 | 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] | 17558 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17559 | # Check whether --with-doc-strings was given. |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17560 | if test "${with_doc_strings+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17561 | withval=$with_doc_strings; |
| 17562 | fi |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17563 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17564 | |
| 17565 | if test -z "$with_doc_strings" |
| 17566 | then with_doc_strings="yes" |
| 17567 | fi |
| 17568 | if test "$with_doc_strings" != "no" |
| 17569 | then |
| 17570 | |
| 17571 | cat >>confdefs.h <<\_ACEOF |
| 17572 | #define WITH_DOC_STRINGS 1 |
| 17573 | _ACEOF |
| 17574 | |
| 17575 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17576 | { echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 17577 | echo "${ECHO_T}$with_doc_strings" >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17578 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 17579 | # Check for Python-specific malloc support |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17580 | { echo "$as_me:$LINENO: checking for --with-tsc" >&5 |
| 17581 | echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17582 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17583 | # Check whether --with-tsc was given. |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17584 | if test "${with_tsc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17585 | withval=$with_tsc; |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17586 | if test "$withval" != no |
| 17587 | then |
| 17588 | |
| 17589 | cat >>confdefs.h <<\_ACEOF |
| 17590 | #define WITH_TSC 1 |
| 17591 | _ACEOF |
| 17592 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17593 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17594 | echo "${ECHO_T}yes" >&6; } |
| 17595 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 17596 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17597 | fi |
| 17598 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17599 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17600 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17601 | fi |
| 17602 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17603 | |
| 17604 | # Check for Python-specific malloc support |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17605 | { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 17606 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17607 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17608 | # Check whether --with-pymalloc was given. |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 17609 | if test "${with_pymalloc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17610 | withval=$with_pymalloc; |
| 17611 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17612 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 17613 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17614 | if test -z "$with_pymalloc" |
| 17615 | then with_pymalloc="yes" |
| 17616 | fi |
| 17617 | if test "$with_pymalloc" != "no" |
| 17618 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17619 | |
| 17620 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17621 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17622 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17623 | |
| 17624 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17625 | { echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 17626 | echo "${ECHO_T}$with_pymalloc" >&6; } |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17627 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17628 | # Check for --with-wctype-functions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17629 | { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 17630 | 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] | 17631 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17632 | # Check whether --with-wctype-functions was given. |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17633 | if test "${with_wctype_functions+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17634 | withval=$with_wctype_functions; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17635 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17636 | then |
| 17637 | |
| 17638 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17639 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17640 | _ACEOF |
| 17641 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17642 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17643 | echo "${ECHO_T}yes" >&6; } |
| 17644 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 17645 | echo "${ECHO_T}no" >&6; } |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17646 | fi |
| 17647 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17648 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17649 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17650 | fi |
| 17651 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17652 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 17653 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17654 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 17655 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17656 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17657 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 17658 | # 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] | 17659 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 17660 | for ac_func in dlopen |
| 17661 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17662 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17663 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17664 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17665 | 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] | 17666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17667 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17668 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17669 | /* confdefs.h. */ |
| 17670 | _ACEOF |
| 17671 | cat confdefs.h >>conftest.$ac_ext |
| 17672 | cat >>conftest.$ac_ext <<_ACEOF |
| 17673 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17674 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17675 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17676 | #define $ac_func innocuous_$ac_func |
| 17677 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17678 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17679 | which can conflict with char $ac_func (); below. |
| 17680 | 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] | 17681 | <limits.h> exists even on freestanding compilers. */ |
| 17682 | |
| 17683 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17684 | # include <limits.h> |
| 17685 | #else |
| 17686 | # include <assert.h> |
| 17687 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17688 | |
| 17689 | #undef $ac_func |
| 17690 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17691 | /* Override any GCC internal prototype to avoid an error. |
| 17692 | Use char because int might match the return type of a GCC |
| 17693 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17694 | #ifdef __cplusplus |
| 17695 | extern "C" |
| 17696 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17697 | char $ac_func (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17698 | /* The GNU C library defines this for functions which it implements |
| 17699 | to always fail with ENOSYS. Some functions are actually named |
| 17700 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17701 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17702 | choke me |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17703 | #endif |
| 17704 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17705 | int |
| 17706 | main () |
| 17707 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17708 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17709 | ; |
| 17710 | return 0; |
| 17711 | } |
| 17712 | _ACEOF |
| 17713 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17714 | if { (ac_try="$ac_link" |
| 17715 | case "(($ac_try" in |
| 17716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17717 | *) ac_try_echo=$ac_try;; |
| 17718 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17720 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17721 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17722 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17723 | rm -f conftest.er1 |
| 17724 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17726 | (exit $ac_status); } && { |
| 17727 | test -z "$ac_c_werror_flag" || |
| 17728 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17729 | } && test -s conftest$ac_exeext && |
| 17730 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17731 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17732 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17733 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17734 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17735 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17736 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17737 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17738 | |
| 17739 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17740 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17741 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17742 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17743 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17744 | echo "${ECHO_T}$ac_res" >&6; } |
| 17745 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17746 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17747 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17748 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17749 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17750 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 17751 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17752 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17753 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17754 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 17755 | # loading of modules. |
| 17756 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17757 | { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 17758 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17759 | if test -z "$DYNLOADFILE" |
| 17760 | then |
| 17761 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 17762 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 17763 | if test "$ac_cv_func_dlopen" = yes |
| 17764 | then DYNLOADFILE="dynload_shlib.o" |
| 17765 | else DYNLOADFILE="dynload_aix.o" |
| 17766 | fi |
| 17767 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17768 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 17769 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 17770 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() |
| 17771 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 17772 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17773 | *) |
| 17774 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 17775 | # out any dynamic loading |
| 17776 | if test "$ac_cv_func_dlopen" = yes |
| 17777 | then DYNLOADFILE="dynload_shlib.o" |
| 17778 | else DYNLOADFILE="dynload_stub.o" |
| 17779 | fi |
| 17780 | ;; |
| 17781 | esac |
| 17782 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17783 | { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 17784 | echo "${ECHO_T}$DYNLOADFILE" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17785 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 17786 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17787 | |
| 17788 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17789 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17790 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17791 | |
| 17792 | fi |
| 17793 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 17794 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 17795 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17796 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17797 | { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 17798 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 17799 | if test -z "$MACHDEP_OBJS" |
| 17800 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 17801 | MACHDEP_OBJS=$extra_machdep_objs |
| 17802 | else |
| 17803 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 17804 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17805 | { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 17806 | echo "${ECHO_T}MACHDEP_OBJS" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 17807 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17808 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17809 | |
| 17810 | |
| 17811 | |
| 17812 | |
| 17813 | |
| 17814 | |
| 17815 | |
| 17816 | |
| 17817 | |
| 17818 | |
| 17819 | |
| 17820 | |
| 17821 | |
| 17822 | |
| 17823 | |
| 17824 | |
| 17825 | |
| 17826 | |
| 17827 | |
| 17828 | |
| 17829 | |
| 17830 | |
| 17831 | |
| 17832 | |
| 17833 | |
| 17834 | |
| 17835 | |
| 17836 | |
| 17837 | |
| 17838 | |
| 17839 | |
| 17840 | |
| 17841 | |
| 17842 | |
| 17843 | |
| 17844 | |
| 17845 | |
| 17846 | |
| 17847 | |
| 17848 | |
| 17849 | |
| 17850 | |
| 17851 | |
| 17852 | |
| 17853 | |
| 17854 | |
| 17855 | |
| 17856 | |
| 17857 | |
| 17858 | |
| 17859 | |
| 17860 | |
| 17861 | |
| 17862 | |
| 17863 | |
| 17864 | |
| 17865 | |
| 17866 | |
| 17867 | |
| 17868 | |
| 17869 | |
| 17870 | |
| 17871 | |
| 17872 | |
| 17873 | |
| 17874 | |
| 17875 | |
| 17876 | |
| 17877 | |
| 17878 | |
| 17879 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17880 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 17881 | |
| 17882 | |
Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 17883 | |
| 17884 | |
Martin v. Löwis | 382abef | 2007-02-19 10:55:19 +0000 | [diff] [blame] | 17885 | |
| 17886 | |
Christian Heimes | 3628187 | 2007-11-30 21:11:28 +0000 | [diff] [blame] | 17887 | |
Martin v. Löwis | aef18b1 | 2008-03-24 13:31:16 +0000 | [diff] [blame] | 17888 | |
| 17889 | |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 17890 | |
| 17891 | |
| 17892 | |
| 17893 | |
Martin v. Löwis | aef18b1 | 2008-03-24 13:31:16 +0000 | [diff] [blame] | 17894 | for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \ |
| 17895 | clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 17896 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 17897 | getpriority getpwent getspnam getspent getsid getwd \ |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 17898 | kill killpg lchmod lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 17899 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 17900 | putenv readlink realpath \ |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 17901 | select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \ |
| 17902 | setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 17903 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Skip Montanaro | 7e11a01 | 2004-02-07 12:55:46 +0000 | [diff] [blame] | 17904 | sigaction siginterrupt sigrelse strftime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 17905 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 17906 | truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17907 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17908 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17909 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17910 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17911 | 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] | 17912 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17913 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17914 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17915 | /* confdefs.h. */ |
| 17916 | _ACEOF |
| 17917 | cat confdefs.h >>conftest.$ac_ext |
| 17918 | cat >>conftest.$ac_ext <<_ACEOF |
| 17919 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17920 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17921 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17922 | #define $ac_func innocuous_$ac_func |
| 17923 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17924 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17925 | which can conflict with char $ac_func (); below. |
| 17926 | 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] | 17927 | <limits.h> exists even on freestanding compilers. */ |
| 17928 | |
| 17929 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17930 | # include <limits.h> |
| 17931 | #else |
| 17932 | # include <assert.h> |
| 17933 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17934 | |
| 17935 | #undef $ac_func |
| 17936 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17937 | /* Override any GCC internal prototype to avoid an error. |
| 17938 | Use char because int might match the return type of a GCC |
| 17939 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17940 | #ifdef __cplusplus |
| 17941 | extern "C" |
| 17942 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17943 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17944 | /* The GNU C library defines this for functions which it implements |
| 17945 | to always fail with ENOSYS. Some functions are actually named |
| 17946 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17947 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17948 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17949 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17950 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17951 | int |
| 17952 | main () |
| 17953 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17954 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17955 | ; |
| 17956 | return 0; |
| 17957 | } |
| 17958 | _ACEOF |
| 17959 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17960 | if { (ac_try="$ac_link" |
| 17961 | case "(($ac_try" in |
| 17962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17963 | *) ac_try_echo=$ac_try;; |
| 17964 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17966 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17967 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17968 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17969 | rm -f conftest.er1 |
| 17970 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17972 | (exit $ac_status); } && { |
| 17973 | test -z "$ac_c_werror_flag" || |
| 17974 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17975 | } && test -s conftest$ac_exeext && |
| 17976 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17977 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17978 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17979 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17980 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17981 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17982 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17983 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17984 | |
| 17985 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17986 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17987 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17988 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17989 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17990 | echo "${ECHO_T}$ac_res" >&6; } |
| 17991 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17992 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17993 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17994 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17995 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17996 | fi |
| 17997 | done |
| 17998 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17999 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18000 | # For some functions, having a definition is not sufficient, since |
| 18001 | # we want to take their address. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18002 | { echo "$as_me:$LINENO: checking for chroot" >&5 |
| 18003 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18004 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18005 | /* confdefs.h. */ |
| 18006 | _ACEOF |
| 18007 | cat confdefs.h >>conftest.$ac_ext |
| 18008 | cat >>conftest.$ac_ext <<_ACEOF |
| 18009 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18010 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18011 | int |
| 18012 | main () |
| 18013 | { |
| 18014 | void *x=chroot |
| 18015 | ; |
| 18016 | return 0; |
| 18017 | } |
| 18018 | _ACEOF |
| 18019 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18020 | if { (ac_try="$ac_compile" |
| 18021 | case "(($ac_try" in |
| 18022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18023 | *) ac_try_echo=$ac_try;; |
| 18024 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18026 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18027 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18028 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18029 | rm -f conftest.er1 |
| 18030 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18032 | (exit $ac_status); } && { |
| 18033 | test -z "$ac_c_werror_flag" || |
| 18034 | test ! -s conftest.err |
| 18035 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18036 | |
| 18037 | cat >>confdefs.h <<\_ACEOF |
| 18038 | #define HAVE_CHROOT 1 |
| 18039 | _ACEOF |
| 18040 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18041 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18042 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18043 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18044 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18045 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18046 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18047 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18048 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18049 | |
| 18050 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18051 | |
| 18052 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18053 | { echo "$as_me:$LINENO: checking for link" >&5 |
| 18054 | echo $ECHO_N "checking for link... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18055 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18056 | /* confdefs.h. */ |
| 18057 | _ACEOF |
| 18058 | cat confdefs.h >>conftest.$ac_ext |
| 18059 | cat >>conftest.$ac_ext <<_ACEOF |
| 18060 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18061 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18062 | int |
| 18063 | main () |
| 18064 | { |
| 18065 | void *x=link |
| 18066 | ; |
| 18067 | return 0; |
| 18068 | } |
| 18069 | _ACEOF |
| 18070 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18071 | if { (ac_try="$ac_compile" |
| 18072 | case "(($ac_try" in |
| 18073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18074 | *) ac_try_echo=$ac_try;; |
| 18075 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18077 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18078 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18079 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18080 | rm -f conftest.er1 |
| 18081 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18083 | (exit $ac_status); } && { |
| 18084 | test -z "$ac_c_werror_flag" || |
| 18085 | test ! -s conftest.err |
| 18086 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18087 | |
| 18088 | cat >>confdefs.h <<\_ACEOF |
| 18089 | #define HAVE_LINK 1 |
| 18090 | _ACEOF |
| 18091 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18092 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18093 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18094 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18095 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18096 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18097 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18098 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18099 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18100 | |
| 18101 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18102 | |
| 18103 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18104 | { echo "$as_me:$LINENO: checking for symlink" >&5 |
| 18105 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18106 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18107 | /* confdefs.h. */ |
| 18108 | _ACEOF |
| 18109 | cat confdefs.h >>conftest.$ac_ext |
| 18110 | cat >>conftest.$ac_ext <<_ACEOF |
| 18111 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18112 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18113 | int |
| 18114 | main () |
| 18115 | { |
| 18116 | void *x=symlink |
| 18117 | ; |
| 18118 | return 0; |
| 18119 | } |
| 18120 | _ACEOF |
| 18121 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18122 | if { (ac_try="$ac_compile" |
| 18123 | case "(($ac_try" in |
| 18124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18125 | *) ac_try_echo=$ac_try;; |
| 18126 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18128 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18129 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18130 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18131 | rm -f conftest.er1 |
| 18132 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18134 | (exit $ac_status); } && { |
| 18135 | test -z "$ac_c_werror_flag" || |
| 18136 | test ! -s conftest.err |
| 18137 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18138 | |
| 18139 | cat >>confdefs.h <<\_ACEOF |
| 18140 | #define HAVE_SYMLINK 1 |
| 18141 | _ACEOF |
| 18142 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18143 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18144 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18145 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18146 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18147 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18148 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18149 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18150 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18151 | |
| 18152 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18153 | |
| 18154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18155 | { echo "$as_me:$LINENO: checking for fchdir" >&5 |
| 18156 | echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18157 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18158 | /* confdefs.h. */ |
| 18159 | _ACEOF |
| 18160 | cat confdefs.h >>conftest.$ac_ext |
| 18161 | cat >>conftest.$ac_ext <<_ACEOF |
| 18162 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18163 | #include <unistd.h> |
| 18164 | int |
| 18165 | main () |
| 18166 | { |
| 18167 | void *x=fchdir |
| 18168 | ; |
| 18169 | return 0; |
| 18170 | } |
| 18171 | _ACEOF |
| 18172 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18173 | if { (ac_try="$ac_compile" |
| 18174 | case "(($ac_try" in |
| 18175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18176 | *) ac_try_echo=$ac_try;; |
| 18177 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18179 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18180 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18181 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18182 | rm -f conftest.er1 |
| 18183 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18185 | (exit $ac_status); } && { |
| 18186 | test -z "$ac_c_werror_flag" || |
| 18187 | test ! -s conftest.err |
| 18188 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18189 | |
| 18190 | cat >>confdefs.h <<\_ACEOF |
| 18191 | #define HAVE_FCHDIR 1 |
| 18192 | _ACEOF |
| 18193 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18194 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18195 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18196 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18197 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18198 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18199 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18200 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18201 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18202 | |
| 18203 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18204 | |
| 18205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18206 | { echo "$as_me:$LINENO: checking for fsync" >&5 |
| 18207 | echo $ECHO_N "checking for fsync... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18208 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18209 | /* confdefs.h. */ |
| 18210 | _ACEOF |
| 18211 | cat confdefs.h >>conftest.$ac_ext |
| 18212 | cat >>conftest.$ac_ext <<_ACEOF |
| 18213 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18214 | #include <unistd.h> |
| 18215 | int |
| 18216 | main () |
| 18217 | { |
| 18218 | void *x=fsync |
| 18219 | ; |
| 18220 | return 0; |
| 18221 | } |
| 18222 | _ACEOF |
| 18223 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18224 | if { (ac_try="$ac_compile" |
| 18225 | case "(($ac_try" in |
| 18226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18227 | *) ac_try_echo=$ac_try;; |
| 18228 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18230 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18231 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18232 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18233 | rm -f conftest.er1 |
| 18234 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18236 | (exit $ac_status); } && { |
| 18237 | test -z "$ac_c_werror_flag" || |
| 18238 | test ! -s conftest.err |
| 18239 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18240 | |
| 18241 | cat >>confdefs.h <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18242 | #define HAVE_FSYNC 1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18243 | _ACEOF |
| 18244 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18245 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18246 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18247 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18248 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18249 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18250 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18251 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18252 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18253 | |
| 18254 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18255 | |
| 18256 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18257 | { echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 18258 | echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18259 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18260 | /* confdefs.h. */ |
| 18261 | _ACEOF |
| 18262 | cat confdefs.h >>conftest.$ac_ext |
| 18263 | cat >>conftest.$ac_ext <<_ACEOF |
| 18264 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18265 | #include <unistd.h> |
| 18266 | int |
| 18267 | main () |
| 18268 | { |
| 18269 | void *x=fdatasync |
| 18270 | ; |
| 18271 | return 0; |
| 18272 | } |
| 18273 | _ACEOF |
| 18274 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18275 | if { (ac_try="$ac_compile" |
| 18276 | case "(($ac_try" in |
| 18277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18278 | *) ac_try_echo=$ac_try;; |
| 18279 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18281 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18282 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18283 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18284 | rm -f conftest.er1 |
| 18285 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18287 | (exit $ac_status); } && { |
| 18288 | test -z "$ac_c_werror_flag" || |
| 18289 | test ! -s conftest.err |
| 18290 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18291 | |
| 18292 | cat >>confdefs.h <<\_ACEOF |
| 18293 | #define HAVE_FDATASYNC 1 |
| 18294 | _ACEOF |
| 18295 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18296 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18297 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18298 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18299 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18300 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18301 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18302 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18303 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18304 | |
| 18305 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18306 | |
| 18307 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18308 | { echo "$as_me:$LINENO: checking for epoll" >&5 |
| 18309 | echo $ECHO_N "checking for epoll... $ECHO_C" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18310 | cat >conftest.$ac_ext <<_ACEOF |
| 18311 | /* confdefs.h. */ |
| 18312 | _ACEOF |
| 18313 | cat confdefs.h >>conftest.$ac_ext |
| 18314 | cat >>conftest.$ac_ext <<_ACEOF |
| 18315 | /* end confdefs.h. */ |
| 18316 | #include <sys/epoll.h> |
| 18317 | int |
| 18318 | main () |
| 18319 | { |
| 18320 | void *x=epoll_create |
| 18321 | ; |
| 18322 | return 0; |
| 18323 | } |
| 18324 | _ACEOF |
| 18325 | rm -f conftest.$ac_objext |
| 18326 | if { (ac_try="$ac_compile" |
| 18327 | case "(($ac_try" in |
| 18328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18329 | *) ac_try_echo=$ac_try;; |
| 18330 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18331 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18332 | (eval "$ac_compile") 2>conftest.er1 |
| 18333 | ac_status=$? |
| 18334 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18335 | rm -f conftest.er1 |
| 18336 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18338 | (exit $ac_status); } && { |
| 18339 | test -z "$ac_c_werror_flag" || |
| 18340 | test ! -s conftest.err |
| 18341 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18342 | |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18343 | cat >>confdefs.h <<\_ACEOF |
| 18344 | #define HAVE_EPOLL 1 |
| 18345 | _ACEOF |
| 18346 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18347 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18348 | echo "${ECHO_T}yes" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18349 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18350 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18351 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18352 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18353 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18354 | echo "${ECHO_T}no" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18355 | |
| 18356 | fi |
| 18357 | |
| 18358 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18359 | { echo "$as_me:$LINENO: checking for kqueue" >&5 |
| 18360 | echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18361 | cat >conftest.$ac_ext <<_ACEOF |
| 18362 | /* confdefs.h. */ |
| 18363 | _ACEOF |
| 18364 | cat confdefs.h >>conftest.$ac_ext |
| 18365 | cat >>conftest.$ac_ext <<_ACEOF |
| 18366 | /* end confdefs.h. */ |
| 18367 | |
| 18368 | #include <sys/types.h> |
| 18369 | #include <sys/event.h> |
| 18370 | |
| 18371 | int |
| 18372 | main () |
| 18373 | { |
| 18374 | int x=kqueue() |
| 18375 | ; |
| 18376 | return 0; |
| 18377 | } |
| 18378 | _ACEOF |
| 18379 | rm -f conftest.$ac_objext |
| 18380 | if { (ac_try="$ac_compile" |
| 18381 | case "(($ac_try" in |
| 18382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18383 | *) ac_try_echo=$ac_try;; |
| 18384 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18386 | (eval "$ac_compile") 2>conftest.er1 |
| 18387 | ac_status=$? |
| 18388 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18389 | rm -f conftest.er1 |
| 18390 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18392 | (exit $ac_status); } && { |
| 18393 | test -z "$ac_c_werror_flag" || |
| 18394 | test ! -s conftest.err |
| 18395 | } && test -s conftest.$ac_objext; then |
| 18396 | |
| 18397 | cat >>confdefs.h <<\_ACEOF |
| 18398 | #define HAVE_KQUEUE 1 |
| 18399 | _ACEOF |
| 18400 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18401 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18402 | echo "${ECHO_T}yes" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18403 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18404 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18405 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18406 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18407 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18408 | echo "${ECHO_T}no" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18409 | |
| 18410 | fi |
| 18411 | |
| 18412 | 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] | 18413 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 18414 | # functions ctermid_r, setgroups in the library, but no prototype |
| 18415 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 18416 | # address to avoid compiler warnings and potential miscompilations |
| 18417 | # because of the missing prototypes. |
| 18418 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18419 | { echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 18420 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18421 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18422 | /* confdefs.h. */ |
| 18423 | _ACEOF |
| 18424 | cat confdefs.h >>conftest.$ac_ext |
| 18425 | cat >>conftest.$ac_ext <<_ACEOF |
| 18426 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18427 | |
| 18428 | #include "confdefs.h" |
| 18429 | #include <stdio.h> |
| 18430 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18431 | int |
| 18432 | main () |
| 18433 | { |
| 18434 | void* p = ctermid_r |
| 18435 | ; |
| 18436 | return 0; |
| 18437 | } |
| 18438 | _ACEOF |
| 18439 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18440 | if { (ac_try="$ac_compile" |
| 18441 | case "(($ac_try" in |
| 18442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18443 | *) ac_try_echo=$ac_try;; |
| 18444 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18445 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18446 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18447 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18448 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18449 | rm -f conftest.er1 |
| 18450 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18452 | (exit $ac_status); } && { |
| 18453 | test -z "$ac_c_werror_flag" || |
| 18454 | test ! -s conftest.err |
| 18455 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18456 | |
| 18457 | cat >>confdefs.h <<\_ACEOF |
| 18458 | #define HAVE_CTERMID_R 1 |
| 18459 | _ACEOF |
| 18460 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18461 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18462 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18463 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18464 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18465 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18466 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18467 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18468 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18469 | |
| 18470 | fi |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18471 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18472 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18473 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18474 | { echo "$as_me:$LINENO: checking for flock" >&5 |
| 18475 | echo $ECHO_N "checking for flock... $ECHO_C" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18476 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18477 | /* confdefs.h. */ |
| 18478 | _ACEOF |
| 18479 | cat confdefs.h >>conftest.$ac_ext |
| 18480 | cat >>conftest.$ac_ext <<_ACEOF |
| 18481 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18482 | |
| 18483 | #include "confdefs.h" |
| 18484 | #include <sys/file.h> |
| 18485 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18486 | int |
| 18487 | main () |
| 18488 | { |
| 18489 | void* p = flock |
| 18490 | ; |
| 18491 | return 0; |
| 18492 | } |
| 18493 | _ACEOF |
| 18494 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18495 | if { (ac_try="$ac_compile" |
| 18496 | case "(($ac_try" in |
| 18497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18498 | *) ac_try_echo=$ac_try;; |
| 18499 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18501 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18502 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18503 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18504 | rm -f conftest.er1 |
| 18505 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18507 | (exit $ac_status); } && { |
| 18508 | test -z "$ac_c_werror_flag" || |
| 18509 | test ! -s conftest.err |
| 18510 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18511 | |
| 18512 | cat >>confdefs.h <<\_ACEOF |
| 18513 | #define HAVE_FLOCK 1 |
| 18514 | _ACEOF |
| 18515 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18516 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18517 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18518 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18519 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18520 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18521 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18522 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18523 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18524 | |
| 18525 | fi |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18526 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18527 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18528 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18529 | { echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 18530 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18531 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18532 | /* confdefs.h. */ |
| 18533 | _ACEOF |
| 18534 | cat confdefs.h >>conftest.$ac_ext |
| 18535 | cat >>conftest.$ac_ext <<_ACEOF |
| 18536 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18537 | |
| 18538 | #include "confdefs.h" |
| 18539 | #include <unistd.h> |
| 18540 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18541 | int |
| 18542 | main () |
| 18543 | { |
| 18544 | void* p = getpagesize |
| 18545 | ; |
| 18546 | return 0; |
| 18547 | } |
| 18548 | _ACEOF |
| 18549 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18550 | if { (ac_try="$ac_compile" |
| 18551 | case "(($ac_try" in |
| 18552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18553 | *) ac_try_echo=$ac_try;; |
| 18554 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18556 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18557 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18558 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18559 | rm -f conftest.er1 |
| 18560 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18562 | (exit $ac_status); } && { |
| 18563 | test -z "$ac_c_werror_flag" || |
| 18564 | test ! -s conftest.err |
| 18565 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18566 | |
| 18567 | cat >>confdefs.h <<\_ACEOF |
| 18568 | #define HAVE_GETPAGESIZE 1 |
| 18569 | _ACEOF |
| 18570 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18571 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18572 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18573 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18574 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18575 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18576 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18577 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18578 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18579 | |
| 18580 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18581 | |
| 18582 | 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] | 18583 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18584 | for ac_prog in true |
| 18585 | do |
| 18586 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 18587 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18588 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 18589 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18590 | if test "${ac_cv_prog_TRUE+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18592 | else |
| 18593 | if test -n "$TRUE"; then |
| 18594 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 18595 | else |
| 18596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18597 | for as_dir in $PATH |
| 18598 | do |
| 18599 | IFS=$as_save_IFS |
| 18600 | test -z "$as_dir" && as_dir=. |
| 18601 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18602 | 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] | 18603 | ac_cv_prog_TRUE="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18604 | 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] | 18605 | break 2 |
| 18606 | fi |
| 18607 | done |
| 18608 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18609 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18610 | |
| 18611 | fi |
| 18612 | fi |
| 18613 | TRUE=$ac_cv_prog_TRUE |
| 18614 | if test -n "$TRUE"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18615 | { echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 18616 | echo "${ECHO_T}$TRUE" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18617 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18618 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18619 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18620 | fi |
| 18621 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18622 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18623 | test -n "$TRUE" && break |
| 18624 | done |
| 18625 | test -n "$TRUE" || TRUE="/bin/true" |
| 18626 | |
| 18627 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18628 | { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 18629 | 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] | 18630 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18632 | else |
| 18633 | ac_check_lib_save_LIBS=$LIBS |
| 18634 | LIBS="-lc $LIBS" |
| 18635 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18636 | /* confdefs.h. */ |
| 18637 | _ACEOF |
| 18638 | cat confdefs.h >>conftest.$ac_ext |
| 18639 | cat >>conftest.$ac_ext <<_ACEOF |
| 18640 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18641 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18642 | /* Override any GCC internal prototype to avoid an error. |
| 18643 | Use char because int might match the return type of a GCC |
| 18644 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18645 | #ifdef __cplusplus |
| 18646 | extern "C" |
| 18647 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18648 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18649 | int |
| 18650 | main () |
| 18651 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18652 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18653 | ; |
| 18654 | return 0; |
| 18655 | } |
| 18656 | _ACEOF |
| 18657 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18658 | if { (ac_try="$ac_link" |
| 18659 | case "(($ac_try" in |
| 18660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18661 | *) ac_try_echo=$ac_try;; |
| 18662 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18664 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18665 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18666 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18667 | rm -f conftest.er1 |
| 18668 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18670 | (exit $ac_status); } && { |
| 18671 | test -z "$ac_c_werror_flag" || |
| 18672 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18673 | } && test -s conftest$ac_exeext && |
| 18674 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18675 | ac_cv_lib_c_inet_aton=yes |
| 18676 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18677 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18678 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18679 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18680 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18681 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18682 | |
| 18683 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18684 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18685 | LIBS=$ac_check_lib_save_LIBS |
| 18686 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18687 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 18688 | echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; } |
| 18689 | if test $ac_cv_lib_c_inet_aton = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18690 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18691 | else |
| 18692 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18693 | { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 18694 | 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] | 18695 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18697 | else |
| 18698 | ac_check_lib_save_LIBS=$LIBS |
| 18699 | LIBS="-lresolv $LIBS" |
| 18700 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18701 | /* confdefs.h. */ |
| 18702 | _ACEOF |
| 18703 | cat confdefs.h >>conftest.$ac_ext |
| 18704 | cat >>conftest.$ac_ext <<_ACEOF |
| 18705 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18706 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18707 | /* Override any GCC internal prototype to avoid an error. |
| 18708 | Use char because int might match the return type of a GCC |
| 18709 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18710 | #ifdef __cplusplus |
| 18711 | extern "C" |
| 18712 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18713 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18714 | int |
| 18715 | main () |
| 18716 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18717 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18718 | ; |
| 18719 | return 0; |
| 18720 | } |
| 18721 | _ACEOF |
| 18722 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18723 | if { (ac_try="$ac_link" |
| 18724 | case "(($ac_try" in |
| 18725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18726 | *) ac_try_echo=$ac_try;; |
| 18727 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18729 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18730 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18731 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18732 | rm -f conftest.er1 |
| 18733 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18735 | (exit $ac_status); } && { |
| 18736 | test -z "$ac_c_werror_flag" || |
| 18737 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18738 | } && test -s conftest$ac_exeext && |
| 18739 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18740 | ac_cv_lib_resolv_inet_aton=yes |
| 18741 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18742 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18743 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18744 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18745 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18746 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18747 | |
| 18748 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18749 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18750 | LIBS=$ac_check_lib_save_LIBS |
| 18751 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18752 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 18753 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; } |
| 18754 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18755 | cat >>confdefs.h <<_ACEOF |
| 18756 | #define HAVE_LIBRESOLV 1 |
| 18757 | _ACEOF |
| 18758 | |
| 18759 | LIBS="-lresolv $LIBS" |
| 18760 | |
| 18761 | fi |
| 18762 | |
| 18763 | |
| 18764 | fi |
| 18765 | |
| 18766 | |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18767 | # On Tru64, chflags seems to be present, but calling it will |
| 18768 | # exit Python |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18769 | { echo "$as_me:$LINENO: checking for chflags" >&5 |
| 18770 | echo $ECHO_N "checking for chflags... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 18771 | if test "${ac_cv_have_chflags+set}" = set; then |
| 18772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18773 | else |
| 18774 | if test "$cross_compiling" = yes; then |
| 18775 | ac_cv_have_chflags=no |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18776 | else |
| 18777 | cat >conftest.$ac_ext <<_ACEOF |
| 18778 | /* confdefs.h. */ |
| 18779 | _ACEOF |
| 18780 | cat confdefs.h >>conftest.$ac_ext |
| 18781 | cat >>conftest.$ac_ext <<_ACEOF |
| 18782 | /* end confdefs.h. */ |
| 18783 | |
| 18784 | #include <sys/stat.h> |
| 18785 | #include <unistd.h> |
| 18786 | int main(int argc, char*argv[]) |
| 18787 | { |
| 18788 | if(chflags(argv[0], 0) != 0) |
| 18789 | return 1; |
| 18790 | return 0; |
| 18791 | } |
| 18792 | |
| 18793 | _ACEOF |
| 18794 | rm -f conftest$ac_exeext |
| 18795 | if { (ac_try="$ac_link" |
| 18796 | case "(($ac_try" in |
| 18797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18798 | *) ac_try_echo=$ac_try;; |
| 18799 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18801 | (eval "$ac_link") 2>&5 |
| 18802 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18804 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18805 | { (case "(($ac_try" in |
| 18806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18807 | *) ac_try_echo=$ac_try;; |
| 18808 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18810 | (eval "$ac_try") 2>&5 |
| 18811 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18813 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 18814 | ac_cv_have_chflags=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18815 | else |
| 18816 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18817 | echo "$as_me: failed program was:" >&5 |
| 18818 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18819 | |
| 18820 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 18821 | ac_cv_have_chflags=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18822 | fi |
| 18823 | 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] | 18824 | fi |
| 18825 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18826 | |
| 18827 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 18828 | fi |
| 18829 | |
| 18830 | { echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5 |
| 18831 | echo "${ECHO_T}$ac_cv_have_chflags" >&6; } |
| 18832 | if test $ac_cv_have_chflags = yes |
| 18833 | then |
| 18834 | |
| 18835 | cat >>confdefs.h <<\_ACEOF |
| 18836 | #define HAVE_CHFLAGS 1 |
| 18837 | _ACEOF |
| 18838 | |
| 18839 | fi |
| 18840 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18841 | { echo "$as_me:$LINENO: checking for lchflags" >&5 |
| 18842 | echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 18843 | if test "${ac_cv_have_lchflags+set}" = set; then |
| 18844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18845 | else |
| 18846 | if test "$cross_compiling" = yes; then |
| 18847 | ac_cv_have_lchflags=no |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18848 | else |
| 18849 | cat >conftest.$ac_ext <<_ACEOF |
| 18850 | /* confdefs.h. */ |
| 18851 | _ACEOF |
| 18852 | cat confdefs.h >>conftest.$ac_ext |
| 18853 | cat >>conftest.$ac_ext <<_ACEOF |
| 18854 | /* end confdefs.h. */ |
| 18855 | |
| 18856 | #include <sys/stat.h> |
| 18857 | #include <unistd.h> |
| 18858 | int main(int argc, char*argv[]) |
| 18859 | { |
| 18860 | if(lchflags(argv[0], 0) != 0) |
| 18861 | return 1; |
| 18862 | return 0; |
| 18863 | } |
| 18864 | |
| 18865 | _ACEOF |
| 18866 | rm -f conftest$ac_exeext |
| 18867 | if { (ac_try="$ac_link" |
| 18868 | case "(($ac_try" in |
| 18869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18870 | *) ac_try_echo=$ac_try;; |
| 18871 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18873 | (eval "$ac_link") 2>&5 |
| 18874 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18876 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18877 | { (case "(($ac_try" in |
| 18878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18879 | *) ac_try_echo=$ac_try;; |
| 18880 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18882 | (eval "$ac_try") 2>&5 |
| 18883 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18885 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 18886 | ac_cv_have_lchflags=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18887 | else |
| 18888 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18889 | echo "$as_me: failed program was:" >&5 |
| 18890 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18891 | |
| 18892 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 18893 | ac_cv_have_lchflags=no |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18894 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18895 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 18896 | fi |
| 18897 | |
| 18898 | |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18899 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 18900 | fi |
| 18901 | |
| 18902 | { echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5 |
| 18903 | echo "${ECHO_T}$ac_cv_have_lchflags" >&6; } |
| 18904 | if test $ac_cv_have_lchflags = yes |
| 18905 | then |
| 18906 | |
| 18907 | cat >>confdefs.h <<\_ACEOF |
| 18908 | #define HAVE_LCHFLAGS 1 |
| 18909 | _ACEOF |
| 18910 | |
| 18911 | fi |
| 18912 | |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 18913 | case $ac_sys_system/$ac_sys_release in |
| 18914 | Darwin/*) |
| 18915 | _CUR_CFLAGS="${CFLAGS}" |
| 18916 | _CUR_LDFLAGS="${LDFLAGS}" |
| 18917 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" |
| 18918 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" |
| 18919 | ;; |
| 18920 | esac |
| 18921 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18922 | { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5 |
| 18923 | echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; } |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 18924 | if test "${ac_cv_lib_z_inflateCopy+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 18926 | else |
| 18927 | ac_check_lib_save_LIBS=$LIBS |
| 18928 | LIBS="-lz $LIBS" |
| 18929 | cat >conftest.$ac_ext <<_ACEOF |
| 18930 | /* confdefs.h. */ |
| 18931 | _ACEOF |
| 18932 | cat confdefs.h >>conftest.$ac_ext |
| 18933 | cat >>conftest.$ac_ext <<_ACEOF |
| 18934 | /* end confdefs.h. */ |
| 18935 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18936 | /* Override any GCC internal prototype to avoid an error. |
| 18937 | Use char because int might match the return type of a GCC |
| 18938 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 18939 | #ifdef __cplusplus |
| 18940 | extern "C" |
| 18941 | #endif |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 18942 | char inflateCopy (); |
| 18943 | int |
| 18944 | main () |
| 18945 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18946 | return inflateCopy (); |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 18947 | ; |
| 18948 | return 0; |
| 18949 | } |
| 18950 | _ACEOF |
| 18951 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18952 | if { (ac_try="$ac_link" |
| 18953 | case "(($ac_try" in |
| 18954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18955 | *) ac_try_echo=$ac_try;; |
| 18956 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18957 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18958 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 18959 | ac_status=$? |
| 18960 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18961 | rm -f conftest.er1 |
| 18962 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18964 | (exit $ac_status); } && { |
| 18965 | test -z "$ac_c_werror_flag" || |
| 18966 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18967 | } && test -s conftest$ac_exeext && |
| 18968 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 18969 | ac_cv_lib_z_inflateCopy=yes |
| 18970 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18971 | echo "$as_me: failed program was:" >&5 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 18972 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18973 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18974 | ac_cv_lib_z_inflateCopy=no |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 18975 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18976 | |
| 18977 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 18978 | conftest$ac_exeext conftest.$ac_ext |
| 18979 | LIBS=$ac_check_lib_save_LIBS |
| 18980 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18981 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5 |
| 18982 | echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; } |
| 18983 | if test $ac_cv_lib_z_inflateCopy = yes; then |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 18984 | |
| 18985 | cat >>confdefs.h <<\_ACEOF |
| 18986 | #define HAVE_ZLIB_COPY 1 |
| 18987 | _ACEOF |
| 18988 | |
| 18989 | fi |
| 18990 | |
| 18991 | |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 18992 | case $ac_sys_system/$ac_sys_release in |
| 18993 | Darwin/*) |
| 18994 | CFLAGS="${_CUR_CFLAGS}" |
| 18995 | LDFLAGS="${_CUR_LDFLAGS}" |
| 18996 | ;; |
| 18997 | esac |
| 18998 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18999 | { echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 19000 | echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19001 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19002 | /* confdefs.h. */ |
| 19003 | _ACEOF |
| 19004 | cat confdefs.h >>conftest.$ac_ext |
| 19005 | cat >>conftest.$ac_ext <<_ACEOF |
| 19006 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19007 | |
| 19008 | #include "confdefs.h" |
| 19009 | #include <netdb.h> |
| 19010 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19011 | int |
| 19012 | main () |
| 19013 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19014 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19015 | ; |
| 19016 | return 0; |
| 19017 | } |
| 19018 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19019 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19020 | if { (ac_try="$ac_link" |
| 19021 | case "(($ac_try" in |
| 19022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19023 | *) ac_try_echo=$ac_try;; |
| 19024 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19026 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19027 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19028 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19029 | rm -f conftest.er1 |
| 19030 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19032 | (exit $ac_status); } && { |
| 19033 | test -z "$ac_c_werror_flag" || |
| 19034 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19035 | } && test -s conftest$ac_exeext && |
| 19036 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19037 | |
| 19038 | cat >>confdefs.h <<\_ACEOF |
| 19039 | #define HAVE_HSTRERROR 1 |
| 19040 | _ACEOF |
| 19041 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19042 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19043 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19044 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19045 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19046 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19047 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19048 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19049 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19050 | |
| 19051 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19052 | |
| 19053 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19054 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19055 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19056 | { echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 19057 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19058 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19059 | /* confdefs.h. */ |
| 19060 | _ACEOF |
| 19061 | cat confdefs.h >>conftest.$ac_ext |
| 19062 | cat >>conftest.$ac_ext <<_ACEOF |
| 19063 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19064 | |
| 19065 | #include "confdefs.h" |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 19066 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19067 | #include <sys/socket.h> |
| 19068 | #include <netinet/in.h> |
| 19069 | #include <arpa/inet.h> |
| 19070 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19071 | int |
| 19072 | main () |
| 19073 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19074 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19075 | ; |
| 19076 | return 0; |
| 19077 | } |
| 19078 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19079 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19080 | if { (ac_try="$ac_link" |
| 19081 | case "(($ac_try" in |
| 19082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19083 | *) ac_try_echo=$ac_try;; |
| 19084 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19086 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19087 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19088 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19089 | rm -f conftest.er1 |
| 19090 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19092 | (exit $ac_status); } && { |
| 19093 | test -z "$ac_c_werror_flag" || |
| 19094 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19095 | } && test -s conftest$ac_exeext && |
| 19096 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19097 | |
| 19098 | cat >>confdefs.h <<\_ACEOF |
| 19099 | #define HAVE_INET_ATON 1 |
| 19100 | _ACEOF |
| 19101 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19102 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19103 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19104 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19105 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19107 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19108 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19109 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19110 | |
| 19111 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19112 | |
| 19113 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19114 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19115 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19116 | { echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 19117 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19118 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19119 | /* confdefs.h. */ |
| 19120 | _ACEOF |
| 19121 | cat confdefs.h >>conftest.$ac_ext |
| 19122 | cat >>conftest.$ac_ext <<_ACEOF |
| 19123 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19124 | |
| 19125 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 19126 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19127 | #include <sys/socket.h> |
| 19128 | #include <netinet/in.h> |
| 19129 | #include <arpa/inet.h> |
| 19130 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19131 | int |
| 19132 | main () |
| 19133 | { |
| 19134 | void* p = inet_pton |
| 19135 | ; |
| 19136 | return 0; |
| 19137 | } |
| 19138 | _ACEOF |
| 19139 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19140 | if { (ac_try="$ac_compile" |
| 19141 | case "(($ac_try" in |
| 19142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19143 | *) ac_try_echo=$ac_try;; |
| 19144 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19146 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19147 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19148 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19149 | rm -f conftest.er1 |
| 19150 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19152 | (exit $ac_status); } && { |
| 19153 | test -z "$ac_c_werror_flag" || |
| 19154 | test ! -s conftest.err |
| 19155 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19156 | |
| 19157 | cat >>confdefs.h <<\_ACEOF |
| 19158 | #define HAVE_INET_PTON 1 |
| 19159 | _ACEOF |
| 19160 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19161 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19162 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19163 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19164 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19165 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19166 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19167 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19168 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19169 | |
| 19170 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19171 | |
| 19172 | 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] | 19173 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 19174 | # 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] | 19175 | { echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 19176 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19177 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19178 | /* confdefs.h. */ |
| 19179 | _ACEOF |
| 19180 | cat confdefs.h >>conftest.$ac_ext |
| 19181 | cat >>conftest.$ac_ext <<_ACEOF |
| 19182 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19183 | |
| 19184 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 19185 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 19186 | #ifdef HAVE_GRP_H |
| 19187 | #include <grp.h> |
| 19188 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19189 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19190 | int |
| 19191 | main () |
| 19192 | { |
| 19193 | void* p = setgroups |
| 19194 | ; |
| 19195 | return 0; |
| 19196 | } |
| 19197 | _ACEOF |
| 19198 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19199 | if { (ac_try="$ac_compile" |
| 19200 | case "(($ac_try" in |
| 19201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19202 | *) ac_try_echo=$ac_try;; |
| 19203 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19205 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19206 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19207 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19208 | rm -f conftest.er1 |
| 19209 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19211 | (exit $ac_status); } && { |
| 19212 | test -z "$ac_c_werror_flag" || |
| 19213 | test ! -s conftest.err |
| 19214 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19215 | |
| 19216 | cat >>confdefs.h <<\_ACEOF |
| 19217 | #define HAVE_SETGROUPS 1 |
| 19218 | _ACEOF |
| 19219 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19220 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19221 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19222 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19223 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19224 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19225 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19226 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19227 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19228 | |
| 19229 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19230 | |
| 19231 | 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] | 19232 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19233 | # check for openpty and forkpty |
| 19234 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19235 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19236 | for ac_func in openpty |
| 19237 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19238 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19239 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19240 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19241 | 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] | 19242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19243 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19244 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19245 | /* confdefs.h. */ |
| 19246 | _ACEOF |
| 19247 | cat confdefs.h >>conftest.$ac_ext |
| 19248 | cat >>conftest.$ac_ext <<_ACEOF |
| 19249 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19250 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19251 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19252 | #define $ac_func innocuous_$ac_func |
| 19253 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19254 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19255 | which can conflict with char $ac_func (); below. |
| 19256 | 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] | 19257 | <limits.h> exists even on freestanding compilers. */ |
| 19258 | |
| 19259 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19260 | # include <limits.h> |
| 19261 | #else |
| 19262 | # include <assert.h> |
| 19263 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19264 | |
| 19265 | #undef $ac_func |
| 19266 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19267 | /* Override any GCC internal prototype to avoid an error. |
| 19268 | Use char because int might match the return type of a GCC |
| 19269 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19270 | #ifdef __cplusplus |
| 19271 | extern "C" |
| 19272 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19273 | char $ac_func (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19274 | /* The GNU C library defines this for functions which it implements |
| 19275 | to always fail with ENOSYS. Some functions are actually named |
| 19276 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19277 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19278 | choke me |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19279 | #endif |
| 19280 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19281 | int |
| 19282 | main () |
| 19283 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19284 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19285 | ; |
| 19286 | return 0; |
| 19287 | } |
| 19288 | _ACEOF |
| 19289 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19290 | if { (ac_try="$ac_link" |
| 19291 | case "(($ac_try" in |
| 19292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19293 | *) ac_try_echo=$ac_try;; |
| 19294 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19295 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19296 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19297 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19298 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19299 | rm -f conftest.er1 |
| 19300 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19302 | (exit $ac_status); } && { |
| 19303 | test -z "$ac_c_werror_flag" || |
| 19304 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19305 | } && test -s conftest$ac_exeext && |
| 19306 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19307 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19308 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19309 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19310 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19311 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19312 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19313 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19314 | |
| 19315 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19316 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19317 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19318 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19319 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19320 | echo "${ECHO_T}$ac_res" >&6; } |
| 19321 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19322 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19323 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19324 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19325 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19326 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19327 | { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 19328 | 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] | 19329 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19331 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19332 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19333 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19334 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19335 | /* confdefs.h. */ |
| 19336 | _ACEOF |
| 19337 | cat confdefs.h >>conftest.$ac_ext |
| 19338 | cat >>conftest.$ac_ext <<_ACEOF |
| 19339 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19340 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19341 | /* Override any GCC internal prototype to avoid an error. |
| 19342 | Use char because int might match the return type of a GCC |
| 19343 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19344 | #ifdef __cplusplus |
| 19345 | extern "C" |
| 19346 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19347 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19348 | int |
| 19349 | main () |
| 19350 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19351 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19352 | ; |
| 19353 | return 0; |
| 19354 | } |
| 19355 | _ACEOF |
| 19356 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19357 | if { (ac_try="$ac_link" |
| 19358 | case "(($ac_try" in |
| 19359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19360 | *) ac_try_echo=$ac_try;; |
| 19361 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19363 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19364 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19365 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19366 | rm -f conftest.er1 |
| 19367 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19369 | (exit $ac_status); } && { |
| 19370 | test -z "$ac_c_werror_flag" || |
| 19371 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19372 | } && test -s conftest$ac_exeext && |
| 19373 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19374 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19375 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19376 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19377 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19378 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19379 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19380 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19381 | |
| 19382 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19383 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19384 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19385 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19386 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 19387 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; } |
| 19388 | if test $ac_cv_lib_util_openpty = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19389 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19390 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19391 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19392 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19393 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19394 | { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5 |
| 19395 | 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] | 19396 | if test "${ac_cv_lib_bsd_openpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19398 | else |
| 19399 | ac_check_lib_save_LIBS=$LIBS |
| 19400 | LIBS="-lbsd $LIBS" |
| 19401 | cat >conftest.$ac_ext <<_ACEOF |
| 19402 | /* confdefs.h. */ |
| 19403 | _ACEOF |
| 19404 | cat confdefs.h >>conftest.$ac_ext |
| 19405 | cat >>conftest.$ac_ext <<_ACEOF |
| 19406 | /* end confdefs.h. */ |
| 19407 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19408 | /* Override any GCC internal prototype to avoid an error. |
| 19409 | Use char because int might match the return type of a GCC |
| 19410 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19411 | #ifdef __cplusplus |
| 19412 | extern "C" |
| 19413 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19414 | char openpty (); |
| 19415 | int |
| 19416 | main () |
| 19417 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19418 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19419 | ; |
| 19420 | return 0; |
| 19421 | } |
| 19422 | _ACEOF |
| 19423 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19424 | if { (ac_try="$ac_link" |
| 19425 | case "(($ac_try" in |
| 19426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19427 | *) ac_try_echo=$ac_try;; |
| 19428 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19430 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19431 | ac_status=$? |
| 19432 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19433 | rm -f conftest.er1 |
| 19434 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19436 | (exit $ac_status); } && { |
| 19437 | test -z "$ac_c_werror_flag" || |
| 19438 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19439 | } && test -s conftest$ac_exeext && |
| 19440 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19441 | ac_cv_lib_bsd_openpty=yes |
| 19442 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19443 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19444 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19445 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19446 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19447 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19448 | |
| 19449 | 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] | 19450 | conftest$ac_exeext conftest.$ac_ext |
| 19451 | LIBS=$ac_check_lib_save_LIBS |
| 19452 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19453 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5 |
| 19454 | echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; } |
| 19455 | if test $ac_cv_lib_bsd_openpty = yes; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19456 | cat >>confdefs.h <<\_ACEOF |
| 19457 | #define HAVE_OPENPTY 1 |
| 19458 | _ACEOF |
| 19459 | LIBS="$LIBS -lbsd" |
| 19460 | fi |
| 19461 | |
| 19462 | |
| 19463 | fi |
| 19464 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19465 | |
| 19466 | fi |
| 19467 | done |
| 19468 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19469 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19470 | for ac_func in forkpty |
| 19471 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19472 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19473 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19474 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19475 | 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] | 19476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19477 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19478 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19479 | /* confdefs.h. */ |
| 19480 | _ACEOF |
| 19481 | cat confdefs.h >>conftest.$ac_ext |
| 19482 | cat >>conftest.$ac_ext <<_ACEOF |
| 19483 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19484 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19485 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19486 | #define $ac_func innocuous_$ac_func |
| 19487 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19488 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19489 | which can conflict with char $ac_func (); below. |
| 19490 | 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] | 19491 | <limits.h> exists even on freestanding compilers. */ |
| 19492 | |
| 19493 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19494 | # include <limits.h> |
| 19495 | #else |
| 19496 | # include <assert.h> |
| 19497 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19498 | |
| 19499 | #undef $ac_func |
| 19500 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19501 | /* Override any GCC internal prototype to avoid an error. |
| 19502 | Use char because int might match the return type of a GCC |
| 19503 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19504 | #ifdef __cplusplus |
| 19505 | extern "C" |
| 19506 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19507 | char $ac_func (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19508 | /* The GNU C library defines this for functions which it implements |
| 19509 | to always fail with ENOSYS. Some functions are actually named |
| 19510 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19511 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19512 | choke me |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19513 | #endif |
| 19514 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19515 | int |
| 19516 | main () |
| 19517 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19518 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19519 | ; |
| 19520 | return 0; |
| 19521 | } |
| 19522 | _ACEOF |
| 19523 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19524 | if { (ac_try="$ac_link" |
| 19525 | case "(($ac_try" in |
| 19526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19527 | *) ac_try_echo=$ac_try;; |
| 19528 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19530 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19531 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19532 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19533 | rm -f conftest.er1 |
| 19534 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19536 | (exit $ac_status); } && { |
| 19537 | test -z "$ac_c_werror_flag" || |
| 19538 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19539 | } && test -s conftest$ac_exeext && |
| 19540 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19541 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19542 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19543 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19544 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19545 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19546 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19547 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19548 | |
| 19549 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19550 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19551 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19552 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19553 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19554 | echo "${ECHO_T}$ac_res" >&6; } |
| 19555 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19556 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19557 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19558 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19559 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19560 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19561 | { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 19562 | 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] | 19563 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19565 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19566 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19567 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19568 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19569 | /* confdefs.h. */ |
| 19570 | _ACEOF |
| 19571 | cat confdefs.h >>conftest.$ac_ext |
| 19572 | cat >>conftest.$ac_ext <<_ACEOF |
| 19573 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19574 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19575 | /* Override any GCC internal prototype to avoid an error. |
| 19576 | Use char because int might match the return type of a GCC |
| 19577 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19578 | #ifdef __cplusplus |
| 19579 | extern "C" |
| 19580 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19581 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19582 | int |
| 19583 | main () |
| 19584 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19585 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19586 | ; |
| 19587 | return 0; |
| 19588 | } |
| 19589 | _ACEOF |
| 19590 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19591 | if { (ac_try="$ac_link" |
| 19592 | case "(($ac_try" in |
| 19593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19594 | *) ac_try_echo=$ac_try;; |
| 19595 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19597 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19598 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19599 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19600 | rm -f conftest.er1 |
| 19601 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19603 | (exit $ac_status); } && { |
| 19604 | test -z "$ac_c_werror_flag" || |
| 19605 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19606 | } && test -s conftest$ac_exeext && |
| 19607 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19608 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19609 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19610 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19612 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19613 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19614 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19615 | |
| 19616 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19617 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19618 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19619 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19620 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 19621 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; } |
| 19622 | if test $ac_cv_lib_util_forkpty = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19623 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19624 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19625 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19626 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19627 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19628 | { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5 |
| 19629 | 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] | 19630 | if test "${ac_cv_lib_bsd_forkpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19632 | else |
| 19633 | ac_check_lib_save_LIBS=$LIBS |
| 19634 | LIBS="-lbsd $LIBS" |
| 19635 | cat >conftest.$ac_ext <<_ACEOF |
| 19636 | /* confdefs.h. */ |
| 19637 | _ACEOF |
| 19638 | cat confdefs.h >>conftest.$ac_ext |
| 19639 | cat >>conftest.$ac_ext <<_ACEOF |
| 19640 | /* end confdefs.h. */ |
| 19641 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19642 | /* Override any GCC internal prototype to avoid an error. |
| 19643 | Use char because int might match the return type of a GCC |
| 19644 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19645 | #ifdef __cplusplus |
| 19646 | extern "C" |
| 19647 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19648 | char forkpty (); |
| 19649 | int |
| 19650 | main () |
| 19651 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19652 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19653 | ; |
| 19654 | return 0; |
| 19655 | } |
| 19656 | _ACEOF |
| 19657 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19658 | if { (ac_try="$ac_link" |
| 19659 | case "(($ac_try" in |
| 19660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19661 | *) ac_try_echo=$ac_try;; |
| 19662 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19664 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19665 | ac_status=$? |
| 19666 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19667 | rm -f conftest.er1 |
| 19668 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19670 | (exit $ac_status); } && { |
| 19671 | test -z "$ac_c_werror_flag" || |
| 19672 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19673 | } && test -s conftest$ac_exeext && |
| 19674 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19675 | ac_cv_lib_bsd_forkpty=yes |
| 19676 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19677 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19678 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19679 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19680 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19681 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19682 | |
| 19683 | 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] | 19684 | conftest$ac_exeext conftest.$ac_ext |
| 19685 | LIBS=$ac_check_lib_save_LIBS |
| 19686 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19687 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5 |
| 19688 | echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; } |
| 19689 | if test $ac_cv_lib_bsd_forkpty = yes; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19690 | cat >>confdefs.h <<\_ACEOF |
| 19691 | #define HAVE_FORKPTY 1 |
| 19692 | _ACEOF |
| 19693 | LIBS="$LIBS -lbsd" |
| 19694 | fi |
| 19695 | |
| 19696 | |
| 19697 | fi |
| 19698 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19699 | |
| 19700 | fi |
| 19701 | done |
| 19702 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19703 | |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19704 | # Stuff for expat. |
| 19705 | |
| 19706 | for ac_func in memmove |
| 19707 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19708 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19709 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19710 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19711 | 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] | 19712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19713 | else |
| 19714 | cat >conftest.$ac_ext <<_ACEOF |
| 19715 | /* confdefs.h. */ |
| 19716 | _ACEOF |
| 19717 | cat confdefs.h >>conftest.$ac_ext |
| 19718 | cat >>conftest.$ac_ext <<_ACEOF |
| 19719 | /* end confdefs.h. */ |
| 19720 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19721 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19722 | #define $ac_func innocuous_$ac_func |
| 19723 | |
| 19724 | /* System header to define __stub macros and hopefully few prototypes, |
| 19725 | which can conflict with char $ac_func (); below. |
| 19726 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19727 | <limits.h> exists even on freestanding compilers. */ |
| 19728 | |
| 19729 | #ifdef __STDC__ |
| 19730 | # include <limits.h> |
| 19731 | #else |
| 19732 | # include <assert.h> |
| 19733 | #endif |
| 19734 | |
| 19735 | #undef $ac_func |
| 19736 | |
| 19737 | /* Override any GCC internal prototype to avoid an error. |
| 19738 | Use char because int might match the return type of a GCC |
| 19739 | builtin and then its argument prototype would still apply. */ |
| 19740 | #ifdef __cplusplus |
| 19741 | extern "C" |
| 19742 | #endif |
| 19743 | char $ac_func (); |
| 19744 | /* The GNU C library defines this for functions which it implements |
| 19745 | to always fail with ENOSYS. Some functions are actually named |
| 19746 | something starting with __ and the normal name is an alias. */ |
| 19747 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 19748 | choke me |
| 19749 | #endif |
| 19750 | |
| 19751 | int |
| 19752 | main () |
| 19753 | { |
| 19754 | return $ac_func (); |
| 19755 | ; |
| 19756 | return 0; |
| 19757 | } |
| 19758 | _ACEOF |
| 19759 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19760 | if { (ac_try="$ac_link" |
| 19761 | case "(($ac_try" in |
| 19762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19763 | *) ac_try_echo=$ac_try;; |
| 19764 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19766 | (eval "$ac_link") 2>conftest.er1 |
| 19767 | ac_status=$? |
| 19768 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19769 | rm -f conftest.er1 |
| 19770 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19772 | (exit $ac_status); } && { |
| 19773 | test -z "$ac_c_werror_flag" || |
| 19774 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19775 | } && test -s conftest$ac_exeext && |
| 19776 | $as_test_x conftest$ac_exeext; then |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19777 | eval "$as_ac_var=yes" |
| 19778 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19779 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19780 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19781 | |
| 19782 | eval "$as_ac_var=no" |
| 19783 | fi |
| 19784 | |
| 19785 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 19786 | conftest$ac_exeext conftest.$ac_ext |
| 19787 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19788 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19789 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19790 | echo "${ECHO_T}$ac_res" >&6; } |
| 19791 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19792 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19793 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19794 | _ACEOF |
| 19795 | |
| 19796 | fi |
| 19797 | done |
| 19798 | |
| 19799 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19800 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19801 | |
| 19802 | |
| 19803 | |
| 19804 | |
| 19805 | |
| 19806 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19807 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 19808 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19809 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19810 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19811 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19812 | 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] | 19813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 19814 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19815 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19816 | /* confdefs.h. */ |
| 19817 | _ACEOF |
| 19818 | cat confdefs.h >>conftest.$ac_ext |
| 19819 | cat >>conftest.$ac_ext <<_ACEOF |
| 19820 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19821 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19822 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19823 | #define $ac_func innocuous_$ac_func |
| 19824 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 19825 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19826 | which can conflict with char $ac_func (); below. |
| 19827 | 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] | 19828 | <limits.h> exists even on freestanding compilers. */ |
| 19829 | |
| 19830 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19831 | # include <limits.h> |
| 19832 | #else |
| 19833 | # include <assert.h> |
| 19834 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19835 | |
| 19836 | #undef $ac_func |
| 19837 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19838 | /* Override any GCC internal prototype to avoid an error. |
| 19839 | Use char because int might match the return type of a GCC |
| 19840 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19841 | #ifdef __cplusplus |
| 19842 | extern "C" |
| 19843 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19844 | char $ac_func (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 19845 | /* The GNU C library defines this for functions which it implements |
| 19846 | to always fail with ENOSYS. Some functions are actually named |
| 19847 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19848 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 19849 | choke me |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 19850 | #endif |
| 19851 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19852 | int |
| 19853 | main () |
| 19854 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19855 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19856 | ; |
| 19857 | return 0; |
| 19858 | } |
| 19859 | _ACEOF |
| 19860 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19861 | if { (ac_try="$ac_link" |
| 19862 | case "(($ac_try" in |
| 19863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19864 | *) ac_try_echo=$ac_try;; |
| 19865 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19866 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19867 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19868 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19869 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19870 | rm -f conftest.er1 |
| 19871 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19873 | (exit $ac_status); } && { |
| 19874 | test -z "$ac_c_werror_flag" || |
| 19875 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19876 | } && test -s conftest$ac_exeext && |
| 19877 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19878 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19879 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19880 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19881 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19882 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19883 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19884 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19885 | |
| 19886 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19887 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19888 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19889 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19890 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19891 | echo "${ECHO_T}$ac_res" >&6; } |
| 19892 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19893 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19894 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19895 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19896 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19897 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19898 | done |
| 19899 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19900 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19901 | |
| 19902 | |
| 19903 | |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19904 | for ac_func in dup2 getcwd strdup |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 19905 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19906 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19907 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19908 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19909 | 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] | 19910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19911 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19912 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19913 | /* confdefs.h. */ |
| 19914 | _ACEOF |
| 19915 | cat confdefs.h >>conftest.$ac_ext |
| 19916 | cat >>conftest.$ac_ext <<_ACEOF |
| 19917 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19918 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19919 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19920 | #define $ac_func innocuous_$ac_func |
| 19921 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 19922 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19923 | which can conflict with char $ac_func (); below. |
| 19924 | 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] | 19925 | <limits.h> exists even on freestanding compilers. */ |
| 19926 | |
| 19927 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19928 | # include <limits.h> |
| 19929 | #else |
| 19930 | # include <assert.h> |
| 19931 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19932 | |
| 19933 | #undef $ac_func |
| 19934 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19935 | /* Override any GCC internal prototype to avoid an error. |
| 19936 | Use char because int might match the return type of a GCC |
| 19937 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19938 | #ifdef __cplusplus |
| 19939 | extern "C" |
| 19940 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19941 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19942 | /* The GNU C library defines this for functions which it implements |
| 19943 | to always fail with ENOSYS. Some functions are actually named |
| 19944 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19945 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19946 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19947 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19948 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19949 | int |
| 19950 | main () |
| 19951 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19952 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19953 | ; |
| 19954 | return 0; |
| 19955 | } |
| 19956 | _ACEOF |
| 19957 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19958 | if { (ac_try="$ac_link" |
| 19959 | case "(($ac_try" in |
| 19960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19961 | *) ac_try_echo=$ac_try;; |
| 19962 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19964 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19965 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19966 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19967 | rm -f conftest.er1 |
| 19968 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19970 | (exit $ac_status); } && { |
| 19971 | test -z "$ac_c_werror_flag" || |
| 19972 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19973 | } && test -s conftest$ac_exeext && |
| 19974 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19975 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 19976 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19977 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19978 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19979 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19980 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 19981 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19982 | |
| 19983 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19984 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 19985 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19986 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19987 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19988 | echo "${ECHO_T}$ac_res" >&6; } |
| 19989 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19990 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19991 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19992 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 19993 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 19994 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19995 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19996 | *" $ac_func.$ac_objext "* ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19997 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
| 19998 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19999 | esac |
| 20000 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20001 | fi |
| 20002 | done |
| 20003 | |
| 20004 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20005 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20006 | for ac_func in getpgrp |
| 20007 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20008 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20009 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20010 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20011 | 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] | 20012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20013 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20014 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20015 | /* confdefs.h. */ |
| 20016 | _ACEOF |
| 20017 | cat confdefs.h >>conftest.$ac_ext |
| 20018 | cat >>conftest.$ac_ext <<_ACEOF |
| 20019 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20020 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20021 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20022 | #define $ac_func innocuous_$ac_func |
| 20023 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20024 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20025 | which can conflict with char $ac_func (); below. |
| 20026 | 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] | 20027 | <limits.h> exists even on freestanding compilers. */ |
| 20028 | |
| 20029 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20030 | # include <limits.h> |
| 20031 | #else |
| 20032 | # include <assert.h> |
| 20033 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20034 | |
| 20035 | #undef $ac_func |
| 20036 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20037 | /* Override any GCC internal prototype to avoid an error. |
| 20038 | Use char because int might match the return type of a GCC |
| 20039 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20040 | #ifdef __cplusplus |
| 20041 | extern "C" |
| 20042 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20043 | char $ac_func (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20044 | /* The GNU C library defines this for functions which it implements |
| 20045 | to always fail with ENOSYS. Some functions are actually named |
| 20046 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20047 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20048 | choke me |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20049 | #endif |
| 20050 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20051 | int |
| 20052 | main () |
| 20053 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20054 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20055 | ; |
| 20056 | return 0; |
| 20057 | } |
| 20058 | _ACEOF |
| 20059 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20060 | if { (ac_try="$ac_link" |
| 20061 | case "(($ac_try" in |
| 20062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20063 | *) ac_try_echo=$ac_try;; |
| 20064 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20066 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20067 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20068 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20069 | rm -f conftest.er1 |
| 20070 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20072 | (exit $ac_status); } && { |
| 20073 | test -z "$ac_c_werror_flag" || |
| 20074 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20075 | } && test -s conftest$ac_exeext && |
| 20076 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20077 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20078 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20079 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20080 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20081 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20082 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20083 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20084 | |
| 20085 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20086 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20087 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20088 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20089 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20090 | echo "${ECHO_T}$ac_res" >&6; } |
| 20091 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20092 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20093 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20094 | _ACEOF |
| 20095 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20096 | /* confdefs.h. */ |
| 20097 | _ACEOF |
| 20098 | cat confdefs.h >>conftest.$ac_ext |
| 20099 | cat >>conftest.$ac_ext <<_ACEOF |
| 20100 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20101 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20102 | int |
| 20103 | main () |
| 20104 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20105 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20106 | ; |
| 20107 | return 0; |
| 20108 | } |
| 20109 | _ACEOF |
| 20110 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20111 | if { (ac_try="$ac_compile" |
| 20112 | case "(($ac_try" in |
| 20113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20114 | *) ac_try_echo=$ac_try;; |
| 20115 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20117 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20118 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20119 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20120 | rm -f conftest.er1 |
| 20121 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20123 | (exit $ac_status); } && { |
| 20124 | test -z "$ac_c_werror_flag" || |
| 20125 | test ! -s conftest.err |
| 20126 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20127 | |
| 20128 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20129 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20130 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20131 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20132 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +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 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +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.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 20141 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20142 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20143 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20144 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20145 | |
| 20146 | for ac_func in setpgrp |
| 20147 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20148 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20149 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20150 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20151 | 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] | 20152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20153 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20154 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20155 | /* confdefs.h. */ |
| 20156 | _ACEOF |
| 20157 | cat confdefs.h >>conftest.$ac_ext |
| 20158 | cat >>conftest.$ac_ext <<_ACEOF |
| 20159 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20160 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20161 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20162 | #define $ac_func innocuous_$ac_func |
| 20163 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20164 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20165 | which can conflict with char $ac_func (); below. |
| 20166 | 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] | 20167 | <limits.h> exists even on freestanding compilers. */ |
| 20168 | |
| 20169 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20170 | # include <limits.h> |
| 20171 | #else |
| 20172 | # include <assert.h> |
| 20173 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20174 | |
| 20175 | #undef $ac_func |
| 20176 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20177 | /* Override any GCC internal prototype to avoid an error. |
| 20178 | Use char because int might match the return type of a GCC |
| 20179 | builtin and then its argument prototype would still apply. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20180 | #ifdef __cplusplus |
| 20181 | extern "C" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20182 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20183 | char $ac_func (); |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20184 | /* The GNU C library defines this for functions which it implements |
| 20185 | to always fail with ENOSYS. Some functions are actually named |
| 20186 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20187 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20188 | choke me |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20189 | #endif |
| 20190 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20191 | int |
| 20192 | main () |
| 20193 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20194 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20195 | ; |
| 20196 | return 0; |
| 20197 | } |
| 20198 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20199 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20200 | if { (ac_try="$ac_link" |
| 20201 | case "(($ac_try" in |
| 20202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20203 | *) ac_try_echo=$ac_try;; |
| 20204 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20205 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20206 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20207 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20208 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20209 | rm -f conftest.er1 |
| 20210 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20212 | (exit $ac_status); } && { |
| 20213 | test -z "$ac_c_werror_flag" || |
| 20214 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20215 | } && test -s conftest$ac_exeext && |
| 20216 | $as_test_x conftest$ac_exeext; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20217 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20218 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20219 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20220 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20221 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20222 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20223 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20224 | |
| 20225 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20226 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20227 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20228 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20229 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20230 | echo "${ECHO_T}$ac_res" >&6; } |
| 20231 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20232 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20233 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20234 | _ACEOF |
| 20235 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20236 | /* confdefs.h. */ |
| 20237 | _ACEOF |
| 20238 | cat confdefs.h >>conftest.$ac_ext |
| 20239 | cat >>conftest.$ac_ext <<_ACEOF |
| 20240 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20241 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20242 | int |
| 20243 | main () |
| 20244 | { |
| 20245 | setpgrp(0,0); |
| 20246 | ; |
| 20247 | return 0; |
| 20248 | } |
| 20249 | _ACEOF |
| 20250 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20251 | if { (ac_try="$ac_compile" |
| 20252 | case "(($ac_try" in |
| 20253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20254 | *) ac_try_echo=$ac_try;; |
| 20255 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20257 | (eval "$ac_compile") 2>conftest.er1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20258 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20259 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20260 | rm -f conftest.er1 |
| 20261 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20263 | (exit $ac_status); } && { |
| 20264 | test -z "$ac_c_werror_flag" || |
| 20265 | test ! -s conftest.err |
| 20266 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20267 | |
| 20268 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20269 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20270 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 20271 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20272 | |
| 20273 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20274 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20275 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20276 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20277 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 20278 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20279 | |
| 20280 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20281 | |
| 20282 | fi |
| 20283 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 20284 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20285 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20286 | for ac_func in gettimeofday |
| 20287 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20288 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20289 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20290 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20291 | 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] | 20292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20293 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20294 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20295 | /* confdefs.h. */ |
| 20296 | _ACEOF |
| 20297 | cat confdefs.h >>conftest.$ac_ext |
| 20298 | cat >>conftest.$ac_ext <<_ACEOF |
| 20299 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20300 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20301 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20302 | #define $ac_func innocuous_$ac_func |
| 20303 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20304 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20305 | which can conflict with char $ac_func (); below. |
| 20306 | 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] | 20307 | <limits.h> exists even on freestanding compilers. */ |
| 20308 | |
| 20309 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20310 | # include <limits.h> |
| 20311 | #else |
| 20312 | # include <assert.h> |
| 20313 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20314 | |
| 20315 | #undef $ac_func |
| 20316 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20317 | /* Override any GCC internal prototype to avoid an error. |
| 20318 | Use char because int might match the return type of a GCC |
| 20319 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20320 | #ifdef __cplusplus |
| 20321 | extern "C" |
| 20322 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20323 | char $ac_func (); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20324 | /* The GNU C library defines this for functions which it implements |
| 20325 | to always fail with ENOSYS. Some functions are actually named |
| 20326 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20327 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20328 | choke me |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20329 | #endif |
| 20330 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20331 | int |
| 20332 | main () |
| 20333 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20334 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20335 | ; |
| 20336 | return 0; |
| 20337 | } |
| 20338 | _ACEOF |
| 20339 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20340 | if { (ac_try="$ac_link" |
| 20341 | case "(($ac_try" in |
| 20342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20343 | *) ac_try_echo=$ac_try;; |
| 20344 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20345 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20346 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20347 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20348 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20349 | rm -f conftest.er1 |
| 20350 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20352 | (exit $ac_status); } && { |
| 20353 | test -z "$ac_c_werror_flag" || |
| 20354 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20355 | } && test -s conftest$ac_exeext && |
| 20356 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20357 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20358 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20359 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20360 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20361 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20362 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20363 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20364 | |
| 20365 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20366 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20367 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20368 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20369 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20370 | echo "${ECHO_T}$ac_res" >&6; } |
| 20371 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20372 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20373 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20374 | _ACEOF |
| 20375 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20376 | /* confdefs.h. */ |
| 20377 | _ACEOF |
| 20378 | cat confdefs.h >>conftest.$ac_ext |
| 20379 | cat >>conftest.$ac_ext <<_ACEOF |
| 20380 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20381 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20382 | int |
| 20383 | main () |
| 20384 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20385 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20386 | ; |
| 20387 | return 0; |
| 20388 | } |
| 20389 | _ACEOF |
| 20390 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20391 | if { (ac_try="$ac_compile" |
| 20392 | case "(($ac_try" in |
| 20393 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20394 | *) ac_try_echo=$ac_try;; |
| 20395 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20396 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20397 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20398 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20399 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20400 | rm -f conftest.er1 |
| 20401 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20403 | (exit $ac_status); } && { |
| 20404 | test -z "$ac_c_werror_flag" || |
| 20405 | test ! -s conftest.err |
| 20406 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20407 | : |
| 20408 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20409 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20410 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20411 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20412 | |
| 20413 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20414 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20415 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20416 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20417 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20418 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20419 | |
| 20420 | 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] | 20421 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20422 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20423 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20424 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20425 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20426 | { echo "$as_me:$LINENO: checking for major" >&5 |
| 20427 | echo $ECHO_N "checking for major... $ECHO_C" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20428 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20429 | /* confdefs.h. */ |
| 20430 | _ACEOF |
| 20431 | cat confdefs.h >>conftest.$ac_ext |
| 20432 | cat >>conftest.$ac_ext <<_ACEOF |
| 20433 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20434 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 20435 | #if defined(MAJOR_IN_MKDEV) |
| 20436 | #include <sys/mkdev.h> |
| 20437 | #elif defined(MAJOR_IN_SYSMACROS) |
| 20438 | #include <sys/sysmacros.h> |
| 20439 | #else |
| 20440 | #include <sys/types.h> |
| 20441 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20442 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20443 | int |
| 20444 | main () |
| 20445 | { |
| 20446 | |
| 20447 | makedev(major(0),minor(0)); |
| 20448 | |
| 20449 | ; |
| 20450 | return 0; |
| 20451 | } |
| 20452 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 20453 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20454 | if { (ac_try="$ac_link" |
| 20455 | case "(($ac_try" in |
| 20456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20457 | *) ac_try_echo=$ac_try;; |
| 20458 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20460 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20461 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20462 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20463 | rm -f conftest.er1 |
| 20464 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20466 | (exit $ac_status); } && { |
| 20467 | test -z "$ac_c_werror_flag" || |
| 20468 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20469 | } && test -s conftest$ac_exeext && |
| 20470 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20471 | |
| 20472 | |
| 20473 | cat >>confdefs.h <<\_ACEOF |
| 20474 | #define HAVE_DEVICE_MACROS 1 |
| 20475 | _ACEOF |
| 20476 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20477 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 20478 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20479 | |
| 20480 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20481 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20482 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20483 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20484 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20485 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20486 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20487 | |
| 20488 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20489 | |
| 20490 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20491 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20492 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20493 | # 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] | 20494 | # for [no]getaddrinfo in netdb.h. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20495 | { echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 20496 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20497 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20498 | /* confdefs.h. */ |
| 20499 | _ACEOF |
| 20500 | cat confdefs.h >>conftest.$ac_ext |
| 20501 | cat >>conftest.$ac_ext <<_ACEOF |
| 20502 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20503 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 20504 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20505 | #include <sys/socket.h> |
| 20506 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 20507 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20508 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20509 | int |
| 20510 | main () |
| 20511 | { |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20512 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20513 | ; |
| 20514 | return 0; |
| 20515 | } |
| 20516 | _ACEOF |
| 20517 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20518 | if { (ac_try="$ac_link" |
| 20519 | case "(($ac_try" in |
| 20520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20521 | *) ac_try_echo=$ac_try;; |
| 20522 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20524 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20525 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20526 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20527 | rm -f conftest.er1 |
| 20528 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20530 | (exit $ac_status); } && { |
| 20531 | test -z "$ac_c_werror_flag" || |
| 20532 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20533 | } && test -s conftest$ac_exeext && |
| 20534 | $as_test_x conftest$ac_exeext; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 20535 | have_getaddrinfo=yes |
| 20536 | else |
| 20537 | echo "$as_me: failed program was:" >&5 |
| 20538 | sed 's/^/| /' conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20539 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 20540 | have_getaddrinfo=no |
| 20541 | fi |
| 20542 | |
| 20543 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 20544 | conftest$ac_exeext conftest.$ac_ext |
| 20545 | { echo "$as_me:$LINENO: result: $have_getaddrinfo" >&5 |
| 20546 | echo "${ECHO_T}$have_getaddrinfo" >&6; } |
| 20547 | if test $have_getaddrinfo = yes |
| 20548 | then |
| 20549 | { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20550 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 20551 | if test "${ac_cv_buggy_getaddrinfo+set}" = set; then |
| 20552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20553 | else |
| 20554 | if test "$cross_compiling" = yes; then |
| 20555 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20556 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20557 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20558 | /* confdefs.h. */ |
| 20559 | _ACEOF |
| 20560 | cat confdefs.h >>conftest.$ac_ext |
| 20561 | cat >>conftest.$ac_ext <<_ACEOF |
| 20562 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20563 | |
| 20564 | #include <sys/types.h> |
| 20565 | #include <netdb.h> |
| 20566 | #include <string.h> |
| 20567 | #include <sys/socket.h> |
| 20568 | #include <netinet/in.h> |
| 20569 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 20570 | int main() |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20571 | { |
| 20572 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 20573 | struct addrinfo hints, *ai, *aitop; |
| 20574 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 20575 | |
| 20576 | for (passive = 0; passive <= 1; passive++) { |
| 20577 | memset(&hints, 0, sizeof(hints)); |
| 20578 | hints.ai_family = AF_UNSPEC; |
| 20579 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 20580 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 20581 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20582 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 20583 | (void)gai_strerror(gaierr); |
| 20584 | goto bad; |
| 20585 | } |
| 20586 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 20587 | if (ai->ai_addr == NULL || |
| 20588 | ai->ai_addrlen == 0 || |
| 20589 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 20590 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 20591 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 20592 | goto bad; |
| 20593 | } |
| 20594 | switch (ai->ai_family) { |
| 20595 | case AF_INET: |
| 20596 | if (strcmp(strport, "54321") != 0) { |
| 20597 | goto bad; |
| 20598 | } |
| 20599 | if (passive) { |
| 20600 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 20601 | goto bad; |
| 20602 | } |
| 20603 | } else { |
| 20604 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 20605 | goto bad; |
| 20606 | } |
| 20607 | } |
| 20608 | inet4++; |
| 20609 | break; |
| 20610 | case AF_INET6: |
| 20611 | if (strcmp(strport, "54321") != 0) { |
| 20612 | goto bad; |
| 20613 | } |
| 20614 | if (passive) { |
| 20615 | if (strcmp(straddr, "::") != 0) { |
| 20616 | goto bad; |
| 20617 | } |
| 20618 | } else { |
| 20619 | if (strcmp(straddr, "::1") != 0) { |
| 20620 | goto bad; |
| 20621 | } |
| 20622 | } |
| 20623 | inet6++; |
| 20624 | break; |
| 20625 | case AF_UNSPEC: |
| 20626 | goto bad; |
| 20627 | break; |
| 20628 | default: |
| 20629 | /* another family support? */ |
| 20630 | break; |
| 20631 | } |
| 20632 | } |
| 20633 | } |
| 20634 | |
| 20635 | if (!(inet4 == 0 || inet4 == 2)) |
| 20636 | goto bad; |
| 20637 | if (!(inet6 == 0 || inet6 == 2)) |
| 20638 | goto bad; |
| 20639 | |
| 20640 | if (aitop) |
| 20641 | freeaddrinfo(aitop); |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 20642 | return 0; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20643 | |
| 20644 | bad: |
| 20645 | if (aitop) |
| 20646 | freeaddrinfo(aitop); |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 20647 | return 1; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20648 | } |
| 20649 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20650 | _ACEOF |
| 20651 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20652 | if { (ac_try="$ac_link" |
| 20653 | case "(($ac_try" in |
| 20654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20655 | *) ac_try_echo=$ac_try;; |
| 20656 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20658 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20659 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20661 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20662 | { (case "(($ac_try" in |
| 20663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20664 | *) ac_try_echo=$ac_try;; |
| 20665 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20667 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20668 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20670 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 20671 | ac_cv_buggy_getaddrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20672 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20673 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20674 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20675 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20676 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20677 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 20678 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20679 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20680 | 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] | 20681 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20682 | |
| 20683 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 20684 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20685 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20686 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20687 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 20688 | if test $have_getaddrinfo = no -o $ac_cv_buggy_getaddrinfo = yes |
| 20689 | then |
| 20690 | if test $ipv6 = yes |
| 20691 | then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20692 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 20693 | echo ' or you can specify "--disable-ipv6"'. |
| 20694 | exit 1 |
| 20695 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20696 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20697 | |
| 20698 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20699 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20700 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20701 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20702 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20703 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 20704 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20705 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20706 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20707 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20708 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20709 | 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] | 20710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20711 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20712 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20713 | /* confdefs.h. */ |
| 20714 | _ACEOF |
| 20715 | cat confdefs.h >>conftest.$ac_ext |
| 20716 | cat >>conftest.$ac_ext <<_ACEOF |
| 20717 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20718 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20719 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20720 | #define $ac_func innocuous_$ac_func |
| 20721 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20722 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20723 | which can conflict with char $ac_func (); below. |
| 20724 | 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] | 20725 | <limits.h> exists even on freestanding compilers. */ |
| 20726 | |
| 20727 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20728 | # include <limits.h> |
| 20729 | #else |
| 20730 | # include <assert.h> |
| 20731 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20732 | |
| 20733 | #undef $ac_func |
| 20734 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20735 | /* Override any GCC internal prototype to avoid an error. |
| 20736 | Use char because int might match the return type of a GCC |
| 20737 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20738 | #ifdef __cplusplus |
| 20739 | extern "C" |
| 20740 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20741 | char $ac_func (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20742 | /* The GNU C library defines this for functions which it implements |
| 20743 | to always fail with ENOSYS. Some functions are actually named |
| 20744 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20745 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20746 | choke me |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20747 | #endif |
| 20748 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20749 | int |
| 20750 | main () |
| 20751 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20752 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20753 | ; |
| 20754 | return 0; |
| 20755 | } |
| 20756 | _ACEOF |
| 20757 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20758 | if { (ac_try="$ac_link" |
| 20759 | case "(($ac_try" in |
| 20760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20761 | *) ac_try_echo=$ac_try;; |
| 20762 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20764 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20765 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20766 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20767 | rm -f conftest.er1 |
| 20768 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20770 | (exit $ac_status); } && { |
| 20771 | test -z "$ac_c_werror_flag" || |
| 20772 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20773 | } && test -s conftest$ac_exeext && |
| 20774 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20775 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20776 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20777 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20778 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20779 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20780 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20781 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20782 | |
| 20783 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20784 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20785 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20786 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20787 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20788 | echo "${ECHO_T}$ac_res" >&6; } |
| 20789 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20790 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20791 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20792 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20793 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20794 | fi |
| 20795 | done |
| 20796 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20797 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20798 | # checks for structures |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20799 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 20800 | 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] | 20801 | if test "${ac_cv_header_time+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20803 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20804 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20805 | /* confdefs.h. */ |
| 20806 | _ACEOF |
| 20807 | cat confdefs.h >>conftest.$ac_ext |
| 20808 | cat >>conftest.$ac_ext <<_ACEOF |
| 20809 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20810 | #include <sys/types.h> |
| 20811 | #include <sys/time.h> |
| 20812 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20813 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20814 | int |
| 20815 | main () |
| 20816 | { |
| 20817 | if ((struct tm *) 0) |
| 20818 | return 0; |
| 20819 | ; |
| 20820 | return 0; |
| 20821 | } |
| 20822 | _ACEOF |
| 20823 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20824 | if { (ac_try="$ac_compile" |
| 20825 | case "(($ac_try" in |
| 20826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20827 | *) ac_try_echo=$ac_try;; |
| 20828 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20830 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20831 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20832 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20833 | rm -f conftest.er1 |
| 20834 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20836 | (exit $ac_status); } && { |
| 20837 | test -z "$ac_c_werror_flag" || |
| 20838 | test ! -s conftest.err |
| 20839 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20840 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20841 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20842 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20843 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20844 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20845 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20846 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20847 | |
| 20848 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20849 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20850 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 20851 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20852 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20853 | |
| 20854 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20855 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20856 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20857 | |
| 20858 | fi |
| 20859 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20860 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 20861 | 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] | 20862 | if test "${ac_cv_struct_tm+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20863 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20864 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20865 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20866 | /* confdefs.h. */ |
| 20867 | _ACEOF |
| 20868 | cat confdefs.h >>conftest.$ac_ext |
| 20869 | cat >>conftest.$ac_ext <<_ACEOF |
| 20870 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20871 | #include <sys/types.h> |
| 20872 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20873 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20874 | int |
| 20875 | main () |
| 20876 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20877 | struct tm tm; |
| 20878 | int *p = &tm.tm_sec; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20879 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20880 | ; |
| 20881 | return 0; |
| 20882 | } |
| 20883 | _ACEOF |
| 20884 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20885 | if { (ac_try="$ac_compile" |
| 20886 | case "(($ac_try" in |
| 20887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20888 | *) ac_try_echo=$ac_try;; |
| 20889 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20890 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20891 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20892 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20893 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20894 | rm -f conftest.er1 |
| 20895 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20897 | (exit $ac_status); } && { |
| 20898 | test -z "$ac_c_werror_flag" || |
| 20899 | test ! -s conftest.err |
| 20900 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20901 | ac_cv_struct_tm=time.h |
| 20902 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20903 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20904 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20905 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20906 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20907 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20908 | |
| 20909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20910 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20911 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 20912 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20913 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20914 | |
| 20915 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20916 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20917 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20918 | |
| 20919 | fi |
| 20920 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20921 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 20922 | 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] | 20923 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20925 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20926 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20927 | /* confdefs.h. */ |
| 20928 | _ACEOF |
| 20929 | cat confdefs.h >>conftest.$ac_ext |
| 20930 | cat >>conftest.$ac_ext <<_ACEOF |
| 20931 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20932 | #include <sys/types.h> |
| 20933 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20934 | |
| 20935 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20936 | int |
| 20937 | main () |
| 20938 | { |
| 20939 | static struct tm ac_aggr; |
| 20940 | if (ac_aggr.tm_zone) |
| 20941 | return 0; |
| 20942 | ; |
| 20943 | return 0; |
| 20944 | } |
| 20945 | _ACEOF |
| 20946 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20947 | if { (ac_try="$ac_compile" |
| 20948 | case "(($ac_try" in |
| 20949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20950 | *) ac_try_echo=$ac_try;; |
| 20951 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20953 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20954 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20955 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20956 | rm -f conftest.er1 |
| 20957 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20959 | (exit $ac_status); } && { |
| 20960 | test -z "$ac_c_werror_flag" || |
| 20961 | test ! -s conftest.err |
| 20962 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20963 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20964 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20965 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20966 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20967 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20968 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20969 | /* confdefs.h. */ |
| 20970 | _ACEOF |
| 20971 | cat confdefs.h >>conftest.$ac_ext |
| 20972 | cat >>conftest.$ac_ext <<_ACEOF |
| 20973 | /* end confdefs.h. */ |
| 20974 | #include <sys/types.h> |
| 20975 | #include <$ac_cv_struct_tm> |
| 20976 | |
| 20977 | |
| 20978 | int |
| 20979 | main () |
| 20980 | { |
| 20981 | static struct tm ac_aggr; |
| 20982 | if (sizeof ac_aggr.tm_zone) |
| 20983 | return 0; |
| 20984 | ; |
| 20985 | return 0; |
| 20986 | } |
| 20987 | _ACEOF |
| 20988 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20989 | if { (ac_try="$ac_compile" |
| 20990 | case "(($ac_try" in |
| 20991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20992 | *) ac_try_echo=$ac_try;; |
| 20993 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20994 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20995 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20996 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20997 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20998 | rm -f conftest.er1 |
| 20999 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21001 | (exit $ac_status); } && { |
| 21002 | test -z "$ac_c_werror_flag" || |
| 21003 | test ! -s conftest.err |
| 21004 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21005 | ac_cv_member_struct_tm_tm_zone=yes |
| 21006 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21007 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21008 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21009 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21010 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21011 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21012 | |
| 21013 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21014 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21015 | |
| 21016 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21017 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21018 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 21019 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } |
| 21020 | 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] | 21021 | |
| 21022 | cat >>confdefs.h <<_ACEOF |
| 21023 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 21024 | _ACEOF |
| 21025 | |
| 21026 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21027 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 21028 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21029 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 21030 | |
| 21031 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21032 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21033 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21034 | |
| 21035 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21036 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 21037 | 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] | 21038 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21040 | else |
| 21041 | cat >conftest.$ac_ext <<_ACEOF |
| 21042 | /* confdefs.h. */ |
| 21043 | _ACEOF |
| 21044 | cat confdefs.h >>conftest.$ac_ext |
| 21045 | cat >>conftest.$ac_ext <<_ACEOF |
| 21046 | /* end confdefs.h. */ |
| 21047 | #include <time.h> |
| 21048 | |
| 21049 | int |
| 21050 | main () |
| 21051 | { |
| 21052 | #ifndef tzname |
| 21053 | (void) tzname; |
| 21054 | #endif |
| 21055 | |
| 21056 | ; |
| 21057 | return 0; |
| 21058 | } |
| 21059 | _ACEOF |
| 21060 | rm -f conftest.$ac_objext |
| 21061 | if { (ac_try="$ac_compile" |
| 21062 | case "(($ac_try" in |
| 21063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21064 | *) ac_try_echo=$ac_try;; |
| 21065 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21067 | (eval "$ac_compile") 2>conftest.er1 |
| 21068 | ac_status=$? |
| 21069 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21070 | rm -f conftest.er1 |
| 21071 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21073 | (exit $ac_status); } && { |
| 21074 | test -z "$ac_c_werror_flag" || |
| 21075 | test ! -s conftest.err |
| 21076 | } && test -s conftest.$ac_objext; then |
| 21077 | ac_cv_have_decl_tzname=yes |
| 21078 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21079 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21080 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21081 | |
| 21082 | ac_cv_have_decl_tzname=no |
| 21083 | fi |
| 21084 | |
| 21085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21086 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21087 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 21088 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } |
| 21089 | if test $ac_cv_have_decl_tzname = yes; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21090 | |
| 21091 | cat >>confdefs.h <<_ACEOF |
| 21092 | #define HAVE_DECL_TZNAME 1 |
| 21093 | _ACEOF |
| 21094 | |
| 21095 | |
| 21096 | else |
| 21097 | cat >>confdefs.h <<_ACEOF |
| 21098 | #define HAVE_DECL_TZNAME 0 |
| 21099 | _ACEOF |
| 21100 | |
| 21101 | |
| 21102 | fi |
| 21103 | |
| 21104 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21105 | { echo "$as_me:$LINENO: checking for tzname" >&5 |
| 21106 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21107 | if test "${ac_cv_var_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21109 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21110 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21111 | /* confdefs.h. */ |
| 21112 | _ACEOF |
| 21113 | cat confdefs.h >>conftest.$ac_ext |
| 21114 | cat >>conftest.$ac_ext <<_ACEOF |
| 21115 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21116 | #include <time.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21117 | #if !HAVE_DECL_TZNAME |
| 21118 | extern char *tzname[]; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21119 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21120 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21121 | int |
| 21122 | main () |
| 21123 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21124 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21125 | ; |
| 21126 | return 0; |
| 21127 | } |
| 21128 | _ACEOF |
| 21129 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21130 | if { (ac_try="$ac_link" |
| 21131 | case "(($ac_try" in |
| 21132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21133 | *) ac_try_echo=$ac_try;; |
| 21134 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21136 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21137 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21138 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21139 | rm -f conftest.er1 |
| 21140 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21142 | (exit $ac_status); } && { |
| 21143 | test -z "$ac_c_werror_flag" || |
| 21144 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21145 | } && test -s conftest$ac_exeext && |
| 21146 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21147 | ac_cv_var_tzname=yes |
| 21148 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21149 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21150 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21151 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21152 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21153 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21154 | |
| 21155 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21156 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21157 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21158 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 21159 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21160 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21161 | |
| 21162 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21163 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21164 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21165 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21166 | fi |
| 21167 | fi |
| 21168 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21169 | { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 21170 | 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] | 21171 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21173 | else |
| 21174 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21175 | /* confdefs.h. */ |
| 21176 | _ACEOF |
| 21177 | cat confdefs.h >>conftest.$ac_ext |
| 21178 | cat >>conftest.$ac_ext <<_ACEOF |
| 21179 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21180 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21181 | int |
| 21182 | main () |
| 21183 | { |
| 21184 | static struct stat ac_aggr; |
| 21185 | if (ac_aggr.st_rdev) |
| 21186 | return 0; |
| 21187 | ; |
| 21188 | return 0; |
| 21189 | } |
| 21190 | _ACEOF |
| 21191 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21192 | if { (ac_try="$ac_compile" |
| 21193 | case "(($ac_try" in |
| 21194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21195 | *) ac_try_echo=$ac_try;; |
| 21196 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21198 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21199 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21200 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21201 | rm -f conftest.er1 |
| 21202 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21204 | (exit $ac_status); } && { |
| 21205 | test -z "$ac_c_werror_flag" || |
| 21206 | test ! -s conftest.err |
| 21207 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21208 | ac_cv_member_struct_stat_st_rdev=yes |
| 21209 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21210 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21211 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21212 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21213 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21214 | /* confdefs.h. */ |
| 21215 | _ACEOF |
| 21216 | cat confdefs.h >>conftest.$ac_ext |
| 21217 | cat >>conftest.$ac_ext <<_ACEOF |
| 21218 | /* end confdefs.h. */ |
| 21219 | $ac_includes_default |
| 21220 | int |
| 21221 | main () |
| 21222 | { |
| 21223 | static struct stat ac_aggr; |
| 21224 | if (sizeof ac_aggr.st_rdev) |
| 21225 | return 0; |
| 21226 | ; |
| 21227 | return 0; |
| 21228 | } |
| 21229 | _ACEOF |
| 21230 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21231 | if { (ac_try="$ac_compile" |
| 21232 | case "(($ac_try" in |
| 21233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21234 | *) ac_try_echo=$ac_try;; |
| 21235 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21237 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21238 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21239 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21240 | rm -f conftest.er1 |
| 21241 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21243 | (exit $ac_status); } && { |
| 21244 | test -z "$ac_c_werror_flag" || |
| 21245 | test ! -s conftest.err |
| 21246 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21247 | ac_cv_member_struct_stat_st_rdev=yes |
| 21248 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21249 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21250 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21251 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21252 | ac_cv_member_struct_stat_st_rdev=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21253 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21254 | |
| 21255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21256 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21257 | |
| 21258 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21259 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21260 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 21261 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; } |
| 21262 | 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] | 21263 | |
| 21264 | cat >>confdefs.h <<_ACEOF |
| 21265 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 21266 | _ACEOF |
| 21267 | |
| 21268 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21269 | fi |
| 21270 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21271 | { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 21272 | 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] | 21273 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21274 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21275 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21276 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21277 | /* confdefs.h. */ |
| 21278 | _ACEOF |
| 21279 | cat confdefs.h >>conftest.$ac_ext |
| 21280 | cat >>conftest.$ac_ext <<_ACEOF |
| 21281 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21282 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21283 | int |
| 21284 | main () |
| 21285 | { |
| 21286 | static struct stat ac_aggr; |
| 21287 | if (ac_aggr.st_blksize) |
| 21288 | return 0; |
| 21289 | ; |
| 21290 | return 0; |
| 21291 | } |
| 21292 | _ACEOF |
| 21293 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21294 | if { (ac_try="$ac_compile" |
| 21295 | case "(($ac_try" in |
| 21296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21297 | *) ac_try_echo=$ac_try;; |
| 21298 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21300 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21301 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21302 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21303 | rm -f conftest.er1 |
| 21304 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21306 | (exit $ac_status); } && { |
| 21307 | test -z "$ac_c_werror_flag" || |
| 21308 | test ! -s conftest.err |
| 21309 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21310 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21311 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21312 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21313 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21314 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21315 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21316 | /* confdefs.h. */ |
| 21317 | _ACEOF |
| 21318 | cat confdefs.h >>conftest.$ac_ext |
| 21319 | cat >>conftest.$ac_ext <<_ACEOF |
| 21320 | /* end confdefs.h. */ |
| 21321 | $ac_includes_default |
| 21322 | int |
| 21323 | main () |
| 21324 | { |
| 21325 | static struct stat ac_aggr; |
| 21326 | if (sizeof ac_aggr.st_blksize) |
| 21327 | return 0; |
| 21328 | ; |
| 21329 | return 0; |
| 21330 | } |
| 21331 | _ACEOF |
| 21332 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21333 | if { (ac_try="$ac_compile" |
| 21334 | case "(($ac_try" in |
| 21335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21336 | *) ac_try_echo=$ac_try;; |
| 21337 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21339 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21340 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21341 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21342 | rm -f conftest.er1 |
| 21343 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21345 | (exit $ac_status); } && { |
| 21346 | test -z "$ac_c_werror_flag" || |
| 21347 | test ! -s conftest.err |
| 21348 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21349 | ac_cv_member_struct_stat_st_blksize=yes |
| 21350 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21351 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21352 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21353 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21354 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21355 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21356 | |
| 21357 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21358 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21359 | |
| 21360 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21361 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21362 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 21363 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; } |
| 21364 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21365 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21366 | cat >>confdefs.h <<_ACEOF |
| 21367 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 21368 | _ACEOF |
| 21369 | |
| 21370 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21371 | fi |
| 21372 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21373 | { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5 |
| 21374 | 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] | 21375 | if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21377 | else |
| 21378 | cat >conftest.$ac_ext <<_ACEOF |
| 21379 | /* confdefs.h. */ |
| 21380 | _ACEOF |
| 21381 | cat confdefs.h >>conftest.$ac_ext |
| 21382 | cat >>conftest.$ac_ext <<_ACEOF |
| 21383 | /* end confdefs.h. */ |
| 21384 | $ac_includes_default |
| 21385 | int |
| 21386 | main () |
| 21387 | { |
| 21388 | static struct stat ac_aggr; |
| 21389 | if (ac_aggr.st_flags) |
| 21390 | return 0; |
| 21391 | ; |
| 21392 | return 0; |
| 21393 | } |
| 21394 | _ACEOF |
| 21395 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21396 | if { (ac_try="$ac_compile" |
| 21397 | case "(($ac_try" in |
| 21398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21399 | *) ac_try_echo=$ac_try;; |
| 21400 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21402 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21403 | ac_status=$? |
| 21404 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21405 | rm -f conftest.er1 |
| 21406 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21408 | (exit $ac_status); } && { |
| 21409 | test -z "$ac_c_werror_flag" || |
| 21410 | test ! -s conftest.err |
| 21411 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21412 | ac_cv_member_struct_stat_st_flags=yes |
| 21413 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21414 | echo "$as_me: failed program was:" >&5 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21415 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21416 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21417 | cat >conftest.$ac_ext <<_ACEOF |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21418 | /* confdefs.h. */ |
| 21419 | _ACEOF |
| 21420 | cat confdefs.h >>conftest.$ac_ext |
| 21421 | cat >>conftest.$ac_ext <<_ACEOF |
| 21422 | /* end confdefs.h. */ |
| 21423 | $ac_includes_default |
| 21424 | int |
| 21425 | main () |
| 21426 | { |
| 21427 | static struct stat ac_aggr; |
| 21428 | if (sizeof ac_aggr.st_flags) |
| 21429 | return 0; |
| 21430 | ; |
| 21431 | return 0; |
| 21432 | } |
| 21433 | _ACEOF |
| 21434 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21435 | if { (ac_try="$ac_compile" |
| 21436 | case "(($ac_try" in |
| 21437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21438 | *) ac_try_echo=$ac_try;; |
| 21439 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21441 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21442 | ac_status=$? |
| 21443 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21444 | rm -f conftest.er1 |
| 21445 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21447 | (exit $ac_status); } && { |
| 21448 | test -z "$ac_c_werror_flag" || |
| 21449 | test ! -s conftest.err |
| 21450 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21451 | ac_cv_member_struct_stat_st_flags=yes |
| 21452 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21453 | echo "$as_me: failed program was:" >&5 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21454 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21455 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21456 | ac_cv_member_struct_stat_st_flags=no |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21457 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21458 | |
| 21459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21460 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21461 | |
| 21462 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21463 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21464 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5 |
| 21465 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; } |
| 21466 | if test $ac_cv_member_struct_stat_st_flags = yes; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21467 | |
| 21468 | cat >>confdefs.h <<_ACEOF |
| 21469 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 21470 | _ACEOF |
| 21471 | |
| 21472 | |
| 21473 | fi |
| 21474 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21475 | { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5 |
| 21476 | 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] | 21477 | if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21479 | else |
| 21480 | cat >conftest.$ac_ext <<_ACEOF |
| 21481 | /* confdefs.h. */ |
| 21482 | _ACEOF |
| 21483 | cat confdefs.h >>conftest.$ac_ext |
| 21484 | cat >>conftest.$ac_ext <<_ACEOF |
| 21485 | /* end confdefs.h. */ |
| 21486 | $ac_includes_default |
| 21487 | int |
| 21488 | main () |
| 21489 | { |
| 21490 | static struct stat ac_aggr; |
| 21491 | if (ac_aggr.st_gen) |
| 21492 | return 0; |
| 21493 | ; |
| 21494 | return 0; |
| 21495 | } |
| 21496 | _ACEOF |
| 21497 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21498 | if { (ac_try="$ac_compile" |
| 21499 | case "(($ac_try" in |
| 21500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21501 | *) ac_try_echo=$ac_try;; |
| 21502 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21504 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21505 | ac_status=$? |
| 21506 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21507 | rm -f conftest.er1 |
| 21508 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21510 | (exit $ac_status); } && { |
| 21511 | test -z "$ac_c_werror_flag" || |
| 21512 | test ! -s conftest.err |
| 21513 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21514 | ac_cv_member_struct_stat_st_gen=yes |
| 21515 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21516 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21517 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21518 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21519 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21520 | /* confdefs.h. */ |
| 21521 | _ACEOF |
| 21522 | cat confdefs.h >>conftest.$ac_ext |
| 21523 | cat >>conftest.$ac_ext <<_ACEOF |
| 21524 | /* end confdefs.h. */ |
| 21525 | $ac_includes_default |
| 21526 | int |
| 21527 | main () |
| 21528 | { |
| 21529 | static struct stat ac_aggr; |
| 21530 | if (sizeof ac_aggr.st_gen) |
| 21531 | return 0; |
| 21532 | ; |
| 21533 | return 0; |
| 21534 | } |
| 21535 | _ACEOF |
| 21536 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21537 | if { (ac_try="$ac_compile" |
| 21538 | case "(($ac_try" in |
| 21539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21540 | *) ac_try_echo=$ac_try;; |
| 21541 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21543 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21544 | ac_status=$? |
| 21545 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21546 | rm -f conftest.er1 |
| 21547 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21549 | (exit $ac_status); } && { |
| 21550 | test -z "$ac_c_werror_flag" || |
| 21551 | test ! -s conftest.err |
| 21552 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21553 | ac_cv_member_struct_stat_st_gen=yes |
| 21554 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21555 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21556 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21557 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21558 | ac_cv_member_struct_stat_st_gen=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21559 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21560 | |
| 21561 | 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] | 21562 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21563 | |
| 21564 | 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] | 21565 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21566 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5 |
| 21567 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; } |
| 21568 | 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] | 21569 | |
| 21570 | cat >>confdefs.h <<_ACEOF |
| 21571 | #define HAVE_STRUCT_STAT_ST_GEN 1 |
| 21572 | _ACEOF |
| 21573 | |
| 21574 | |
| 21575 | fi |
| 21576 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21577 | { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5 |
| 21578 | 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] | 21579 | if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21581 | else |
| 21582 | cat >conftest.$ac_ext <<_ACEOF |
| 21583 | /* confdefs.h. */ |
| 21584 | _ACEOF |
| 21585 | cat confdefs.h >>conftest.$ac_ext |
| 21586 | cat >>conftest.$ac_ext <<_ACEOF |
| 21587 | /* end confdefs.h. */ |
| 21588 | $ac_includes_default |
| 21589 | int |
| 21590 | main () |
| 21591 | { |
| 21592 | static struct stat ac_aggr; |
| 21593 | if (ac_aggr.st_birthtime) |
| 21594 | return 0; |
| 21595 | ; |
| 21596 | return 0; |
| 21597 | } |
| 21598 | _ACEOF |
| 21599 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21600 | if { (ac_try="$ac_compile" |
| 21601 | case "(($ac_try" in |
| 21602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21603 | *) ac_try_echo=$ac_try;; |
| 21604 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21605 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21606 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21607 | ac_status=$? |
| 21608 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21609 | rm -f conftest.er1 |
| 21610 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21612 | (exit $ac_status); } && { |
| 21613 | test -z "$ac_c_werror_flag" || |
| 21614 | test ! -s conftest.err |
| 21615 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21616 | ac_cv_member_struct_stat_st_birthtime=yes |
| 21617 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21618 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21619 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21620 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21621 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21622 | /* confdefs.h. */ |
| 21623 | _ACEOF |
| 21624 | cat confdefs.h >>conftest.$ac_ext |
| 21625 | cat >>conftest.$ac_ext <<_ACEOF |
| 21626 | /* end confdefs.h. */ |
| 21627 | $ac_includes_default |
| 21628 | int |
| 21629 | main () |
| 21630 | { |
| 21631 | static struct stat ac_aggr; |
| 21632 | if (sizeof ac_aggr.st_birthtime) |
| 21633 | return 0; |
| 21634 | ; |
| 21635 | return 0; |
| 21636 | } |
| 21637 | _ACEOF |
| 21638 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21639 | if { (ac_try="$ac_compile" |
| 21640 | case "(($ac_try" in |
| 21641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21642 | *) ac_try_echo=$ac_try;; |
| 21643 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21645 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21646 | ac_status=$? |
| 21647 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21648 | rm -f conftest.er1 |
| 21649 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21651 | (exit $ac_status); } && { |
| 21652 | test -z "$ac_c_werror_flag" || |
| 21653 | test ! -s conftest.err |
| 21654 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21655 | ac_cv_member_struct_stat_st_birthtime=yes |
| 21656 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21657 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21658 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21659 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21660 | ac_cv_member_struct_stat_st_birthtime=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21661 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21662 | |
| 21663 | 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] | 21664 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21665 | |
| 21666 | 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] | 21667 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21668 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5 |
| 21669 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; } |
| 21670 | 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] | 21671 | |
| 21672 | cat >>confdefs.h <<_ACEOF |
| 21673 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
| 21674 | _ACEOF |
| 21675 | |
| 21676 | |
| 21677 | fi |
| 21678 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21679 | { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 21680 | 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] | 21681 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21683 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21684 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21685 | /* confdefs.h. */ |
| 21686 | _ACEOF |
| 21687 | cat confdefs.h >>conftest.$ac_ext |
| 21688 | cat >>conftest.$ac_ext <<_ACEOF |
| 21689 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21690 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21691 | int |
| 21692 | main () |
| 21693 | { |
| 21694 | static struct stat ac_aggr; |
| 21695 | if (ac_aggr.st_blocks) |
| 21696 | return 0; |
| 21697 | ; |
| 21698 | return 0; |
| 21699 | } |
| 21700 | _ACEOF |
| 21701 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21702 | if { (ac_try="$ac_compile" |
| 21703 | case "(($ac_try" in |
| 21704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21705 | *) ac_try_echo=$ac_try;; |
| 21706 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21708 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21709 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21710 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21711 | rm -f conftest.er1 |
| 21712 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21714 | (exit $ac_status); } && { |
| 21715 | test -z "$ac_c_werror_flag" || |
| 21716 | test ! -s conftest.err |
| 21717 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21718 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21719 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21720 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21721 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21722 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21723 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21724 | /* confdefs.h. */ |
| 21725 | _ACEOF |
| 21726 | cat confdefs.h >>conftest.$ac_ext |
| 21727 | cat >>conftest.$ac_ext <<_ACEOF |
| 21728 | /* end confdefs.h. */ |
| 21729 | $ac_includes_default |
| 21730 | int |
| 21731 | main () |
| 21732 | { |
| 21733 | static struct stat ac_aggr; |
| 21734 | if (sizeof ac_aggr.st_blocks) |
| 21735 | return 0; |
| 21736 | ; |
| 21737 | return 0; |
| 21738 | } |
| 21739 | _ACEOF |
| 21740 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21741 | if { (ac_try="$ac_compile" |
| 21742 | case "(($ac_try" in |
| 21743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21744 | *) ac_try_echo=$ac_try;; |
| 21745 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21746 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21747 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21748 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21749 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21750 | rm -f conftest.er1 |
| 21751 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21753 | (exit $ac_status); } && { |
| 21754 | test -z "$ac_c_werror_flag" || |
| 21755 | test ! -s conftest.err |
| 21756 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21757 | ac_cv_member_struct_stat_st_blocks=yes |
| 21758 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21759 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21760 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21761 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21762 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21763 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21764 | |
| 21765 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21766 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21767 | |
| 21768 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21769 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21770 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 21771 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; } |
| 21772 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21773 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21774 | cat >>confdefs.h <<_ACEOF |
| 21775 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 21776 | _ACEOF |
| 21777 | |
| 21778 | |
| 21779 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21780 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21781 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21782 | |
| 21783 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21784 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21785 | *" fileblocks.$ac_objext "* ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21786 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
| 21787 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21788 | esac |
| 21789 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21790 | fi |
| 21791 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21792 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21793 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21794 | { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 21795 | 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] | 21796 | if test "${ac_cv_header_time_altzone+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21798 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21799 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21800 | /* confdefs.h. */ |
| 21801 | _ACEOF |
| 21802 | cat confdefs.h >>conftest.$ac_ext |
| 21803 | cat >>conftest.$ac_ext <<_ACEOF |
| 21804 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21805 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21806 | int |
| 21807 | main () |
| 21808 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21809 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21810 | ; |
| 21811 | return 0; |
| 21812 | } |
| 21813 | _ACEOF |
| 21814 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21815 | if { (ac_try="$ac_compile" |
| 21816 | case "(($ac_try" in |
| 21817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21818 | *) ac_try_echo=$ac_try;; |
| 21819 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21820 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21821 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21822 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21823 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21824 | rm -f conftest.er1 |
| 21825 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21827 | (exit $ac_status); } && { |
| 21828 | test -z "$ac_c_werror_flag" || |
| 21829 | test ! -s conftest.err |
| 21830 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21831 | ac_cv_header_time_altzone=yes |
| 21832 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21833 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21834 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21835 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21836 | ac_cv_header_time_altzone=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21837 | fi |
| 21838 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21839 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21840 | fi |
| 21841 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21842 | { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 21843 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21844 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21845 | |
| 21846 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21847 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21848 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21849 | |
| 21850 | fi |
| 21851 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 21852 | was_it_defined=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21853 | { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 21854 | 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] | 21855 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21856 | /* confdefs.h. */ |
| 21857 | _ACEOF |
| 21858 | cat confdefs.h >>conftest.$ac_ext |
| 21859 | cat >>conftest.$ac_ext <<_ACEOF |
| 21860 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21861 | |
| 21862 | #include <sys/types.h> |
| 21863 | #include <sys/select.h> |
| 21864 | #include <sys/time.h> |
| 21865 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21866 | int |
| 21867 | main () |
| 21868 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21869 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21870 | ; |
| 21871 | return 0; |
| 21872 | } |
| 21873 | _ACEOF |
| 21874 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21875 | if { (ac_try="$ac_compile" |
| 21876 | case "(($ac_try" in |
| 21877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21878 | *) ac_try_echo=$ac_try;; |
| 21879 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21881 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21882 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21883 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21884 | rm -f conftest.er1 |
| 21885 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21887 | (exit $ac_status); } && { |
| 21888 | test -z "$ac_c_werror_flag" || |
| 21889 | test ! -s conftest.err |
| 21890 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21891 | |
| 21892 | |
| 21893 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21894 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21895 | _ACEOF |
| 21896 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 21897 | was_it_defined=yes |
| 21898 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 21899 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21900 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21901 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21902 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 21903 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21904 | fi |
| 21905 | |
| 21906 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21907 | { echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 21908 | echo "${ECHO_T}$was_it_defined" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21909 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21910 | { echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 21911 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21912 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21914 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21915 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21916 | /* confdefs.h. */ |
| 21917 | _ACEOF |
| 21918 | cat confdefs.h >>conftest.$ac_ext |
| 21919 | cat >>conftest.$ac_ext <<_ACEOF |
| 21920 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21921 | |
| 21922 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21923 | int |
| 21924 | main () |
| 21925 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21926 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21927 | ; |
| 21928 | return 0; |
| 21929 | } |
| 21930 | _ACEOF |
| 21931 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21932 | if { (ac_try="$ac_compile" |
| 21933 | case "(($ac_try" in |
| 21934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21935 | *) ac_try_echo=$ac_try;; |
| 21936 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21937 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21938 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21939 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21940 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21941 | rm -f conftest.er1 |
| 21942 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21944 | (exit $ac_status); } && { |
| 21945 | test -z "$ac_c_werror_flag" || |
| 21946 | test ! -s conftest.err |
| 21947 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21948 | ac_cv_struct_addrinfo=yes |
| 21949 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21950 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21951 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21952 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21953 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21954 | fi |
| 21955 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21956 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21957 | fi |
| 21958 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21959 | { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 21960 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21961 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21962 | |
| 21963 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21964 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21965 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21966 | |
| 21967 | fi |
| 21968 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21969 | { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 21970 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21971 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21973 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21974 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21975 | /* confdefs.h. */ |
| 21976 | _ACEOF |
| 21977 | cat confdefs.h >>conftest.$ac_ext |
| 21978 | cat >>conftest.$ac_ext <<_ACEOF |
| 21979 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21980 | |
| 21981 | # include <sys/types.h> |
| 21982 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21983 | int |
| 21984 | main () |
| 21985 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21986 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21987 | ; |
| 21988 | return 0; |
| 21989 | } |
| 21990 | _ACEOF |
| 21991 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21992 | if { (ac_try="$ac_compile" |
| 21993 | case "(($ac_try" in |
| 21994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21995 | *) ac_try_echo=$ac_try;; |
| 21996 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21998 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21999 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22000 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22001 | rm -f conftest.er1 |
| 22002 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22004 | (exit $ac_status); } && { |
| 22005 | test -z "$ac_c_werror_flag" || |
| 22006 | test ! -s conftest.err |
| 22007 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22008 | ac_cv_struct_sockaddr_storage=yes |
| 22009 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22010 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22011 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22012 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22013 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22014 | fi |
| 22015 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22016 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22017 | fi |
| 22018 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22019 | { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 22020 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22021 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22022 | |
| 22023 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22024 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22025 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22026 | |
| 22027 | fi |
| 22028 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22029 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22030 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22031 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22032 | { echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 22033 | 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] | 22034 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22035 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22036 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22037 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22038 | /* confdefs.h. */ |
| 22039 | _ACEOF |
| 22040 | cat confdefs.h >>conftest.$ac_ext |
| 22041 | cat >>conftest.$ac_ext <<_ACEOF |
| 22042 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22043 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22044 | int |
| 22045 | main () |
| 22046 | { |
| 22047 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 22048 | test_array [0] = 0 |
| 22049 | |
| 22050 | ; |
| 22051 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22052 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22053 | _ACEOF |
| 22054 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22055 | if { (ac_try="$ac_compile" |
| 22056 | case "(($ac_try" in |
| 22057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22058 | *) ac_try_echo=$ac_try;; |
| 22059 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22061 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22062 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22063 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22064 | rm -f conftest.er1 |
| 22065 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22067 | (exit $ac_status); } && { |
| 22068 | test -z "$ac_c_werror_flag" || |
| 22069 | test ! -s conftest.err |
| 22070 | } && test -s conftest.$ac_objext; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22071 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22072 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22073 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22074 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22075 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22076 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22077 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22078 | |
| 22079 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22080 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22081 | { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 22082 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22083 | 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] | 22084 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22085 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22086 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22087 | |
| 22088 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22089 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22090 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 22091 | 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] | 22092 | if test "${ac_cv_c_const+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22094 | else |
| 22095 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22096 | /* confdefs.h. */ |
| 22097 | _ACEOF |
| 22098 | cat confdefs.h >>conftest.$ac_ext |
| 22099 | cat >>conftest.$ac_ext <<_ACEOF |
| 22100 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22101 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22102 | int |
| 22103 | main () |
| 22104 | { |
| 22105 | /* FIXME: Include the comments suggested by Paul. */ |
| 22106 | #ifndef __cplusplus |
| 22107 | /* Ultrix mips cc rejects this. */ |
| 22108 | typedef int charset[2]; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22109 | const charset cs; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22110 | /* SunOS 4.1.1 cc rejects this. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22111 | char const *const *pcpcc; |
| 22112 | char **ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22113 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 22114 | struct point {int x, y;}; |
| 22115 | static struct point const zero = {0,0}; |
| 22116 | /* AIX XL C 1.02.0.0 rejects this. |
| 22117 | It does not let you subtract one const X* pointer from another in |
| 22118 | an arm of an if-expression whose if-part is not a constant |
| 22119 | expression */ |
| 22120 | const char *g = "string"; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22121 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22122 | /* HPUX 7.0 cc rejects these. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22123 | ++pcpcc; |
| 22124 | ppc = (char**) pcpcc; |
| 22125 | pcpcc = (char const *const *) ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22126 | { /* SCO 3.2v4 cc rejects this. */ |
| 22127 | char *t; |
| 22128 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22129 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22130 | *t++ = 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22131 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22132 | } |
| 22133 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 22134 | int x[] = {25, 17}; |
| 22135 | const int *foo = &x[0]; |
| 22136 | ++foo; |
| 22137 | } |
| 22138 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 22139 | typedef const int *iptr; |
| 22140 | iptr p = 0; |
| 22141 | ++p; |
| 22142 | } |
| 22143 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 22144 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 22145 | struct s { int j; const int *ap[3]; }; |
| 22146 | struct s *b; b->j = 5; |
| 22147 | } |
| 22148 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 22149 | const int foo = 10; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22150 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22151 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22152 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22153 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22154 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22155 | ; |
| 22156 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22157 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22158 | _ACEOF |
| 22159 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22160 | if { (ac_try="$ac_compile" |
| 22161 | case "(($ac_try" in |
| 22162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22163 | *) ac_try_echo=$ac_try;; |
| 22164 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22166 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22167 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22168 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22169 | rm -f conftest.er1 |
| 22170 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22172 | (exit $ac_status); } && { |
| 22173 | test -z "$ac_c_werror_flag" || |
| 22174 | test ! -s conftest.err |
| 22175 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22176 | ac_cv_c_const=yes |
| 22177 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22178 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22179 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22180 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22181 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22182 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22183 | |
| 22184 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22185 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22186 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 22187 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22188 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22189 | |
| 22190 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22191 | #define const |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22192 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22193 | |
| 22194 | fi |
| 22195 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22196 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22197 | works=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22198 | { echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 22199 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22200 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22201 | /* confdefs.h. */ |
| 22202 | _ACEOF |
| 22203 | cat confdefs.h >>conftest.$ac_ext |
| 22204 | cat >>conftest.$ac_ext <<_ACEOF |
| 22205 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22206 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22207 | int |
| 22208 | main () |
| 22209 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22210 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22211 | ; |
| 22212 | return 0; |
| 22213 | } |
| 22214 | _ACEOF |
| 22215 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22216 | if { (ac_try="$ac_compile" |
| 22217 | case "(($ac_try" in |
| 22218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22219 | *) ac_try_echo=$ac_try;; |
| 22220 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22222 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22223 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22224 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22225 | rm -f conftest.er1 |
| 22226 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22228 | (exit $ac_status); } && { |
| 22229 | test -z "$ac_c_werror_flag" || |
| 22230 | test ! -s conftest.err |
| 22231 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22232 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22233 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22234 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22235 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22236 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22237 | |
| 22238 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22239 | #define volatile |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22240 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22241 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22242 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22243 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22244 | |
| 22245 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22246 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 22247 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22248 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22249 | works=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22250 | { echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 22251 | 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] | 22252 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22253 | /* confdefs.h. */ |
| 22254 | _ACEOF |
| 22255 | cat confdefs.h >>conftest.$ac_ext |
| 22256 | cat >>conftest.$ac_ext <<_ACEOF |
| 22257 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 22258 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22259 | int |
| 22260 | main () |
| 22261 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22262 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22263 | ; |
| 22264 | return 0; |
| 22265 | } |
| 22266 | _ACEOF |
| 22267 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22268 | if { (ac_try="$ac_compile" |
| 22269 | case "(($ac_try" in |
| 22270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22271 | *) ac_try_echo=$ac_try;; |
| 22272 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22274 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22275 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22276 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22277 | rm -f conftest.er1 |
| 22278 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22280 | (exit $ac_status); } && { |
| 22281 | test -z "$ac_c_werror_flag" || |
| 22282 | test ! -s conftest.err |
| 22283 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22284 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 22285 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22286 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22287 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22288 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22289 | |
| 22290 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22291 | #define signed |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22292 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22293 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22294 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22295 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22296 | |
| 22297 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22298 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 22299 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22300 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22301 | have_prototypes=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22302 | { echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 22303 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22304 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22305 | /* confdefs.h. */ |
| 22306 | _ACEOF |
| 22307 | cat confdefs.h >>conftest.$ac_ext |
| 22308 | cat >>conftest.$ac_ext <<_ACEOF |
| 22309 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22310 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22311 | int |
| 22312 | main () |
| 22313 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22314 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22315 | ; |
| 22316 | return 0; |
| 22317 | } |
| 22318 | _ACEOF |
| 22319 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22320 | if { (ac_try="$ac_compile" |
| 22321 | case "(($ac_try" in |
| 22322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22323 | *) ac_try_echo=$ac_try;; |
| 22324 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22326 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22327 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22328 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22329 | rm -f conftest.er1 |
| 22330 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22332 | (exit $ac_status); } && { |
| 22333 | test -z "$ac_c_werror_flag" || |
| 22334 | test ! -s conftest.err |
| 22335 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22336 | |
| 22337 | |
| 22338 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22339 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22340 | _ACEOF |
| 22341 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22342 | have_prototypes=yes |
| 22343 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 22344 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22345 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22346 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22347 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22348 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22349 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22350 | |
| 22351 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22352 | { echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 22353 | echo "${ECHO_T}$have_prototypes" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22354 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22355 | works=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22356 | { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 22357 | 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] | 22358 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22359 | /* confdefs.h. */ |
| 22360 | _ACEOF |
| 22361 | cat confdefs.h >>conftest.$ac_ext |
| 22362 | cat >>conftest.$ac_ext <<_ACEOF |
| 22363 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22364 | |
| 22365 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 22366 | int foo(int x, ...) { |
| 22367 | va_list va; |
| 22368 | va_start(va, x); |
| 22369 | va_arg(va, int); |
| 22370 | va_arg(va, char *); |
| 22371 | va_arg(va, double); |
| 22372 | return 0; |
| 22373 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22374 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22375 | int |
| 22376 | main () |
| 22377 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 22378 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22379 | ; |
| 22380 | return 0; |
| 22381 | } |
| 22382 | _ACEOF |
| 22383 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22384 | if { (ac_try="$ac_compile" |
| 22385 | case "(($ac_try" in |
| 22386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22387 | *) ac_try_echo=$ac_try;; |
| 22388 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22390 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22391 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22392 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22393 | rm -f conftest.er1 |
| 22394 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22396 | (exit $ac_status); } && { |
| 22397 | test -z "$ac_c_werror_flag" || |
| 22398 | test ! -s conftest.err |
| 22399 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22400 | |
| 22401 | |
| 22402 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22403 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22404 | _ACEOF |
| 22405 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22406 | works=yes |
| 22407 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 22408 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22409 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22410 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22411 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22412 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22413 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22414 | |
| 22415 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22416 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 22417 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22418 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22419 | # check for socketpair |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22420 | { echo "$as_me:$LINENO: checking for socketpair" >&5 |
| 22421 | echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22422 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22423 | /* confdefs.h. */ |
| 22424 | _ACEOF |
| 22425 | cat confdefs.h >>conftest.$ac_ext |
| 22426 | cat >>conftest.$ac_ext <<_ACEOF |
| 22427 | /* end confdefs.h. */ |
| 22428 | |
| 22429 | #include <sys/types.h> |
| 22430 | #include <sys/socket.h> |
| 22431 | |
| 22432 | int |
| 22433 | main () |
| 22434 | { |
| 22435 | void *x=socketpair |
| 22436 | ; |
| 22437 | return 0; |
| 22438 | } |
| 22439 | _ACEOF |
| 22440 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22441 | if { (ac_try="$ac_compile" |
| 22442 | case "(($ac_try" in |
| 22443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22444 | *) ac_try_echo=$ac_try;; |
| 22445 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22447 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22448 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22449 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22450 | rm -f conftest.er1 |
| 22451 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22453 | (exit $ac_status); } && { |
| 22454 | test -z "$ac_c_werror_flag" || |
| 22455 | test ! -s conftest.err |
| 22456 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22457 | |
| 22458 | cat >>confdefs.h <<\_ACEOF |
| 22459 | #define HAVE_SOCKETPAIR 1 |
| 22460 | _ACEOF |
| 22461 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22462 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22463 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22464 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22465 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22466 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22467 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22468 | { echo "$as_me:$LINENO: result: no" >&5 |
| 22469 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22470 | |
| 22471 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22472 | |
| 22473 | 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] | 22474 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22475 | # check if sockaddr has sa_len member |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22476 | { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 22477 | 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] | 22478 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22479 | /* confdefs.h. */ |
| 22480 | _ACEOF |
| 22481 | cat confdefs.h >>conftest.$ac_ext |
| 22482 | cat >>conftest.$ac_ext <<_ACEOF |
| 22483 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22484 | #include <sys/types.h> |
| 22485 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22486 | int |
| 22487 | main () |
| 22488 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22489 | struct sockaddr x; |
| 22490 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22491 | ; |
| 22492 | return 0; |
| 22493 | } |
| 22494 | _ACEOF |
| 22495 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22496 | if { (ac_try="$ac_compile" |
| 22497 | case "(($ac_try" in |
| 22498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22499 | *) ac_try_echo=$ac_try;; |
| 22500 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22502 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22503 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22504 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22505 | rm -f conftest.er1 |
| 22506 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22508 | (exit $ac_status); } && { |
| 22509 | test -z "$ac_c_werror_flag" || |
| 22510 | test ! -s conftest.err |
| 22511 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22512 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22513 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22514 | |
| 22515 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22516 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22517 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22518 | |
| 22519 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22520 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22521 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22522 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22523 | { echo "$as_me:$LINENO: result: no" >&5 |
| 22524 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22525 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22526 | |
| 22527 | 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] | 22528 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22529 | va_list_is_array=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22530 | { echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 22531 | 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] | 22532 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22533 | /* confdefs.h. */ |
| 22534 | _ACEOF |
| 22535 | cat confdefs.h >>conftest.$ac_ext |
| 22536 | cat >>conftest.$ac_ext <<_ACEOF |
| 22537 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22538 | |
| 22539 | #ifdef HAVE_STDARG_PROTOTYPES |
| 22540 | #include <stdarg.h> |
| 22541 | #else |
| 22542 | #include <varargs.h> |
| 22543 | #endif |
| 22544 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22545 | int |
| 22546 | main () |
| 22547 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22548 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22549 | ; |
| 22550 | return 0; |
| 22551 | } |
| 22552 | _ACEOF |
| 22553 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22554 | if { (ac_try="$ac_compile" |
| 22555 | case "(($ac_try" in |
| 22556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22557 | *) ac_try_echo=$ac_try;; |
| 22558 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22560 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22561 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22562 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22563 | rm -f conftest.er1 |
| 22564 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22566 | (exit $ac_status); } && { |
| 22567 | test -z "$ac_c_werror_flag" || |
| 22568 | test ! -s conftest.err |
| 22569 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22570 | : |
| 22571 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22572 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22573 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22574 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22575 | |
| 22576 | |
| 22577 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22578 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22579 | _ACEOF |
| 22580 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22581 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22582 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22583 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22584 | |
| 22585 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22586 | { echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 22587 | echo "${ECHO_T}$va_list_is_array" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22588 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22589 | # 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] | 22590 | |
| 22591 | |
| 22592 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22593 | { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 22594 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22595 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22597 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22598 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22599 | /* confdefs.h. */ |
| 22600 | _ACEOF |
| 22601 | cat confdefs.h >>conftest.$ac_ext |
| 22602 | cat >>conftest.$ac_ext <<_ACEOF |
| 22603 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 22604 | /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r. |
| 22605 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22606 | #define gethostbyname_r innocuous_gethostbyname_r |
| 22607 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22608 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22609 | which can conflict with char gethostbyname_r (); below. |
| 22610 | 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] | 22611 | <limits.h> exists even on freestanding compilers. */ |
| 22612 | |
| 22613 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22614 | # include <limits.h> |
| 22615 | #else |
| 22616 | # include <assert.h> |
| 22617 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 22618 | |
| 22619 | #undef gethostbyname_r |
| 22620 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22621 | /* Override any GCC internal prototype to avoid an error. |
| 22622 | Use char because int might match the return type of a GCC |
| 22623 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22624 | #ifdef __cplusplus |
| 22625 | extern "C" |
| 22626 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22627 | char gethostbyname_r (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22628 | /* The GNU C library defines this for functions which it implements |
| 22629 | to always fail with ENOSYS. Some functions are actually named |
| 22630 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22631 | #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22632 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22633 | #endif |
| 22634 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22635 | int |
| 22636 | main () |
| 22637 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22638 | return gethostbyname_r (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22639 | ; |
| 22640 | return 0; |
| 22641 | } |
| 22642 | _ACEOF |
| 22643 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22644 | if { (ac_try="$ac_link" |
| 22645 | case "(($ac_try" in |
| 22646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22647 | *) ac_try_echo=$ac_try;; |
| 22648 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22650 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22651 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22652 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22653 | rm -f conftest.er1 |
| 22654 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22656 | (exit $ac_status); } && { |
| 22657 | test -z "$ac_c_werror_flag" || |
| 22658 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22659 | } && test -s conftest$ac_exeext && |
| 22660 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22661 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22662 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22663 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22664 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22665 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22666 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22667 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22668 | |
| 22669 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22670 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22671 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22672 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 22673 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; } |
| 22674 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22675 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22676 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22677 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22678 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22679 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22680 | { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 22681 | 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] | 22682 | OLD_CFLAGS=$CFLAGS |
| 22683 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22684 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22685 | /* confdefs.h. */ |
| 22686 | _ACEOF |
| 22687 | cat confdefs.h >>conftest.$ac_ext |
| 22688 | cat >>conftest.$ac_ext <<_ACEOF |
| 22689 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22690 | |
| 22691 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22692 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22693 | int |
| 22694 | main () |
| 22695 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22696 | |
| 22697 | char *name; |
| 22698 | struct hostent *he, *res; |
| 22699 | char buffer[2048]; |
| 22700 | int buflen = 2048; |
| 22701 | int h_errnop; |
| 22702 | |
| 22703 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22704 | |
| 22705 | ; |
| 22706 | return 0; |
| 22707 | } |
| 22708 | _ACEOF |
| 22709 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22710 | if { (ac_try="$ac_compile" |
| 22711 | case "(($ac_try" in |
| 22712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22713 | *) ac_try_echo=$ac_try;; |
| 22714 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22716 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22717 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22718 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22719 | rm -f conftest.er1 |
| 22720 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22722 | (exit $ac_status); } && { |
| 22723 | test -z "$ac_c_werror_flag" || |
| 22724 | test ! -s conftest.err |
| 22725 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22726 | |
| 22727 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 22728 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22729 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 22730 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22731 | |
| 22732 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22733 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22734 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22735 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22736 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22737 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22738 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22739 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22740 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22741 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22742 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22743 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22744 | { echo "$as_me:$LINENO: result: no" >&5 |
| 22745 | echo "${ECHO_T}no" >&6; } |
| 22746 | { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 22747 | 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] | 22748 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22749 | /* confdefs.h. */ |
| 22750 | _ACEOF |
| 22751 | cat confdefs.h >>conftest.$ac_ext |
| 22752 | cat >>conftest.$ac_ext <<_ACEOF |
| 22753 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22754 | |
| 22755 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22756 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22757 | int |
| 22758 | main () |
| 22759 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22760 | |
| 22761 | char *name; |
| 22762 | struct hostent *he; |
| 22763 | char buffer[2048]; |
| 22764 | int buflen = 2048; |
| 22765 | int h_errnop; |
| 22766 | |
| 22767 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22768 | |
| 22769 | ; |
| 22770 | return 0; |
| 22771 | } |
| 22772 | _ACEOF |
| 22773 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22774 | if { (ac_try="$ac_compile" |
| 22775 | case "(($ac_try" in |
| 22776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22777 | *) ac_try_echo=$ac_try;; |
| 22778 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22780 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22781 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22782 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22783 | rm -f conftest.er1 |
| 22784 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22786 | (exit $ac_status); } && { |
| 22787 | test -z "$ac_c_werror_flag" || |
| 22788 | test ! -s conftest.err |
| 22789 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22790 | |
| 22791 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 22792 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22793 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 22794 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22795 | |
| 22796 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22797 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22798 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22799 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22800 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22801 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22802 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22803 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22804 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22806 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22807 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22808 | { echo "$as_me:$LINENO: result: no" >&5 |
| 22809 | echo "${ECHO_T}no" >&6; } |
| 22810 | { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 22811 | 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] | 22812 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22813 | /* confdefs.h. */ |
| 22814 | _ACEOF |
| 22815 | cat confdefs.h >>conftest.$ac_ext |
| 22816 | cat >>conftest.$ac_ext <<_ACEOF |
| 22817 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22818 | |
| 22819 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22820 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22821 | int |
| 22822 | main () |
| 22823 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22824 | |
| 22825 | char *name; |
| 22826 | struct hostent *he; |
| 22827 | struct hostent_data data; |
| 22828 | |
| 22829 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22830 | |
| 22831 | ; |
| 22832 | return 0; |
| 22833 | } |
| 22834 | _ACEOF |
| 22835 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22836 | if { (ac_try="$ac_compile" |
| 22837 | case "(($ac_try" in |
| 22838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22839 | *) ac_try_echo=$ac_try;; |
| 22840 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22842 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22843 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22844 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22845 | rm -f conftest.er1 |
| 22846 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22848 | (exit $ac_status); } && { |
| 22849 | test -z "$ac_c_werror_flag" || |
| 22850 | test ! -s conftest.err |
| 22851 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22852 | |
| 22853 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 22854 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22855 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 22856 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22857 | |
| 22858 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22859 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22860 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22861 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22862 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22863 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22864 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22865 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22866 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22867 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22868 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22869 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22870 | { echo "$as_me:$LINENO: result: no" >&5 |
| 22871 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22872 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +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 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22876 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22877 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22878 | |
| 22879 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22880 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22881 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22882 | |
| 22883 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22884 | CFLAGS=$OLD_CFLAGS |
| 22885 | |
| 22886 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22887 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22888 | |
| 22889 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 22890 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22891 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 22892 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 22893 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22894 | 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] | 22895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22896 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22897 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22898 | /* confdefs.h. */ |
| 22899 | _ACEOF |
| 22900 | cat confdefs.h >>conftest.$ac_ext |
| 22901 | cat >>conftest.$ac_ext <<_ACEOF |
| 22902 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 22903 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 22904 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22905 | #define $ac_func innocuous_$ac_func |
| 22906 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22907 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22908 | which can conflict with char $ac_func (); below. |
| 22909 | 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] | 22910 | <limits.h> exists even on freestanding compilers. */ |
| 22911 | |
| 22912 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22913 | # include <limits.h> |
| 22914 | #else |
| 22915 | # include <assert.h> |
| 22916 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 22917 | |
| 22918 | #undef $ac_func |
| 22919 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22920 | /* Override any GCC internal prototype to avoid an error. |
| 22921 | Use char because int might match the return type of a GCC |
| 22922 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22923 | #ifdef __cplusplus |
| 22924 | extern "C" |
| 22925 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22926 | char $ac_func (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22927 | /* The GNU C library defines this for functions which it implements |
| 22928 | to always fail with ENOSYS. Some functions are actually named |
| 22929 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22930 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22931 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22932 | #endif |
| 22933 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22934 | int |
| 22935 | main () |
| 22936 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22937 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22938 | ; |
| 22939 | return 0; |
| 22940 | } |
| 22941 | _ACEOF |
| 22942 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22943 | if { (ac_try="$ac_link" |
| 22944 | case "(($ac_try" in |
| 22945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22946 | *) ac_try_echo=$ac_try;; |
| 22947 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22949 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22950 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22951 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22952 | rm -f conftest.er1 |
| 22953 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22955 | (exit $ac_status); } && { |
| 22956 | test -z "$ac_c_werror_flag" || |
| 22957 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22958 | } && test -s conftest$ac_exeext && |
| 22959 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22960 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22961 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22962 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22963 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22964 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22965 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22966 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22967 | |
| 22968 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22969 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22970 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22971 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 22972 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 22973 | echo "${ECHO_T}$ac_res" >&6; } |
| 22974 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22975 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22976 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22977 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22978 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22979 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 22980 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22981 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22982 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22983 | fi |
| 22984 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22985 | |
| 22986 | |
| 22987 | |
| 22988 | |
| 22989 | |
| 22990 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22991 | # checks for system services |
| 22992 | # (none yet) |
| 22993 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22994 | # Linux requires this for correct f.p. operations |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22995 | { echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 22996 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22997 | if test "${ac_cv_func___fpu_control+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22998 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 22999 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23000 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23001 | /* confdefs.h. */ |
| 23002 | _ACEOF |
| 23003 | cat confdefs.h >>conftest.$ac_ext |
| 23004 | cat >>conftest.$ac_ext <<_ACEOF |
| 23005 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23006 | /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control. |
| 23007 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23008 | #define __fpu_control innocuous___fpu_control |
| 23009 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23010 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23011 | which can conflict with char __fpu_control (); below. |
| 23012 | 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] | 23013 | <limits.h> exists even on freestanding compilers. */ |
| 23014 | |
| 23015 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23016 | # include <limits.h> |
| 23017 | #else |
| 23018 | # include <assert.h> |
| 23019 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23020 | |
| 23021 | #undef __fpu_control |
| 23022 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23023 | /* Override any GCC internal prototype to avoid an error. |
| 23024 | Use char because int might match the return type of a GCC |
| 23025 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23026 | #ifdef __cplusplus |
| 23027 | extern "C" |
| 23028 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23029 | char __fpu_control (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23030 | /* The GNU C library defines this for functions which it implements |
| 23031 | to always fail with ENOSYS. Some functions are actually named |
| 23032 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23033 | #if defined __stub___fpu_control || defined __stub_____fpu_control |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23034 | choke me |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23035 | #endif |
| 23036 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23037 | int |
| 23038 | main () |
| 23039 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23040 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23041 | ; |
| 23042 | return 0; |
| 23043 | } |
| 23044 | _ACEOF |
| 23045 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23046 | if { (ac_try="$ac_link" |
| 23047 | case "(($ac_try" in |
| 23048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23049 | *) ac_try_echo=$ac_try;; |
| 23050 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23052 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23053 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23054 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23055 | rm -f conftest.er1 |
| 23056 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23058 | (exit $ac_status); } && { |
| 23059 | test -z "$ac_c_werror_flag" || |
| 23060 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23061 | } && test -s conftest$ac_exeext && |
| 23062 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23063 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23064 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23065 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23066 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23067 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23068 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23069 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23070 | |
| 23071 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23072 | conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23073 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23074 | { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 23075 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; } |
| 23076 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23077 | : |
| 23078 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23079 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23080 | { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 23081 | 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] | 23082 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23084 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23085 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 23086 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23087 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23088 | /* confdefs.h. */ |
| 23089 | _ACEOF |
| 23090 | cat confdefs.h >>conftest.$ac_ext |
| 23091 | cat >>conftest.$ac_ext <<_ACEOF |
| 23092 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23093 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23094 | /* Override any GCC internal prototype to avoid an error. |
| 23095 | Use char because int might match the return type of a GCC |
| 23096 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23097 | #ifdef __cplusplus |
| 23098 | extern "C" |
| 23099 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23100 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23101 | int |
| 23102 | main () |
| 23103 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23104 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23105 | ; |
| 23106 | return 0; |
| 23107 | } |
| 23108 | _ACEOF |
| 23109 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23110 | if { (ac_try="$ac_link" |
| 23111 | case "(($ac_try" in |
| 23112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23113 | *) ac_try_echo=$ac_try;; |
| 23114 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23116 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23117 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23118 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23119 | rm -f conftest.er1 |
| 23120 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23122 | (exit $ac_status); } && { |
| 23123 | test -z "$ac_c_werror_flag" || |
| 23124 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23125 | } && test -s conftest$ac_exeext && |
| 23126 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23127 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23128 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23129 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23130 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23131 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23132 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23133 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23134 | |
| 23135 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23136 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23137 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23138 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23139 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 23140 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; } |
| 23141 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23142 | cat >>confdefs.h <<_ACEOF |
| 23143 | #define HAVE_LIBIEEE 1 |
| 23144 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23145 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 23146 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23147 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23148 | fi |
| 23149 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23150 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23151 | fi |
| 23152 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23153 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23154 | # Check for --with-fpectl |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23155 | { echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 23156 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23157 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23158 | # Check whether --with-fpectl was given. |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23159 | if test "${with_fpectl+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23160 | withval=$with_fpectl; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23161 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23162 | then |
| 23163 | |
| 23164 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23165 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23166 | _ACEOF |
| 23167 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23168 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23169 | echo "${ECHO_T}yes" >&6; } |
| 23170 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 23171 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23172 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23173 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23174 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23175 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23176 | fi |
| 23177 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23178 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23179 | # check for --with-libm=... |
| 23180 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 23181 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 23182 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 23183 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 23184 | *) LIBM=-lm |
| 23185 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23186 | { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 23187 | 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] | 23188 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23189 | # Check whether --with-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 23190 | if test "${with_libm+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23191 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23192 | if test "$withval" = no |
| 23193 | then LIBM= |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23194 | { echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 23195 | echo "${ECHO_T}force LIBM empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23196 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23197 | then LIBM=$withval |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23198 | { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 23199 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6; } |
| 23200 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 23201 | 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] | 23202 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23203 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23204 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23205 | { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 23206 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23207 | fi |
| 23208 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23209 | |
| 23210 | # check for --with-libc=... |
| 23211 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23212 | { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 23213 | 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] | 23214 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23215 | # Check whether --with-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 23216 | if test "${with_libc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23217 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23218 | if test "$withval" = no |
| 23219 | then LIBC= |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23220 | { echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 23221 | echo "${ECHO_T}force LIBC empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23222 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23223 | then LIBC=$withval |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23224 | { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 23225 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6; } |
| 23226 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 23227 | 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] | 23228 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23229 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23230 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23231 | { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 23232 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23233 | fi |
| 23234 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23235 | |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 23236 | # ************************************ |
| 23237 | # * Check for mathematical functions * |
| 23238 | # ************************************ |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23239 | |
Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 23240 | LIBS_SAVE=$LIBS |
| 23241 | LIBS="$LIBS $LIBM" |
| 23242 | |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23243 | # Detect whether system arithmetic is subject to x87-style double |
| 23244 | # rounding issues. The result of this test has little meaning on non |
| 23245 | # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding |
| 23246 | # mode is round-to-nearest and double rounding issues are present, and |
| 23247 | # 0 otherwise. See http://bugs.python.org/issue2937 for more info. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23248 | { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5 |
| 23249 | echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; } |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23250 | if test "${ac_cv_x87_double_rounding+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23252 | else |
| 23253 | |
| 23254 | if test "$cross_compiling" = yes; then |
| 23255 | ac_cv_x87_double_rounding=no |
| 23256 | else |
| 23257 | cat >conftest.$ac_ext <<_ACEOF |
| 23258 | /* confdefs.h. */ |
| 23259 | _ACEOF |
| 23260 | cat confdefs.h >>conftest.$ac_ext |
| 23261 | cat >>conftest.$ac_ext <<_ACEOF |
| 23262 | /* end confdefs.h. */ |
| 23263 | |
| 23264 | #include <stdlib.h> |
| 23265 | #include <math.h> |
| 23266 | int main() { |
| 23267 | volatile double x, y, z; |
| 23268 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ |
| 23269 | x = 0.99999999999999989; /* 1-2**-53 */ |
| 23270 | y = 1./x; |
| 23271 | if (y != 1.) |
| 23272 | exit(0); |
| 23273 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ |
| 23274 | x = 1e16; |
| 23275 | y = 2.99999; |
| 23276 | z = x + y; |
| 23277 | if (z != 1e16+4.) |
| 23278 | exit(0); |
| 23279 | /* both tests show evidence of double rounding */ |
| 23280 | exit(1); |
| 23281 | } |
| 23282 | |
| 23283 | _ACEOF |
| 23284 | rm -f conftest$ac_exeext |
| 23285 | if { (ac_try="$ac_link" |
| 23286 | case "(($ac_try" in |
| 23287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23288 | *) ac_try_echo=$ac_try;; |
| 23289 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23290 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23291 | (eval "$ac_link") 2>&5 |
| 23292 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23294 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23295 | { (case "(($ac_try" in |
| 23296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23297 | *) ac_try_echo=$ac_try;; |
| 23298 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23300 | (eval "$ac_try") 2>&5 |
| 23301 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23303 | (exit $ac_status); }; }; then |
| 23304 | ac_cv_x87_double_rounding=no |
| 23305 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23306 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23307 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23308 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23309 | |
| 23310 | ( exit $ac_status ) |
| 23311 | ac_cv_x87_double_rounding=yes |
| 23312 | fi |
| 23313 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23314 | fi |
| 23315 | |
| 23316 | |
| 23317 | fi |
| 23318 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23319 | { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5 |
| 23320 | echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; } |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23321 | if test "$ac_cv_x87_double_rounding" = yes |
| 23322 | then |
| 23323 | |
| 23324 | cat >>confdefs.h <<\_ACEOF |
| 23325 | #define X87_DOUBLE_ROUNDING 1 |
| 23326 | _ACEOF |
| 23327 | |
| 23328 | fi |
| 23329 | |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 23330 | # Multiprocessing check for broken sem_getvalue |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23331 | { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5 |
| 23332 | echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 23333 | if test "${ac_cv_broken_sem_getvalue+set}" = set; then |
| 23334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23335 | else |
| 23336 | if test "$cross_compiling" = yes; then |
| 23337 | ac_cv_broken_sem_getvalue=yes |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 23338 | else |
| 23339 | cat >conftest.$ac_ext <<_ACEOF |
| 23340 | /* confdefs.h. */ |
| 23341 | _ACEOF |
| 23342 | cat confdefs.h >>conftest.$ac_ext |
| 23343 | cat >>conftest.$ac_ext <<_ACEOF |
| 23344 | /* end confdefs.h. */ |
| 23345 | |
| 23346 | #include <unistd.h> |
| 23347 | #include <fcntl.h> |
| 23348 | #include <stdio.h> |
| 23349 | #include <semaphore.h> |
| 23350 | #include <sys/stat.h> |
| 23351 | |
| 23352 | int main(void){ |
| 23353 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); |
| 23354 | int count; |
| 23355 | int res; |
| 23356 | if(a==SEM_FAILED){ |
| 23357 | perror("sem_open"); |
| 23358 | return 1; |
| 23359 | |
| 23360 | } |
| 23361 | res = sem_getvalue(a, &count); |
| 23362 | sem_close(a); |
| 23363 | return res==-1 ? 1 : 0; |
| 23364 | } |
| 23365 | |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 23366 | _ACEOF |
| 23367 | rm -f conftest$ac_exeext |
| 23368 | if { (ac_try="$ac_link" |
| 23369 | case "(($ac_try" in |
| 23370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23371 | *) ac_try_echo=$ac_try;; |
| 23372 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 23374 | (eval "$ac_link") 2>&5 |
| 23375 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 23377 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23378 | { (case "(($ac_try" in |
| 23379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23380 | *) ac_try_echo=$ac_try;; |
| 23381 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 23383 | (eval "$ac_try") 2>&5 |
| 23384 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 23386 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 23387 | ac_cv_broken_sem_getvalue=no |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 23388 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23389 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23390 | echo "$as_me: failed program was:" >&5 |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 23391 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23392 | |
| 23393 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 23394 | ac_cv_broken_sem_getvalue=yes |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 23395 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23396 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23397 | fi |
| 23398 | |
| 23399 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 23400 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 23401 | fi |
| 23402 | |
| 23403 | { echo "$as_me:$LINENO: result: $ac_cv_broken_sem_getvalue" >&5 |
| 23404 | echo "${ECHO_T}$ac_cv_broken_sem_getvalue" >&6; } |
| 23405 | if test $ac_cv_broken_sem_getvalue = yes |
| 23406 | then |
| 23407 | |
| 23408 | cat >>confdefs.h <<\_ACEOF |
| 23409 | #define HAVE_BROKEN_SEM_GETVALUE 1 |
| 23410 | _ACEOF |
| 23411 | |
| 23412 | fi |
| 23413 | |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23414 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of |
| 23415 | # -0. on some architectures. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23416 | { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5 |
| 23417 | 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] | 23418 | if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23420 | else |
| 23421 | |
| 23422 | if test "$cross_compiling" = yes; then |
| 23423 | ac_cv_tanh_preserves_zero_sign=no |
| 23424 | else |
| 23425 | cat >conftest.$ac_ext <<_ACEOF |
| 23426 | /* confdefs.h. */ |
| 23427 | _ACEOF |
| 23428 | cat confdefs.h >>conftest.$ac_ext |
| 23429 | cat >>conftest.$ac_ext <<_ACEOF |
| 23430 | /* end confdefs.h. */ |
| 23431 | |
| 23432 | #include <math.h> |
Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 23433 | #include <stdlib.h> |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23434 | int main() { |
| 23435 | /* return 0 if either negative zeros don't exist |
| 23436 | on this platform or if negative zeros exist |
| 23437 | and tanh(-0.) == -0. */ |
| 23438 | if (atan2(0., -1.) == atan2(-0., -1.) || |
| 23439 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); |
| 23440 | else exit(1); |
| 23441 | } |
| 23442 | |
| 23443 | _ACEOF |
| 23444 | rm -f conftest$ac_exeext |
| 23445 | if { (ac_try="$ac_link" |
| 23446 | case "(($ac_try" in |
| 23447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23448 | *) ac_try_echo=$ac_try;; |
| 23449 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23451 | (eval "$ac_link") 2>&5 |
| 23452 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23454 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23455 | { (case "(($ac_try" in |
| 23456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23457 | *) ac_try_echo=$ac_try;; |
| 23458 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23460 | (eval "$ac_try") 2>&5 |
| 23461 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23463 | (exit $ac_status); }; }; then |
| 23464 | ac_cv_tanh_preserves_zero_sign=yes |
| 23465 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23466 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23467 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23468 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23469 | |
| 23470 | ( exit $ac_status ) |
| 23471 | ac_cv_tanh_preserves_zero_sign=no |
| 23472 | fi |
| 23473 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23474 | fi |
| 23475 | |
| 23476 | |
| 23477 | fi |
| 23478 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23479 | { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5 |
| 23480 | echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; } |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23481 | if test "$ac_cv_tanh_preserves_zero_sign" = yes |
| 23482 | then |
| 23483 | |
| 23484 | cat >>confdefs.h <<\_ACEOF |
| 23485 | #define TANH_PRESERVES_ZERO_SIGN 1 |
| 23486 | _ACEOF |
| 23487 | |
| 23488 | fi |
| 23489 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23490 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 23491 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23492 | |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 23493 | |
| 23494 | |
| 23495 | |
| 23496 | |
| 23497 | |
Mark Dickinson | 8e5446f | 2009-04-18 14:41:37 +0000 | [diff] [blame] | 23498 | |
Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 23499 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma |
| 23500 | do |
| 23501 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 23502 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 23503 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 23504 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 23505 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23506 | else |
| 23507 | cat >conftest.$ac_ext <<_ACEOF |
| 23508 | /* confdefs.h. */ |
| 23509 | _ACEOF |
| 23510 | cat confdefs.h >>conftest.$ac_ext |
| 23511 | cat >>conftest.$ac_ext <<_ACEOF |
| 23512 | /* end confdefs.h. */ |
| 23513 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 23514 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23515 | #define $ac_func innocuous_$ac_func |
| 23516 | |
| 23517 | /* System header to define __stub macros and hopefully few prototypes, |
| 23518 | which can conflict with char $ac_func (); below. |
| 23519 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 23520 | <limits.h> exists even on freestanding compilers. */ |
| 23521 | |
| 23522 | #ifdef __STDC__ |
| 23523 | # include <limits.h> |
| 23524 | #else |
| 23525 | # include <assert.h> |
| 23526 | #endif |
| 23527 | |
| 23528 | #undef $ac_func |
| 23529 | |
| 23530 | /* Override any GCC internal prototype to avoid an error. |
| 23531 | Use char because int might match the return type of a GCC |
| 23532 | builtin and then its argument prototype would still apply. */ |
| 23533 | #ifdef __cplusplus |
| 23534 | extern "C" |
| 23535 | #endif |
| 23536 | char $ac_func (); |
| 23537 | /* The GNU C library defines this for functions which it implements |
| 23538 | to always fail with ENOSYS. Some functions are actually named |
| 23539 | something starting with __ and the normal name is an alias. */ |
| 23540 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 23541 | choke me |
| 23542 | #endif |
| 23543 | |
| 23544 | int |
| 23545 | main () |
| 23546 | { |
| 23547 | return $ac_func (); |
| 23548 | ; |
| 23549 | return 0; |
| 23550 | } |
| 23551 | _ACEOF |
| 23552 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23553 | if { (ac_try="$ac_link" |
| 23554 | case "(($ac_try" in |
| 23555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23556 | *) ac_try_echo=$ac_try;; |
| 23557 | esac |
| 23558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23559 | (eval "$ac_link") 2>conftest.er1 |
| 23560 | ac_status=$? |
| 23561 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23562 | rm -f conftest.er1 |
| 23563 | cat conftest.err >&5 |
| 23564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23565 | (exit $ac_status); } && { |
| 23566 | test -z "$ac_c_werror_flag" || |
| 23567 | test ! -s conftest.err |
| 23568 | } && test -s conftest$ac_exeext && |
| 23569 | $as_test_x conftest$ac_exeext; then |
| 23570 | eval "$as_ac_var=yes" |
| 23571 | else |
| 23572 | echo "$as_me: failed program was:" >&5 |
| 23573 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23574 | |
| 23575 | eval "$as_ac_var=no" |
| 23576 | fi |
| 23577 | |
| 23578 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 23579 | conftest$ac_exeext conftest.$ac_ext |
| 23580 | fi |
| 23581 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 23582 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 23583 | echo "${ECHO_T}$ac_res" >&6; } |
| 23584 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 23585 | cat >>confdefs.h <<_ACEOF |
| 23586 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 23587 | _ACEOF |
| 23588 | |
| 23589 | fi |
| 23590 | done |
| 23591 | |
| 23592 | |
| 23593 | |
| 23594 | |
| 23595 | |
| 23596 | |
| 23597 | for ac_func in hypot lgamma log1p round tgamma |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 23598 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23599 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 23600 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 23601 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 23602 | 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] | 23603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 23604 | else |
| 23605 | cat >conftest.$ac_ext <<_ACEOF |
| 23606 | /* confdefs.h. */ |
| 23607 | _ACEOF |
| 23608 | cat confdefs.h >>conftest.$ac_ext |
| 23609 | cat >>conftest.$ac_ext <<_ACEOF |
| 23610 | /* end confdefs.h. */ |
| 23611 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 23612 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23613 | #define $ac_func innocuous_$ac_func |
| 23614 | |
| 23615 | /* System header to define __stub macros and hopefully few prototypes, |
| 23616 | which can conflict with char $ac_func (); below. |
| 23617 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 23618 | <limits.h> exists even on freestanding compilers. */ |
| 23619 | |
| 23620 | #ifdef __STDC__ |
| 23621 | # include <limits.h> |
| 23622 | #else |
| 23623 | # include <assert.h> |
| 23624 | #endif |
| 23625 | |
| 23626 | #undef $ac_func |
| 23627 | |
| 23628 | /* Override any GCC internal prototype to avoid an error. |
| 23629 | Use char because int might match the return type of a GCC |
| 23630 | builtin and then its argument prototype would still apply. */ |
| 23631 | #ifdef __cplusplus |
| 23632 | extern "C" |
| 23633 | #endif |
| 23634 | char $ac_func (); |
| 23635 | /* The GNU C library defines this for functions which it implements |
| 23636 | to always fail with ENOSYS. Some functions are actually named |
| 23637 | something starting with __ and the normal name is an alias. */ |
| 23638 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 23639 | choke me |
| 23640 | #endif |
| 23641 | |
| 23642 | int |
| 23643 | main () |
| 23644 | { |
| 23645 | return $ac_func (); |
| 23646 | ; |
| 23647 | return 0; |
| 23648 | } |
| 23649 | _ACEOF |
| 23650 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23651 | if { (ac_try="$ac_link" |
| 23652 | case "(($ac_try" in |
| 23653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23654 | *) ac_try_echo=$ac_try;; |
| 23655 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 23657 | (eval "$ac_link") 2>conftest.er1 |
| 23658 | ac_status=$? |
| 23659 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23660 | rm -f conftest.er1 |
| 23661 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 23663 | (exit $ac_status); } && { |
| 23664 | test -z "$ac_c_werror_flag" || |
| 23665 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23666 | } && test -s conftest$ac_exeext && |
| 23667 | $as_test_x conftest$ac_exeext; then |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 23668 | eval "$as_ac_var=yes" |
| 23669 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23670 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 23671 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23672 | |
| 23673 | eval "$as_ac_var=no" |
| 23674 | fi |
| 23675 | |
| 23676 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 23677 | conftest$ac_exeext conftest.$ac_ext |
| 23678 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23679 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 23680 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 23681 | echo "${ECHO_T}$ac_res" >&6; } |
| 23682 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 23683 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23684 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 23685 | _ACEOF |
| 23686 | |
| 23687 | fi |
| 23688 | done |
| 23689 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23690 | { echo "$as_me:$LINENO: checking whether isinf is declared" >&5 |
| 23691 | echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; } |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23692 | if test "${ac_cv_have_decl_isinf+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23694 | else |
| 23695 | cat >conftest.$ac_ext <<_ACEOF |
| 23696 | /* confdefs.h. */ |
| 23697 | _ACEOF |
| 23698 | cat confdefs.h >>conftest.$ac_ext |
| 23699 | cat >>conftest.$ac_ext <<_ACEOF |
| 23700 | /* end confdefs.h. */ |
| 23701 | #include <math.h> |
| 23702 | |
| 23703 | int |
| 23704 | main () |
| 23705 | { |
| 23706 | #ifndef isinf |
| 23707 | (void) isinf; |
| 23708 | #endif |
| 23709 | |
| 23710 | ; |
| 23711 | return 0; |
| 23712 | } |
| 23713 | _ACEOF |
| 23714 | rm -f conftest.$ac_objext |
| 23715 | if { (ac_try="$ac_compile" |
| 23716 | case "(($ac_try" in |
| 23717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23718 | *) ac_try_echo=$ac_try;; |
| 23719 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23721 | (eval "$ac_compile") 2>conftest.er1 |
| 23722 | ac_status=$? |
| 23723 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23724 | rm -f conftest.er1 |
| 23725 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23727 | (exit $ac_status); } && { |
| 23728 | test -z "$ac_c_werror_flag" || |
| 23729 | test ! -s conftest.err |
| 23730 | } && test -s conftest.$ac_objext; then |
| 23731 | ac_cv_have_decl_isinf=yes |
| 23732 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23733 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23734 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23735 | |
| 23736 | ac_cv_have_decl_isinf=no |
| 23737 | fi |
| 23738 | |
| 23739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23740 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23741 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5 |
| 23742 | echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; } |
| 23743 | if test $ac_cv_have_decl_isinf = yes; then |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23744 | |
| 23745 | cat >>confdefs.h <<_ACEOF |
| 23746 | #define HAVE_DECL_ISINF 1 |
| 23747 | _ACEOF |
| 23748 | |
| 23749 | |
| 23750 | else |
| 23751 | cat >>confdefs.h <<_ACEOF |
| 23752 | #define HAVE_DECL_ISINF 0 |
| 23753 | _ACEOF |
| 23754 | |
| 23755 | |
| 23756 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23757 | { echo "$as_me:$LINENO: checking whether isnan is declared" >&5 |
| 23758 | echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; } |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23759 | if test "${ac_cv_have_decl_isnan+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23760 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23761 | else |
| 23762 | cat >conftest.$ac_ext <<_ACEOF |
| 23763 | /* confdefs.h. */ |
| 23764 | _ACEOF |
| 23765 | cat confdefs.h >>conftest.$ac_ext |
| 23766 | cat >>conftest.$ac_ext <<_ACEOF |
| 23767 | /* end confdefs.h. */ |
| 23768 | #include <math.h> |
| 23769 | |
| 23770 | int |
| 23771 | main () |
| 23772 | { |
| 23773 | #ifndef isnan |
| 23774 | (void) isnan; |
| 23775 | #endif |
| 23776 | |
| 23777 | ; |
| 23778 | return 0; |
| 23779 | } |
| 23780 | _ACEOF |
| 23781 | rm -f conftest.$ac_objext |
| 23782 | if { (ac_try="$ac_compile" |
| 23783 | case "(($ac_try" in |
| 23784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23785 | *) ac_try_echo=$ac_try;; |
| 23786 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23788 | (eval "$ac_compile") 2>conftest.er1 |
| 23789 | ac_status=$? |
| 23790 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23791 | rm -f conftest.er1 |
| 23792 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23794 | (exit $ac_status); } && { |
| 23795 | test -z "$ac_c_werror_flag" || |
| 23796 | test ! -s conftest.err |
| 23797 | } && test -s conftest.$ac_objext; then |
| 23798 | ac_cv_have_decl_isnan=yes |
| 23799 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23800 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23801 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23802 | |
| 23803 | ac_cv_have_decl_isnan=no |
| 23804 | fi |
| 23805 | |
| 23806 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23807 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23808 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5 |
| 23809 | echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; } |
| 23810 | if test $ac_cv_have_decl_isnan = yes; then |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23811 | |
| 23812 | cat >>confdefs.h <<_ACEOF |
| 23813 | #define HAVE_DECL_ISNAN 1 |
| 23814 | _ACEOF |
| 23815 | |
| 23816 | |
| 23817 | else |
| 23818 | cat >>confdefs.h <<_ACEOF |
| 23819 | #define HAVE_DECL_ISNAN 0 |
| 23820 | _ACEOF |
| 23821 | |
| 23822 | |
| 23823 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23824 | { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5 |
| 23825 | echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; } |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23826 | if test "${ac_cv_have_decl_isfinite+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23828 | else |
| 23829 | cat >conftest.$ac_ext <<_ACEOF |
| 23830 | /* confdefs.h. */ |
| 23831 | _ACEOF |
| 23832 | cat confdefs.h >>conftest.$ac_ext |
| 23833 | cat >>conftest.$ac_ext <<_ACEOF |
| 23834 | /* end confdefs.h. */ |
| 23835 | #include <math.h> |
| 23836 | |
| 23837 | int |
| 23838 | main () |
| 23839 | { |
| 23840 | #ifndef isfinite |
| 23841 | (void) isfinite; |
| 23842 | #endif |
| 23843 | |
| 23844 | ; |
| 23845 | return 0; |
| 23846 | } |
| 23847 | _ACEOF |
| 23848 | rm -f conftest.$ac_objext |
| 23849 | if { (ac_try="$ac_compile" |
| 23850 | case "(($ac_try" in |
| 23851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23852 | *) ac_try_echo=$ac_try;; |
| 23853 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23855 | (eval "$ac_compile") 2>conftest.er1 |
| 23856 | ac_status=$? |
| 23857 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23858 | rm -f conftest.er1 |
| 23859 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23861 | (exit $ac_status); } && { |
| 23862 | test -z "$ac_c_werror_flag" || |
| 23863 | test ! -s conftest.err |
| 23864 | } && test -s conftest.$ac_objext; then |
| 23865 | ac_cv_have_decl_isfinite=yes |
| 23866 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23867 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23868 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23869 | |
| 23870 | ac_cv_have_decl_isfinite=no |
| 23871 | fi |
| 23872 | |
| 23873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23874 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23875 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5 |
| 23876 | echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; } |
| 23877 | if test $ac_cv_have_decl_isfinite = yes; then |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 23878 | |
| 23879 | cat >>confdefs.h <<_ACEOF |
| 23880 | #define HAVE_DECL_ISFINITE 1 |
| 23881 | _ACEOF |
| 23882 | |
| 23883 | |
| 23884 | else |
| 23885 | cat >>confdefs.h <<_ACEOF |
| 23886 | #define HAVE_DECL_ISFINITE 0 |
| 23887 | _ACEOF |
| 23888 | |
| 23889 | |
| 23890 | fi |
| 23891 | |
| 23892 | |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 23893 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 23894 | LIBS=$LIBS_SAVE |
| 23895 | |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 23896 | # determine what size digit to use for Python's longs |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23897 | { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5 |
| 23898 | 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] | 23899 | # Check whether --enable-big-digits was given. |
| 23900 | if test "${enable_big_digits+set}" = set; then |
| 23901 | enableval=$enable_big_digits; case $enable_big_digits in |
| 23902 | yes) |
| 23903 | enable_big_digits=30 ;; |
| 23904 | no) |
| 23905 | enable_big_digits=15 ;; |
| 23906 | 15|30) |
| 23907 | ;; |
| 23908 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23909 | { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5 |
| 23910 | 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] | 23911 | { (exit 1); exit 1; }; } ;; |
| 23912 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23913 | { echo "$as_me:$LINENO: result: $enable_big_digits" >&5 |
| 23914 | echo "${ECHO_T}$enable_big_digits" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 23915 | |
| 23916 | cat >>confdefs.h <<_ACEOF |
| 23917 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits |
| 23918 | _ACEOF |
| 23919 | |
| 23920 | |
| 23921 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23922 | { echo "$as_me:$LINENO: result: no value specified" >&5 |
| 23923 | echo "${ECHO_T}no value specified" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 23924 | fi |
| 23925 | |
| 23926 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23927 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23928 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23929 | { echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 23930 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23931 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23933 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23934 | { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 23935 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23936 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23937 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23938 | { echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 23939 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23940 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23941 | /* confdefs.h. */ |
| 23942 | _ACEOF |
| 23943 | cat confdefs.h >>conftest.$ac_ext |
| 23944 | cat >>conftest.$ac_ext <<_ACEOF |
| 23945 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23946 | $ac_includes_default |
| 23947 | #include <wchar.h> |
| 23948 | _ACEOF |
| 23949 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23950 | if { (ac_try="$ac_compile" |
| 23951 | case "(($ac_try" in |
| 23952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23953 | *) ac_try_echo=$ac_try;; |
| 23954 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23956 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23957 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23958 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23959 | rm -f conftest.er1 |
| 23960 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23962 | (exit $ac_status); } && { |
| 23963 | test -z "$ac_c_werror_flag" || |
| 23964 | test ! -s conftest.err |
| 23965 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23966 | ac_header_compiler=yes |
| 23967 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23968 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23969 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23970 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23971 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23972 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23973 | |
| 23974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23975 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 23976 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23977 | |
| 23978 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23979 | { echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 23980 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23981 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23982 | /* confdefs.h. */ |
| 23983 | _ACEOF |
| 23984 | cat confdefs.h >>conftest.$ac_ext |
| 23985 | cat >>conftest.$ac_ext <<_ACEOF |
| 23986 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23987 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23988 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23989 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 23990 | case "(($ac_try" in |
| 23991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23992 | *) ac_try_echo=$ac_try;; |
| 23993 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23994 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23995 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23996 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23997 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23998 | rm -f conftest.er1 |
| 23999 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24001 | (exit $ac_status); } >/dev/null && { |
| 24002 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 24003 | test ! -s conftest.err |
| 24004 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24005 | ac_header_preproc=yes |
| 24006 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24007 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24008 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24009 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24010 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24011 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24012 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24013 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24014 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 24015 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24016 | |
| 24017 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24018 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 24019 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24020 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 24021 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 24022 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 |
| 24023 | 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] | 24024 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24025 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24026 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24027 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 24028 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 24029 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 24030 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 24031 | { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 |
| 24032 | echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} |
| 24033 | { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 24034 | echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 24035 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 24036 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} |
| 24037 | { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 |
| 24038 | 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] | 24039 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 24040 | ## -------------------------------------- ## |
| 24041 | ## Report this to http://bugs.python.org/ ## |
| 24042 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24043 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24044 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24045 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24046 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24047 | { echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 24048 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24049 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24051 | else |
| 24052 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24053 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24054 | { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 24055 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24056 | |
| 24057 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24058 | if test $ac_cv_header_wchar_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24059 | |
| 24060 | |
| 24061 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24062 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24063 | _ACEOF |
| 24064 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 24065 | wchar_h="yes" |
| 24066 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24067 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24068 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24069 | |
| 24070 | fi |
| 24071 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24072 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24073 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24074 | # determine wchar_t size |
| 24075 | if test "$wchar_h" = yes |
| 24076 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24077 | { echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 24078 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } |
| 24079 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 24080 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24081 | else |
| 24082 | cat >conftest.$ac_ext <<_ACEOF |
| 24083 | /* confdefs.h. */ |
| 24084 | _ACEOF |
| 24085 | cat confdefs.h >>conftest.$ac_ext |
| 24086 | cat >>conftest.$ac_ext <<_ACEOF |
| 24087 | /* end confdefs.h. */ |
| 24088 | #include <wchar.h> |
| 24089 | |
| 24090 | typedef wchar_t ac__type_new_; |
| 24091 | int |
| 24092 | main () |
| 24093 | { |
| 24094 | if ((ac__type_new_ *) 0) |
| 24095 | return 0; |
| 24096 | if (sizeof (ac__type_new_)) |
| 24097 | return 0; |
| 24098 | ; |
| 24099 | return 0; |
| 24100 | } |
| 24101 | _ACEOF |
| 24102 | rm -f conftest.$ac_objext |
| 24103 | if { (ac_try="$ac_compile" |
| 24104 | case "(($ac_try" in |
| 24105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24106 | *) ac_try_echo=$ac_try;; |
| 24107 | esac |
| 24108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24109 | (eval "$ac_compile") 2>conftest.er1 |
| 24110 | ac_status=$? |
| 24111 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24112 | rm -f conftest.er1 |
| 24113 | cat conftest.err >&5 |
| 24114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24115 | (exit $ac_status); } && { |
| 24116 | test -z "$ac_c_werror_flag" || |
| 24117 | test ! -s conftest.err |
| 24118 | } && test -s conftest.$ac_objext; then |
| 24119 | ac_cv_type_wchar_t=yes |
| 24120 | else |
| 24121 | echo "$as_me: failed program was:" >&5 |
| 24122 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24123 | |
| 24124 | ac_cv_type_wchar_t=no |
| 24125 | fi |
| 24126 | |
| 24127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24128 | fi |
| 24129 | { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 24130 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; } |
| 24131 | |
| 24132 | # 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] | 24133 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 24134 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 24135 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24136 | { echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 24137 | 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] | 24138 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24140 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24141 | if test "$cross_compiling" = yes; then |
| 24142 | # Depending upon the size, compute the lo and hi bounds. |
| 24143 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24144 | /* confdefs.h. */ |
| 24145 | _ACEOF |
| 24146 | cat confdefs.h >>conftest.$ac_ext |
| 24147 | cat >>conftest.$ac_ext <<_ACEOF |
| 24148 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24149 | #include <wchar.h> |
| 24150 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24151 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24152 | int |
| 24153 | main () |
| 24154 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24155 | 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] | 24156 | test_array [0] = 0 |
| 24157 | |
| 24158 | ; |
| 24159 | return 0; |
| 24160 | } |
| 24161 | _ACEOF |
| 24162 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24163 | if { (ac_try="$ac_compile" |
| 24164 | case "(($ac_try" in |
| 24165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24166 | *) ac_try_echo=$ac_try;; |
| 24167 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24168 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24169 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24170 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24171 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24172 | rm -f conftest.er1 |
| 24173 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24175 | (exit $ac_status); } && { |
| 24176 | test -z "$ac_c_werror_flag" || |
| 24177 | test ! -s conftest.err |
| 24178 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24179 | ac_lo=0 ac_mid=0 |
| 24180 | while :; do |
| 24181 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24182 | /* confdefs.h. */ |
| 24183 | _ACEOF |
| 24184 | cat confdefs.h >>conftest.$ac_ext |
| 24185 | cat >>conftest.$ac_ext <<_ACEOF |
| 24186 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24187 | #include <wchar.h> |
| 24188 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24189 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24190 | int |
| 24191 | main () |
| 24192 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24193 | 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] | 24194 | test_array [0] = 0 |
| 24195 | |
| 24196 | ; |
| 24197 | return 0; |
| 24198 | } |
| 24199 | _ACEOF |
| 24200 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24201 | if { (ac_try="$ac_compile" |
| 24202 | case "(($ac_try" in |
| 24203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24204 | *) ac_try_echo=$ac_try;; |
| 24205 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24207 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24208 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24209 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24210 | rm -f conftest.er1 |
| 24211 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24213 | (exit $ac_status); } && { |
| 24214 | test -z "$ac_c_werror_flag" || |
| 24215 | test ! -s conftest.err |
| 24216 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24217 | ac_hi=$ac_mid; break |
| 24218 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24219 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24220 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24221 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24222 | ac_lo=`expr $ac_mid + 1` |
| 24223 | if test $ac_lo -le $ac_mid; then |
| 24224 | ac_lo= ac_hi= |
| 24225 | break |
| 24226 | fi |
| 24227 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24228 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24229 | |
| 24230 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24231 | done |
| 24232 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24233 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24234 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24235 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24236 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24237 | /* confdefs.h. */ |
| 24238 | _ACEOF |
| 24239 | cat confdefs.h >>conftest.$ac_ext |
| 24240 | cat >>conftest.$ac_ext <<_ACEOF |
| 24241 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24242 | #include <wchar.h> |
| 24243 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24244 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24245 | int |
| 24246 | main () |
| 24247 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24248 | 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] | 24249 | test_array [0] = 0 |
| 24250 | |
| 24251 | ; |
| 24252 | return 0; |
| 24253 | } |
| 24254 | _ACEOF |
| 24255 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24256 | if { (ac_try="$ac_compile" |
| 24257 | case "(($ac_try" in |
| 24258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24259 | *) ac_try_echo=$ac_try;; |
| 24260 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24261 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24262 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24263 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24264 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24265 | rm -f conftest.er1 |
| 24266 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24268 | (exit $ac_status); } && { |
| 24269 | test -z "$ac_c_werror_flag" || |
| 24270 | test ! -s conftest.err |
| 24271 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24272 | ac_hi=-1 ac_mid=-1 |
| 24273 | while :; do |
| 24274 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24275 | /* confdefs.h. */ |
| 24276 | _ACEOF |
| 24277 | cat confdefs.h >>conftest.$ac_ext |
| 24278 | cat >>conftest.$ac_ext <<_ACEOF |
| 24279 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24280 | #include <wchar.h> |
| 24281 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24282 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24283 | int |
| 24284 | main () |
| 24285 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24286 | 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] | 24287 | test_array [0] = 0 |
| 24288 | |
| 24289 | ; |
| 24290 | return 0; |
| 24291 | } |
| 24292 | _ACEOF |
| 24293 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24294 | if { (ac_try="$ac_compile" |
| 24295 | case "(($ac_try" in |
| 24296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24297 | *) ac_try_echo=$ac_try;; |
| 24298 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24300 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24301 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24302 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24303 | rm -f conftest.er1 |
| 24304 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24306 | (exit $ac_status); } && { |
| 24307 | test -z "$ac_c_werror_flag" || |
| 24308 | test ! -s conftest.err |
| 24309 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24310 | ac_lo=$ac_mid; break |
| 24311 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24312 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24313 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24314 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24315 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 24316 | if test $ac_mid -le $ac_hi; then |
| 24317 | ac_lo= ac_hi= |
| 24318 | break |
| 24319 | fi |
| 24320 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24321 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24322 | |
| 24323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24324 | done |
| 24325 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24326 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24327 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24328 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24329 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24330 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24331 | |
| 24332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24333 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24334 | |
| 24335 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24336 | # Binary search between lo and hi bounds. |
| 24337 | while test "x$ac_lo" != "x$ac_hi"; do |
| 24338 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 24339 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24340 | /* confdefs.h. */ |
| 24341 | _ACEOF |
| 24342 | cat confdefs.h >>conftest.$ac_ext |
| 24343 | cat >>conftest.$ac_ext <<_ACEOF |
| 24344 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24345 | #include <wchar.h> |
| 24346 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24347 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24348 | int |
| 24349 | main () |
| 24350 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24351 | 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] | 24352 | test_array [0] = 0 |
| 24353 | |
| 24354 | ; |
| 24355 | return 0; |
| 24356 | } |
| 24357 | _ACEOF |
| 24358 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24359 | if { (ac_try="$ac_compile" |
| 24360 | case "(($ac_try" in |
| 24361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24362 | *) ac_try_echo=$ac_try;; |
| 24363 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24365 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24366 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24367 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24368 | rm -f conftest.er1 |
| 24369 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24371 | (exit $ac_status); } && { |
| 24372 | test -z "$ac_c_werror_flag" || |
| 24373 | test ! -s conftest.err |
| 24374 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24375 | ac_hi=$ac_mid |
| 24376 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24377 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24378 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24379 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24380 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24381 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24382 | |
| 24383 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24384 | done |
| 24385 | case $ac_lo in |
| 24386 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24387 | '') if test "$ac_cv_type_wchar_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24388 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24389 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24390 | echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24391 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24392 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24393 | else |
| 24394 | ac_cv_sizeof_wchar_t=0 |
| 24395 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24396 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24397 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24398 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24399 | /* confdefs.h. */ |
| 24400 | _ACEOF |
| 24401 | cat confdefs.h >>conftest.$ac_ext |
| 24402 | cat >>conftest.$ac_ext <<_ACEOF |
| 24403 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24404 | #include <wchar.h> |
| 24405 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24406 | typedef wchar_t ac__type_sizeof_; |
| 24407 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 24408 | 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] | 24409 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24410 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24411 | int |
| 24412 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24413 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24414 | |
| 24415 | FILE *f = fopen ("conftest.val", "w"); |
| 24416 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24417 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24418 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24419 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24420 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24421 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24422 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24423 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24424 | } |
| 24425 | else |
| 24426 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24427 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24428 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24429 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24430 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24431 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24432 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24433 | |
| 24434 | ; |
| 24435 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24436 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24437 | _ACEOF |
| 24438 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24439 | if { (ac_try="$ac_link" |
| 24440 | case "(($ac_try" in |
| 24441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24442 | *) ac_try_echo=$ac_try;; |
| 24443 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24445 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24446 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24448 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24449 | { (case "(($ac_try" in |
| 24450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24451 | *) ac_try_echo=$ac_try;; |
| 24452 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24454 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24455 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24457 | (exit $ac_status); }; }; then |
| 24458 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24459 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24460 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24461 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24462 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24463 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24464 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24465 | if test "$ac_cv_type_wchar_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24466 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24467 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24468 | echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24469 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24470 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24471 | else |
| 24472 | ac_cv_sizeof_wchar_t=0 |
| 24473 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24474 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24475 | 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] | 24476 | fi |
| 24477 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24478 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24479 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 24480 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24481 | |
| 24482 | |
| 24483 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24484 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24485 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24486 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24487 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24488 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24489 | fi |
| 24490 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24491 | { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5 |
| 24492 | 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] | 24493 | have_ucs4_tcl=no |
| 24494 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24495 | /* confdefs.h. */ |
| 24496 | _ACEOF |
| 24497 | cat confdefs.h >>conftest.$ac_ext |
| 24498 | cat >>conftest.$ac_ext <<_ACEOF |
| 24499 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 24500 | |
| 24501 | #include <tcl.h> |
| 24502 | #if TCL_UTF_MAX != 6 |
| 24503 | # error "NOT UCS4_TCL" |
| 24504 | #endif |
| 24505 | int |
| 24506 | main () |
| 24507 | { |
| 24508 | |
| 24509 | ; |
| 24510 | return 0; |
| 24511 | } |
| 24512 | _ACEOF |
| 24513 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24514 | if { (ac_try="$ac_compile" |
| 24515 | case "(($ac_try" in |
| 24516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24517 | *) ac_try_echo=$ac_try;; |
| 24518 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24520 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 24521 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24522 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24523 | rm -f conftest.er1 |
| 24524 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24526 | (exit $ac_status); } && { |
| 24527 | test -z "$ac_c_werror_flag" || |
| 24528 | test ! -s conftest.err |
| 24529 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 24530 | |
| 24531 | |
| 24532 | cat >>confdefs.h <<\_ACEOF |
| 24533 | #define HAVE_UCS4_TCL 1 |
| 24534 | _ACEOF |
| 24535 | |
| 24536 | have_ucs4_tcl=yes |
| 24537 | |
| 24538 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24539 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24540 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24541 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24542 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 24543 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24544 | |
| 24545 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24546 | { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5 |
| 24547 | echo "${ECHO_T}$have_ucs4_tcl" >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 24548 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24549 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24550 | if test "$wchar_h" = yes |
| 24551 | then |
| 24552 | # check whether wchar_t is signed or not |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24553 | { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5 |
| 24554 | 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] | 24555 | if test "${ac_cv_wchar_t_signed+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24557 | else |
| 24558 | |
| 24559 | if test "$cross_compiling" = yes; then |
| 24560 | ac_cv_wchar_t_signed=yes |
| 24561 | else |
| 24562 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24563 | /* confdefs.h. */ |
| 24564 | _ACEOF |
| 24565 | cat confdefs.h >>conftest.$ac_ext |
| 24566 | cat >>conftest.$ac_ext <<_ACEOF |
| 24567 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24568 | |
| 24569 | #include <wchar.h> |
| 24570 | int main() |
| 24571 | { |
Martin v. Löwis | 44fe0e4 | 2006-04-11 07:15:30 +0000 | [diff] [blame] | 24572 | /* Success: exit code 0 */ |
| 24573 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24574 | } |
| 24575 | |
| 24576 | _ACEOF |
| 24577 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24578 | if { (ac_try="$ac_link" |
| 24579 | case "(($ac_try" in |
| 24580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24581 | *) ac_try_echo=$ac_try;; |
| 24582 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24584 | (eval "$ac_link") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24585 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24587 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24588 | { (case "(($ac_try" in |
| 24589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24590 | *) ac_try_echo=$ac_try;; |
| 24591 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24593 | (eval "$ac_try") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24594 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24596 | (exit $ac_status); }; }; then |
| 24597 | ac_cv_wchar_t_signed=yes |
| 24598 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24599 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24600 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24601 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24602 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24603 | ( exit $ac_status ) |
| 24604 | ac_cv_wchar_t_signed=no |
| 24605 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24606 | 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] | 24607 | fi |
| 24608 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24609 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24610 | fi |
| 24611 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24612 | { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5 |
| 24613 | echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24614 | fi |
| 24615 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24616 | { echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 24617 | 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] | 24618 | # Check whether --enable-unicode was given. |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24619 | if test "${enable_unicode+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24620 | enableval=$enable_unicode; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24621 | else |
| 24622 | enable_unicode=yes |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24623 | fi |
| 24624 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24625 | |
| 24626 | if test $enable_unicode = yes |
| 24627 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 24628 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 24629 | case "$have_ucs4_tcl" in |
| 24630 | yes) enable_unicode="ucs4" |
| 24631 | ;; |
| 24632 | *) enable_unicode="ucs2" |
| 24633 | ;; |
| 24634 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24635 | fi |
| 24636 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 24637 | |
| 24638 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24639 | case "$enable_unicode" in |
| 24640 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24641 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24642 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24643 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24644 | |
| 24645 | ;; |
| 24646 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24647 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24648 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24649 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24650 | |
| 24651 | ;; |
| 24652 | esac |
| 24653 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24654 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24655 | |
| 24656 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 24657 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24658 | if test "$enable_unicode" = "no" |
| 24659 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 24660 | UNICODE_OBJS="" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24661 | { echo "$as_me:$LINENO: result: not used" >&5 |
| 24662 | echo "${ECHO_T}not used" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24663 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 24664 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24665 | |
| 24666 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24667 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24668 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24669 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24670 | |
| 24671 | # wchar_t is only usable if it maps to an unsigned type |
| 24672 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 24673 | -a "$ac_cv_wchar_t_signed" = "no" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24674 | then |
| 24675 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24676 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24677 | cat >>confdefs.h <<\_ACEOF |
| 24678 | #define HAVE_USABLE_WCHAR_T 1 |
| 24679 | _ACEOF |
| 24680 | |
| 24681 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24682 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24683 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24684 | |
| 24685 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 24686 | then |
| 24687 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24688 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24689 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24690 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24691 | |
| 24692 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 24693 | then |
| 24694 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24695 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24696 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24697 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24698 | |
| 24699 | else |
| 24700 | PY_UNICODE_TYPE="no type found" |
| 24701 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24702 | { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 24703 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24704 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24705 | |
| 24706 | # check for endianness |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24707 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 24708 | 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] | 24709 | if test "${ac_cv_c_bigendian+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24711 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24712 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 24713 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24714 | /* confdefs.h. */ |
| 24715 | _ACEOF |
| 24716 | cat confdefs.h >>conftest.$ac_ext |
| 24717 | cat >>conftest.$ac_ext <<_ACEOF |
| 24718 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24719 | #include <sys/types.h> |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24720 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24721 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24722 | int |
| 24723 | main () |
| 24724 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24725 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
| 24726 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
| 24727 | bogus endian macros |
| 24728 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24729 | |
| 24730 | ; |
| 24731 | return 0; |
| 24732 | } |
| 24733 | _ACEOF |
| 24734 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24735 | if { (ac_try="$ac_compile" |
| 24736 | case "(($ac_try" in |
| 24737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24738 | *) ac_try_echo=$ac_try;; |
| 24739 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24741 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24742 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24743 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24744 | rm -f conftest.er1 |
| 24745 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24747 | (exit $ac_status); } && { |
| 24748 | test -z "$ac_c_werror_flag" || |
| 24749 | test ! -s conftest.err |
| 24750 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24751 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24752 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24753 | /* confdefs.h. */ |
| 24754 | _ACEOF |
| 24755 | cat confdefs.h >>conftest.$ac_ext |
| 24756 | cat >>conftest.$ac_ext <<_ACEOF |
| 24757 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24758 | #include <sys/types.h> |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24759 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24760 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24761 | int |
| 24762 | main () |
| 24763 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24764 | #if BYTE_ORDER != BIG_ENDIAN |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24765 | not big endian |
| 24766 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24767 | |
| 24768 | ; |
| 24769 | return 0; |
| 24770 | } |
| 24771 | _ACEOF |
| 24772 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24773 | if { (ac_try="$ac_compile" |
| 24774 | case "(($ac_try" in |
| 24775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24776 | *) ac_try_echo=$ac_try;; |
| 24777 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24779 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24780 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24781 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24782 | rm -f conftest.er1 |
| 24783 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24785 | (exit $ac_status); } && { |
| 24786 | test -z "$ac_c_werror_flag" || |
| 24787 | test ! -s conftest.err |
| 24788 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24789 | ac_cv_c_bigendian=yes |
| 24790 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24791 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24792 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24793 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24794 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24795 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24796 | |
| 24797 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24798 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24799 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24800 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24801 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24802 | # It does not; compile a test program. |
| 24803 | if test "$cross_compiling" = yes; then |
| 24804 | # try to guess the endianness by grepping values into an object file |
| 24805 | ac_cv_c_bigendian=unknown |
| 24806 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24807 | /* confdefs.h. */ |
| 24808 | _ACEOF |
| 24809 | cat confdefs.h >>conftest.$ac_ext |
| 24810 | cat >>conftest.$ac_ext <<_ACEOF |
| 24811 | /* end confdefs.h. */ |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24812 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 24813 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 24814 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 24815 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 24816 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 24817 | 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] | 24818 | int |
| 24819 | main () |
| 24820 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24821 | _ascii (); _ebcdic (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24822 | ; |
| 24823 | return 0; |
| 24824 | } |
| 24825 | _ACEOF |
| 24826 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24827 | if { (ac_try="$ac_compile" |
| 24828 | case "(($ac_try" in |
| 24829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24830 | *) ac_try_echo=$ac_try;; |
| 24831 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24832 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24833 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24834 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24835 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24836 | rm -f conftest.er1 |
| 24837 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24839 | (exit $ac_status); } && { |
| 24840 | test -z "$ac_c_werror_flag" || |
| 24841 | test ! -s conftest.err |
| 24842 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24843 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24844 | ac_cv_c_bigendian=yes |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 24845 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24846 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 24847 | if test "$ac_cv_c_bigendian" = unknown; then |
| 24848 | ac_cv_c_bigendian=no |
| 24849 | else |
| 24850 | # finding both strings is unlikely to happen, but who knows? |
| 24851 | ac_cv_c_bigendian=unknown |
| 24852 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 24853 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 24854 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24855 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24856 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24857 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24858 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24859 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24860 | |
| 24861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24862 | else |
| 24863 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24864 | /* confdefs.h. */ |
| 24865 | _ACEOF |
| 24866 | cat confdefs.h >>conftest.$ac_ext |
| 24867 | cat >>conftest.$ac_ext <<_ACEOF |
| 24868 | /* end confdefs.h. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24869 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24870 | int |
| 24871 | main () |
| 24872 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24873 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24874 | /* Are we little or big endian? From Harbison&Steele. */ |
| 24875 | union |
| 24876 | { |
| 24877 | long int l; |
| 24878 | char c[sizeof (long int)]; |
| 24879 | } u; |
| 24880 | u.l = 1; |
| 24881 | return u.c[sizeof (long int) - 1] == 1; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24882 | |
| 24883 | ; |
| 24884 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24885 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24886 | _ACEOF |
| 24887 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24888 | if { (ac_try="$ac_link" |
| 24889 | case "(($ac_try" in |
| 24890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24891 | *) ac_try_echo=$ac_try;; |
| 24892 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24894 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24895 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24897 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24898 | { (case "(($ac_try" in |
| 24899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24900 | *) ac_try_echo=$ac_try;; |
| 24901 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24903 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24904 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24906 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24907 | ac_cv_c_bigendian=no |
| 24908 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24909 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24910 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24911 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24912 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24913 | ( exit $ac_status ) |
| 24914 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24915 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24916 | 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] | 24917 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24918 | |
| 24919 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24920 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24921 | |
| 24922 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24923 | fi |
| 24924 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 24925 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 24926 | case $ac_cv_c_bigendian in |
| 24927 | yes) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 24928 | |
| 24929 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24930 | #define WORDS_BIGENDIAN 1 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 24931 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24932 | ;; |
| 24933 | no) |
| 24934 | ;; |
| 24935 | *) |
| 24936 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 24937 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 24938 | echo "$as_me: error: unknown endianness |
| 24939 | 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] | 24940 | { (exit 1); exit 1; }; } ;; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24941 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24942 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24943 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 24944 | # Check whether right shifting a negative integer extends the sign bit |
| 24945 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24946 | { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 24947 | 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] | 24948 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24949 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 24950 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24951 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 24952 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 24953 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 24954 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24955 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24956 | /* confdefs.h. */ |
| 24957 | _ACEOF |
| 24958 | cat confdefs.h >>conftest.$ac_ext |
| 24959 | cat >>conftest.$ac_ext <<_ACEOF |
| 24960 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 24961 | |
| 24962 | int main() |
| 24963 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 24964 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 24965 | } |
| 24966 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24967 | _ACEOF |
| 24968 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24969 | if { (ac_try="$ac_link" |
| 24970 | case "(($ac_try" in |
| 24971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24972 | *) ac_try_echo=$ac_try;; |
| 24973 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24975 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24976 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24978 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24979 | { (case "(($ac_try" in |
| 24980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24981 | *) ac_try_echo=$ac_try;; |
| 24982 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24984 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24985 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24987 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 24988 | ac_cv_rshift_extends_sign=yes |
| 24989 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24990 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24991 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24992 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24993 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24994 | ( exit $ac_status ) |
| 24995 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 24996 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24997 | 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] | 24998 | fi |
| 24999 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25000 | |
| 25001 | fi |
| 25002 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25003 | { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 25004 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; } |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25005 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25006 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25007 | |
| 25008 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25009 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25010 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25011 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25012 | fi |
| 25013 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25014 | # check for getc_unlocked and related locking functions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25015 | { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 25016 | 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] | 25017 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25019 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25020 | |
| 25021 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25022 | /* confdefs.h. */ |
| 25023 | _ACEOF |
| 25024 | cat confdefs.h >>conftest.$ac_ext |
| 25025 | cat >>conftest.$ac_ext <<_ACEOF |
| 25026 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25027 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25028 | int |
| 25029 | main () |
| 25030 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25031 | |
| 25032 | FILE *f = fopen("/dev/null", "r"); |
| 25033 | flockfile(f); |
| 25034 | getc_unlocked(f); |
| 25035 | funlockfile(f); |
| 25036 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25037 | ; |
| 25038 | return 0; |
| 25039 | } |
| 25040 | _ACEOF |
| 25041 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25042 | if { (ac_try="$ac_link" |
| 25043 | case "(($ac_try" in |
| 25044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25045 | *) ac_try_echo=$ac_try;; |
| 25046 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25048 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25049 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25050 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25051 | rm -f conftest.er1 |
| 25052 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25054 | (exit $ac_status); } && { |
| 25055 | test -z "$ac_c_werror_flag" || |
| 25056 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25057 | } && test -s conftest$ac_exeext && |
| 25058 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25059 | ac_cv_have_getc_unlocked=yes |
| 25060 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25061 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25062 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25063 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25064 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25065 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25066 | |
| 25067 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25068 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25069 | fi |
| 25070 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25071 | { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 25072 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; } |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25073 | if test "$ac_cv_have_getc_unlocked" = yes |
| 25074 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25075 | |
| 25076 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25077 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25078 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25079 | |
| 25080 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25081 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25082 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 25083 | # save the value of LIBS so we don't actually link Python with readline |
| 25084 | LIBS_no_readline=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25085 | |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 25086 | # On some systems we need to link readline to a termcap compatible |
| 25087 | # library. NOTE: Keep the precedence of listed libraries synchronised |
| 25088 | # with setup.py. |
| 25089 | py_cv_lib_readline=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25090 | { echo "$as_me:$LINENO: checking how to link readline libs" >&5 |
| 25091 | 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] | 25092 | for py_libtermcap in "" ncursesw ncurses curses termcap; do |
| 25093 | if test -z "$py_libtermcap"; then |
| 25094 | READLINE_LIBS="-lreadline" |
| 25095 | else |
| 25096 | READLINE_LIBS="-lreadline -l$py_libtermcap" |
| 25097 | fi |
| 25098 | LIBS="$READLINE_LIBS $LIBS_no_readline" |
| 25099 | cat >conftest.$ac_ext <<_ACEOF |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25100 | /* confdefs.h. */ |
| 25101 | _ACEOF |
| 25102 | cat confdefs.h >>conftest.$ac_ext |
| 25103 | cat >>conftest.$ac_ext <<_ACEOF |
| 25104 | /* end confdefs.h. */ |
| 25105 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25106 | /* Override any GCC internal prototype to avoid an error. |
| 25107 | Use char because int might match the return type of a GCC |
| 25108 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25109 | #ifdef __cplusplus |
| 25110 | extern "C" |
| 25111 | #endif |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25112 | char readline (); |
| 25113 | int |
| 25114 | main () |
| 25115 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25116 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25117 | ; |
| 25118 | return 0; |
| 25119 | } |
| 25120 | _ACEOF |
| 25121 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25122 | if { (ac_try="$ac_link" |
| 25123 | case "(($ac_try" in |
| 25124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25125 | *) ac_try_echo=$ac_try;; |
| 25126 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25128 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25129 | ac_status=$? |
| 25130 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25131 | rm -f conftest.er1 |
| 25132 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25134 | (exit $ac_status); } && { |
| 25135 | test -z "$ac_c_werror_flag" || |
| 25136 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25137 | } && test -s conftest$ac_exeext && |
| 25138 | $as_test_x conftest$ac_exeext; then |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 25139 | py_cv_lib_readline=yes |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25140 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25141 | echo "$as_me: failed program was:" >&5 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25142 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25143 | |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 25144 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25145 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25146 | |
| 25147 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25148 | conftest$ac_exeext conftest.$ac_ext |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 25149 | if test $py_cv_lib_readline = yes; then |
| 25150 | break |
| 25151 | fi |
| 25152 | done |
| 25153 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts |
| 25154 | #AC_SUBST([READLINE_LIBS]) |
Gregory P. Smith | e080cdf | 2008-09-07 19:19:04 +0000 | [diff] [blame] | 25155 | if test $py_cv_lib_readline = no; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25156 | { echo "$as_me:$LINENO: result: none" >&5 |
| 25157 | echo "${ECHO_T}none" >&6; } |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 25158 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25159 | { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5 |
| 25160 | echo "${ECHO_T}$READLINE_LIBS" >&6; } |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 25161 | |
| 25162 | cat >>confdefs.h <<\_ACEOF |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25163 | #define HAVE_LIBREADLINE 1 |
| 25164 | _ACEOF |
| 25165 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25166 | fi |
| 25167 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25168 | # check for readline 2.1 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25169 | { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5 |
| 25170 | 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] | 25171 | 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] | 25172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25173 | else |
| 25174 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 25175 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25176 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25177 | /* confdefs.h. */ |
| 25178 | _ACEOF |
| 25179 | cat confdefs.h >>conftest.$ac_ext |
| 25180 | cat >>conftest.$ac_ext <<_ACEOF |
| 25181 | /* end confdefs.h. */ |
| 25182 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25183 | /* Override any GCC internal prototype to avoid an error. |
| 25184 | Use char because int might match the return type of a GCC |
| 25185 | builtin and then its argument prototype would still apply. */ |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25186 | #ifdef __cplusplus |
| 25187 | extern "C" |
| 25188 | #endif |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25189 | char rl_callback_handler_install (); |
| 25190 | int |
| 25191 | main () |
| 25192 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25193 | return rl_callback_handler_install (); |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25194 | ; |
| 25195 | return 0; |
| 25196 | } |
| 25197 | _ACEOF |
| 25198 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25199 | if { (ac_try="$ac_link" |
| 25200 | case "(($ac_try" in |
| 25201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25202 | *) ac_try_echo=$ac_try;; |
| 25203 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25205 | (eval "$ac_link") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25206 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25207 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25208 | rm -f conftest.er1 |
| 25209 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25211 | (exit $ac_status); } && { |
| 25212 | test -z "$ac_c_werror_flag" || |
| 25213 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25214 | } && test -s conftest$ac_exeext && |
| 25215 | $as_test_x conftest$ac_exeext; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25216 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 25217 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25218 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25219 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25220 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25221 | ac_cv_lib_readline_rl_callback_handler_install=no |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25222 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25223 | |
| 25224 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25225 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25226 | LIBS=$ac_check_lib_save_LIBS |
| 25227 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25228 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
| 25229 | echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; } |
| 25230 | 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] | 25231 | |
| 25232 | cat >>confdefs.h <<\_ACEOF |
| 25233 | #define HAVE_RL_CALLBACK 1 |
| 25234 | _ACEOF |
| 25235 | |
| 25236 | fi |
| 25237 | |
| 25238 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25239 | # check for readline 2.2 |
| 25240 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25241 | /* confdefs.h. */ |
| 25242 | _ACEOF |
| 25243 | cat confdefs.h >>conftest.$ac_ext |
| 25244 | cat >>conftest.$ac_ext <<_ACEOF |
| 25245 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25246 | #include <readline/readline.h> |
| 25247 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25248 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 25249 | case "(($ac_try" in |
| 25250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25251 | *) ac_try_echo=$ac_try;; |
| 25252 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25254 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25255 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25256 | grep -v '^ *+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25257 | rm -f conftest.er1 |
| 25258 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25260 | (exit $ac_status); } >/dev/null && { |
| 25261 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 25262 | test ! -s conftest.err |
| 25263 | }; then |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25264 | have_readline=yes |
| 25265 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25266 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25267 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25268 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25269 | have_readline=no |
| 25270 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25271 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25272 | rm -f conftest.err conftest.$ac_ext |
| 25273 | if test $have_readline = yes |
| 25274 | then |
| 25275 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25276 | /* confdefs.h. */ |
| 25277 | _ACEOF |
| 25278 | cat confdefs.h >>conftest.$ac_ext |
| 25279 | cat >>conftest.$ac_ext <<_ACEOF |
| 25280 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25281 | #include <readline/readline.h> |
| 25282 | |
| 25283 | _ACEOF |
| 25284 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25285 | $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] | 25286 | |
| 25287 | cat >>confdefs.h <<\_ACEOF |
| 25288 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 25289 | _ACEOF |
| 25290 | |
| 25291 | fi |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 25292 | rm -f -r conftest* |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25293 | |
| 25294 | fi |
| 25295 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25296 | # check for readline 4.0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25297 | { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 25298 | 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] | 25299 | 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] | 25300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 25301 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25302 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 25303 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25304 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25305 | /* confdefs.h. */ |
| 25306 | _ACEOF |
| 25307 | cat confdefs.h >>conftest.$ac_ext |
| 25308 | cat >>conftest.$ac_ext <<_ACEOF |
| 25309 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25310 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25311 | /* Override any GCC internal prototype to avoid an error. |
| 25312 | Use char because int might match the return type of a GCC |
| 25313 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25314 | #ifdef __cplusplus |
| 25315 | extern "C" |
| 25316 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25317 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25318 | int |
| 25319 | main () |
| 25320 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25321 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25322 | ; |
| 25323 | return 0; |
| 25324 | } |
| 25325 | _ACEOF |
| 25326 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25327 | if { (ac_try="$ac_link" |
| 25328 | case "(($ac_try" in |
| 25329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25330 | *) ac_try_echo=$ac_try;; |
| 25331 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25332 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25333 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25334 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25335 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25336 | rm -f conftest.er1 |
| 25337 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25339 | (exit $ac_status); } && { |
| 25340 | test -z "$ac_c_werror_flag" || |
| 25341 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25342 | } && test -s conftest$ac_exeext && |
| 25343 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25344 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25345 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25346 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25347 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25348 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25349 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25350 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25351 | |
| 25352 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25353 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25354 | LIBS=$ac_check_lib_save_LIBS |
| 25355 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25356 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 25357 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; } |
| 25358 | 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] | 25359 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25360 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25361 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25362 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25363 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25364 | fi |
| 25365 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25366 | |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 25367 | # also in 4.0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25368 | { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5 |
| 25369 | 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] | 25370 | 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] | 25371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 25372 | else |
| 25373 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 25374 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 25375 | cat >conftest.$ac_ext <<_ACEOF |
| 25376 | /* confdefs.h. */ |
| 25377 | _ACEOF |
| 25378 | cat confdefs.h >>conftest.$ac_ext |
| 25379 | cat >>conftest.$ac_ext <<_ACEOF |
| 25380 | /* end confdefs.h. */ |
| 25381 | |
| 25382 | /* Override any GCC internal prototype to avoid an error. |
| 25383 | Use char because int might match the return type of a GCC |
| 25384 | builtin and then its argument prototype would still apply. */ |
| 25385 | #ifdef __cplusplus |
| 25386 | extern "C" |
| 25387 | #endif |
| 25388 | char rl_completion_display_matches_hook (); |
| 25389 | int |
| 25390 | main () |
| 25391 | { |
| 25392 | return rl_completion_display_matches_hook (); |
| 25393 | ; |
| 25394 | return 0; |
| 25395 | } |
| 25396 | _ACEOF |
| 25397 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25398 | if { (ac_try="$ac_link" |
| 25399 | case "(($ac_try" in |
| 25400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25401 | *) ac_try_echo=$ac_try;; |
| 25402 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25403 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 25404 | (eval "$ac_link") 2>conftest.er1 |
| 25405 | ac_status=$? |
| 25406 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25407 | rm -f conftest.er1 |
| 25408 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 25410 | (exit $ac_status); } && { |
| 25411 | test -z "$ac_c_werror_flag" || |
| 25412 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25413 | } && test -s conftest$ac_exeext && |
| 25414 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 25415 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes |
| 25416 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25417 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 25418 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25419 | |
| 25420 | ac_cv_lib_readline_rl_completion_display_matches_hook=no |
| 25421 | fi |
| 25422 | |
| 25423 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 25424 | conftest$ac_exeext conftest.$ac_ext |
| 25425 | LIBS=$ac_check_lib_save_LIBS |
| 25426 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25427 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 |
| 25428 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } |
| 25429 | 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] | 25430 | |
| 25431 | cat >>confdefs.h <<\_ACEOF |
| 25432 | #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1 |
| 25433 | _ACEOF |
| 25434 | |
| 25435 | fi |
| 25436 | |
| 25437 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25438 | # check for readline 4.2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25439 | { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 25440 | 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] | 25441 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25443 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25444 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 25445 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25446 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25447 | /* confdefs.h. */ |
| 25448 | _ACEOF |
| 25449 | cat confdefs.h >>conftest.$ac_ext |
| 25450 | cat >>conftest.$ac_ext <<_ACEOF |
| 25451 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25452 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25453 | /* Override any GCC internal prototype to avoid an error. |
| 25454 | Use char because int might match the return type of a GCC |
| 25455 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25456 | #ifdef __cplusplus |
| 25457 | extern "C" |
| 25458 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25459 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25460 | int |
| 25461 | main () |
| 25462 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25463 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25464 | ; |
| 25465 | return 0; |
| 25466 | } |
| 25467 | _ACEOF |
| 25468 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25469 | if { (ac_try="$ac_link" |
| 25470 | case "(($ac_try" in |
| 25471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25472 | *) ac_try_echo=$ac_try;; |
| 25473 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25474 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25475 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25476 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25477 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25478 | rm -f conftest.er1 |
| 25479 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25481 | (exit $ac_status); } && { |
| 25482 | test -z "$ac_c_werror_flag" || |
| 25483 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25484 | } && test -s conftest$ac_exeext && |
| 25485 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25486 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 25487 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25488 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25489 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25490 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25491 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 25492 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25493 | |
| 25494 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25495 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25496 | LIBS=$ac_check_lib_save_LIBS |
| 25497 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25498 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 25499 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; } |
| 25500 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25501 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25502 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 25503 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25504 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 25505 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 25506 | fi |
| 25507 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 25508 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25509 | # also in readline 4.2 |
| 25510 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25511 | /* confdefs.h. */ |
| 25512 | _ACEOF |
| 25513 | cat confdefs.h >>conftest.$ac_ext |
| 25514 | cat >>conftest.$ac_ext <<_ACEOF |
| 25515 | /* end confdefs.h. */ |
| 25516 | #include <readline/readline.h> |
| 25517 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25518 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 25519 | case "(($ac_try" in |
| 25520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25521 | *) ac_try_echo=$ac_try;; |
| 25522 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25524 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25525 | ac_status=$? |
| 25526 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25527 | rm -f conftest.er1 |
| 25528 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25530 | (exit $ac_status); } >/dev/null && { |
| 25531 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 25532 | test ! -s conftest.err |
| 25533 | }; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25534 | have_readline=yes |
| 25535 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25536 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25537 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25538 | |
| 25539 | have_readline=no |
| 25540 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25541 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25542 | rm -f conftest.err conftest.$ac_ext |
| 25543 | if test $have_readline = yes |
| 25544 | then |
| 25545 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25546 | /* confdefs.h. */ |
| 25547 | _ACEOF |
| 25548 | cat confdefs.h >>conftest.$ac_ext |
| 25549 | cat >>conftest.$ac_ext <<_ACEOF |
| 25550 | /* end confdefs.h. */ |
| 25551 | #include <readline/readline.h> |
| 25552 | |
| 25553 | _ACEOF |
| 25554 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 25555 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then |
| 25556 | |
| 25557 | cat >>confdefs.h <<\_ACEOF |
| 25558 | #define HAVE_RL_CATCH_SIGNAL 1 |
| 25559 | _ACEOF |
| 25560 | |
| 25561 | fi |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 25562 | rm -f -r conftest* |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25563 | |
| 25564 | fi |
| 25565 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 25566 | # End of readline checks: restore LIBS |
| 25567 | LIBS=$LIBS_no_readline |
| 25568 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25569 | { echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 25570 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25571 | if test "${ac_cv_broken_nice+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25573 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25574 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 25575 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 25576 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 25577 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25578 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25579 | /* confdefs.h. */ |
| 25580 | _ACEOF |
| 25581 | cat confdefs.h >>conftest.$ac_ext |
| 25582 | cat >>conftest.$ac_ext <<_ACEOF |
| 25583 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 25584 | |
| 25585 | int main() |
| 25586 | { |
| 25587 | int val1 = nice(1); |
| 25588 | if (val1 != -1 && val1 == nice(2)) |
| 25589 | exit(0); |
| 25590 | exit(1); |
| 25591 | } |
| 25592 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25593 | _ACEOF |
| 25594 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25595 | if { (ac_try="$ac_link" |
| 25596 | case "(($ac_try" in |
| 25597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25598 | *) ac_try_echo=$ac_try;; |
| 25599 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25601 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25602 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25604 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25605 | { (case "(($ac_try" in |
| 25606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25607 | *) ac_try_echo=$ac_try;; |
| 25608 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25610 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25611 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25613 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 25614 | ac_cv_broken_nice=yes |
| 25615 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25616 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25617 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25618 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25619 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25620 | ( exit $ac_status ) |
| 25621 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 25622 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25623 | 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] | 25624 | fi |
| 25625 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25626 | |
| 25627 | fi |
| 25628 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25629 | { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 25630 | echo "${ECHO_T}$ac_cv_broken_nice" >&6; } |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 25631 | if test "$ac_cv_broken_nice" = yes |
| 25632 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25633 | |
| 25634 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 25635 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25636 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 25637 | |
| 25638 | fi |
| 25639 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25640 | { echo "$as_me:$LINENO: checking for broken poll()" >&5 |
| 25641 | echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 25642 | if test "${ac_cv_broken_poll+set}" = set; then |
| 25643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25644 | else |
| 25645 | if test "$cross_compiling" = yes; then |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25646 | ac_cv_broken_poll=no |
| 25647 | else |
| 25648 | cat >conftest.$ac_ext <<_ACEOF |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25649 | /* confdefs.h. */ |
| 25650 | _ACEOF |
| 25651 | cat confdefs.h >>conftest.$ac_ext |
| 25652 | cat >>conftest.$ac_ext <<_ACEOF |
| 25653 | /* end confdefs.h. */ |
| 25654 | |
| 25655 | #include <poll.h> |
| 25656 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 25657 | int main() |
| 25658 | { |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25659 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 25660 | int poll_test; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25661 | |
| 25662 | close (42); |
| 25663 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 25664 | poll_test = poll(&poll_struct, 1, 0); |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25665 | if (poll_test < 0) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 25666 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25667 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 25668 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25669 | else |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 25670 | return 1; |
| 25671 | } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25672 | |
| 25673 | _ACEOF |
| 25674 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25675 | if { (ac_try="$ac_link" |
| 25676 | case "(($ac_try" in |
| 25677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25678 | *) ac_try_echo=$ac_try;; |
| 25679 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25681 | (eval "$ac_link") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25682 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25684 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25685 | { (case "(($ac_try" in |
| 25686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25687 | *) ac_try_echo=$ac_try;; |
| 25688 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25690 | (eval "$ac_try") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25691 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25693 | (exit $ac_status); }; }; then |
| 25694 | ac_cv_broken_poll=yes |
| 25695 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25696 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25697 | echo "$as_me: failed program was:" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25698 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25699 | |
| 25700 | ( exit $ac_status ) |
| 25701 | ac_cv_broken_poll=no |
| 25702 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25703 | 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] | 25704 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25705 | |
| 25706 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 25707 | fi |
| 25708 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25709 | { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5 |
| 25710 | echo "${ECHO_T}$ac_cv_broken_poll" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25711 | if test "$ac_cv_broken_poll" = yes |
| 25712 | then |
| 25713 | |
| 25714 | cat >>confdefs.h <<\_ACEOF |
| 25715 | #define HAVE_BROKEN_POLL 1 |
| 25716 | _ACEOF |
| 25717 | |
| 25718 | fi |
| 25719 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25720 | # 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] | 25721 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 25722 | # tzname[] |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25723 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 25724 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25725 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25727 | else |
| 25728 | cat >conftest.$ac_ext <<_ACEOF |
| 25729 | /* confdefs.h. */ |
| 25730 | _ACEOF |
| 25731 | cat confdefs.h >>conftest.$ac_ext |
| 25732 | cat >>conftest.$ac_ext <<_ACEOF |
| 25733 | /* end confdefs.h. */ |
| 25734 | #include <sys/types.h> |
| 25735 | #include <$ac_cv_struct_tm> |
| 25736 | |
| 25737 | |
| 25738 | int |
| 25739 | main () |
| 25740 | { |
| 25741 | static struct tm ac_aggr; |
| 25742 | if (ac_aggr.tm_zone) |
| 25743 | return 0; |
| 25744 | ; |
| 25745 | return 0; |
| 25746 | } |
| 25747 | _ACEOF |
| 25748 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25749 | if { (ac_try="$ac_compile" |
| 25750 | case "(($ac_try" in |
| 25751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25752 | *) ac_try_echo=$ac_try;; |
| 25753 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25755 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25756 | ac_status=$? |
| 25757 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25758 | rm -f conftest.er1 |
| 25759 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25761 | (exit $ac_status); } && { |
| 25762 | test -z "$ac_c_werror_flag" || |
| 25763 | test ! -s conftest.err |
| 25764 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25765 | ac_cv_member_struct_tm_tm_zone=yes |
| 25766 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25767 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25768 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25769 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25770 | cat >conftest.$ac_ext <<_ACEOF |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25771 | /* confdefs.h. */ |
| 25772 | _ACEOF |
| 25773 | cat confdefs.h >>conftest.$ac_ext |
| 25774 | cat >>conftest.$ac_ext <<_ACEOF |
| 25775 | /* end confdefs.h. */ |
| 25776 | #include <sys/types.h> |
| 25777 | #include <$ac_cv_struct_tm> |
| 25778 | |
| 25779 | |
| 25780 | int |
| 25781 | main () |
| 25782 | { |
| 25783 | static struct tm ac_aggr; |
| 25784 | if (sizeof ac_aggr.tm_zone) |
| 25785 | return 0; |
| 25786 | ; |
| 25787 | return 0; |
| 25788 | } |
| 25789 | _ACEOF |
| 25790 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25791 | if { (ac_try="$ac_compile" |
| 25792 | case "(($ac_try" in |
| 25793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25794 | *) ac_try_echo=$ac_try;; |
| 25795 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25797 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25798 | ac_status=$? |
| 25799 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25800 | rm -f conftest.er1 |
| 25801 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25803 | (exit $ac_status); } && { |
| 25804 | test -z "$ac_c_werror_flag" || |
| 25805 | test ! -s conftest.err |
| 25806 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25807 | ac_cv_member_struct_tm_tm_zone=yes |
| 25808 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25809 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25810 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25811 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25812 | ac_cv_member_struct_tm_tm_zone=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25813 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25814 | |
| 25815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25816 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25817 | |
| 25818 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25819 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25820 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 25821 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } |
| 25822 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25823 | |
| 25824 | cat >>confdefs.h <<_ACEOF |
| 25825 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 25826 | _ACEOF |
| 25827 | |
| 25828 | |
| 25829 | fi |
| 25830 | |
| 25831 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 25832 | |
| 25833 | cat >>confdefs.h <<\_ACEOF |
| 25834 | #define HAVE_TM_ZONE 1 |
| 25835 | _ACEOF |
| 25836 | |
| 25837 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25838 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 25839 | 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] | 25840 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25842 | else |
| 25843 | cat >conftest.$ac_ext <<_ACEOF |
| 25844 | /* confdefs.h. */ |
| 25845 | _ACEOF |
| 25846 | cat confdefs.h >>conftest.$ac_ext |
| 25847 | cat >>conftest.$ac_ext <<_ACEOF |
| 25848 | /* end confdefs.h. */ |
| 25849 | #include <time.h> |
| 25850 | |
| 25851 | int |
| 25852 | main () |
| 25853 | { |
| 25854 | #ifndef tzname |
| 25855 | (void) tzname; |
| 25856 | #endif |
| 25857 | |
| 25858 | ; |
| 25859 | return 0; |
| 25860 | } |
| 25861 | _ACEOF |
| 25862 | rm -f conftest.$ac_objext |
| 25863 | if { (ac_try="$ac_compile" |
| 25864 | case "(($ac_try" in |
| 25865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25866 | *) ac_try_echo=$ac_try;; |
| 25867 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25869 | (eval "$ac_compile") 2>conftest.er1 |
| 25870 | ac_status=$? |
| 25871 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25872 | rm -f conftest.er1 |
| 25873 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25875 | (exit $ac_status); } && { |
| 25876 | test -z "$ac_c_werror_flag" || |
| 25877 | test ! -s conftest.err |
| 25878 | } && test -s conftest.$ac_objext; then |
| 25879 | ac_cv_have_decl_tzname=yes |
| 25880 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25881 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25882 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25883 | |
| 25884 | ac_cv_have_decl_tzname=no |
| 25885 | fi |
| 25886 | |
| 25887 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25888 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25889 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 25890 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } |
| 25891 | if test $ac_cv_have_decl_tzname = yes; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25892 | |
| 25893 | cat >>confdefs.h <<_ACEOF |
| 25894 | #define HAVE_DECL_TZNAME 1 |
| 25895 | _ACEOF |
| 25896 | |
| 25897 | |
| 25898 | else |
| 25899 | cat >>confdefs.h <<_ACEOF |
| 25900 | #define HAVE_DECL_TZNAME 0 |
| 25901 | _ACEOF |
| 25902 | |
| 25903 | |
| 25904 | fi |
| 25905 | |
| 25906 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25907 | { echo "$as_me:$LINENO: checking for tzname" >&5 |
| 25908 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25909 | if test "${ac_cv_var_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25911 | else |
| 25912 | cat >conftest.$ac_ext <<_ACEOF |
| 25913 | /* confdefs.h. */ |
| 25914 | _ACEOF |
| 25915 | cat confdefs.h >>conftest.$ac_ext |
| 25916 | cat >>conftest.$ac_ext <<_ACEOF |
| 25917 | /* end confdefs.h. */ |
| 25918 | #include <time.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25919 | #if !HAVE_DECL_TZNAME |
| 25920 | extern char *tzname[]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25921 | #endif |
| 25922 | |
| 25923 | int |
| 25924 | main () |
| 25925 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25926 | return tzname[0][0]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25927 | ; |
| 25928 | return 0; |
| 25929 | } |
| 25930 | _ACEOF |
| 25931 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25932 | if { (ac_try="$ac_link" |
| 25933 | case "(($ac_try" in |
| 25934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25935 | *) ac_try_echo=$ac_try;; |
| 25936 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25937 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25938 | (eval "$ac_link") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25939 | ac_status=$? |
| 25940 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25941 | rm -f conftest.er1 |
| 25942 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25944 | (exit $ac_status); } && { |
| 25945 | test -z "$ac_c_werror_flag" || |
| 25946 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25947 | } && test -s conftest$ac_exeext && |
| 25948 | $as_test_x conftest$ac_exeext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25949 | ac_cv_var_tzname=yes |
| 25950 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25951 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25952 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25953 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25954 | ac_cv_var_tzname=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25955 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25956 | |
| 25957 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25958 | conftest$ac_exeext conftest.$ac_ext |
| 25959 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25960 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 25961 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25962 | if test $ac_cv_var_tzname = yes; then |
| 25963 | |
| 25964 | cat >>confdefs.h <<\_ACEOF |
| 25965 | #define HAVE_TZNAME 1 |
| 25966 | _ACEOF |
| 25967 | |
| 25968 | fi |
| 25969 | fi |
| 25970 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25971 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 25972 | # check tzset(3) exists and works like we expect it to |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25973 | { echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 25974 | echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25975 | if test "${ac_cv_working_tzset+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25977 | else |
| 25978 | |
| 25979 | if test "$cross_compiling" = yes; then |
| 25980 | ac_cv_working_tzset=no |
| 25981 | else |
| 25982 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25983 | /* confdefs.h. */ |
| 25984 | _ACEOF |
| 25985 | cat confdefs.h >>conftest.$ac_ext |
| 25986 | cat >>conftest.$ac_ext <<_ACEOF |
| 25987 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25988 | |
| 25989 | #include <stdlib.h> |
| 25990 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 25991 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25992 | |
| 25993 | #if HAVE_TZNAME |
| 25994 | extern char *tzname[]; |
| 25995 | #endif |
| 25996 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25997 | int main() |
| 25998 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 25999 | /* Note that we need to ensure that not only does tzset(3) |
| 26000 | do 'something' with localtime, but it works as documented |
| 26001 | 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] | 26002 | This includes making sure that tzname is set properly if |
| 26003 | tm->tm_zone does not exist since it is the alternative way |
| 26004 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26005 | |
| 26006 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 26007 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26008 | */ |
| 26009 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 26010 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26011 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 26012 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 26013 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26014 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26015 | if (localtime(&groundhogday)->tm_hour != 0) |
| 26016 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26017 | #if HAVE_TZNAME |
| 26018 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 26019 | if (strcmp(tzname[0], "UTC") || |
| 26020 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 26021 | exit(1); |
| 26022 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26023 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 26024 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26025 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26026 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26027 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26028 | #if HAVE_TZNAME |
| 26029 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 26030 | exit(1); |
| 26031 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26032 | |
| 26033 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 26034 | tzset(); |
| 26035 | if (localtime(&groundhogday)->tm_hour != 11) |
| 26036 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26037 | #if HAVE_TZNAME |
| 26038 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 26039 | exit(1); |
| 26040 | #endif |
| 26041 | |
| 26042 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26043 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 26044 | exit(1); |
| 26045 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 26046 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26047 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26048 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26049 | exit(0); |
| 26050 | } |
| 26051 | |
| 26052 | _ACEOF |
| 26053 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26054 | if { (ac_try="$ac_link" |
| 26055 | case "(($ac_try" in |
| 26056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26057 | *) ac_try_echo=$ac_try;; |
| 26058 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26060 | (eval "$ac_link") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26061 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26063 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26064 | { (case "(($ac_try" in |
| 26065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26066 | *) ac_try_echo=$ac_try;; |
| 26067 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26069 | (eval "$ac_try") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26070 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26072 | (exit $ac_status); }; }; then |
| 26073 | ac_cv_working_tzset=yes |
| 26074 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26075 | echo "$as_me: program exited with status $ac_status" >&5 |
| 26076 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26077 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26078 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26079 | ( exit $ac_status ) |
| 26080 | ac_cv_working_tzset=no |
| 26081 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26082 | 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] | 26083 | fi |
| 26084 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26085 | |
| 26086 | fi |
| 26087 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26088 | { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 26089 | echo "${ECHO_T}$ac_cv_working_tzset" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26090 | if test "$ac_cv_working_tzset" = yes |
| 26091 | then |
| 26092 | |
| 26093 | cat >>confdefs.h <<\_ACEOF |
| 26094 | #define HAVE_WORKING_TZSET 1 |
| 26095 | _ACEOF |
| 26096 | |
| 26097 | fi |
| 26098 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 26099 | # Look for subsecond timestamps in struct stat |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26100 | { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 26101 | 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] | 26102 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 26104 | else |
| 26105 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26106 | /* confdefs.h. */ |
| 26107 | _ACEOF |
| 26108 | cat confdefs.h >>conftest.$ac_ext |
| 26109 | cat >>conftest.$ac_ext <<_ACEOF |
| 26110 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 26111 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 26112 | int |
| 26113 | main () |
| 26114 | { |
| 26115 | |
| 26116 | struct stat st; |
| 26117 | st.st_mtim.tv_nsec = 1; |
| 26118 | |
| 26119 | ; |
| 26120 | return 0; |
| 26121 | } |
| 26122 | _ACEOF |
| 26123 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26124 | if { (ac_try="$ac_compile" |
| 26125 | case "(($ac_try" in |
| 26126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26127 | *) ac_try_echo=$ac_try;; |
| 26128 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26130 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 26131 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26132 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26133 | rm -f conftest.er1 |
| 26134 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26136 | (exit $ac_status); } && { |
| 26137 | test -z "$ac_c_werror_flag" || |
| 26138 | test ! -s conftest.err |
| 26139 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 26140 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 26141 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26142 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26144 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26145 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 26146 | fi |
| 26147 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26148 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26149 | fi |
| 26150 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26151 | { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 26152 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; } |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 26153 | if test "$ac_cv_stat_tv_nsec" = yes |
| 26154 | then |
| 26155 | |
| 26156 | cat >>confdefs.h <<\_ACEOF |
| 26157 | #define HAVE_STAT_TV_NSEC 1 |
| 26158 | _ACEOF |
| 26159 | |
| 26160 | fi |
| 26161 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 26162 | # Look for BSD style subsecond timestamps in struct stat |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26163 | { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5 |
| 26164 | 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] | 26165 | if test "${ac_cv_stat_tv_nsec2+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 26167 | else |
| 26168 | cat >conftest.$ac_ext <<_ACEOF |
| 26169 | /* confdefs.h. */ |
| 26170 | _ACEOF |
| 26171 | cat confdefs.h >>conftest.$ac_ext |
| 26172 | cat >>conftest.$ac_ext <<_ACEOF |
| 26173 | /* end confdefs.h. */ |
| 26174 | #include <sys/stat.h> |
| 26175 | int |
| 26176 | main () |
| 26177 | { |
| 26178 | |
| 26179 | struct stat st; |
| 26180 | st.st_mtimespec.tv_nsec = 1; |
| 26181 | |
| 26182 | ; |
| 26183 | return 0; |
| 26184 | } |
| 26185 | _ACEOF |
| 26186 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26187 | if { (ac_try="$ac_compile" |
| 26188 | case "(($ac_try" in |
| 26189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26190 | *) ac_try_echo=$ac_try;; |
| 26191 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26192 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26193 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 26194 | ac_status=$? |
| 26195 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26196 | rm -f conftest.er1 |
| 26197 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26199 | (exit $ac_status); } && { |
| 26200 | test -z "$ac_c_werror_flag" || |
| 26201 | test ! -s conftest.err |
| 26202 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 26203 | ac_cv_stat_tv_nsec2=yes |
| 26204 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26205 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 26206 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26207 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26208 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 26209 | fi |
| 26210 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26211 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26212 | fi |
| 26213 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26214 | { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5 |
| 26215 | echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 26216 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 26217 | then |
| 26218 | |
| 26219 | cat >>confdefs.h <<\_ACEOF |
| 26220 | #define HAVE_STAT_TV_NSEC2 1 |
| 26221 | _ACEOF |
| 26222 | |
| 26223 | fi |
| 26224 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26225 | # 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] | 26226 | { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 26227 | 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] | 26228 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26229 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26230 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26231 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26232 | /* confdefs.h. */ |
| 26233 | _ACEOF |
| 26234 | cat confdefs.h >>conftest.$ac_ext |
| 26235 | cat >>conftest.$ac_ext <<_ACEOF |
| 26236 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26237 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26238 | int |
| 26239 | main () |
| 26240 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26241 | |
| 26242 | int rtn; |
| 26243 | rtn = mvwdelch(0,0,0); |
| 26244 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26245 | ; |
| 26246 | return 0; |
| 26247 | } |
| 26248 | _ACEOF |
| 26249 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26250 | if { (ac_try="$ac_compile" |
| 26251 | case "(($ac_try" in |
| 26252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26253 | *) ac_try_echo=$ac_try;; |
| 26254 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26256 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26257 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26258 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26259 | rm -f conftest.er1 |
| 26260 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26262 | (exit $ac_status); } && { |
| 26263 | test -z "$ac_c_werror_flag" || |
| 26264 | test ! -s conftest.err |
| 26265 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26266 | ac_cv_mvwdelch_is_expression=yes |
| 26267 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26268 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26269 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26270 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26271 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26272 | fi |
| 26273 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26274 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26275 | fi |
| 26276 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26277 | { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 26278 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; } |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26279 | |
| 26280 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 26281 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26282 | |
| 26283 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26284 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26285 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26286 | |
| 26287 | fi |
| 26288 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26289 | { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 26290 | 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] | 26291 | if test "${ac_cv_window_has_flags+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26293 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26294 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26295 | /* confdefs.h. */ |
| 26296 | _ACEOF |
| 26297 | cat confdefs.h >>conftest.$ac_ext |
| 26298 | cat >>conftest.$ac_ext <<_ACEOF |
| 26299 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26300 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26301 | int |
| 26302 | main () |
| 26303 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26304 | |
| 26305 | WINDOW *w; |
| 26306 | w->_flags = 0; |
| 26307 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26308 | ; |
| 26309 | return 0; |
| 26310 | } |
| 26311 | _ACEOF |
| 26312 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26313 | if { (ac_try="$ac_compile" |
| 26314 | case "(($ac_try" in |
| 26315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26316 | *) ac_try_echo=$ac_try;; |
| 26317 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26319 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26320 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26321 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26322 | rm -f conftest.er1 |
| 26323 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26325 | (exit $ac_status); } && { |
| 26326 | test -z "$ac_c_werror_flag" || |
| 26327 | test ! -s conftest.err |
| 26328 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26329 | ac_cv_window_has_flags=yes |
| 26330 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26331 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26332 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26333 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26334 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26335 | fi |
| 26336 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26337 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26338 | fi |
| 26339 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26340 | { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 26341 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26342 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26343 | |
| 26344 | if test "$ac_cv_window_has_flags" = yes |
| 26345 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26346 | |
| 26347 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26348 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26349 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26350 | |
| 26351 | fi |
| 26352 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26353 | { echo "$as_me:$LINENO: checking for is_term_resized" >&5 |
| 26354 | echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26355 | cat >conftest.$ac_ext <<_ACEOF |
| 26356 | /* confdefs.h. */ |
| 26357 | _ACEOF |
| 26358 | cat confdefs.h >>conftest.$ac_ext |
| 26359 | cat >>conftest.$ac_ext <<_ACEOF |
| 26360 | /* end confdefs.h. */ |
| 26361 | #include <curses.h> |
| 26362 | int |
| 26363 | main () |
| 26364 | { |
| 26365 | void *x=is_term_resized |
| 26366 | ; |
| 26367 | return 0; |
| 26368 | } |
| 26369 | _ACEOF |
| 26370 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26371 | if { (ac_try="$ac_compile" |
| 26372 | case "(($ac_try" in |
| 26373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26374 | *) ac_try_echo=$ac_try;; |
| 26375 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26377 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26378 | ac_status=$? |
| 26379 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26380 | rm -f conftest.er1 |
| 26381 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26383 | (exit $ac_status); } && { |
| 26384 | test -z "$ac_c_werror_flag" || |
| 26385 | test ! -s conftest.err |
| 26386 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26387 | |
| 26388 | cat >>confdefs.h <<\_ACEOF |
| 26389 | #define HAVE_CURSES_IS_TERM_RESIZED 1 |
| 26390 | _ACEOF |
| 26391 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26392 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 26393 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26394 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26395 | echo "$as_me: failed program was:" >&5 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26396 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26397 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26398 | { echo "$as_me:$LINENO: result: no" >&5 |
| 26399 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26400 | |
| 26401 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26402 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26404 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26405 | { echo "$as_me:$LINENO: checking for resize_term" >&5 |
| 26406 | echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26407 | cat >conftest.$ac_ext <<_ACEOF |
| 26408 | /* confdefs.h. */ |
| 26409 | _ACEOF |
| 26410 | cat confdefs.h >>conftest.$ac_ext |
| 26411 | cat >>conftest.$ac_ext <<_ACEOF |
| 26412 | /* end confdefs.h. */ |
| 26413 | #include <curses.h> |
| 26414 | int |
| 26415 | main () |
| 26416 | { |
| 26417 | void *x=resize_term |
| 26418 | ; |
| 26419 | return 0; |
| 26420 | } |
| 26421 | _ACEOF |
| 26422 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26423 | if { (ac_try="$ac_compile" |
| 26424 | case "(($ac_try" in |
| 26425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26426 | *) ac_try_echo=$ac_try;; |
| 26427 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26428 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26429 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26430 | ac_status=$? |
| 26431 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26432 | rm -f conftest.er1 |
| 26433 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26435 | (exit $ac_status); } && { |
| 26436 | test -z "$ac_c_werror_flag" || |
| 26437 | test ! -s conftest.err |
| 26438 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26439 | |
| 26440 | cat >>confdefs.h <<\_ACEOF |
| 26441 | #define HAVE_CURSES_RESIZE_TERM 1 |
| 26442 | _ACEOF |
| 26443 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26444 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 26445 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26446 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26447 | echo "$as_me: failed program was:" >&5 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26448 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26449 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26450 | { echo "$as_me:$LINENO: result: no" >&5 |
| 26451 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26452 | |
| 26453 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26454 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26455 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26456 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26457 | { echo "$as_me:$LINENO: checking for resizeterm" >&5 |
| 26458 | echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26459 | cat >conftest.$ac_ext <<_ACEOF |
| 26460 | /* confdefs.h. */ |
| 26461 | _ACEOF |
| 26462 | cat confdefs.h >>conftest.$ac_ext |
| 26463 | cat >>conftest.$ac_ext <<_ACEOF |
| 26464 | /* end confdefs.h. */ |
| 26465 | #include <curses.h> |
| 26466 | int |
| 26467 | main () |
| 26468 | { |
| 26469 | void *x=resizeterm |
| 26470 | ; |
| 26471 | return 0; |
| 26472 | } |
| 26473 | _ACEOF |
| 26474 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26475 | if { (ac_try="$ac_compile" |
| 26476 | case "(($ac_try" in |
| 26477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26478 | *) ac_try_echo=$ac_try;; |
| 26479 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26481 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26482 | ac_status=$? |
| 26483 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26484 | rm -f conftest.er1 |
| 26485 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26487 | (exit $ac_status); } && { |
| 26488 | test -z "$ac_c_werror_flag" || |
| 26489 | test ! -s conftest.err |
| 26490 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26491 | |
| 26492 | cat >>confdefs.h <<\_ACEOF |
| 26493 | #define HAVE_CURSES_RESIZETERM 1 |
| 26494 | _ACEOF |
| 26495 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26496 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 26497 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26498 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26499 | echo "$as_me: failed program was:" >&5 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26500 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26501 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26502 | { echo "$as_me:$LINENO: result: no" >&5 |
| 26503 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26504 | |
| 26505 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26506 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26507 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26508 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26509 | { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 26510 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; } |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 26511 | |
| 26512 | if test -r /dev/ptmx |
| 26513 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26514 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 26515 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 26516 | |
| 26517 | cat >>confdefs.h <<\_ACEOF |
| 26518 | #define HAVE_DEV_PTMX 1 |
| 26519 | _ACEOF |
| 26520 | |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 26521 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26522 | { echo "$as_me:$LINENO: result: no" >&5 |
| 26523 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 26524 | fi |
| 26525 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26526 | { echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 26527 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; } |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 26528 | |
| 26529 | if test -r /dev/ptc |
| 26530 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26531 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 26532 | echo "${ECHO_T}yes" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 26533 | |
| 26534 | cat >>confdefs.h <<\_ACEOF |
| 26535 | #define HAVE_DEV_PTC 1 |
| 26536 | _ACEOF |
| 26537 | |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 26538 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26539 | { echo "$as_me:$LINENO: result: no" >&5 |
| 26540 | echo "${ECHO_T}no" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 26541 | fi |
| 26542 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26543 | { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5 |
| 26544 | echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26545 | if test "${ac_cv_have_size_t_format+set}" = set; then |
| 26546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26547 | else |
| 26548 | if test "$cross_compiling" = yes; then |
| 26549 | ac_cv_have_size_t_format=no |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 26550 | else |
| 26551 | cat >conftest.$ac_ext <<_ACEOF |
| 26552 | /* confdefs.h. */ |
| 26553 | _ACEOF |
| 26554 | cat confdefs.h >>conftest.$ac_ext |
| 26555 | cat >>conftest.$ac_ext <<_ACEOF |
| 26556 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26557 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 26558 | #include <stdio.h> |
| 26559 | #include <stddef.h> |
| 26560 | #include <string.h> |
| 26561 | |
Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 26562 | #ifdef HAVE_SYS_TYPES_H |
| 26563 | #include <sys/types.h> |
| 26564 | #endif |
Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 26565 | |
| 26566 | #ifdef HAVE_SSIZE_T |
| 26567 | typedef ssize_t Py_ssize_t; |
| 26568 | #elif SIZEOF_VOID_P == SIZEOF_LONG |
| 26569 | typedef long Py_ssize_t; |
| 26570 | #else |
| 26571 | typedef int Py_ssize_t; |
| 26572 | #endif |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 26573 | |
Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 26574 | int main() |
| 26575 | { |
| 26576 | char buffer[256]; |
| 26577 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 26578 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
| 26579 | return 1; |
| 26580 | |
Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 26581 | if (strcmp(buffer, "123")) |
| 26582 | return 1; |
| 26583 | |
| 26584 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) |
| 26585 | return 1; |
| 26586 | |
| 26587 | if (strcmp(buffer, "-123")) |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 26588 | return 1; |
| 26589 | |
| 26590 | return 0; |
| 26591 | } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26592 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 26593 | _ACEOF |
| 26594 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26595 | if { (ac_try="$ac_link" |
| 26596 | case "(($ac_try" in |
| 26597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26598 | *) ac_try_echo=$ac_try;; |
| 26599 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26601 | (eval "$ac_link") 2>&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 26602 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 26604 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26605 | { (case "(($ac_try" in |
| 26606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26607 | *) ac_try_echo=$ac_try;; |
| 26608 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26610 | (eval "$ac_try") 2>&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 26611 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 26613 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26614 | ac_cv_have_size_t_format=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26615 | else |
| 26616 | echo "$as_me: program exited with status $ac_status" >&5 |
| 26617 | echo "$as_me: failed program was:" >&5 |
| 26618 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26619 | |
| 26620 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26621 | ac_cv_have_size_t_format=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26622 | fi |
| 26623 | 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] | 26624 | fi |
| 26625 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26626 | |
| 26627 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26628 | fi |
| 26629 | |
| 26630 | { echo "$as_me:$LINENO: result: $ac_cv_have_size_t_format" >&5 |
| 26631 | echo "${ECHO_T}$ac_cv_have_size_t_format" >&6; } |
| 26632 | if test $ac_cv_have_size_t_format = yes |
| 26633 | then |
| 26634 | |
| 26635 | cat >>confdefs.h <<\_ACEOF |
| 26636 | #define PY_FORMAT_SIZE_T "z" |
| 26637 | _ACEOF |
| 26638 | |
| 26639 | fi |
| 26640 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26641 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 26642 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26643 | if test "${ac_cv_type_socklen_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 26645 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26646 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26647 | /* confdefs.h. */ |
| 26648 | _ACEOF |
| 26649 | cat confdefs.h >>conftest.$ac_ext |
| 26650 | cat >>conftest.$ac_ext <<_ACEOF |
| 26651 | /* end confdefs.h. */ |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 26652 | |
| 26653 | #ifdef HAVE_SYS_TYPES_H |
| 26654 | #include <sys/types.h> |
| 26655 | #endif |
| 26656 | #ifdef HAVE_SYS_SOCKET_H |
| 26657 | #include <sys/socket.h> |
| 26658 | #endif |
| 26659 | |
| 26660 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26661 | typedef socklen_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26662 | int |
| 26663 | main () |
| 26664 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26665 | if ((ac__type_new_ *) 0) |
| 26666 | return 0; |
| 26667 | if (sizeof (ac__type_new_)) |
| 26668 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26669 | ; |
| 26670 | return 0; |
| 26671 | } |
| 26672 | _ACEOF |
| 26673 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26674 | if { (ac_try="$ac_compile" |
| 26675 | case "(($ac_try" in |
| 26676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26677 | *) ac_try_echo=$ac_try;; |
| 26678 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26680 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26681 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26682 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26683 | rm -f conftest.er1 |
| 26684 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26686 | (exit $ac_status); } && { |
| 26687 | test -z "$ac_c_werror_flag" || |
| 26688 | test ! -s conftest.err |
| 26689 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26690 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 26691 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26692 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26693 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26694 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26695 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 26696 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26697 | |
| 26698 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26699 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26700 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 26701 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } |
| 26702 | if test $ac_cv_type_socklen_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26703 | : |
| 26704 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 26705 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 26706 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 26707 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26708 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 26709 | |
| 26710 | fi |
| 26711 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26712 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26713 | |
| 26714 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 26715 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 26716 | do |
| 26717 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 26718 | done |
| 26719 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26720 | |
Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 26721 | SRCDIRS="Parser Grammar Objects Python Modules Mac" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26722 | { echo "$as_me:$LINENO: checking for build directories" >&5 |
| 26723 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 26724 | for dir in $SRCDIRS; do |
| 26725 | if test ! -d $dir; then |
| 26726 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 26727 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 26728 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26729 | { echo "$as_me:$LINENO: result: done" >&5 |
| 26730 | echo "${ECHO_T}done" >&6; } |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 26731 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 26732 | # generate output files |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 26733 | 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] | 26734 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26735 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26736 | # This file is a shell script that caches the results of configure |
| 26737 | # 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] | 26738 | # scripts and configure runs, see configure's option --config-cache. |
| 26739 | # It is not useful on other systems. If it contains results you don't |
| 26740 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26741 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26742 | # config.status only pays attention to the cache file if you give it |
| 26743 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26744 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26745 | # `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] | 26746 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 26747 | # following values. |
| 26748 | |
| 26749 | _ACEOF |
| 26750 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 26751 | # The following way of writing the cache mishandles newlines in values, |
| 26752 | # 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] | 26753 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 26754 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 26755 | # 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] | 26756 | ( |
| 26757 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 26758 | eval ac_val=\$$ac_var |
| 26759 | case $ac_val in #( |
| 26760 | *${as_nl}*) |
| 26761 | case $ac_var in #( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26762 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 26763 | 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] | 26764 | esac |
| 26765 | case $ac_var in #( |
| 26766 | _ | IFS | as_nl) ;; #( |
| 26767 | *) $as_unset $ac_var ;; |
| 26768 | esac ;; |
| 26769 | esac |
| 26770 | done |
| 26771 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26772 | (set) 2>&1 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26773 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 26774 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26775 | # `set' does not quote correctly, so add quotes (double-quote |
| 26776 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 26777 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26778 | "s/'/'\\\\''/g; |
| 26779 | 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] | 26780 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26781 | *) |
| 26782 | # `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] | 26783 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26784 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26785 | esac | |
| 26786 | sort |
| 26787 | ) | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26788 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26789 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26790 | t clear |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26791 | :clear |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26792 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 26793 | t end |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26794 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 26795 | :end' >>confcache |
| 26796 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 26797 | if test -w "$cache_file"; then |
| 26798 | test "x$cache_file" != "x/dev/null" && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26799 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 26800 | echo "$as_me: updating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26801 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 26802 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26803 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 26804 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 26805 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26806 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 26807 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 26808 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26809 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 26810 | # Let make expand exec_prefix. |
| 26811 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 26812 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26813 | DEFS=-DHAVE_CONFIG_H |
| 26814 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26815 | ac_libobjs= |
| 26816 | ac_ltlibobjs= |
| 26817 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 26818 | # 1. Remove the extension, and $U if already installed. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26819 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26820 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26821 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 26822 | # will be set to the directory where LIBOBJS objects are built. |
| 26823 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 26824 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26825 | done |
| 26826 | LIBOBJS=$ac_libobjs |
| 26827 | |
| 26828 | LTLIBOBJS=$ac_ltlibobjs |
| 26829 | |
| 26830 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26831 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26832 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26833 | ac_clean_files_save=$ac_clean_files |
| 26834 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26835 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 26836 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 26837 | cat >$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26838 | #! $SHELL |
| 26839 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 26840 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26841 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26842 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 26843 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26844 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26845 | ac_cs_recheck=false |
| 26846 | ac_cs_silent=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26847 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 26848 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 26849 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26850 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26851 | ## --------------------- ## |
| 26852 | ## M4sh Initialization. ## |
| 26853 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 26854 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26855 | # Be more Bourne compatible |
| 26856 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26857 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 26858 | emulate sh |
| 26859 | NULLCMD=: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26860 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26861 | # is contrary to our usage. Disable this feature. |
| 26862 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26863 | setopt NO_GLOB_SUBST |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 26864 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26865 | case `(set -o) 2>/dev/null` in |
| 26866 | *posix*) set -o posix ;; |
| 26867 | esac |
| 26868 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26869 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26870 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26871 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26872 | |
| 26873 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26874 | # PATH needs CR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26875 | # Avoid depending upon Character Ranges. |
| 26876 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 26877 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 26878 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 26879 | as_cr_digits='0123456789' |
| 26880 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 26881 | |
| 26882 | # The user is always right. |
| 26883 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26884 | echo "#! /bin/sh" >conf$$.sh |
| 26885 | echo "exit 0" >>conf$$.sh |
| 26886 | chmod +x conf$$.sh |
| 26887 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 26888 | PATH_SEPARATOR=';' |
| 26889 | else |
| 26890 | PATH_SEPARATOR=: |
| 26891 | fi |
| 26892 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26893 | fi |
| 26894 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26895 | # Support unset when possible. |
| 26896 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 26897 | as_unset=unset |
| 26898 | else |
| 26899 | as_unset=false |
| 26900 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26901 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26902 | |
| 26903 | # IFS |
| 26904 | # We need space, tab and new line, in precisely that order. Quoting is |
| 26905 | # there to prevent editors from complaining about space-tab. |
| 26906 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 26907 | # splitting by setting IFS to empty value.) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26908 | as_nl=' |
| 26909 | ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26910 | IFS=" "" $as_nl" |
| 26911 | |
| 26912 | # Find who we are. Look in the path if we contain no directory separator. |
| 26913 | case $0 in |
| 26914 | *[\\/]* ) as_myself=$0 ;; |
| 26915 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26916 | for as_dir in $PATH |
| 26917 | do |
| 26918 | IFS=$as_save_IFS |
| 26919 | test -z "$as_dir" && as_dir=. |
| 26920 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 26921 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26922 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26923 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26924 | ;; |
| 26925 | esac |
| 26926 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 26927 | # in which case we are not to be found in the path. |
| 26928 | if test "x$as_myself" = x; then |
| 26929 | as_myself=$0 |
| 26930 | fi |
| 26931 | if test ! -f "$as_myself"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26932 | 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] | 26933 | { (exit 1); exit 1; } |
| 26934 | fi |
| 26935 | |
| 26936 | # Work around bugs in pre-3.0 UWIN ksh. |
| 26937 | for as_var in ENV MAIL MAILPATH |
| 26938 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 26939 | done |
| 26940 | PS1='$ ' |
| 26941 | PS2='> ' |
| 26942 | PS4='+ ' |
| 26943 | |
| 26944 | # NLS nuisances. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26945 | for as_var in \ |
| 26946 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 26947 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 26948 | LC_TELEPHONE LC_TIME |
| 26949 | do |
| 26950 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 26951 | eval $as_var=C; export $as_var |
| 26952 | else |
| 26953 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 26954 | fi |
| 26955 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26956 | |
| 26957 | # Required to use basename. |
| 26958 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 26959 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 26960 | as_expr=expr |
| 26961 | else |
| 26962 | as_expr=false |
| 26963 | fi |
| 26964 | |
| 26965 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 26966 | as_basename=basename |
| 26967 | else |
| 26968 | as_basename=false |
| 26969 | fi |
| 26970 | |
| 26971 | |
| 26972 | # Name of the executable. |
| 26973 | as_me=`$as_basename -- "$0" || |
| 26974 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 26975 | X"$0" : 'X\(//\)$' \| \ |
| 26976 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26977 | echo X/"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26978 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 26979 | s//\1/ |
| 26980 | q |
| 26981 | } |
| 26982 | /^X\/\(\/\/\)$/{ |
| 26983 | s//\1/ |
| 26984 | q |
| 26985 | } |
| 26986 | /^X\/\(\/\).*/{ |
| 26987 | s//\1/ |
| 26988 | q |
| 26989 | } |
| 26990 | s/.*/./; q'` |
| 26991 | |
| 26992 | # CDPATH. |
| 26993 | $as_unset CDPATH |
| 26994 | |
| 26995 | |
| 26996 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26997 | as_lineno_1=$LINENO |
| 26998 | as_lineno_2=$LINENO |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26999 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27000 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 27001 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27002 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 27003 | # 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] | 27004 | # line-number line after each line using $LINENO; the second 'sed' |
| 27005 | # does the real work. The second script uses 'N' to pair each |
| 27006 | # line-number line with the line containing $LINENO, and appends |
| 27007 | # trailing '-' during substitution so that $LINENO is not a special |
| 27008 | # case at line end. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27009 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27010 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 27011 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 27012 | sed -n ' |
| 27013 | p |
| 27014 | /[$]LINENO/= |
| 27015 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27016 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27017 | s/[$]LINENO.*/&-/ |
| 27018 | t lineno |
| 27019 | b |
| 27020 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27021 | N |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27022 | :loop |
| 27023 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27024 | t loop |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27025 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27026 | ' >$as_me.lineno && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27027 | chmod +x "$as_me.lineno" || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27028 | { 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] | 27029 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27030 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27031 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 27032 | # (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] | 27033 | # original and so on. Autoconf is especially sensitive to this). |
| 27034 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27035 | # Exit status is that of the last command. |
| 27036 | exit |
| 27037 | } |
| 27038 | |
| 27039 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27040 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 27041 | as_dirname=dirname |
| 27042 | else |
| 27043 | as_dirname=false |
| 27044 | fi |
| 27045 | |
| 27046 | ECHO_C= ECHO_N= ECHO_T= |
| 27047 | case `echo -n x` in |
| 27048 | -n*) |
| 27049 | case `echo 'x\c'` in |
| 27050 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 27051 | *) ECHO_C='\c';; |
| 27052 | esac;; |
| 27053 | *) |
| 27054 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27055 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27056 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27057 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 27058 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27059 | as_expr=expr |
| 27060 | else |
| 27061 | as_expr=false |
| 27062 | fi |
| 27063 | |
| 27064 | rm -f conf$$ conf$$.exe conf$$.file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27065 | if test -d conf$$.dir; then |
| 27066 | rm -f conf$$.dir/conf$$.file |
| 27067 | else |
| 27068 | rm -f conf$$.dir |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27069 | mkdir conf$$.dir |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27070 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27071 | echo >conf$$.file |
| 27072 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 27073 | as_ln_s='ln -s' |
| 27074 | # ... but there are two gotchas: |
| 27075 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 27076 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 27077 | # In both cases, we have to default to `cp -p'. |
| 27078 | 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] | 27079 | as_ln_s='cp -p' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27080 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 27081 | as_ln_s=ln |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27082 | else |
| 27083 | as_ln_s='cp -p' |
| 27084 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27085 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 27086 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27087 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27088 | if mkdir -p . 2>/dev/null; then |
| 27089 | as_mkdir_p=: |
| 27090 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27091 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27092 | as_mkdir_p=false |
| 27093 | fi |
| 27094 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27095 | if test -x / >/dev/null 2>&1; then |
| 27096 | as_test_x='test -x' |
| 27097 | else |
| 27098 | if ls -dL / >/dev/null 2>&1; then |
| 27099 | as_ls_L_option=L |
| 27100 | else |
| 27101 | as_ls_L_option= |
| 27102 | fi |
| 27103 | as_test_x=' |
| 27104 | eval sh -c '\'' |
| 27105 | if test -d "$1"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27106 | test -d "$1/."; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27107 | else |
| 27108 | case $1 in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27109 | -*)set "./$1";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27110 | esac; |
| 27111 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 27112 | ???[sx]*):;;*)false;;esac;fi |
| 27113 | '\'' sh |
| 27114 | ' |
| 27115 | fi |
| 27116 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27117 | |
| 27118 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27119 | 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] | 27120 | |
| 27121 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27122 | 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] | 27123 | |
| 27124 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27125 | exec 6>&1 |
| 27126 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27127 | # 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] | 27128 | # 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] | 27129 | # values after options handling. |
| 27130 | ac_log=" |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 27131 | This file was extended by python $as_me 2.7, which was |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27132 | generated by GNU Autoconf 2.61. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27133 | |
| 27134 | CONFIG_FILES = $CONFIG_FILES |
| 27135 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 27136 | CONFIG_LINKS = $CONFIG_LINKS |
| 27137 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 27138 | $ $0 $@ |
| 27139 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27140 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 27141 | " |
| 27142 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27143 | _ACEOF |
| 27144 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27145 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27146 | # Files that config.status was made for. |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 27147 | config_files="$ac_config_files" |
| 27148 | config_headers="$ac_config_headers" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27149 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27150 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27151 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27152 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27153 | ac_cs_usage="\ |
| 27154 | \`$as_me' instantiates files from templates according to the |
| 27155 | current configuration. |
| 27156 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27157 | Usage: $0 [OPTIONS] [FILE]... |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27158 | |
| 27159 | -h, --help print this help, then exit |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27160 | -V, --version print version number and configuration settings, then exit |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27161 | -q, --quiet do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27162 | -d, --debug don't remove temporary files |
| 27163 | --recheck update $as_me by reconfiguring in the same conditions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27164 | --file=FILE[:TEMPLATE] |
| 27165 | instantiate the configuration file FILE |
| 27166 | --header=FILE[:TEMPLATE] |
| 27167 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27168 | |
| 27169 | Configuration files: |
| 27170 | $config_files |
| 27171 | |
| 27172 | Configuration headers: |
| 27173 | $config_headers |
| 27174 | |
| 27175 | Report bugs to <bug-autoconf@gnu.org>." |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 27176 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27177 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27178 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27179 | ac_cs_version="\\ |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 27180 | python config.status 2.7 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27181 | configured by $0, generated by GNU Autoconf 2.61, |
| 27182 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27183 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27184 | Copyright (C) 2006 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27185 | This config.status script is free software; the Free Software Foundation |
| 27186 | gives unlimited permission to copy, distribute and modify it." |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27187 | |
| 27188 | ac_pwd='$ac_pwd' |
| 27189 | srcdir='$srcdir' |
| 27190 | INSTALL='$INSTALL' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27191 | _ACEOF |
| 27192 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27193 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 27194 | # If no file are specified by the user, then we need to provide default |
| 27195 | # 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] | 27196 | ac_need_defaults=: |
| 27197 | while test $# != 0 |
| 27198 | do |
| 27199 | case $1 in |
| 27200 | --*=*) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27201 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 27202 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27203 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27204 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27205 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27206 | ac_option=$1 |
| 27207 | ac_optarg=$2 |
| 27208 | ac_shift=shift |
| 27209 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27210 | esac |
| 27211 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27212 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27213 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27214 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 27215 | ac_cs_recheck=: ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27216 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27217 | echo "$ac_cs_version"; exit ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27218 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27219 | debug=: ;; |
| 27220 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27221 | $ac_shift |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27222 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27223 | ac_need_defaults=false;; |
| 27224 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27225 | $ac_shift |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27226 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27227 | ac_need_defaults=false;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27228 | --he | --h) |
| 27229 | # Conflict between --help and --header |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27230 | { echo "$as_me: error: ambiguous option: $1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27231 | Try \`$0 --help' for more information." >&2 |
| 27232 | { (exit 1); exit 1; }; };; |
| 27233 | --help | --hel | -h ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27234 | echo "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27235 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 27236 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 27237 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27238 | |
| 27239 | # This is an error. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27240 | -*) { echo "$as_me: error: unrecognized option: $1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27241 | Try \`$0 --help' for more information." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27242 | { (exit 1); exit 1; }; } ;; |
| 27243 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27244 | *) ac_config_targets="$ac_config_targets $1" |
| 27245 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27246 | |
| 27247 | esac |
| 27248 | shift |
| 27249 | done |
| 27250 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27251 | ac_configure_extra_args= |
| 27252 | |
| 27253 | if $ac_cs_silent; then |
| 27254 | exec 6>/dev/null |
| 27255 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 27256 | fi |
| 27257 | |
| 27258 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27259 | cat >>$CONFIG_STATUS <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27260 | if \$ac_cs_recheck; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27261 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 27262 | CONFIG_SHELL=$SHELL |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27263 | export CONFIG_SHELL |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27264 | 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] | 27265 | fi |
| 27266 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27267 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27268 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27269 | exec 5>>config.log |
| 27270 | { |
| 27271 | echo |
| 27272 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 27273 | ## Running $as_me. ## |
| 27274 | _ASBOX |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27275 | echo "$ac_log" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27276 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27277 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27278 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27279 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27280 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27281 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27282 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27283 | |
| 27284 | # Handling of arguments. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27285 | for ac_config_target in $ac_config_targets |
| 27286 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27287 | case $ac_config_target in |
| 27288 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 27289 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; |
| 27290 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; |
| 27291 | "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;; |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 27292 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; |
| 27293 | "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] | 27294 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 27295 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 27296 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27297 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27298 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 27299 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27300 | { (exit 1); exit 1; }; };; |
| 27301 | esac |
| 27302 | done |
| 27303 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27304 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27305 | # If the user did not use the arguments to specify the items to instantiate, |
| 27306 | # then the envvar interface is used. Set only those that are not. |
| 27307 | # We use the long form for the default assignment because of an extremely |
| 27308 | # bizarre bug on SunOS 4.1.3. |
| 27309 | if $ac_need_defaults; then |
| 27310 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 27311 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 27312 | fi |
| 27313 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27314 | # 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] | 27315 | # 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] | 27316 | # creating and moving files from /tmp can sometimes cause problems. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27317 | # Hook for its removal unless debugging. |
| 27318 | # Note that there is a small window in which the directory will not be cleaned: |
| 27319 | # 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] | 27320 | $debug || |
| 27321 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27322 | tmp= |
| 27323 | trap 'exit_status=$? |
| 27324 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 27325 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27326 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 27327 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27328 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27329 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27330 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27331 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27332 | test -n "$tmp" && test -d "$tmp" |
| 27333 | } || |
| 27334 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27335 | tmp=./conf$$-$RANDOM |
| 27336 | (umask 077 && mkdir "$tmp") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27337 | } || |
| 27338 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27339 | echo "$me: cannot create a temporary directory in ." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27340 | { (exit 1); exit 1; } |
| 27341 | } |
| 27342 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27343 | # |
| 27344 | # Set up the sed scripts for CONFIG_FILES section. |
| 27345 | # |
| 27346 | |
| 27347 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 27348 | # This happens for instance when ./config.status config.h |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27349 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27350 | |
| 27351 | _ACEOF |
| 27352 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27353 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27354 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27355 | ac_delim='%!_!# ' |
| 27356 | for ac_last_try in false false false false false :; do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27357 | cat >conf$$subs.sed <<_ACEOF |
| 27358 | SHELL!$SHELL$ac_delim |
| 27359 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 27360 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 27361 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 27362 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 27363 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 27364 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 27365 | exec_prefix!$exec_prefix$ac_delim |
| 27366 | prefix!$prefix$ac_delim |
| 27367 | program_transform_name!$program_transform_name$ac_delim |
| 27368 | bindir!$bindir$ac_delim |
| 27369 | sbindir!$sbindir$ac_delim |
| 27370 | libexecdir!$libexecdir$ac_delim |
| 27371 | datarootdir!$datarootdir$ac_delim |
| 27372 | datadir!$datadir$ac_delim |
| 27373 | sysconfdir!$sysconfdir$ac_delim |
| 27374 | sharedstatedir!$sharedstatedir$ac_delim |
| 27375 | localstatedir!$localstatedir$ac_delim |
| 27376 | includedir!$includedir$ac_delim |
| 27377 | oldincludedir!$oldincludedir$ac_delim |
| 27378 | docdir!$docdir$ac_delim |
| 27379 | infodir!$infodir$ac_delim |
| 27380 | htmldir!$htmldir$ac_delim |
| 27381 | dvidir!$dvidir$ac_delim |
| 27382 | pdfdir!$pdfdir$ac_delim |
| 27383 | psdir!$psdir$ac_delim |
| 27384 | libdir!$libdir$ac_delim |
| 27385 | localedir!$localedir$ac_delim |
| 27386 | mandir!$mandir$ac_delim |
| 27387 | DEFS!$DEFS$ac_delim |
| 27388 | ECHO_C!$ECHO_C$ac_delim |
| 27389 | ECHO_N!$ECHO_N$ac_delim |
| 27390 | ECHO_T!$ECHO_T$ac_delim |
| 27391 | LIBS!$LIBS$ac_delim |
| 27392 | build_alias!$build_alias$ac_delim |
| 27393 | host_alias!$host_alias$ac_delim |
| 27394 | target_alias!$target_alias$ac_delim |
| 27395 | VERSION!$VERSION$ac_delim |
| 27396 | SOVERSION!$SOVERSION$ac_delim |
| 27397 | CONFIG_ARGS!$CONFIG_ARGS$ac_delim |
| 27398 | UNIVERSALSDK!$UNIVERSALSDK$ac_delim |
| 27399 | ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim |
| 27400 | PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim |
| 27401 | PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim |
| 27402 | PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim |
| 27403 | PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim |
| 27404 | PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim |
| 27405 | FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim |
| 27406 | FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim |
| 27407 | FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim |
| 27408 | FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim |
| 27409 | FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim |
| 27410 | MACHDEP!$MACHDEP$ac_delim |
| 27411 | SGI_ABI!$SGI_ABI$ac_delim |
| 27412 | EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim |
| 27413 | EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim |
| 27414 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim |
| 27415 | EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim |
| 27416 | CC!$CC$ac_delim |
| 27417 | CFLAGS!$CFLAGS$ac_delim |
| 27418 | LDFLAGS!$LDFLAGS$ac_delim |
| 27419 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 27420 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 27421 | EXEEXT!$EXEEXT$ac_delim |
| 27422 | OBJEXT!$OBJEXT$ac_delim |
| 27423 | CXX!$CXX$ac_delim |
| 27424 | MAINCC!$MAINCC$ac_delim |
| 27425 | CPP!$CPP$ac_delim |
| 27426 | GREP!$GREP$ac_delim |
| 27427 | EGREP!$EGREP$ac_delim |
| 27428 | BUILDEXEEXT!$BUILDEXEEXT$ac_delim |
| 27429 | LIBRARY!$LIBRARY$ac_delim |
| 27430 | LDLIBRARY!$LDLIBRARY$ac_delim |
| 27431 | DLLLIBRARY!$DLLLIBRARY$ac_delim |
| 27432 | BLDLIBRARY!$BLDLIBRARY$ac_delim |
| 27433 | LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim |
| 27434 | INSTSONAME!$INSTSONAME$ac_delim |
| 27435 | RUNSHARED!$RUNSHARED$ac_delim |
| 27436 | LINKCC!$LINKCC$ac_delim |
| 27437 | GNULD!$GNULD$ac_delim |
| 27438 | RANLIB!$RANLIB$ac_delim |
| 27439 | AR!$AR$ac_delim |
| 27440 | ARFLAGS!$ARFLAGS$ac_delim |
| 27441 | SVNVERSION!$SVNVERSION$ac_delim |
| 27442 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 27443 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 27444 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 27445 | LN!$LN$ac_delim |
| 27446 | OPT!$OPT$ac_delim |
| 27447 | BASECFLAGS!$BASECFLAGS$ac_delim |
| 27448 | UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim |
| 27449 | OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim |
| 27450 | LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim |
| 27451 | SO!$SO$ac_delim |
| 27452 | LDSHARED!$LDSHARED$ac_delim |
| 27453 | BLDSHARED!$BLDSHARED$ac_delim |
| 27454 | CCSHARED!$CCSHARED$ac_delim |
| 27455 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27456 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27457 | 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] | 27458 | break |
| 27459 | elif $ac_last_try; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27460 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 27461 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27462 | { (exit 1); exit 1; }; } |
| 27463 | else |
| 27464 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27465 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27466 | done |
| 27467 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27468 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 27469 | if test -n "$ac_eof"; then |
| 27470 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 27471 | ac_eof=`expr $ac_eof + 1` |
| 27472 | fi |
| 27473 | |
| 27474 | cat >>$CONFIG_STATUS <<_ACEOF |
| 27475 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 27476 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27477 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27478 | sed ' |
| 27479 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 27480 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 27481 | :n |
| 27482 | t n |
| 27483 | s/'"$ac_delim"'$/,g/; t |
| 27484 | s/$/\\/; p |
| 27485 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 27486 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 27487 | rm -f conf$$subs.sed |
| 27488 | cat >>$CONFIG_STATUS <<_ACEOF |
| 27489 | CEOF$ac_eof |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27490 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27491 | |
| 27492 | |
| 27493 | ac_delim='%!_!# ' |
| 27494 | for ac_last_try in false false false false false :; do |
| 27495 | cat >conf$$subs.sed <<_ACEOF |
| 27496 | LINKFORSHARED!$LINKFORSHARED$ac_delim |
| 27497 | CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim |
| 27498 | SHLIBS!$SHLIBS$ac_delim |
| 27499 | USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim |
| 27500 | SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim |
| 27501 | USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim |
| 27502 | LDLAST!$LDLAST$ac_delim |
| 27503 | THREADOBJ!$THREADOBJ$ac_delim |
| 27504 | DLINCLDIR!$DLINCLDIR$ac_delim |
| 27505 | DYNLOADFILE!$DYNLOADFILE$ac_delim |
| 27506 | MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim |
| 27507 | TRUE!$TRUE$ac_delim |
| 27508 | LIBOBJS!$LIBOBJS$ac_delim |
| 27509 | HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim |
| 27510 | HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim |
| 27511 | HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim |
| 27512 | HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim |
| 27513 | HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim |
| 27514 | LIBM!$LIBM$ac_delim |
| 27515 | LIBC!$LIBC$ac_delim |
| 27516 | UNICODE_OBJS!$UNICODE_OBJS$ac_delim |
| 27517 | THREADHEADERS!$THREADHEADERS$ac_delim |
| 27518 | SRCDIRS!$SRCDIRS$ac_delim |
| 27519 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 27520 | _ACEOF |
| 27521 | |
| 27522 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then |
| 27523 | break |
| 27524 | elif $ac_last_try; then |
| 27525 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 27526 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27527 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27528 | else |
| 27529 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 27530 | fi |
| 27531 | done |
| 27532 | |
| 27533 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 27534 | if test -n "$ac_eof"; then |
| 27535 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 27536 | ac_eof=`expr $ac_eof + 1` |
| 27537 | fi |
| 27538 | |
| 27539 | cat >>$CONFIG_STATUS <<_ACEOF |
| 27540 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 27541 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27542 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27543 | sed ' |
| 27544 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 27545 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 27546 | :n |
| 27547 | t n |
| 27548 | s/'"$ac_delim"'$/,g/; t |
| 27549 | s/$/\\/; p |
| 27550 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 27551 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 27552 | rm -f conf$$subs.sed |
| 27553 | cat >>$CONFIG_STATUS <<_ACEOF |
| 27554 | :end |
| 27555 | s/|#_!!_#|//g |
| 27556 | CEOF$ac_eof |
| 27557 | _ACEOF |
| 27558 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27559 | |
| 27560 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 27561 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 27562 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 27563 | # (actually we leave an empty line to preserve line numbers). |
| 27564 | if test "x$srcdir" = x.; then |
| 27565 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 27566 | s/:*\$(srcdir):*/:/ |
| 27567 | s/:*\${srcdir}:*/:/ |
| 27568 | s/:*@srcdir@:*/:/ |
| 27569 | s/^\([^=]*=[ ]*\):*/\1/ |
| 27570 | s/:*$// |
| 27571 | s/^[^=]*=[ ]*$// |
| 27572 | }' |
| 27573 | fi |
| 27574 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27575 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27576 | fi # test -n "$CONFIG_FILES" |
| 27577 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27578 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27579 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27580 | do |
| 27581 | case $ac_tag in |
| 27582 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 27583 | esac |
| 27584 | case $ac_mode$ac_tag in |
| 27585 | :[FHL]*:*);; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27586 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 27587 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27588 | { (exit 1); exit 1; }; };; |
| 27589 | :[FH]-) ac_tag=-:-;; |
| 27590 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 27591 | esac |
| 27592 | ac_save_IFS=$IFS |
| 27593 | IFS=: |
| 27594 | set x $ac_tag |
| 27595 | IFS=$ac_save_IFS |
| 27596 | shift |
| 27597 | ac_file=$1 |
| 27598 | shift |
| 27599 | |
| 27600 | case $ac_mode in |
| 27601 | :L) ac_source=$1;; |
| 27602 | :[FH]) |
| 27603 | ac_file_inputs= |
| 27604 | for ac_f |
| 27605 | do |
| 27606 | case $ac_f in |
| 27607 | -) ac_f="$tmp/stdin";; |
| 27608 | *) # Look for the file first in the build tree, then in the source tree |
| 27609 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 27610 | # because $ac_f cannot contain `:'. |
| 27611 | test -f "$ac_f" || |
| 27612 | case $ac_f in |
| 27613 | [\\/$]*) false;; |
| 27614 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 27615 | esac || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27616 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 27617 | 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] | 27618 | { (exit 1); exit 1; }; };; |
| 27619 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27620 | ac_file_inputs="$ac_file_inputs $ac_f" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27621 | done |
| 27622 | |
| 27623 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 27624 | # use $as_me), people would be surprised to read: |
| 27625 | # /* config.h. Generated by config.status. */ |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27626 | configure_input="Generated from "`IFS=: |
| 27627 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27628 | if test x"$ac_file" != x-; then |
| 27629 | configure_input="$ac_file. $configure_input" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27630 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 27631 | echo "$as_me: creating $ac_file" >&6;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27632 | fi |
| 27633 | |
| 27634 | case $ac_tag in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27635 | *:-:* | *:-) cat >"$tmp/stdin";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27636 | esac |
| 27637 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27638 | esac |
| 27639 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27640 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27641 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27642 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 27643 | X"$ac_file" : 'X\(//\)$' \| \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27644 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27645 | echo X"$ac_file" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27646 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 27647 | s//\1/ |
| 27648 | q |
| 27649 | } |
| 27650 | /^X\(\/\/\)[^/].*/{ |
| 27651 | s//\1/ |
| 27652 | q |
| 27653 | } |
| 27654 | /^X\(\/\/\)$/{ |
| 27655 | s//\1/ |
| 27656 | q |
| 27657 | } |
| 27658 | /^X\(\/\).*/{ |
| 27659 | s//\1/ |
| 27660 | q |
| 27661 | } |
| 27662 | s/.*/./; q'` |
| 27663 | { as_dir="$ac_dir" |
| 27664 | case $as_dir in #( |
| 27665 | -*) as_dir=./$as_dir;; |
| 27666 | esac |
| 27667 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27668 | as_dirs= |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27669 | while :; do |
| 27670 | case $as_dir in #( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27671 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27672 | *) as_qdir=$as_dir;; |
| 27673 | esac |
| 27674 | as_dirs="'$as_qdir' $as_dirs" |
| 27675 | as_dir=`$as_dirname -- "$as_dir" || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27676 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27677 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 27678 | X"$as_dir" : 'X\(//\)$' \| \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27679 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27680 | echo X"$as_dir" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27681 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 27682 | s//\1/ |
| 27683 | q |
| 27684 | } |
| 27685 | /^X\(\/\/\)[^/].*/{ |
| 27686 | s//\1/ |
| 27687 | q |
| 27688 | } |
| 27689 | /^X\(\/\/\)$/{ |
| 27690 | s//\1/ |
| 27691 | q |
| 27692 | } |
| 27693 | /^X\(\/\).*/{ |
| 27694 | s//\1/ |
| 27695 | q |
| 27696 | } |
| 27697 | s/.*/./; q'` |
| 27698 | test -d "$as_dir" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27699 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27700 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27701 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 27702 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27703 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27704 | ac_builddir=. |
| 27705 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27706 | case "$ac_dir" in |
| 27707 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 27708 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27709 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27710 | # A ".." for each directory in $ac_dir_suffix. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27711 | 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] | 27712 | case $ac_top_builddir_sub in |
| 27713 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 27714 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 27715 | esac ;; |
| 27716 | esac |
| 27717 | ac_abs_top_builddir=$ac_pwd |
| 27718 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 27719 | # for backward compatibility: |
| 27720 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27721 | |
| 27722 | case $srcdir in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27723 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27724 | ac_srcdir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27725 | ac_top_srcdir=$ac_top_builddir_sub |
| 27726 | ac_abs_top_srcdir=$ac_pwd ;; |
| 27727 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27728 | ac_srcdir=$srcdir$ac_dir_suffix; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27729 | ac_top_srcdir=$srcdir |
| 27730 | ac_abs_top_srcdir=$srcdir ;; |
| 27731 | *) # Relative name. |
| 27732 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 27733 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 27734 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27735 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27736 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27737 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27738 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27739 | case $ac_mode in |
| 27740 | :F) |
| 27741 | # |
| 27742 | # CONFIG_FILE |
| 27743 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27744 | |
| 27745 | case $INSTALL in |
| 27746 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27747 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27748 | esac |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 27749 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27750 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27751 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27752 | # If the template does not know about datarootdir, expand it. |
| 27753 | # FIXME: This hack should be removed a few years after 2.60. |
| 27754 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 27755 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27756 | case `sed -n '/datarootdir/ { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27757 | p |
| 27758 | q |
| 27759 | } |
| 27760 | /@datadir@/p |
| 27761 | /@docdir@/p |
| 27762 | /@infodir@/p |
| 27763 | /@localedir@/p |
| 27764 | /@mandir@/p |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27765 | ' $ac_file_inputs` in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27766 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 27767 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27768 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 27769 | 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] | 27770 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27771 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27772 | ac_datarootdir_hack=' |
| 27773 | s&@datadir@&$datadir&g |
| 27774 | s&@docdir@&$docdir&g |
| 27775 | s&@infodir@&$infodir&g |
| 27776 | s&@localedir@&$localedir&g |
| 27777 | s&@mandir@&$mandir&g |
| 27778 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 27779 | esac |
| 27780 | _ACEOF |
| 27781 | |
| 27782 | # Neutralize VPATH when `$srcdir' = `.'. |
| 27783 | # Shell code in configure.ac might set extrasub. |
| 27784 | # FIXME: do we really want to maintain this feature? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27785 | cat >>$CONFIG_STATUS <<_ACEOF |
| 27786 | sed "$ac_vpsub |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27787 | $extrasub |
| 27788 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27789 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27790 | :t |
| 27791 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27792 | s&@configure_input@&$configure_input&;t t |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27793 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 27794 | s&@srcdir@&$ac_srcdir&;t t |
| 27795 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 27796 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 27797 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 27798 | s&@builddir@&$ac_builddir&;t t |
| 27799 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 27800 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 27801 | s&@INSTALL@&$ac_INSTALL&;t t |
| 27802 | $ac_datarootdir_hack |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27803 | " $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] | 27804 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27805 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 27806 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 27807 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27808 | { 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] | 27809 | which seems to be undefined. Please make sure it is defined." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27810 | 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] | 27811 | 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] | 27812 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27813 | rm -f "$tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27814 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27815 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 27816 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 27817 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27818 | ;; |
| 27819 | :H) |
| 27820 | # |
| 27821 | # CONFIG_HEADER |
| 27822 | # |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27823 | _ACEOF |
| 27824 | |
| 27825 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 27826 | # substitutes the proper values into config.h.in to produce config.h. |
| 27827 | rm -f conftest.defines conftest.tail |
| 27828 | # First, append a space to every undef/define line, to ease matching. |
| 27829 | echo 's/$/ /' >conftest.defines |
| 27830 | # Then, protect against being on the right side of a sed subst, or in |
| 27831 | # an unquoted here document, in config.status. If some macros were |
| 27832 | # called several times there might be several #defines for the same |
| 27833 | # symbol, which is useless. But do not sort them, since the last |
| 27834 | # AC_DEFINE must be honored. |
| 27835 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 27836 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 27837 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 27838 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 27839 | # just an empty string. |
| 27840 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 27841 | ac_dB='\\)[ (].*,\\1define\\2' |
| 27842 | ac_dC=' ' |
| 27843 | ac_dD=' ,' |
| 27844 | |
| 27845 | uniq confdefs.h | |
| 27846 | sed -n ' |
| 27847 | t rset |
| 27848 | :rset |
| 27849 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 27850 | t ok |
| 27851 | d |
| 27852 | :ok |
| 27853 | s/[\\&,]/\\&/g |
| 27854 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 27855 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 27856 | ' >>conftest.defines |
| 27857 | |
| 27858 | # Remove the space that was appended to ease matching. |
| 27859 | # Then replace #undef with comments. This is necessary, for |
| 27860 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 27861 | # on some systems where configure will not decide to define it. |
| 27862 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 27863 | echo 's/ $// |
| 27864 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 27865 | |
| 27866 | # Break up conftest.defines: |
| 27867 | ac_max_sed_lines=50 |
| 27868 | |
| 27869 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 27870 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 27871 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 27872 | # et cetera. |
| 27873 | ac_in='$ac_file_inputs' |
| 27874 | ac_out='"$tmp/out1"' |
| 27875 | ac_nxt='"$tmp/out2"' |
| 27876 | |
| 27877 | while : |
| 27878 | do |
| 27879 | # Write a here document: |
| 27880 | cat >>$CONFIG_STATUS <<_ACEOF |
| 27881 | # First, check the format of the line: |
| 27882 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 27883 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 27884 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 27885 | b |
| 27886 | :def |
| 27887 | _ACEOF |
| 27888 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 27889 | echo 'CEOF |
| 27890 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 27891 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 27892 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 27893 | grep . conftest.tail >/dev/null || break |
| 27894 | rm -f conftest.defines |
| 27895 | mv conftest.tail conftest.defines |
| 27896 | done |
| 27897 | rm -f conftest.defines conftest.tail |
| 27898 | |
| 27899 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 27900 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27901 | if test x"$ac_file" != x-; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27902 | echo "/* $configure_input */" >"$tmp/config.h" |
| 27903 | cat "$ac_result" >>"$tmp/config.h" |
| 27904 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 27905 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 27906 | echo "$as_me: $ac_file is unchanged" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27907 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27908 | rm -f $ac_file |
| 27909 | mv "$tmp/config.h" $ac_file |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27910 | fi |
| 27911 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27912 | echo "/* $configure_input */" |
| 27913 | cat "$ac_result" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27914 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27915 | rm -f "$tmp/out12" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27916 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 27917 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27918 | |
| 27919 | esac |
| 27920 | |
| 27921 | done # for ac_tag |
| 27922 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 27923 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27924 | { (exit 0); exit 0; } |
| 27925 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27926 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27927 | ac_clean_files=$ac_clean_files_save |
| 27928 | |
| 27929 | |
| 27930 | # configure is writing to config.log, and then calls config.status. |
| 27931 | # config.status does its own redirection, appending to config.log. |
| 27932 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 27933 | # by configure, so config.status won't be able to write to it; its |
| 27934 | # output is simply discarded. So we exec the FD to /dev/null, |
| 27935 | # effectively closing config.log, so it can be properly (re)opened and |
| 27936 | # appended to by config.status. When coming back to configure, we |
| 27937 | # need to make the FD available again. |
| 27938 | if test "$no_create" != yes; then |
| 27939 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27940 | ac_config_status_args= |
| 27941 | test "$silent" = yes && |
| 27942 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27943 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27944 | $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] | 27945 | exec 5>>config.log |
| 27946 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 27947 | # would make configure fail if this is the last instruction. |
| 27948 | $ac_cs_success || { (exit 1); exit 1; } |
| 27949 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 27950 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 27951 | |
Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 27952 | echo "creating Modules/Setup" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 27953 | if test ! -f Modules/Setup |
| 27954 | then |
| 27955 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 27956 | fi |
| 27957 | |
Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 27958 | echo "creating Modules/Setup.local" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 27959 | if test ! -f Modules/Setup.local |
| 27960 | then |
| 27961 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 27962 | fi |
| 27963 | |
| 27964 | echo "creating Makefile" |
| 27965 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 27966 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 27967 | Modules/Setup.local Modules/Setup |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 27968 | |
| 27969 | case $ac_sys_system in |
| 27970 | BeOS) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27971 | { echo "$as_me:$LINENO: WARNING: |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 27972 | |
| 27973 | Support for BeOS is deprecated as of Python 2.6. |
| 27974 | See PEP 11 for the gory details. |
| 27975 | " >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27976 | echo "$as_me: WARNING: |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 27977 | |
| 27978 | Support for BeOS is deprecated as of Python 2.6. |
| 27979 | See PEP 11 for the gory details. |
| 27980 | " >&2;} |
| 27981 | ;; |
| 27982 | *) ;; |
| 27983 | esac |
| 27984 | |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 27985 | mv config.c Modules |